/* ============================================================
   青山解析官网 —— 山水排版 · 极简留白
   设计主张:宋体(山石)× 黑体(水流);墨绿山水色系;
            水纹签名(signature)。克制装饰,精度靠排版。
   令牌集中在 :root。
   ============================================================ */

:root {
  /* ---------- 墨绿山水色系(6 命名色) ---------- */
  --ink:    #1a2e28;   /* 主文字:深墨绿黑,比纯黑更"山水" */
  --moss:   #0d7a5b;   /* 青山主绿(品牌) */
  --jade:   #2d9d78;   /* 中绿(次级) */
  --stone:  #8a9b94;   /* 石灰:次要文字/分隔 */
  --mist:   #f4f7f5;   /* 雾白底:带极淡绿调,比纯白柔 */
  --paper:  #ffffff;   /* 纯白:卡片 */

  /* 辅助阶(从主绿派生,用于按钮/边框) */
  --moss-deep: #0a5f47;
  --moss-soft: #ecf5f1;

  /* ---------- 字体 ---------- */
  /* Display:思源宋体 —— 横竖笔画有山石刻感,呼应"青山" */
  --font-display: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC',
    'STSong', 'SimSun', serif;
  /* Body:系统无衬线 —— 水的流畅可读 */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;

  /* ---------- 间距(4/8dp) ---------- */
  --sp-1: 4px;  --sp-2: 8px;   --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px;  --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

  /* ---------- 圆角(克制,偏小,显宋体气质) ---------- */
  --r-base: 8px; --r-lg: 10px; --r-xl: 12px;
  --r-full: 9999px;

  /* ---------- 过渡 ---------- */
  --tr-fast: 150ms cubic-bezier(.4,0,.2,1);
  --tr-base: 220ms cubic-bezier(.4,0,.2,1);

  /* ---------- 布局 ---------- */
  --container: 1080px;
  --nav-h: 64px;
}

/* ============================================================
   重置
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-6); }

/* ============================================================
   按钮(克制:仅底色变化,无上浮阴影)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  font-size: 15px; font-weight: 600; line-height: 1;
  padding: 11px 22px;
  border-radius: var(--r-full);
  border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background var(--tr-base), color var(--tr-base), border-color var(--tr-base);
}
.btn--lg { padding: 14px 32px; font-size: 16px; }

.btn--primary { background: var(--moss); color: #fff; }
.btn--primary:hover { background: var(--moss-deep); }

/* ============================================================
   顶栏
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--tr-base), border-color var(--tr-base);
}
.nav.is-scrolled { background: rgba(255,255,255,.92); border-bottom-color: var(--mist); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 700; font-size: 18px; color: var(--moss); }
.brand__logo { border-radius: 7px; }
.brand__name { line-height: 1; }

.nav__links { display: flex; align-items: center; gap: var(--sp-5); }
.nav__link { font-size: 15px; font-weight: 500; color: var(--stone); transition: color var(--tr-fast); }
.nav__link:hover { color: var(--moss); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: var(--sp-24) 0 var(--sp-20);
  text-align: center;
  background: var(--paper);
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 1; max-width: 720px; }

/* 层叠山形背景(主题视觉锚点,贴底极淡不抢字) */
.hero__mountains {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: auto;
  pointer-events: none;
}
.hero__mountains svg { width: 100%; display: block; }

.hero__eyebrow {
  display: inline-block;
  font-size: 14px; font-weight: 500;
  letter-spacing: .08em;
  color: var(--moss);
  margin-bottom: var(--sp-8);
}

/* 标题竖排两行:青山不改(山·粗·紧·稳)在上,绿水长流(水·细·宽·舒)在下 */
.hero__title {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: var(--sp-6);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-2);
}
.hero__title-main {
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 900;
  letter-spacing: .04em;   /* 山:紧字距,稳重 */
}
.hero__title-flow {
  font-size: clamp(34px, 6.8vw, 68px);
  font-weight: 500;
  letter-spacing: .16em;   /* 水:宽字距,舒展 */
  color: var(--moss);
}

/* 水纹签名(signature,全页只此一处) */
.hero__sig {
  width: 200px; margin: 0 auto var(--sp-10);
  color: var(--jade); opacity: .8;
}

.hero__cta { display: flex; justify-content: center; }

/* ============================================================
   Section 通用
   ============================================================ */
.section { padding: var(--sp-24) 0; }
.section--tint { background: var(--mist); }

.section__head { text-align: center; max-width: 600px; margin: 0 auto var(--sp-16); }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 34px); font-weight: 700; line-height: 1.25;
  color: var(--ink); margin-bottom: var(--sp-3);
}
.section__desc { font-size: 16px; color: var(--stone); }

/* ============================================================
   网格
   ============================================================ */
.grid { display: grid; gap: var(--sp-6); }


/* ============================================================
   信任条(Hero 下方硬数据,B2B 落地页标准)
   ============================================================ */
