:root {
  --bg: #f4efe7;
  --paper: #fffaf5;
  --paper-strong: #ffffff;
  --line: rgba(15, 123, 119, 0.08);
  --ink: #15343b;
  --muted: #6d7c80;
  --brand: #0f7b77;
  --brand-soft: #e6f5f1;
  --brand-deep: #0d5465;
  --sand: #fff0dc;
  --warm: #b36d18;
  --blue: #4867c6;
  --shadow: 0 20px 56px rgba(14, 62, 69, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --content-width: 1180px;
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 123, 119, 0.08), transparent 34%),
    radial-gradient(circle at top right, rgba(138, 205, 189, 0.18), transparent 28%),
    var(--bg);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  background: linear-gradient(145deg, rgba(13, 84, 101, 0.95), rgba(15, 123, 119, 0.94));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.brand-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  transition: background var(--transition), color var(--transition);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.header-pill {
  min-width: 240px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 14px;
}

.header-pill.is-active {
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.page-main {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 40px 34px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, #0d5465 0%, #0f7b77 54%, #8acdbd 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-panel::after {
  display: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.hero-title {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.08;
}

.hero-subtitle,
.hero-description {
  margin: 18px 0 0;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0f7b77 0%, #1ca6a0 100%);
  box-shadow: 0 18px 36px rgba(15, 123, 119, 0.22);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  color: var(--brand-deep);
  background: transparent;
  border: 1px solid rgba(70, 103, 103, 0.2);
}

.section-card,
.panel-card {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.section-title {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.2;
}

.section-copy,
.section-caption,
.body-copy {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.metrics-grid,
.focus-grid,
.category-grid,
.course-grid,
.article-grid,
.contact-grid,
.service-grid,
.plan-grid,
.highlight-grid {
  display: grid;
  gap: 18px;
}

.metrics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(248, 252, 250, 0.96);
  border: 1px solid rgba(70, 103, 103, 0.08);
}

.metric-value {
  display: block;
  font-size: 32px;
  color: var(--brand-deep);
}

.metric-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.focus-card,
.highlight-card,
.contact-card,
.service-card,
.plan-card,
.article-card,
.course-card,
.status-panel,
.result-panel {
  border-radius: var(--radius-md);
  border: 1px solid rgba(70, 103, 103, 0.08);
  background: rgba(250, 253, 252, 0.94);
}

.focus-card,
.highlight-card,
.status-panel,
.result-panel {
  padding: 22px;
}

.focus-card h3,
.highlight-card h3,
.result-panel h2,
.status-panel h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.focus-card p,
.highlight-card p,
.highlight-meta,
.status-panel p,
.result-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.highlight-meta {
  margin-bottom: 10px;
}

.category-grid,
.course-grid,
.article-grid,
.plan-grid,
.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(70, 103, 103, 0.08);
  background: rgba(250, 253, 252, 0.94);
  box-shadow: var(--shadow);
}

.category-card img,
.course-card-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.category-card-body,
.course-card-body,
.article-card,
.contact-card,
.service-card-body {
  padding: 20px;
}

.category-card h3,
.course-card-title,
.article-card-title,
.contact-card h3,
.service-card-body h3 {
  margin: 12px 0 10px;
  font-size: 22px;
  line-height: 1.35;
}

.category-card p,
.course-card-text,
.contact-card p,
.service-card-body p,
.article-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.category-meta,
.course-card-meta,
.detail-meta-grid,
.article-card-top,
.course-card-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.course-card-top {
  justify-content: space-between;
}

.course-card-meta,
.article-date,
.category-meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.chip,
.status-pill,
.plan-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.chip {
  background: var(--chip-bg, rgba(37, 93, 90, 0.1));
  color: var(--chip-color, var(--brand));
}

.status-pill {
  color: #fff;
  background: #7a8c8b;
}

.status-free,
.status-ready,
.status-member {
  background: var(--brand);
}

.status-locked {
  background: var(--warm);
}

.course-card .status-pill {
  margin-left: auto;
}

.plan-grid {
  align-items: stretch;
}

.plan-card {
  display: block;
  width: 100%;
  padding: 22px;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.plan-card:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 138, 138, 0.22);
}

.plan-card.is-active,
.preview-card {
  border-color: rgba(52, 96, 110, 0.55);
  background: linear-gradient(180deg, rgba(242, 249, 248, 0.98), rgba(231, 243, 240, 0.98));
  box-shadow: 0 18px 32px rgba(45, 72, 72, 0.16);
}

.plan-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.plan-card-top h3 {
  margin: 10px 0 0;
  font-size: 26px;
}

.plan-select-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(70, 103, 103, 0.16);
  color: var(--muted);
  background: rgba(245, 250, 247, 0.92);
  font-size: 13px;
  font-weight: 600;
}

