:root {
  --pine: #244336;
  --pine-dark: #172a23;
  --pine-mid: #6f917d;
  --pine-soft: #e7efe8;
  --cream: #f6efe3;
  --paper: #fffdf8;
  --ink: #202320;
  --muted: #697069;
  --line: #ded5c6;
  --gold: #b58a3c;
  --gold-soft: #efe2c6;
  --shadow: 0 18px 45px rgba(31, 43, 35, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.64), rgba(246, 239, 227, 0)),
    var(--cream);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.65;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(1280px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pine-dark);
  text-decoration: none;
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-symbol {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--paper);
  background: var(--pine);
  border-radius: 8px;
  font-size: 18px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  min-height: 38px;
  padding: 7px 12px;
  color: var(--pine-dark);
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  color: var(--paper);
  background: var(--pine);
}

.page-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 30px auto 56px;
}

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

.brand-panel,
.latest-panel,
.controls-section,
.course-card,
.empty-state,
.service-section,
.value-section,
.about-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.brand-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 0.58fr);
  min-height: 540px;
  overflow: hidden;
}

.role-visual {
  min-height: 500px;
  max-height: 620px;
  background:
    linear-gradient(135deg, rgba(36, 67, 54, 0.16), transparent 42%),
    linear-gradient(160deg, #eadfcb 0%, #f9f5ea 52%, #dce8dc 100%);
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.role-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.brand-copy {
  padding: 52px clamp(36px, 4.2vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy-top {
  margin-bottom: 18px;
}

.hero-main-copy {
  width: 100%;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--pine-dark);
  font-size: clamp(42px, 4.4vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-title-line {
  display: block;
}

.hero-title-line:last-child {
  white-space: nowrap;
}

.hero-qr-card {
  display: grid;
  gap: 9px;
  width: 198px;
  padding: 12px;
  border: 1px solid rgba(181, 138, 60, 0.28);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 12px 28px rgba(31, 43, 35, 0.08);
}

.hero-qr-card strong {
  color: var(--pine-dark);
  font-size: 16px;
  font-weight: 900;
}

.hero-qr-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.hero-qr-card img {
  width: 164px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 6px;
  background: var(--paper);
}

.hero-qr-card em,
.modal-qr-box em {
  display: none;
  min-height: 104px;
  place-items: center;
  padding: 10px;
  border: 1px dashed rgba(36, 67, 54, 0.34);
  border-radius: 8px;
  color: var(--muted);
  background: var(--pine-soft);
  font-style: normal;
  text-align: center;
}

.hero-qr-card.is-missing img,
.modal-qr-box.is-missing img {
  display: none;
}

.hero-qr-card.is-missing em,
.modal-qr-box.is-missing em {
  display: grid;
}

.hero-points {
  display: flex;
  column-gap: 11px;
  row-gap: 11px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  max-width: 720px;
}

.hero-points span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(36, 67, 54, 0.12);
  border-radius: 8px;
  color: var(--pine-dark);
  background: var(--pine-soft);
  font-size: 15px;
  font-weight: 900;
}

.intro,
.section-heading p,
.about-section p,
.service-card p,
.small-note,
.modal-dialog p {
  color: var(--muted);
}

.intro {
  max-width: 720px;
  margin-bottom: 32px;
  font-size: 17px;
  line-height: 1.9;
}

.intro p {
  margin-bottom: 12px;
}

.intro p:last-child {
  margin-bottom: 0;
}

.hero-conversion {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 198px;
  gap: 26px;
  align-items: end;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  align-self: end;
}

.primary-link,
.secondary-link,
.text-button,
.primary-button,
.filter-chip {
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.primary-link,
.secondary-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  text-decoration: none;
  font-weight: 900;
}

.primary-link,
.primary-button {
  color: var(--paper);
  background: var(--pine);
}

.secondary-link {
  color: var(--pine);
  border: 1px solid rgba(36, 67, 54, 0.24);
  background: rgba(255, 253, 248, 0.65);
}

.primary-link:hover,
.primary-button:hover {
  background: var(--pine-dark);
  transform: translateY(-1px);
}

.secondary-link:hover,
.text-button:hover {
  color: var(--paper);
  background: var(--pine);
}

.latest-panel,
.controls-section,
.service-section,
.value-section,
.about-section {
  padding: 30px;
}

.section-heading h2 {
  margin-bottom: 8px;
  color: var(--pine-dark);
  font-size: 30px;
  line-height: 1.25;
}

.section-heading p {
  margin-bottom: 0;
}

.centered {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

.latest-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.latest-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.latest-item h3,
.course-card h3,
.service-card h3,
.value-panel h3 {
  margin: 12px 0 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
}

.course-meta,
.latest-foot,
.card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.latest-foot,
.card-foot {
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

.issue-pill,
.category-tag,
.status-badge,
.service-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.issue-pill {
  color: var(--paper);
  background: var(--pine);
}

.category-tag {
  color: var(--pine-dark);
  background: var(--pine-soft);
}

.status-badge,
.service-label {
  color: #5d4315;
  background: var(--gold-soft);
}

.text-button {
  border: 1px solid rgba(36, 67, 54, 0.22);
  padding: 6px 10px;
  color: var(--pine);
  background: transparent;
  font-weight: 900;
}

.controls-section {
  margin-top: 24px;
}

.course-controls {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1fr);
  gap: 22px;
  align-items: end;
  margin-top: 24px;
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--pine-dark);
  font-weight: 900;
}

.search-box input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fffaf0;
  outline: none;
}

.search-box input:focus {
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(36, 67, 54, 0.12);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 42px;
  border: 1px solid rgba(36, 67, 54, 0.12);
  padding: 8px 13px;
  color: var(--pine-dark);
  background: var(--pine-soft);
  font-weight: 900;
}

.filter-chip:hover,
.filter-chip.active {
  color: var(--paper);
  background: var(--pine);
  border-color: var(--pine);
}

.courses-section {
  margin-top: 24px;
}

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

.course-card {
  min-width: 0;
  padding: 24px;
}

.course-card.expanded {
  grid-column: span 2;
}

.course-date,
.course-summary {
  color: var(--muted);
}

.course-date {
  margin-bottom: 8px;
  font-size: 14px;
}

.course-summary {
  min-height: 84px;
  margin-bottom: 22px;
}

.primary-button {
  min-height: 42px;
  border: 0;
  padding: 8px 14px;
  font-weight: 900;
}

.course-detail {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.course-detail h4 {
  margin-bottom: 14px;
  color: var(--pine-dark);
  font-size: 20px;
}

.outline-list,
.step-list {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding-left: 24px;
}

.outline-list li::marker,
.step-list li::marker {
  color: var(--gold);
  font-weight: 900;
}

.mindmap-preview {
  margin: 24px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.mindmap-preview figcaption {
  margin-bottom: 10px;
  color: var(--pine-dark);
  font-weight: 900;
}

.mindmap-preview img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  border-radius: 6px;
  background: #f7eee7;
}

.detail-note {
  margin-bottom: 10px;
  color: var(--muted);
}

.detail-note strong {
  color: var(--pine-dark);
}

.empty-state {
  display: grid;
  gap: 6px;
  padding: 34px;
  text-align: center;
  color: var(--muted);
}

.empty-state strong {
  color: var(--pine-dark);
  font-size: 20px;
}

.service-section,
.value-section,
.about-section {
  margin-top: 28px;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.value-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.service-card {
  padding: 24px;
}

.service-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.service-card.featured {
  border-color: rgba(181, 138, 60, 0.52);
  background: linear-gradient(180deg, #fffaf0, #f7edda);
}

.service-period {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--paper);
  background: var(--pine);
  font-size: 14px;
  font-weight: 900;
}

.price {
  margin-bottom: 12px;
  color: var(--pine-dark);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
}

.service-fit {
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.75;
}

.service-mini-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(36, 67, 54, 0.12);
  color: var(--pine-dark);
  list-style: none;
}

.service-mini-list li {
  position: relative;
  padding-left: 18px;
}

.service-mini-list li::before {
  content: "";
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.comparison-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comparison-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--paper);
}

.comparison-table th,
.comparison-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.comparison-table th {
  color: var(--paper);
  background: var(--pine);
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.comparison-table td:first-child {
  color: var(--pine-dark);
  font-weight: 900;
}

.comparison-table td:first-child span {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #755619;
  background: var(--gold-soft);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.difference-row {
  background: #fbf4e8;
}

.difference-row strong {
  color: var(--pine-dark);
  font-weight: 900;
}

.common-cell {
  color: #7b817b;
}

.service-summary {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 20px;
  border-radius: 8px;
  color: var(--pine-dark);
  background: var(--pine-soft);
}

.summary-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.summary-choice strong {
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  font-size: 17px;
  line-height: 1.55;
}

.service-summary span {
  color: var(--muted);
  font-size: 14px;
}

.service-cta {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(181, 138, 60, 0.30);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffaf0, #f1e6cf);
  text-align: center;
}

.service-cta p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

.cta-button {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 10px 24px;
  color: var(--paper);
  background: var(--pine);
  box-shadow: 0 12px 26px rgba(36, 67, 54, 0.22);
  font-weight: 900;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta-button:hover {
  background: var(--pine-dark);
  transform: translateY(-1px);
}

.value-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.2fr) minmax(260px, 0.9fr);
  gap: 18px;
}

.value-panel {
  padding: 22px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.flow-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 18px;
}

.flow-line span {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 6px;
  border-radius: 8px;
  color: var(--paper);
  background: var(--pine-mid);
  text-align: center;
  font-weight: 900;
}

.value-callout {
  margin: 22px 0 6px;
  color: var(--pine-dark);
  font-size: 24px;
  font-weight: 900;
}

.small-note {
  margin-bottom: 0;
  font-size: 14px;
}

.about-section {
  max-width: none;
}

.about-section p:last-child {
  margin-bottom: 0;
}

.about-brand-line {
  margin-top: 18px;
  color: var(--pine-dark);
  font-weight: 900;
}

.site-footer {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto 32px;
  padding: 22px 0 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer div {
  display: grid;
  gap: 2px;
}

.site-footer strong {
  color: var(--pine-dark);
  font-size: 18px;
}

.site-footer p {
  max-width: 620px;
  margin-bottom: 0;
}

.consult-modal[hidden] {
  display: none;
}

.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 42, 35, 0.48);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(580px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(20, 32, 25, 0.28);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(36, 67, 54, 0.16);
  border-radius: 8px;
  color: var(--pine-dark);
  background: #fffaf0;
  font-size: 24px;
  line-height: 1;
}

.modal-dialog h2 {
  margin-bottom: 8px;
  color: var(--pine-dark);
  font-size: 30px;
  line-height: 1.25;
}

.modal-qr-box {
  width: min(340px, 100%);
  margin: 24px auto 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.modal-qr-box img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 6px;
  background: var(--paper);
}

.modal-value {
  max-width: 500px;
  margin: 0 auto 10px;
  color: var(--pine-dark);
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 900;
  line-height: 1.55;
}

.modal-small {
  margin-bottom: 0;
  font-size: 14px;
  color: var(--muted);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .value-grid {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    grid-template-columns: minmax(300px, 0.42fr) minmax(0, 0.58fr);
    min-height: 0;
  }

  .hero-qr-card img {
    width: 156px;
  }

  .role-visual {
    min-height: 460px;
  }
}

@media (max-width: 920px) {
  .header-inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
    width: 100%;
  }

  .brand-panel,
  .course-controls,
  .service-cards,
  .summary-choice,
  .hero-conversion {
    grid-template-columns: 1fr;
  }

  .hero-conversion {
    align-items: start;
  }

  .role-visual {
    min-height: 360px;
    max-height: 520px;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .course-card.expanded {
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 138px;
  }

  .header-inner,
  .page-shell,
  .site-footer {
    width: min(100% - 20px, 1280px);
  }

  .brand-mark {
    font-size: 19px;
  }

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

  .nav-link {
    width: 100%;
    min-height: 40px;
    padding: 7px 6px;
    font-size: 14px;
    text-align: center;
  }

  .brand-copy,
  .latest-panel,
  .controls-section,
  .course-card,
  .service-section,
  .value-section,
  .about-section {
    padding: 20px;
  }

  .role-visual {
    min-height: 300px;
  }

  .role-visual img {
    object-position: center top;
  }

  h1 {
    font-size: clamp(28px, 8.4vw, 36px);
  }

  .hero-actions {
    display: grid;
  }

  .hero-conversion {
    gap: 18px;
  }

  .hero-qr-card {
    width: min(100%, 280px);
  }

  .hero-qr-card img {
    width: min(220px, 100%);
  }

  .section-heading h2 {
    font-size: 25px;
  }

  .latest-foot,
  .card-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .text-button,
  .primary-button,
  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .filter-group {
    display: grid;
    grid-template-columns: 1fr;
  }

  .flow-line {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    min-width: 640px;
  }

  .service-cta,
  .modal-dialog {
    padding: 20px;
  }

  .modal-dialog {
    width: min(100%, 520px);
  }

  .modal-qr-box {
    width: min(78vw, 320px);
    padding: 6px;
  }

  .cta-button {
    width: 100%;
  }
}
