/* ============================================================
   青山解析官网 —— 石墨黑 · 中性灰阶 · 钢蓝点缀
   设计主张:专业克制优雅。黑白灰承载全部结构,钢蓝只做
            小面积点缀(眉标/图标/对勾/链接);衬线大字
            (品牌句)× 系统黑体(正文);留白与层级出气质。
   签名元素:hero 片源跑马灯 + 灰阶山影。
   令牌集中在 :root。
   ============================================================ */

:root {
  /* ---------- 中性阶(结构主色) ---------- */
  --bg-dark:   #101418;   /* 石墨黑:hero / 深卡 / 页脚 */
  --bg-dark-2: #171c22;   /* 石墨黑上层(渐变起点) */
  --bg-deep:   #0c1015;   /* 最深(渐变终点) */
  --ink:       #191c21;   /* 浅底标题文字 */
  --text-2:    #5c6470;   /* 浅底次要文字 */
  --text-3:    #8a919c;   /* 浅底弱文字 */
  --line:      #e7eaee;   /* 浅底边框/分隔 */
  --mist:      #f6f7f9;   /* 浅灰区块底 */
  --paper:     #ffffff;   /* 卡片 */

  /* ---------- 强调色(唯一彩色,小面积使用) ---------- */
  --blue:        #3355c0;             /* 钢蓝:浅底点缀 */
  --blue-bright: #8fa6ee;             /* 亮钢蓝:深底点缀 */
  --blue-tint:   #f0f3fa;             /* 蓝染浅底(对比好列/图标底) */
  --blue-line:   rgba(51, 85, 192, .28);

  /* 负语义红(降饱和,仅对比区 ✕) */
  --bad: #c0402b;
  --bad-tint: #fbedea;

  /* ---------- 深底前景(半透明白阶) ---------- */
  --on-dark:       rgba(255, 255, 255, .92);
  --on-dark-mute:  rgba(255, 255, 255, .66);
  --on-dark-faint: rgba(255, 255, 255, .42);
  --on-dark-line:  rgba(255, 255, 255, .10);

  /* ---------- 字体 ---------- */
  /* 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;

  /* ---------- 阴影 ---------- */
  --shadow-sm: 0 1px 2px rgba(16, 20, 24, .06);
  --shadow-md: 0 4px 16px rgba(16, 20, 24, .08);
  --shadow-lg: 0 16px 40px rgba(16, 20, 24, .18);

  /* ---------- 过渡 ---------- */
  --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--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }

/* 深底上的主 CTA:白底黑字 */
.btn--invert { background: #fff; color: var(--bg-dark); }
.btn--invert:hover { background: #e8eaed; }

/* 深底上的次级按钮:透明白边 */
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.32); color: #fff; }
.btn--ghost:hover { border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.06); }

a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   顶栏(双态:hero 内透明石墨,滚出 hero 转浅色毛玻璃)
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(16, 20, 24, .30);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--on-dark-line);
  transition: background var(--tr-base), border-color var(--tr-base);
}
.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: #fff; transition: color var(--tr-base); }
.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(--on-dark-mute); transition: color var(--tr-fast); }
.nav__link:hover { color: #fff; }
.nav__link--strong { color: var(--blue-bright); }
.nav__link--strong:hover { color: #fff; }

/* 深色态下导航按钮显示为白(黑按钮在深底上不可见) */
.nav .btn--dark { background: #fff; color: var(--bg-dark); }
.nav .btn--dark:hover { background: #e8eaed; }

/* 滚出 hero 后:浅色导航(main.js 依据 hero 底边切换) */
.nav.is-scrolled { background: rgba(255,255,255,.92); border-bottom-color: var(--line); }
.nav.is-scrolled .brand { color: var(--ink); }
.nav.is-scrolled .nav__link { color: var(--text-2); }
.nav.is-scrolled .nav__link:hover { color: var(--ink); }
.nav.is-scrolled .nav__link--strong { color: var(--blue); }
.nav.is-scrolled .nav__link--strong:hover { color: var(--blue); }
.nav.is-scrolled .btn--dark { background: var(--ink); color: #fff; }
.nav.is-scrolled .btn--dark:hover { background: #000; }

/* ============================================================
   Hero:石墨黑开场
   ============================================================ */
.hero {
  position: relative;
  padding: var(--sp-24) 0 0;
  text-align: center;
  color: var(--on-dark);
  background: linear-gradient(180deg, var(--bg-dark-2) 0%, var(--bg-dark) 55%, var(--bg-deep) 100%);
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; }

/* 层叠山影(灰阶剪影,融入石墨底) */
.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: .14em;
  color: var(--blue-bright);
  margin-bottom: var(--sp-8);
}

/* 品牌句两行:主行实白,次行灰白 —— 灰阶层次而非彩色 */
.hero__title {
  font-family: var(--font-display);
  line-height: 1.15;
  color: #fff;
  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, 7.2vw, 72px);
  font-weight: 900;
  letter-spacing: .04em;   /* 紧字距,稳重 */
}
.hero__title-flow {
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 500;
  letter-spacing: .16em;   /* 宽字距,舒展 */
  color: rgba(255, 255, 255, .55);
}

/* 业务定位:一句话 */
.hero__lede {
  font-size: 17px; line-height: 1.85;
  color: var(--on-dark-mute);
  max-width: 560px;
  margin: 0 auto var(--sp-8);
}

.hero__cta {
  display: flex; justify-content: center; gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-16);
}

/* ---------- 静态品类行(资源覆盖的静默证据,不滚动) ---------- */
.hero__cats {
  font-size: 14px; font-weight: 500;
  letter-spacing: .1em;
  color: var(--on-dark-faint);
  margin-bottom: var(--sp-16);
}

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

.section__head { text-align: center; max-width: 640px; 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(--text-2); }

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

/* ============================================================
   双优势:对照式双栏,中缝一线(无卡片容器,开阔排版)
   两列内容对等并列,由结构本身编码"两条生命线"的语义。
   ============================================================ */
.edge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
}
.edge { padding: var(--sp-2) var(--sp-8); }
.edge + .edge { border-left: 1px solid var(--line); }

.edge__eyebrow {
  font-size: 13px; font-weight: 600;
  letter-spacing: .18em;
  color: var(--blue);
  margin-bottom: var(--sp-3);
}

.edge__title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700; line-height: 1.3;
  color: var(--ink);
  margin-bottom: var(--sp-8);
}

.edge__list { display: flex; flex-direction: column; gap: var(--sp-6); }
.edge-item { display: flex; align-items: flex-start; gap: var(--sp-4); }
.edge-item__icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-base);
  background: var(--blue-tint);
  color: var(--blue);
}
.edge-item__icon svg { width: 22px; height: 22px; }