.plan-card.is-active .plan-select-indicator {
  border-color: rgba(52, 96, 110, 0.32);
  color: var(--brand-deep);
  background: rgba(213, 232, 228, 0.85);
}

.plan-price-wrap {
  text-align: right;
}

.plan-price-wrap strong {
  display: block;
  color: var(--brand-deep);
  font-size: 30px;
}

.plan-price-wrap span {
  color: var(--muted);
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.text-input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(70, 103, 103, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
}

.inline-message {
  margin-top: 14px;
  min-height: 22px;
  font-size: 14px;
}

.inline-message.is-success {
  color: var(--brand);
}

.inline-message.is-error {
  color: #b64d32;
}

.inline-message.is-warn {
  color: #8f6114;
}

.step-list,
.feature-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.step-item {
  display: flex;
  gap: 14px;
  align-items: start;
  color: var(--muted);
  line-height: 1.75;
}

.step-index {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-size: 14px;
}

.feature-item {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.feature-item::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: stretch;
}

.detail-cover {
  width: 100%;
  min-height: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.18;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.meta-box {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(248, 252, 250, 0.94);
  border: 1px solid rgba(70, 103, 103, 0.08);
}

.meta-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.meta-value {
  font-size: 18px;
  line-height: 1.5;
}

.video-shell video {
  width: 100%;
  border-radius: var(--radius-md);
  background: #000;
}

.locked-panel {
  display: grid;
  gap: 14px;
  align-items: start;
}

.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(70, 103, 103, 0.14);
  border-radius: 999px;
  color: var(--brand-deep);
  background: rgba(245, 250, 247, 0.95);
  cursor: pointer;
}

.tab-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.search-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.search-shell .text-input {
  max-width: 340px;
}

.service-card {
  overflow: hidden;
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.contact-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 20px;
  background: rgba(91, 138, 138, 0.06);
}

.result-panel {
  text-align: center;
}

.result-panel.is-success {
  border-color: rgba(37, 93, 90, 0.25);
}

.panel-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  color: var(--brand);
  font-weight: 700;
}

.site-footer {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto 40px;
  padding: 28px;
  border-top: 1px solid rgba(70, 103, 103, 0.1);
  color: var(--muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-subtle {
  color: #12363f;
  background: #ecf3f1;
}

.no-top-gap {
  margin-top: 0;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(260px, 0.84fr);
  gap: 24px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-visual-wrap {
  position: relative;
  min-height: 290px;
}

.hero-orbit {
  position: absolute;
  border-radius: 28px;
}

.hero-orbit-a {
  top: 36px;
  right: 18px;
  width: 212px;
  height: 170px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.16);
}

.hero-orbit-b {
  bottom: 24px;
  left: 4px;
  width: 160px;
  height: 122px;
  background: rgba(221, 246, 238, 0.12);
  border: 2px solid rgba(221, 246, 238, 0.18);
}

.hero-visual {
  position: absolute;
  max-width: none;
}

.hero-visual-primary {
  right: 0;
  top: 10px;
  width: 240px;
  filter: drop-shadow(0 20px 40px rgba(8, 62, 68, 0.22));
}

.hero-visual-secondary {
  left: 0;
  bottom: 0;
  width: 178px;
  filter: drop-shadow(0 16px 28px rgba(8, 62, 68, 0.16));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 24px 20px;
  border-radius: 26px;
  background: #fffaf5;
  box-shadow: 0 16px 42px rgba(14, 62, 69, 0.08);
}

.stat-value {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: #0f7b77;
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: #617173;
  font-size: 15px;
  line-height: 1.5;
}

.intro-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, #fff7f1 100%);
}

.intro-text {
  display: block;
  font-size: 18px;
  color: #26454c;
  line-height: 1.9;
}

.intro-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
}