.trust {
  display: flex; justify-content: center; gap: var(--sp-12);
  margin-top: var(--sp-16);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--mist);
}
.trust__item { text-align: center; }
.trust__item dt {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 30px); font-weight: 800; color: var(--moss); line-height: 1;
  margin-bottom: var(--sp-2);
}
.trust__item dd { font-size: 13px; color: var(--stone); letter-spacing: .02em; }

/* ============================================================
   技术规格卡(datasheet 风格)
   ============================================================ */
/* 3+2 布局:上 3 张基础设施各占 2 列,下 2 张内容能力各占 3 列(更宽,容长文本) */
.grid--specs { grid-template-columns: repeat(6, 1fr); }
.grid--specs .spec:nth-child(-n+3) { grid-column: span 2; }
.grid--specs .spec:nth-child(n+4) { grid-column: span 3; }

.spec {
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  transition: border-color var(--tr-base);
}
.spec:hover { border-color: var(--jade); }
.spec__icon { width: 40px; height: 40px; color: var(--moss); margin: 0 auto var(--sp-4); }
.spec__icon svg { width: 32px; height: 32px; }
.spec__label { font-size: 13px; color: var(--stone); letter-spacing: .04em; margin-bottom: var(--sp-2); }
.spec__value {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 26px); font-weight: 700; color: var(--ink); line-height: 1.25;
  margin-bottom: var(--sp-2);
}
.spec__unit { font-size: .55em; font-weight: 500; color: var(--moss); margin-left: .15em; }
.spec__note { font-size: 14px; color: var(--stone); }


/* ============================================================
   套餐定价卡(5 档:Lite/Go/Plus/Pro/Max)
   ============================================================ */
.grid--plans { grid-template-columns: repeat(5, 1fr); max-width: 1080px; margin: 0 auto; }

.plan {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
  transition: border-color var(--tr-base), transform var(--tr-base);
}
.plan:hover { border-color: var(--jade); }
.plan--featured {
  border-color: var(--moss);
  border-width: 2px;
  transform: translateY(-4px);
}
.plan__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--moss); color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 4px 14px; border-radius: var(--r-full);
}
.plan__name {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: var(--sp-4);
}
/* 价格(主视觉锚点) */
.plan__price { margin-bottom: var(--sp-5); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--mist); }
.plan__price-value {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 900; color: var(--moss); line-height: 1;
}
.plan__price-unit { display: block; font-size: 12px; color: var(--stone); margin-top: var(--sp-1); }
/* 日限额(点数字号随档位递增,视觉编码档位高低) */
.plan__metric { margin-bottom: var(--sp-3); }
.plan__metric-value {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1;
}
.grid--plans .plan:nth-child(1) .plan__metric-value { font-size: 26px; }  /* Lite */
.grid--plans .plan:nth-child(2) .plan__metric-value { font-size: 30px; }  /* Go */
.grid--plans .plan:nth-child(3) .plan__metric-value { font-size: 32px; }  /* Plus */
.grid--plans .plan:nth-child(4) .plan__metric-value { font-size: 35px; }  /* Pro */
.grid--plans .plan:nth-child(5) .plan__metric-value { font-size: 38px; }  /* Max */
.plan__metric-unit { font-size: 13px; color: var(--stone); margin-left: var(--sp-1); }
.plan__desc { font-size: 13px; color: var(--stone); line-height: 1.6; }
.plans__cta {
  text-align: center; margin-top: var(--sp-10);
  font-size: 15px; color: var(--moss); font-weight: 500;
}

/* ============================================================
   TG 机器人:模拟聊天 UI
   ============================================================ */
.bot-showcase {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
  max-width: 960px; margin: 0 auto;
}

/* 聊天窗口 */
.tg {
  background: linear-gradient(180deg, #cfe9e0, #b5dccc);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  box-shadow: var(--shadow-lg);
}
.tg__bar { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.tg__avatar {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--moss); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.tg__avatar svg { width: 22px; height: 22px; }
.tg__title { display: flex; flex-direction: column; line-height: 1.3; }
.tg__title strong { font-size: 15px; color: var(--ink); }
.tg__title span { font-size: 12px; color: var(--stone); }

/* 机器人消息气泡(对照 menu.rs user_menu_text) */
.tg__bubble {
  background: #fff;
  border-radius: 0 var(--r-lg) var(--r-lg) var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-4);
  font-size: 14px; line-height: 1.9; color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  position: relative;
}
.tg__bubble::before {
  content: ""; position: absolute; top: 0; left: -6px;
  width: 12px; height: 12px;
  background: #fff;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}
.tg__bubble p { margin: 0; }
.tg__bubble b { color: var(--moss); }
.tg__hint { color: var(--stone) !important; font-size: 13px; }

/* 内联键盘(对照 menu.rs user_menu_rows) */
.tg__keyboard { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.kb {
  background: #fff; color: var(--moss);
  font-size: 14px; font-weight: 500;
  padding: 10px var(--sp-3);
  border: none; border-radius: var(--r-base);
  cursor: default; text-align: center;
  transition: background var(--tr-fast);
}
.kb:hover { background: var(--moss-soft); }

/* 右侧能力点 */
.bot-points { display: flex; flex-direction: column; gap: var(--sp-6); }
.bot-point {
  background: var(--mist);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
}
.bot-point__icon { width: 40px; height: 40px; color: var(--moss); margin-bottom: var(--sp-3); }
.bot-point__icon svg { width: 30px; height: 30px; }
.bot-point h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: var(--sp-2); }
.bot-point p { font-size: 15px; color: var(--stone); line-height: 1.7; }


/* ============================================================
   痛点对比(无箭头,标题自带方向;二元强对照)
   ============================================================ */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  max-width: 900px; margin: 0 auto;
}
.compare__col {
  border-radius: var(--r-xl);
  padding: var(--sp-8);
}
.compare__col--bad {
  background: var(--paper);
  border: 1px solid var(--mist);
}
.compare__col--good {
  background: var(--moss-soft);
  border: 1px solid var(--jade);
}
.compare__label {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  margin-bottom: var(--sp-6); padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--mist);
}
.compare__col--bad .compare__label { color: var(--stone); }
.compare__col--good .compare__label { color: var(--moss); }

