/* ==========================================================================
   奥小佳官网静态站 — 样式表
   设计令牌全部实测自原站（Playwright getComputedStyle + 截图像素取样）
   ========================================================================== */

/* ---------- 1. Design Tokens（实测值） ---------- */
:root {
  /* 颜色 */
  --c-heading: #212166;      /* 主标题 深蓝紫 */
  --c-cyan: #6ec1e4;         /* 章节/卡片标题 青 */
  --c-blue: #677cf5;         /* 导航高亮 / 页脚底色 亮蓝紫 */
  --c-pink: #ff5970;         /* 数字 / 强调 粉 */
  --c-body: #7c7c7c;         /* 正文灰 */
  --c-title-sm: #1e1e1e;     /* 小标题近黑 */
  --c-line: #ebebf0;

  --bg: #ffffff;
  --bg-hero: #f4f4ff;        /* Hero 浅紫底 */
  --bg-panel: #f1f2fc;       /* 企业方案区 */
  --bg-alt: #f0f8ff;         /* 数据页交替区 */

  /* 字体（原站用 DM Sans，中文回退系统字体） */
  --font: "DM Sans", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;

  /* 尺寸（实测） */
  --container: 1140px;
  --gutter: 30px;
  --header-h: 100px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;          /* 实测 */
  line-height: 26px;         /* 实测 */
  color: var(--c-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 {
  margin: 0; font-weight: inherit; color: inherit; line-height: inherit; font-family: inherit;
}
p { margin: 0 0 1.4em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--c-pink); outline-offset: 3px; border-radius: 2px; }

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

.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: 12px; top: -60px; z-index: 999;
  background: var(--c-blue); color: #fff; padding: 10px 20px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- 3. Header（实测：白底 0.65 透明 + 69px logo + 17px/500 导航） ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 100;   /* 原站非 fixed，居于文档流 */
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .65);
  backdrop-filter: saturate(180%) blur(10px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; }
.brand img { height: 22px; width: auto; }   /* 原站 69px 方形容器内实际字高约 21px */

.nav { display: flex; align-items: center; }
.nav__link {
  padding: 0 22px;                          /* 实测 0 22px */
  font-size: 17px; font-weight: 500;        /* 实测 */
  line-height: 26px;
  color: var(--c-body);
  transition: color .25s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--c-blue); }   /* 实测 rgb(103,124,245) */

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1px solid var(--c-line); border-radius: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; margin: 4px auto;
  background: var(--c-heading); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 4. 区块通用 ---------- */
.section { padding: 70px 0; }
.section--tight { padding: 50px 0; }

/* 章节标题：实测 50px / 600 / #6EC1E4 / 居中 */
.sec-title {
  font-size: 50px; font-weight: 600; line-height: 50px;
  color: var(--c-cyan); text-align: center;
  margin: 0 0 50px;
}

/* ---------- 5. Hero（实测：左图右文，浅紫底 70px 标题，底部波浪过渡） ---------- */
.hero {
  padding-top: var(--header-h);
  background: var(--bg-hero);
  overflow: hidden;
}
.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
  padding: 60px 0 40px;
}
.hero__media { order: -1; }              /* 原站图在左 */
.hero__media img { width: 100%; }
.hero__title {
  font-size: 70px; font-weight: 400; line-height: 75px;  /* 实测 */
  color: var(--c-heading);
}
/* 原站 hero 底部波浪装饰（h-bcgr-02.png 浅紫波浪） */
.hero__wave {
  display: block; width: 100%; height: 120px; margin-bottom: -1px;
  object-fit: cover;
}

/* ---------- 6. 计数器（实测：数字 70px/500/#FF5970） ---------- */
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.counter__num {
  font-size: 70px; font-weight: 500; line-height: 70px;
  color: var(--c-pink);                    /* 实测 */
  margin-bottom: 14px;
}
.counter__title {
  font-size: 20px; font-weight: 500; line-height: 26px;   /* 实测 */
  color: var(--c-title-sm);
  margin-bottom: 10px;
}
.counter__text { font-size: 17px; line-height: 26px; color: var(--c-body); margin: 0; }

/* ---------- 7. 企业解决方案（实测：#F1F2FC 底，左文右图堆叠） ---------- */
.enterprise { background: var(--bg-panel); padding: 90px 0; }
.enterprise__item {
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center;
}
.enterprise__item + .enterprise__item { margin-top: 70px; }
.enterprise__item--flip .enterprise__media { order: -1; }
.enterprise__item--flip .enterprise__media:empty { display: none; }

