/* 徐蓓蒂国画班 —— 中式雅致风格 */

:root {
  --paper: #FAF7F0;
  --paper-2: #F3EEE4;
  --ink: #2B2B2B;
  --ink-soft: #5A5A5A;
  --ink-light: #8A8A8A;
  --celadon: #7BA6A0;
  --indigo: #A8C4D4;
  --wine: #8B3A3A;
  --line: rgba(43, 43, 43, .12);
  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 247, 240, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(43, 43, 43, .06);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: var(--serif);
  font-size: 20px; font-weight: 600; letter-spacing: .12em;
  color: var(--ink);
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 14px; color: var(--ink-soft); letter-spacing: .04em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--wine); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 1.5px; background: var(--ink); transition: .3s;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: 64px; align-items: center;
}
.hero-media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(43, 43, 43, .12);
}
.hero-media img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center 20%; }
.hero-text .eyebrow {
  font-size: 13px; letter-spacing: .2em; color: var(--wine);
  margin-bottom: 20px;
}
.hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600; letter-spacing: .1em;
  line-height: 1.2; margin-bottom: 20px;
}
.hero-sub {
  font-family: var(--serif);
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--celadon); letter-spacing: .12em;
  margin-bottom: 24px;
}
.hero-desc {
  font-size: 15px; color: var(--ink-soft);
  max-width: 460px; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px; letter-spacing: .06em;
  border-radius: 2px;
  transition: all .25s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink); color: var(--paper);
}
.btn-primary:hover { background: var(--wine); }
.btn-ghost {
  border-color: var(--line); color: var(--ink-soft);
}
.btn-ghost:hover { border-color: var(--wine); color: var(--wine); }

.hero-ink {
  position: absolute; right: -40px; top: 40px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(123, 166, 160, .10) 0%, transparent 70%);
  pointer-events: none;
}

/* ---------- 通用板块 ---------- */
.section { padding: 96px 0; }
.sec-head { margin-bottom: 56px; }
.sec-kicker {
  font-size: 12px; letter-spacing: .28em; color: var(--celadon);
  margin-bottom: 14px; text-transform: uppercase;
}
.sec-head h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 600; letter-spacing: .08em;
  line-height: 1.35;
}

/* ---------- 老师简介 ---------- */
.teacher { background: var(--paper-2); }
.teacher-grid {
  display: grid; grid-template-columns: 340px 1fr;
  gap: 56px; align-items: start;
}
.teacher-media {
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 10px 32px rgba(43, 43, 43, .1);
}
.teacher-media img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center 20%; }
.teacher-lead {
  font-family: var(--serif);
  font-size: 20px; color: var(--ink);
  margin-bottom: 20px; letter-spacing: .04em;
}
.teacher-body p { color: var(--ink-soft); font-size: 15px; margin-bottom: 18px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tags li {
  font-size: 13px; color: var(--wine);
  border: 1px solid rgba(139, 58, 58, .28);
  padding: 6px 16px; border-radius: 2px; letter-spacing: .04em;
}

/* ---------- 课程 ---------- */
.course-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.course-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 3px; padding: 36px 30px;
  transition: transform .3s, box-shadow .3s;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(43, 43, 43, .08);
}
.course-card h3 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 600; letter-spacing: .08em;
  margin-bottom: 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.course-desc { font-size: 14px; color: var(--ink-soft); margin-bottom: 22px; }
.course-meta { font-size: 13px; }
.course-meta dt {
  color: var(--celadon); font-weight: 600;
  margin-bottom: 2px; letter-spacing: .06em;
}
.course-meta dd { color: var(--ink-soft); margin-bottom: 14px; }
.course-meta dd:last-child { margin-bottom: 0; }

/* ---------- 学生作品 ---------- */
.works { background: var(--paper-2); }
.works-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
.work { border-radius: 3px; overflow: hidden; background: #fff; }
.work img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform .5s;
}
.work:hover img { transform: scale(1.03); }
.work figcaption {
  font-size: 13px; color: var(--ink-light);
  padding: 14px 18px; letter-spacing: .04em;
  border-top: 1px solid var(--line);
}

/* ---------- 教学场景 ---------- */
.scene-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.scene-media { border-radius: 4px; overflow: hidden; box-shadow: 0 12px 36px rgba(43, 43, 43, .1); }
.scene-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.scene-text h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600; letter-spacing: .08em;
  margin-bottom: 24px; line-height: 1.4;
}
.scene-text p { color: var(--ink-soft); font-size: 15px; margin-bottom: 16px; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper-2); }
.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  padding: 24px 40px 24px 0; cursor: pointer;
  position: relative; letter-spacing: .02em;
  transition: color .2s;
}
.faq-q:hover { color: var(--wine); }
.faq-ico {
  position: absolute; right: 4px; top: 50%;
  width: 14px; height: 14px; margin-top: -7px;
}
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; background: var(--ink-soft);
  transition: transform .3s;
}
.faq-ico::before { left: 0; top: 6px; width: 14px; height: 1.5px; }
.faq-ico::after { left: 6px; top: 0; width: 1.5px; height: 14px; }
.faq-item.open .faq-ico::after { transform: rotate(90deg); }
.faq-item.open .faq-q { color: var(--wine); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
}
.faq-a p {
  font-size: 14px; color: var(--ink-soft);
  padding: 0 40px 26px 0;
}