.focus-stack {
  display: grid;
  gap: 18px;
}

.focus-card {
  padding: 24px;
  border-radius: 24px;
  background: #f8fbfa;
}

.focus-title {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #15343b;
}

.focus-desc {
  display: block;
  margin-top: 12px;
  color: #667578;
  font-size: 16px;
  line-height: 1.8;
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-category-card {
  display: block;
  padding: 24px;
  border-radius: 24px;
}

.home-category-name {
  display: block;
  font-size: 24px;
  font-weight: 700;
}

.home-category-count {
  display: block;
  margin-top: 10px;
  color: #667578;
  font-size: 15px;
}

.list-stack {
  display: grid;
  gap: 20px;
}

.mini-course {
  display: flex;
  gap: 18px;
  padding: 16px;
  border-radius: 24px;
  background: #f9fbfb;
}

.mini-course-cover {
  width: 190px;
  height: 190px;
  border-radius: 20px;
  object-fit: cover;
  flex-shrink: 0;
}

.mini-course-body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}

.mini-course-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mini-course-tag,
.article-strip-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.mini-course-date,
.article-strip-date {
  color: #6c7b7e;
  font-size: 14px;
}

.mini-course-title,
.article-strip-title {
  display: block;
  margin-top: 14px;
  font-size: 24px;
  font-weight: 700;
  color: #16353d;
  line-height: 1.35;
}

.mini-course-summary {
  display: block;
  margin-top: 10px;
  color: #667578;
  font-size: 16px;
  line-height: 1.75;
}

.mini-course .badge {
  margin-top: 14px;
  width: fit-content;
}

.membership-compact {
  margin-bottom: 18px;
}

.membership-compact .status-panel {
  padding: 20px 22px;
  border-radius: 24px;
  background: #f9fbfb;
}

.article-strip {
  display: flex;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: #f9fbfb;
}

.article-strip-cover {
  width: 180px;
  height: 144px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
}

.article-strip-body {
  flex: 1;
  min-width: 0;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.qr-card {
  padding: 20px;
  border-radius: 24px;
  background: #f9fbfb;
}

.qr-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 18px;
  background: #ffffff;
}

.qr-title {
  display: block;
  margin-top: 14px;
  font-size: 22px;
  font-weight: 700;
}

.qr-desc {
  display: block;
  margin-top: 10px;
  color: #6b787b;
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-pill {
    width: 100%;
  }

  .home-hero-grid,
  .metrics-grid,
  .focus-grid,
  .category-grid,
  .course-grid,
  .article-grid,
  .plan-grid,
  .contact-grid,
  .service-grid,
  .highlight-grid,
  .detail-hero,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 16px;
  }

  .brand-name {
    font-size: 20px;
  }

  .page-main {
    width: min(100% - 24px, var(--content-width));
    padding-top: 20px;
  }

  .hero-panel,
  .section-card,
  .panel-card {
    padding: 20px;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    overflow-x: auto;
  }

  .hero-title {
    max-width: none;
  }

  .mini-course,
  .article-strip {
    flex-direction: column;
  }

  .mini-course-cover,
  .article-strip-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .stats-grid,
  .home-category-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual-wrap {
    min-height: 220px;
  }

  .hero-visual-primary {
    width: 180px;
  }

  .hero-visual-secondary {
    width: 132px;
  }
}
