/* =========================================================
   清风道 · 1V1 咨询平台 演示站点
   配色：青瓷绿 #2E6F63 / 墨色 #15211E / 淡金 #B08A4F / 宣纸 #F4F6F1
   内容宽度：1080px
   ========================================================= */

:root {
  --primary: #2e6f63;
  --primary-dark: #23564c;
  --primary-soft: #e9f2ee;
  --accent: #b08a4f;
  --accent-soft: #f5efe3;
  --ink: #15211e;
  --text: #2a3634;
  --muted: #7f8f8a;
  --line: #e6ece9;
  --bg: #f4f6f1;
  --card: #ffffff;
  --wrap: 1080px;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(22, 46, 40, .06);
  --shadow-md: 0 14px 40px rgba(22, 46, 40, .10);
  --shadow-lg: 0 24px 60px rgba(22, 46, 40, .14);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", Arial, Helvetica, sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
p { margin: 0; }

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

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 30px; border-radius: 999px;
  font-size: 16px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s, box-shadow .25s, background .25s, color .25s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #2e6f63, #4f9483);
  color: #fff; box-shadow: 0 10px 24px rgba(46, 111, 99, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(46, 111, 99, .36); }
.btn-ghost {
  background: #fff; color: var(--ink); border-color: #dae7e2;
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-outline {
  height: 46px; padding: 0 24px; font-size: 15px;
  border-color: #d9e8e3; color: var(--primary-dark); background: #fff;
}
.btn-outline:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 252, 249, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s, background .25s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(22, 46, 40, .07);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #2e6f63, #78b6a4);
  color: #fff; font-family: var(--serif); font-size: 21px; font-weight: 700;
  box-shadow: 0 8px 18px rgba(46, 111, 99, .26);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--serif); font-size: 20px; color: var(--ink); letter-spacing: .08em; }
.brand-text em { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: .12em; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 10px;
  font-size: 15px; color: #49564f; transition: color .2s, background .2s;
}
.nav a:hover, .nav a.active { color: var(--primary-dark); background: var(--primary-soft); }
.nav a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; translate: -50% 0;
  width: 16px; height: 2px; border-radius: 2px; background: var(--primary);
}

.header-cta {
  height: 42px; padding: 0 22px; font-size: 14.5px; flex: none;
}

.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 9px 8px; }
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); margin: 4px 0; transition: transform .25s, opacity .25s; }