/* ---------- 报名咨询 ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}
.contact-text h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600; letter-spacing: .08em;
  margin-bottom: 22px; line-height: 1.4;
}
.contact-text p { color: var(--ink-soft); font-size: 15px; margin-bottom: 28px; }
.contact-lines { display: flex; flex-direction: column; gap: 14px; }
.contact-line {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 17px; color: var(--ink); letter-spacing: .04em;
  transition: color .2s;
}
.contact-line:hover { color: var(--wine); }
.contact-line svg { width: 18px; height: 18px; fill: var(--celadon); flex: none; }

.contact-form {
  background: #fff; border: 1px solid var(--line);
  border-radius: 3px; padding: 40px 36px;
  display: flex; flex-direction: column; gap: 20px;
}
.contact-form label {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; color: var(--ink-soft); letter-spacing: .06em;
}
.contact-form input, .contact-form select {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 2px; background: var(--paper);
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form select:focus {
  outline: none; border-color: var(--celadon);
}
.contact-form .btn { width: 100%; margin-top: 6px; }
.form-tip { font-size: 12px; color: var(--ink-light); text-align: center; }

/* ---------- 页脚 ---------- */
.footer {
  background: var(--ink); color: rgba(250, 247, 240, .78);
  padding: 64px 0 48px; text-align: center;
}
.footer-brand {
  font-family: var(--serif); font-size: 22px;
  letter-spacing: .16em; color: var(--paper); margin-bottom: 16px;
}
.footer-line {
  font-family: var(--serif); font-size: 15px;
  letter-spacing: .2em; color: var(--celadon); margin-bottom: 24px;
}
.footer-contact { font-size: 14px; margin-bottom: 28px; }
.footer-note { font-size: 12px; color: rgba(250, 247, 240, .45); margin-bottom: 12px; }
.footer-copy { font-size: 12px; color: rgba(250, 247, 240, .35); }

/* ---------- 滚动渐入 ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- 背景音乐按钮 ---------- */
.music-btn {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(250, 247, 240, .95);
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(43, 43, 43, .12);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .25s, transform .25s, box-shadow .25s;
  backdrop-filter: blur(8px);
}
.music-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(43, 43, 43, .18); }
.music-btn .music-ico { width: 20px; height: 20px; fill: var(--ink-soft); transition: fill .25s; }
.music-btn .music-ico-pause { display: none; }
.music-btn.playing { background: var(--wine); border-color: var(--wine); }
.music-btn.playing .music-ico { fill: var(--paper); }
.music-btn.playing .music-ico-play { display: none; }

/* 播放时的音条动画 */
.music-bars { display: none; gap: 2px; align-items: flex-end; height: 14px; }
.music-btn.playing .music-bars { display: flex; }
.music-bars i {
  display: block; width: 2.5px; background: var(--paper); border-radius: 1px;
  animation: musicBar 1s ease-in-out infinite;
}
.music-bars i:nth-child(1) { height: 7px; animation-delay: 0s; }
.music-bars i:nth-child(2) { height: 12px; animation-delay: .22s; }
.music-bars i:nth-child(3) { height: 9px; animation-delay: .44s; }
@keyframes musicBar {
  0%, 100% { transform: scaleY(.45); }
  50% { transform: scaleY(1); }
}

/* 音乐提示气泡 */
.music-tip {
  position: fixed; right: 22px; bottom: 84px; z-index: 199;
  background: rgba(43, 43, 43, .92); color: var(--paper);
  font-size: 13px; line-height: 1.5; padding: 10px 14px;
  border-radius: 3px; max-width: 200px;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.music-tip.show { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { max-width: 340px; margin: 0 auto; }
  .hero-text { text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .teacher-grid { grid-template-columns: 1fr; gap: 40px; }
  .teacher-media { max-width: 320px; margin: 0 auto; }
  .course-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .scene-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--paper); flex-direction: column;
    gap: 0; padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .3s;
    box-shadow: 0 12px 24px rgba(43, 43, 43, .08);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .hero { padding: 96px 0 64px; }
  .section { padding: 64px 0; }
  .sec-head { margin-bottom: 36px; }
  .contact-form { padding: 28px 22px; }
  .course-card { padding: 28px 22px; }
  .music-btn { right: 16px; bottom: 16px; width: 46px; height: 46px; }
  .music-tip { right: 16px; bottom: 72px; }
}