.compare__list { display: flex; flex-direction: column; gap: var(--sp-5); }
.compare__list li { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: 15px; line-height: 1.65; color: var(--ink); }
.mark { flex-shrink: 0; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; border-radius: var(--r-full); margin-top: 2px; }
.mark--x { background: #fbeeec; color: #c0392b; }
.mark--v { background: var(--moss); color: #fff; }

/* ============================================================
   联系卡片
   ============================================================ */
.grid--contact { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin: 0 auto; }

.contact-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--r-xl);
  padding: var(--sp-10);
  transition: border-color var(--tr-base), background var(--tr-base);
}
.contact-card:hover { border-color: var(--jade); }

.contact-card__icon {
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  background: var(--moss-soft); color: var(--moss);
  border-radius: var(--r-lg); margin-bottom: var(--sp-5);
}
.contact-card__icon svg { width: 28px; height: 28px; }

.contact-card__label { font-size: 14px; font-weight: 500; color: var(--stone); margin-bottom: var(--sp-2); }
.contact-card__value {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; color: var(--ink);
  margin-bottom: var(--sp-6); word-break: break-all;
}
.contact-card__action { font-size: 15px; font-weight: 600; color: var(--moss); margin-top: auto; }

.contact-card--primary {
  background: var(--ink);
  border-color: var(--ink);
}
.contact-card--primary:hover { background: #243832; border-color: var(--moss); }
.contact-card--primary .contact-card__icon { background: rgba(255,255,255,.1); color: #fff; }
.contact-card--primary .contact-card__label { color: var(--stone); }
.contact-card--primary .contact-card__value { color: #fff; }
.contact-card--primary .contact-card__action { color: #fff; }

/* ============================================================
   页脚
   ============================================================ */
.footer { background: var(--mist); }
.footer__sig { width: 100%; height: 16px; color: var(--jade); opacity: .35; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); text-align: center; padding: var(--sp-12) var(--sp-6); }
.footer__brand { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 700; font-size: 16px; color: var(--moss); }
.footer__brand img { border-radius: 5px; }
.footer__slogan { font-family: var(--font-display); font-size: 15px; color: var(--ink); }
.footer__copy { font-size: 13px; color: var(--stone); }

/* ============================================================
   滚动渐显
   ============================================================ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .08s; }
.hero .reveal:nth-child(3) { transition-delay: .16s; }
.hero .reveal:nth-child(4) { transition-delay: .24s; }
.hero .reveal:nth-child(5) { transition-delay: .32s; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .grid--specs { grid-template-columns: repeat(3, 1fr); }
  .grid--specs .spec { grid-column: auto; }
  .grid--plans { grid-template-columns: repeat(3, 1fr); }
  .plan--featured { transform: none; }
  .compare { grid-template-columns: 1fr; }
  .bot-showcase { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .section { padding: var(--sp-20) 0; }
  .hero { padding: var(--sp-20) 0 var(--sp-16); }
  .grid--specs { grid-template-columns: repeat(2, 1fr); }
  .grid--specs .spec { grid-column: auto; }
  .grid--plans { grid-template-columns: repeat(2, 1fr); }
  .grid--contact { grid-template-columns: 1fr; }
  /* 信任条窄屏堆叠 */
  .trust { flex-direction: column; gap: var(--sp-6); margin-top: var(--sp-12); }
  .nav__link { display: none; }
  .btn--lg { width: 100%; }
  .hero__cta { flex-direction: column; }
  /* 标题窄屏收紧字距,避免 4 字撑破容器 */
  .hero__title-main { letter-spacing: .02em; }
  .hero__title-flow { letter-spacing: .1em; }
}

/* ============================================================
   无障碍:尊重 reduced-motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