/* 方案标题：实测 50px / 500 / #212166 */
.enterprise__title {
  font-size: 50px; font-weight: 500; line-height: 60px;  /* 实测 */
  color: var(--c-heading);
  margin-bottom: 24px;
}
.enterprise__text { font-size: 17px; line-height: 26px; color: var(--c-body); margin-bottom: 26px; }
.enterprise__list { margin-bottom: 28px; }
.enterprise__list li {
  position: relative; padding-left: 18px; margin-bottom: 6px;
  font-size: 17px; line-height: 26px; color: var(--c-body);
}
.enterprise__list li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--c-cyan);
}
.enterprise__media img { width: 100%; }

/* 了解更多按钮：实测 17px/500/#212166，padding 15px 52px */
.btn-more {
  display: inline-block; padding: 15px 52px;    /* 实测 */
  font-size: 17px; font-weight: 500; line-height: 34px;  /* 实测 */
  color: var(--c-heading);
  border: 2px solid var(--c-heading);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn-more:hover { background: var(--c-heading); color: #fff; }

/* ---------- 8. 图片卡（实测：标题 26px/600/#6EC1E4 居中） ---------- */
.img-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.img-card { text-align: center; }
.img-card__media { margin-bottom: 26px; }
.img-card__media img { width: 100%; max-width: 340px; margin: 0 auto; }
.img-card--sm .img-card__media img { max-width: 220px; }   /* 应用场景图标式小图 */
.img-card__title {
  font-size: 26px; font-weight: 600; line-height: 35px;   /* 实测 */
  color: var(--c-cyan);
  margin-bottom: 14px;                          /* 实测 margin 20px 0 */
}
.img-card__text { font-size: 17px; line-height: 26px; color: var(--c-body); margin: 0; }

/* ---------- 9. 内页 Hero（浅色，右文左图） ---------- */
.page-hero { background: var(--bg-hero); overflow: hidden; }
.page-hero__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
  padding: calc(var(--header-h) + 40px) 0 70px;
}
.page-hero__media { order: -1; }
.page-hero__media img { width: 100%; }
.page-hero__title {
  font-size: 50px; font-weight: 600; line-height: 50px;   /* 实测 */
  color: var(--c-cyan);
  margin-bottom: 28px;
}
.page-hero__text { font-size: 17px; line-height: 26px; color: var(--c-body); margin: 0; }

/* ---------- 10. 内页图文左右交替 ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 70px; align-items: center;
  padding: 30px 0;
}
.split--alt { background: var(--bg-alt); }
.split--flip .split__media { order: -1; }
.split__media img { width: 100%; }
.split__title {
  font-size: 50px; font-weight: 600; line-height: 50px;  /* 实测 */
  color: var(--c-cyan);
  margin-bottom: 26px;
}
.split__text { font-size: 17px; line-height: 26px; color: var(--c-body); }
.split__title--navy { color: var(--c-heading); }        /* 数据页小节标题为深蓝 */
.page-hero__title--navy { color: var(--c-heading); }
.split--narrow .split__media img { max-width: 440px; margin: 0 auto; }
.page-hero__media img { max-width: 540px; margin-left: auto; }

/* ---------- 11. 隐私政策 / 长文 ---------- */
.doc { padding: var(--header-h) 0 100px; }
.doc__title {
  font-size: 50px; font-weight: 600; line-height: 50px;
  color: var(--c-cyan); text-align: center;
  margin-bottom: 70px;
}
.doc__title--navy { color: var(--c-heading); margin-bottom: 50px; }
.prose { max-width: 900px; margin: 0 auto; }
.prose h2 {
  font-size: 50px; font-weight: 600; line-height: 50px;
  color: var(--c-cyan); text-align: center;
  margin: 0 0 60px;
}
.prose h3 {
  font-size: 26px; font-weight: 600; line-height: 35px;
  color: var(--c-heading);
  margin: 48px 0 18px;
}
.prose p { font-size: 17px; line-height: 26px; margin-bottom: 1.4em; }
.prose ul { margin: 0 0 1.4em; }
.prose ul li {
  position: relative; padding-left: 18px; margin-bottom: 6px;
  font-size: 17px; line-height: 26px;
}
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--c-cyan);
}
.prose a { color: var(--c-blue); }
.prose a:hover { color: var(--c-pink); }

