:root {
  --paper: #fdfaf3;
  --paper-2: #f6efe2;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e6ddcf;
  --brand: #b45309;
  --brand-dark: #8a3f06;
  --brand-soft: #fdf0dd;
  --teal: #0f766e;
  --card: #fffdf8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(69, 45, 17, 0.08);
  --max: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.narrow {
  max-width: 820px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

/* ---------- 顶部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 250, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  font-family: "Songti SC", "SimSun", serif;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 8px;
}

.nav a {
  font-size: 17px;
  color: var(--muted);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--brand-dark);
  font-size: 17px;
  white-space: nowrap;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: #cbbfa9;
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.btn-sm {
  min-height: 42px;
  padding: 9px 18px;
  font-size: 16px;
}

.btn-lg {
  min-height: 56px;
  padding: 16px 28px;
  font-size: 18px;
}

.btn-light {
  background: #fff;
  color: var(--brand-dark);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(1100px 500px at 85% -10%, #f8e7c8 0%, rgba(248, 231, 200, 0) 60%),
    radial-gradient(700px 380px at -5% 20%, #f2e9d8 0%, rgba(242, 233, 216, 0) 55%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero h1 {
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 800;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  letter-spacing: 0.01em;
}

.hero .lead {
  margin-top: 22px;
  max-width: 34em;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 16px;
}

.trust-list span {
  color: var(--teal);
  font-weight: 700;
  margin-right: 6px;
}

/* 右侧拼贴 */
.hero-art {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: center;
  min-height: 420px;
}

.art-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 20px;
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.art-card--ink {
  grid-column: 1;
  grid-row: 1;
  height: 240px;
  background: linear-gradient(150deg, #2f3a33, #16211b);
  transform: rotate(-3deg);
}

.art-card--music {
  grid-column: 2;
  grid-row: 1;
  height: 210px;
  margin-top: 34px;
  background: linear-gradient(150deg, #b45309, #7c2d12);
  transform: rotate(2deg);
}

.art-card--voice {
  grid-column: 1 / span 2;
  grid-row: 2;
  justify-self: center;
  width: 74%;
  height: 150px;
  background: linear-gradient(150deg, #0f766e, #134e4a);
  transform: rotate(-1deg);
}

.art-char {
  font-family: "Songti SC", "STSong", serif;
  font-size: 64px;
  line-height: 1;
  opacity: 0.96;
}

.art-caption {
  font-size: 15px;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.art-note {
  position: absolute;
  right: -6px;
  bottom: 8px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.art-note strong {
  color: var(--brand);
  font-size: 22px;
}

.art-note span {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- 数据条 ---------- */
.stats {
  background: #1c1917;
  color: #fff;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px 0;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.stat strong {
  font-size: 30px;
  color: #fbbf24;
  font-family: "Songti SC", serif;
}

.stat span {
  color: #d6d3d1;
  font-size: 15px;
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--paper-2);
}

.section-head {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-family: "Songti SC", "STSong", serif;
  font-weight: 800;
}

.section-sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

/* ---------- 课程 ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.course-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #d8c8ac;
}

.course-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-family: "Songti SC", serif;
  font-size: 26px;
  font-weight: 700;
}

.course-card h3 {
  font-size: 21px;
}

.course-card p {
  color: var(--muted);
  font-size: 16px;
}

.course-meta {
  color: var(--teal) !important;
  font-size: 14px !important;
  font-weight: 600;
}

.course-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.price {
  color: var(--brand-dark);
  font-size: 20px;
  font-weight: 700;
}

.link {
  color: var(--teal);
  font-weight: 600;
  border-bottom: 1px solid rgba(15, 118, 110, 0.35);
  padding-bottom: 1px;
}

.link:hover {
  color: #0b5f59;
}

/* ---------- 老师 ---------- */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.teacher-card {
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #1c1917;
  color: #fbbf24;
  font-family: "Songti SC", serif;
  font-size: 26px;
}

.teacher-card h3 {
  font-size: 21px;
}

.teacher-title {
  margin: 6px 0 14px;
  color: var(--brand-dark);
  font-size: 15px;
  font-weight: 600;
}

.teacher-card blockquote {
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid #e7c9a0;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- 免费试听 ---------- */
.free-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.free-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 30px;
}

.free-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 17px;
}

.free-badge {
  flex-shrink: 0;
  min-width: 52px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.free-link {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid rgba(180, 83, 9, 0.35);
}

.free-link:hover {
  color: var(--brand-dark);
  border-bottom-color: var(--brand);
}

.free-teacher {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

.free-loading {
  color: var(--muted);
  font-size: 15px;
}

.fine-print {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

.free-card {
  padding: 28px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.free-card h3 {
  margin-bottom: 16px;
  font-size: 20px;
}

.qa-mini {
  margin: 0;
}

.qa-mini > div + div {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.qa-mini dt {
  font-weight: 700;
  font-size: 17px;
}

.qa-mini dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- 学员故事 ---------- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.story {
  margin: 0;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.story blockquote {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
}

.story blockquote::before {
  content: "“";
  display: block;
  height: 26px;
  color: #d9b98b;
  font-family: "Songti SC", serif;
  font-size: 44px;
  line-height: 1;
}

.story figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-top: 1px solid var(--line);
  padding: 8px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 40px 16px 4px;
  font-size: 19px;
  font-weight: 700;
  position: relative;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-size: 26px;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 4px 18px;
  color: var(--muted);
  font-size: 17px;
}

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, #9a3412, #b45309 55%, #a16207);
  color: #fff;
  padding: 56px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-inner h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-family: "Songti SC", serif;
}

.cta-inner p {
  margin-top: 8px;
  color: #ffedd5;
  font-size: 17px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #1c1917;
  color: #d6d3d1;
  padding: 56px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

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

.footer-brand strong {
  color: #fff;
  font-size: 19px;
}

.footer-brand p {
  margin-top: 6px;
  color: #a8a29e;
  font-size: 15px;
}

.footer-col h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.footer-col a,
.footer-col p {
  display: block;
  margin-bottom: 8px;
  color: #a8a29e;
  font-size: 15px;
}

.footer-col a:hover {
  color: #fbbf24;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #292524;
  color: #78716c;
  font-size: 14px;
}

/* ---------- 在线咨询 ---------- */
.chat-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.35);
  cursor: pointer;
}

.chat-fab:hover {
  background: #0b5f59;
}

.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 61;
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 130px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(28, 25, 23, 0.25);
  overflow: hidden;
}

.chat-panel[hidden] {
  display: none;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #134e4a;
  color: #fff;
}

.chat-head strong {
  display: block;
  font-size: 17px;
}

.chat-head small {
  color: #99f6e4;
  font-size: 13px;
}

.chat-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #faf7f2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 86%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 16px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-msg--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.chat-msg--user {
  align-self: flex-end;
  background: var(--teal);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-msg--typing {
  color: var(--muted);
  font-style: italic;
}

.chat-quick {
  display: flex;
  gap: 8px;
  padding: 10px 12px 0;
  overflow-x: auto;
  background: #faf7f2;
}

.chat-quick button {
  flex-shrink: 0;
  padding: 7px 12px;
  border: 1px solid #d6cbb6;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

.chat-quick button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.chat-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: #fffdf8;
}

.chat-form .btn {
  min-height: 46px;
  padding: 10px 18px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-art {
    min-height: 360px;
    max-width: 520px;
  }

  .course-grid,
  .teacher-grid,
  .story-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .free-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  .wrap {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 70px;
    gap: 12px;
  }

  .brand-text small,
  .phone {
    display: none;
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 44px 0 36px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .course-grid,
  .teacher-grid,
  .story-grid,
  .free-list,
  .stats-inner {
    grid-template-columns: 1fr;
  }

  .stats-inner {
    gap: 14px;
    padding: 24px 0;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .chat-fab {
    right: 14px;
    bottom: 14px;
    padding: 12px 16px;
  }

  .chat-panel {
    right: 8px;
    left: 8px;
    bottom: 78px;
    width: auto;
    height: min(70vh, 560px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