/* ---------- 首屏 ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(680px 420px at 8% -10%, #e4f0eb 0%, transparent 62%),
    radial-gradient(620px 460px at 96% 6%, #eff4e7 0%, transparent 60%);
  pointer-events: none;
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; }
.hero-blob.b1 { width: 320px; height: 320px; background: #c2ddd4; left: -80px; top: 40px; }
.hero-blob.b2 { width: 260px; height: 260px; background: #dbe7c6; right: 4%; bottom: 40px; }

.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.08fr .92fr;
  gap: 56px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid #d9e8e3;
  font-size: 13px; color: #5c7d75; box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(176, 138, 79, .16); }

.hero h1 {
  margin: 22px 0 18px;
  font-family: var(--serif);
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.28; letter-spacing: .02em;
}
.hero h1 em {
  font-style: normal; position: relative; color: var(--primary-dark); white-space: nowrap;
}
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 10px;
  background: rgba(46, 111, 99, .16); border-radius: 6px; z-index: -1;
}
.hero .lead { font-size: 17px; color: #5f6f6a; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }

.hero-stats { display: flex; gap: 42px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-size: 30px; color: var(--ink); font-family: var(--serif); line-height: 1.1; }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* 右侧视觉 */
.hero-visual { position: relative; height: 460px; }
.hero-visual::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 28px;
  background: linear-gradient(150deg, #fff 0%, #f5f8f5 100%);
  border: 1px solid #e0ebe6;
  box-shadow: var(--shadow-md);
}
.hero-visual::after {
  content: "道"; position: absolute; right: 24px; bottom: 4px;
  font-family: var(--serif); font-size: 190px; line-height: 1;
  color: #2e6f63; opacity: .06; pointer-events: none;
}
.teacher-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  width: 288px; padding: 14px 16px;
  background: #fff; border-radius: 16px;
  border: 1px solid #e5eeea;
  box-shadow: var(--shadow-md);
  animation: floaty 6s ease-in-out infinite;
}
.teacher-card.tc1 { left: 26px; top: 36px; }
.teacher-card.tc2 { right: 24px; top: 154px; animation-delay: -3s; }
.avatar {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #d2e6de, #abcdc2);
  color: #1f4a41; font-family: var(--serif); font-size: 19px; font-weight: 700;
}
.avatar.warm { background: linear-gradient(140deg, #e2e9c6, #cdd9a3); color: #5b6837; }
.tc-body { display: flex; flex-direction: column; line-height: 1.4; }
.tc-body strong { font-size: 14.5px; color: var(--ink); }
.tc-body small { font-size: 12px; color: var(--muted); }
.live {
  margin-left: auto; font-size: 11px; color: #2f8a64;
  background: #e7f2ec; border: 1px solid #d0e6dc;
  padding: 2px 9px; border-radius: 999px; flex: none;
}

.mini-chat {
  position: absolute; z-index: 3; left: 34px; bottom: 34px;
  width: 330px; display: flex; flex-direction: column; gap: 10px;
}
.bubble {
  max-width: 86%; padding: 11px 15px; border-radius: 16px;
  font-size: 13.5px; line-height: 1.6; box-shadow: var(--shadow-sm);
}
.bubble.them { background: #fff; color: #58655f; border-bottom-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: linear-gradient(135deg, #2e6f63, #4f9483); color: #fff; border-bottom-right-radius: 4px; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- 通用 section ---------- */
.section { padding: 92px 0; position: relative; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 54px; }
.kicker {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 12px;
}
.kicker.light { color: #d8bd8c; }
.section-head h2 { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 38px); line-height: 1.3; letter-spacing: .02em; }
.section-head .sub { margin-top: 14px; color: var(--muted); font-size: 15.5px; }

/* ---------- 烦扰卡片 ---------- */
.troubles { background: #fff; }
.trouble-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trouble-card {
  padding: 34px 30px 28px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.trouble-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #d0e6df; }
.icon {
  width: 62px; height: 62px; border-radius: 18px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: var(--primary-soft);
}
.icon svg { width: 32px; height: 32px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-love { background: #eef2f7; }
.icon-love svg { stroke: #7d94b0; }
.icon-study { background: var(--accent-soft); }
.icon-study svg { stroke: #a8863f; }
.trouble-card h3 { font-size: 21px; margin-bottom: 14px; letter-spacing: .02em; }
.trouble-card ul li {
  position: relative; padding-left: 18px; font-size: 14.5px; color: #5f6f6a;
  line-height: 2.1;
}
.trouble-card ul li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 6px; height: 6px; border-radius: 50%; background: #cbdcd6;
}
.text-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 20px;
  font-size: 14.5px; color: var(--primary-dark); font-weight: 600;
}
.text-link span { transition: transform .25s; }
.text-link:hover span { transform: translateX(4px); }

/* ---------- 服务卡片 ---------- */
.services { background: linear-gradient(180deg, #f4f6f1 0%, #fff 100%); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.service-card {
  display: flex; flex-direction: column;
  padding: 32px 30px 30px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card.featured {
  background: linear-gradient(170deg, #eff5f1, #fff);
  border-color: #d0e6df;
  box-shadow: 0 18px 44px rgba(46, 111, 99, .10);
}
.sc-top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.sc-index {
  font-family: var(--serif); font-size: 34px; line-height: 1;
  color: #bfd9d1; font-weight: 700;
}
.service-card.featured .sc-index { color: #a7cabe; }
.sc-top h3 { font-size: 22px; letter-spacing: .02em; }
.service-card p { color: #5f6f6a; font-size: 14.8px; line-height: 1.95; min-height: 88px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 26px; }
.tags span {
  font-size: 12.5px; color: #6c7e79; background: #eff3f0;
  border: 1px solid #e0e9e5; padding: 4px 12px; border-radius: 999px;
}
.service-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- 平台三栏 ---------- */
.platform { background: #fff; }
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plat-card {
  padding: 36px 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, #fcfdfb, #f4f8f4);
  border: 1px solid #e6eee9;
  transition: transform .3s, box-shadow .3s;
}
.plat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.plat-icon {
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 20px;
  display: grid; place-items: center; background: #fff;
  border: 1px solid #d7e8e1; box-shadow: var(--shadow-sm);
}
.plat-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plat-card h3 { font-size: 20px; margin-bottom: 12px; letter-spacing: .02em; }
.plat-card > p { color: #5f6f6a; font-size: 14.5px; line-height: 1.9; }
.plat-list { margin-top: 18px; padding-top: 18px; border-top: 1px dashed #dcece7; }
.plat-list li {
  position: relative; padding-left: 20px; font-size: 14px; color: #58655f; line-height: 2.05;
}
.plat-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--primary); font-size: 12px; font-weight: 700;
}
.plat-list b { color: var(--primary-dark); }

/* ---------- 在线 / 隐私 ---------- */
.online { padding-top: 0; }
.online-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; }
.online-card { padding: 42px 40px; border-radius: 22px; }
.online-card h3 { font-size: 26px; margin: 10px 0 14px; font-family: var(--serif); letter-spacing: .02em; }
.online-card p { font-size: 15px; line-height: 1.9; }

.online-card.dark {
  color: #eaf2ee;
  background:
    radial-gradient(400px 240px at 100% 0%, rgba(46, 111, 99, .38), transparent 70%),
    linear-gradient(150deg, #1d2b28, #121b18);
  box-shadow: 0 24px 56px rgba(15, 32, 28, .28);
}
.online-card.dark h3 { color: #fff; }
.online-card.dark p { color: #b9c9c4; }
.online-row { display: flex; align-items: center; gap: 10px; margin: 26px 0 24px; font-size: 14.5px; }
.online-row b { color: #d0e6df; font-weight: 600; }
.pulse {
  width: 9px; height: 9px; border-radius: 50%; background: #40b98b; flex: none;
  box-shadow: 0 0 0 0 rgba(64, 185, 139, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(64, 185, 139, .55); }
  70% { box-shadow: 0 0 0 12px rgba(64, 185, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(64, 185, 139, 0); }
}
.avatar-row { display: flex; align-items: center; }
.avatar-row span {
  width: 42px; height: 42px; border-radius: 50%; margin-right: -10px;
  display: grid; place-items: center;
  background: #2c3e39; color: #d7e8e2; border: 2px solid #15211e;
  font-family: var(--serif); font-size: 15px;
}
.avatar-row span.more { background: var(--primary); color: #fff; border-color: #15211e; }

.online-card.light { background: #fff; border: 1px solid #e5eeea; box-shadow: var(--shadow-sm); }
.check-list { margin-top: 22px; }
.check-list li {
  position: relative; padding-left: 26px; font-size: 14.5px; color: #58655f; line-height: 2.2;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--primary-soft); border: 1px solid #d0e4dd;
}
.check-list li::after {
  content: ""; position: absolute; left: 4px; top: 17px;
  width: 6px; height: 3px; border-left: 1.6px solid var(--primary); border-bottom: 1.6px solid var(--primary);
  rotate: -45deg;
}

/* ---------- 三步开始 ---------- */
.start { background: linear-gradient(180deg, #fff 0%, #eff5f1 100%); }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  position: relative; padding: 34px 30px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step-no {
  display: inline-block; font-family: var(--serif); font-size: 15px; font-weight: 700;
  color: var(--accent); letter-spacing: .16em; margin-bottom: 12px;
}
.step-card h3 { font-size: 20px; margin-bottom: 10px; letter-spacing: .02em; }
.step-card p { font-size: 14.5px; color: #5f6f6a; line-height: 1.95; }

.start-cta {
  margin-top: 44px; padding: 34px 40px; border-radius: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(46, 111, 99, .16), transparent 70%),
    linear-gradient(120deg, #f5f8f5, #eef4ef);
  border: 1px solid #dcece7;
}
.start-cta p { font-size: 16px; color: #46564f; }

/* ---------- 页脚 ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1.3fr; gap: 40px;
  padding: 56px 0 40px;
}
.footer-brand p { margin-top: 16px; font-size: 14px; color: #6b7873; line-height: 1.9; max-width: 380px; }
.footer-col h4 { font-size: 15px; margin-bottom: 14px; color: var(--ink); }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: #6b7873; line-height: 2.1; }
.footer-col a:hover { color: var(--primary-dark); }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0; }
.footer-bottom .wrap {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: #96a29e;
}

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 50;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid #dae7e2;
  background: #fff; color: var(--primary-dark); font-size: 18px; cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- 入场动画（未启用 JS 时内容保持可见） ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
  will-change: opacity, transform;
}
.js [data-reveal].in { opacity: 1; transform: none; }
.js.no-anim [data-reveal],
.js.no-anim [data-reveal].in { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .teacher-card, .pulse { animation: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { height: 380px; max-width: 460px; }
  .hero-stats { gap: 32px; }
  .trouble-grid, .service-grid, .platform-grid, .step-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card p { min-height: 0; }
  .online-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .wrap { width: calc(100% - 32px); }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 18px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav-toggle { display: block; order: 3; margin-left: auto; }
  .header-cta { display: none; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .section { padding: 64px 0; }
  .hero { padding: 44px 0 64px; }
  .trouble-grid, .service-grid, .platform-grid, .step-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 28px; }
  .hero-visual { height: 424px; }
  .hero-visual::after { font-size: 130px; right: 16px; bottom: 10px; }
  .teacher-card { width: min(300px, 88%); }
  .teacher-card.tc1 { left: 16px; top: 24px; }
  .teacher-card.tc2 { right: 14px; top: 142px; }
  .mini-chat { left: 20px; bottom: 22px; width: min(320px, 90%); }
  .online-card { padding: 32px 26px; }
  .start-cta { padding: 26px; flex-direction: column; align-items: flex-start; }
  .pc-only { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 34px; }
  .hero-stats b { font-size: 25px; }
  .hero-actions .btn { flex: 1 1 46%; padding: 0 16px; }
  .start-cta .btn { width: 100%; }
}