.edge-item__name { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.edge-item__note { font-size: 14px; color: var(--text-2); line-height: 1.7; }

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

.plan {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  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), box-shadow var(--tr-base);
}
.plan:hover { border-color: var(--text-3); box-shadow: var(--shadow-md); }
.plan--featured {
  border-color: var(--ink);
  border-width: 2px;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.plan__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--ink); 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(--line); }
.plan__price-value {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 900; color: var(--ink); line-height: 1;
}
.plan__price-unit { display: block; font-size: 12px; color: var(--text-3); margin-top: var(--sp-1); }
.plan__metric { margin-bottom: var(--sp-3); }
.plan__metric-value {
  font-family: var(--font-display);
  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(--text-2); margin-left: var(--sp-1); }
.plan__desc { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.plans__cta {
  text-align: center; margin-top: var(--sp-10);
  font-size: 15px; color: var(--ink); 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 原生蓝绿) */
.tg {
  background: linear-gradient(180deg, #e9edf2, #dce2ea);
  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(--ink); 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(--text-2); }

.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: var(--shadow-sm);
  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(--blue); }
.tg__hint { color: var(--text-3) !important; font-size: 13px; }

.tg__keyboard { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.kb {
  background: #fff; color: var(--blue);
  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(--blue-tint); }

/* 右侧能力点 */
.bot-points { display: flex; flex-direction: column; gap: var(--sp-6); }
.bot-point {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
}
.bot-point__icon { width: 40px; height: 40px; color: var(--blue); 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(--text-2); 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(--line);
}
.compare__col--good {
  background: var(--blue-tint);
  border: 1px solid var(--blue-line);
}
.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(--line);
}
.compare__col--bad .compare__label { color: var(--text-2); }
.compare__col--good .compare__label { color: var(--ink); border-bottom-color: var(--blue-line); }

.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: var(--bad-tint); color: var(--bad); }
.mark--v { background: var(--blue); 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(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-10);
  transition: border-color var(--tr-base), box-shadow var(--tr-base);
}
.contact-card:hover { border-color: var(--text-3); box-shadow: var(--shadow-md); }

.contact-card__icon {
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  background: var(--blue-tint); color: var(--blue);
  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(--text-2); 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(--blue); margin-top: auto; }

/* 主卡:白底黑边强调(深色只保留在首尾 hero/footer) */
.contact-card--primary {
  border: 2px solid var(--ink);
}
.contact-card--primary:hover { border-color: var(--ink); }
.contact-card--primary .contact-card__icon { background: var(--ink); color: #fff; }
.contact-card--primary .contact-card__action { color: var(--ink); }

/* ============================================================
   页脚(石墨黑收尾)
   ============================================================ */
.footer { background: var(--bg-dark); }
.footer__sig { width: 100%; height: 16px; color: var(--blue-bright); opacity: .3; }
.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: #fff; }
.footer__brand img { border-radius: 5px; }
.footer__slogan { font-family: var(--font-display); font-size: 15px; color: var(--on-dark-mute); }
.footer__copy { font-size: 13px; color: var(--on-dark-faint); }

/* ============================================================
   滚动渐显
   ============================================================ */
.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__inner .reveal:nth-child(2) { transition-delay: .08s; }
.hero__inner .reveal:nth-child(3) { transition-delay: .16s; }
.hero__inner .reveal:nth-child(4) { transition-delay: .24s; }
.hero__inner .reveal:nth-child(5) { transition-delay: .32s; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .edge-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
  .edge { padding: 0 var(--sp-2); }
  .edge + .edge { border-left: none; border-top: 1px solid var(--line); padding-top: var(--sp-10); }
  .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-top: var(--sp-20); }
  .grid--plans { grid-template-columns: repeat(2, 1fr); }
  .grid--contact { grid-template-columns: 1fr; }
  .nav__link { display: none; }
  .nav__link--strong { display: inline-flex; }
  .btn--lg { width: 100%; }
  .hero__cta { flex-direction: column; margin-bottom: var(--sp-10); }
  .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; }
}