/* 目录侧栏 */
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 60px; align-items: start; }
.doc-nav { position: sticky; top: 120px; }
.doc-nav b {
  display: block; font-size: 26px; font-weight: 500; line-height: 35px;
  color: var(--c-heading); margin-bottom: 20px;
}
.doc-nav a {
  display: block; padding: 7px 0; font-size: 16px; line-height: 24px;
  color: var(--c-body); border-left: 2px solid transparent; padding-left: 14px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.doc-nav a:hover { color: var(--c-blue); border-color: var(--c-cyan); }

/* 关于页 使命/愿景（原站为纯文本行） */
.mission-grid { margin-top: 40px; display: grid; gap: 10px; }
.mission { padding: 0; border: 0; }
.mission__label {
  font-size: 17px; font-weight: 700; line-height: 26px;
  color: var(--c-heading); margin: 0;
}

/* ---------- 12. Footer（实测：底色 #677CF5，标题 26px/500 白，顶部波浪过渡） ---------- */
.footer-wave {
  display: block; width: 100%; height: 110px;
  object-fit: cover; margin-bottom: -1px;
}
.site-footer {
  background: var(--c-blue);        /* 实测 rgb(103,124,245) */
  color: rgba(255, 255, 255, .82);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px;
  padding-bottom: 50px;
}
.footer-brand__name {
  font-size: 26px; font-weight: 500; line-height: 35px;
  color: #fff; margin-bottom: 14px;
}
.footer-col__title {
  font-size: 26px; font-weight: 500; line-height: 35px;  /* 实测 */
  color: #fff;
  margin: 20px 0;                 /* 实测 margin 20px 0 */
}
.footer-col a, .footer-col p { display: block; font-size: 17px; line-height: 26px; color: rgba(255, 255, 255, .82); }
.footer-col a:hover { color: #fff; }

.footer-bottom { text-align: center; font-size: 15px; color: rgba(255, 255, 255, .7); }
.footer-bottom p { margin-bottom: 8px; }
.footer-bottom a { color: rgba(255, 255, 255, .7); }
.footer-bottom a:hover { color: #fff; }

/* ---------- 13. 404 ---------- */
.err404 { text-align: center; padding: var(--header-h) 0 140px; }
.err404__code {
  font-size: 160px; font-weight: 500; line-height: 1;
  color: var(--c-cyan); margin-bottom: 20px;
}
.err404 h1 { font-size: 50px; font-weight: 600; color: var(--c-heading); margin-bottom: 20px; }
.err404 p { max-width: 520px; margin: 0 auto 40px; }
.err404__actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* ---------- 14. 动效（仅进场，不改版式） ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); }
[data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1200px) {
  .sec-title, .enterprise__title, .split__title, .page-hero__title { font-size: 40px; line-height: 46px; }
  .hero__title { font-size: 52px; line-height: 60px; }
  .counter__num { font-size: 54px; line-height: 58px; }
}

@media (max-width: 1024px) {
  .hero__inner, .page-hero__inner, .split, .enterprise__item { grid-template-columns: 1fr; gap: 44px; }
  .hero__media, .page-hero__media, .enterprise__item--flip .enterprise__media, .split--flip .split__media { order: 0; }
  .enterprise__item + .enterprise__item { margin-top: 60px; }
  .counters { gap: 28px; }
  .img-cards { grid-template-columns: 1fr; gap: 56px; max-width: 480px; margin: 0 auto; }
  .doc-layout { grid-template-columns: 1fr; gap: 30px; }
  .doc-nav { position: static; padding: 24px; background: var(--bg-hero); border-radius: 4px; }
  .mission-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --header-h: 76px; }
  .section, .enterprise { padding: 64px 0; }
  .split { padding: 56px 0; }
  .sec-title, .enterprise__title, .split__title, .page-hero__title, .doc__title, .prose h2 {
    font-size: 30px; line-height: 38px; margin-bottom: 40px;
  }
  .hero__title { font-size: 34px; line-height: 42px; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: #fff; padding: 8px var(--gutter) 20px;
    box-shadow: 0 12px 30px rgba(33, 33, 102, .1);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .25s var(--ease), visibility .25s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--c-line); }

  .counters { grid-template-columns: 1fr; gap: 40px; }
  .counter__num { font-size: 52px; line-height: 56px; }
  .img-card__title { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; padding-bottom: 44px; }
  .site-footer { padding: 64px 0 32px; }
  .btn-more { padding: 13px 34px; }
  .err404__code { font-size: 100px; }
  .err404 h1 { font-size: 30px; }
}

@media (max-width: 420px) {
  .hero__title { font-size: 28px; line-height: 36px; }
  .counter__num { font-size: 44px; line-height: 48px; }
}

/* ---------- 16. 打印 ---------- */
@media print {
  .site-header, .site-footer, .err404__actions { display: none !important; }
  body { color: #000; font-size: 12pt; }
  .section { padding: 12pt 0; }
}