/* ==========================================================================
   槿海云 · 企业站首页 — iOS 外观（浅色页面 + 深色 Hero 磁贴）
   系统色板 / SF 字号阶梯 / 0.5pt 内缩分隔线 / inset 分组列表 / 彩色符号块
   ========================================================================== */

/* ---------- 1. iOS 系统令牌 ---------- */
:root {
  color-scheme: light;

  --bg: #f2f2f7;              /* systemGroupedBackground */
  --bg-2: #ffffff;            /* secondarySystemGroupedBackground */
  --bg-3: #f2f2f7;

  --label: #000000;
  --label-2: rgba(60, 60, 67, .60);
  --label-3: rgba(60, 60, 67, .30);

  --sep: rgba(60, 60, 67, .29);
  --fill: rgba(120, 120, 128, .20);
  --fill-2: rgba(120, 120, 128, .32);

  /* 系统强调与语义色 */
  --blue: #007aff;
  --indigo: #5856d6;
  --teal: #30b0c7;
  --green: #34c759;
  --orange: #ff9500;
  --purple: #af52de;
  --pink: #ff2d55;
  --yellow: #ffcc00;

  --container: 1000px;
  --gutter: 1.25rem;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --r-xl: 26px;
  --header-h: 52px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --spring: cubic-bezier(.32, .72, 0, 1);
  --ease: cubic-bezier(.25, .1, .25, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.022em;
  color: var(--label);
  text-wrap: balance;
}
h3, h4 { font-weight: 600; letter-spacing: -.016em; }

code, .mono { font-family: var(--mono); font-variant-ligatures: none; }

::selection { background: rgba(0, 122, 255, .24); }

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: .7rem 1.1rem;
  border-radius: 0 0 12px 0;
  background: var(--blue);
  color: #fff;
  font-weight: 590;
}
.skip:focus { left: 12px; top: 12px; border-radius: 12px; }

/* ---------- 3. 导航栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 249, 249, .78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled { background: rgba(249, 249, 249, .92); border-bottom-color: var(--sep); }

.header-inner { position: relative; display: flex; align-items: center; gap: .9rem; height: var(--header-h); }

.nav-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--label);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s var(--ease);
}
.site-header.compact .nav-title { opacity: 1; }
.site-header.compact .brand-name,
.site-header.compact .brand-pill { opacity: 0; }

.brand { display: inline-flex; align-items: center; gap: .5rem; flex: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; }
.brand-name { font-size: 1rem; font-weight: 600; letter-spacing: -.014em; transition: opacity .2s var(--ease); }
.brand-pill {
  padding: .16rem .5rem;
  border-radius: 999px;
  background: var(--fill);
  color: var(--label-2);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  transition: opacity .2s var(--ease);
}

.nav { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; font-size: .9375rem; color: var(--label-2); }
.nav-links a { padding: .35rem 0; transition: color .18s var(--ease); }
.nav-links a:hover { color: var(--label); }

.header-actions { display: flex; align-items: center; gap: .6rem; flex: none; }
.login { font-size: .9375rem; color: var(--blue); }
.login:hover { color: #0066d6; }

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: var(--fill);
  color: var(--label);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3.5px;
  cursor: pointer;
  transition: transform .16s var(--spring), background .2s var(--ease);
}
.nav-toggle:active { transform: scale(.94); background: var(--fill-2); }
.nav-toggle span {
  width: 14px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .3s var(--spring), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .72rem 1.15rem;
  border: 0;
  border-radius: 11px;
  font-size: 1rem;
  font-weight: 590;
  letter-spacing: -.011em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s var(--spring), background .18s var(--ease), opacity .18s var(--ease);
}
.btn:active { transform: scale(.96); }
.btn-sm { padding: .44rem .8rem; font-size: .8125rem; border-radius: 9px; border: 0; height: auto; }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1a86ff; }

.btn-outline { background: var(--fill); color: var(--label); }
.btn-outline:hover { background: var(--fill-2); }

/* ---------- 5. Hero —— 深色磁贴（Apple 官网的深色 intro 卡） ---------- */
.hero {
  position: relative;
  padding: 2.75rem 0 0;
}
/* 浅色页面的居中大标题：不用深色磁贴 */
.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: .5rem;
  text-align: center;
}
.hero-glow { display: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: var(--fill);
  color: var(--label-2);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: 0;
}
.eyebrow .dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.hero h1 {
  max-width: 54rem;
  margin: 1.1rem auto .9rem;
  font-size: clamp(2rem, 4.4vw, 2.875rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.028em;
  color: var(--label);
}
.grad { color: var(--blue); }
.grad-2 { color: inherit; }

.hero-lead {
  max-width: 38rem;
  margin: 0 auto;
  color: var(--label-2);
  font-size: 1.0625rem;
  line-height: 1.62;
  letter-spacing: -.011em;
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-top: 1.6rem;
}

.hero-corpus {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  margin-top: 1.4rem;
  color: var(--label-2);
  font-size: .8125rem;
}
.hero-corpus span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .24rem .6rem;
  border-radius: 999px;
  background: var(--fill);
  letter-spacing: 0;
}
.hero-corpus b { font-weight: 590; color: var(--label); }

/* 数据：浅色页面上的独立分组卡 */
.hero-metrics { padding-top: .75rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 18px rgba(0, 0, 0, .035);
  text-align: left;
}
.stat { position: relative; padding: 1.05rem 1rem 1.1rem; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  bottom: 1.1rem;
  width: .5px;
  background: var(--sep);
}
.stat strong {
  display: block;
  font-size: clamp(1.375rem, 2.2vw, 1.625rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.022em;
  font-variant-numeric: tabular-nums;
  color: var(--label);
}
.stat-label { display: block; margin-top: .25rem; color: var(--label); font-size: .875rem; font-weight: 590; letter-spacing: -.006em; }
.stat-sub { display: block; margin-top: .15rem; color: var(--label-2); font-size: .75rem; line-height: 1.5; letter-spacing: 0; text-wrap: pretty; }

/* ---------- 6. 区块节奏 ---------- */
.section { position: relative; padding: 4rem 0; }
.quickstart { padding-top: 2.75rem; }

.section-head { max-width: 40rem; margin-bottom: 1.75rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  margin: .55rem 0 .5rem;
  font-size: clamp(1.625rem, 2.8vw, 2.125rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.024em;
}

/* iOS 分组头小字 */
.micro {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 590;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--label-2);
}
.micro.light { color: var(--label-2); }

.lead {
  color: var(--label-2);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -.011em;
  max-width: 36rem;
  text-wrap: pretty;
}
.section-head.center .lead { margin: 0 auto; }

/* ---------- 7. 卡片 + 彩色符号块（设置页式） ---------- */
.card-grid { display: grid; gap: .75rem; }
.card-grid.four { grid-template-columns: repeat(2, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }

.card {
  padding: 1.25rem;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 18px rgba(0, 0, 0, .035);
  transition: transform .22s var(--spring), box-shadow .22s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 12px 28px rgba(0, 0, 0, .07); }
.card h3 { margin: .8rem 0 .3rem; font-size: 1.0625rem; }
.card p { color: var(--label-2); font-size: .9375rem; line-height: 1.55; letter-spacing: -.006em; }

.icon-tile {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(0, 122, 255, .14);
  color: var(--blue);
}
.icon-tile svg { width: 18px; height: 18px; }

/* 逐个换成系统语义色，像 iOS 设置里的图标 */
.card:nth-child(2) .icon-tile,
.adv-card:nth-child(2) .icon-tile { background: rgba(52, 199, 89, .16); color: #248a3d; }
.card:nth-child(3) .icon-tile,
.adv-card:nth-child(3) .icon-tile { background: rgba(255, 149, 0, .16); color: #c26a00; }
.card:nth-child(4) .icon-tile,
.adv-card:nth-child(4) .icon-tile { background: rgba(175, 82, 222, .14); color: #8944ab; }
.adv-card:nth-child(5) .icon-tile { background: rgba(48, 176, 199, .16); color: #0d7d92; }
.adv-card:nth-child(6) .icon-tile { background: rgba(255, 45, 85, .13); color: #c4214a; }

.ticks { display: grid; gap: .3rem; margin-top: .8rem; }
.ticks li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--label-2);
  font-size: .875rem;
  line-height: 1.5;
  letter-spacing: -.004em;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .34rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(52, 199, 89, .18)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23248a3d' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E")
    center / 7px 7px no-repeat;
}

/* ---------- 8. 解决方案 ---------- */
.solution {
  display: flex;
  gap: .9rem;
  padding: 1.25rem;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 18px rgba(0, 0, 0, .035);
  transition: transform .22s var(--spring), box-shadow .22s var(--ease);
}
.solution:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 12px 28px rgba(0, 0, 0, .07); }
.solution-no {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--fill);
  color: var(--label-2);
  font-size: .8125rem;
  font-weight: 590;
  font-variant-numeric: tabular-nums;
}
.solution h3 { font-size: 1.0625rem; }
.solution p { margin-top: .4rem; color: var(--label-2); font-size: .9375rem; line-height: 1.55; }

.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.tags span {
  padding: .2rem .55rem;
  border-radius: 999px;
  background: var(--bg-3);
  color: var(--label-2);
  font-size: .75rem;
  letter-spacing: 0;
}

/* ---------- 9. 兼容：胶囊 + 值行 ---------- */
.compat { padding-top: 2.75rem; }

.rail {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .2rem 0 .7rem;
  margin: 0 calc(-1 * var(--gutter));
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--gutter);
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  justify-content: center;
  mask-image: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 2rem), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 2rem), transparent);
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: center; flex: none; }

.compat-chip {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .6rem .9rem;
  border-radius: var(--r);
  background: var(--bg-2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  text-align: left;
}
.compat-chip b { font-size: .875rem; font-weight: 590; color: var(--label); }
.compat-chip em { font-style: normal; font-size: .75rem; color: var(--label-2); }

.compat-code {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .4rem;
  margin-top: .75rem;
  padding: .9rem 1.1rem;
  border-radius: var(--r);
  background: var(--bg-2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.compat-code-label { font-size: .8125rem; font-weight: 590; letter-spacing: .04em; color: var(--label-2); }
.compat-code code { font-size: .9375rem; color: var(--blue); letter-spacing: 0; }
.compat-code-note { flex-basis: 100%; font-size: .8125rem; color: var(--label-3); letter-spacing: 0; }

/* ---------- 10. 核心优势：inset 分组列表 ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 18px rgba(0, 0, 0, .035);
}
.adv-card {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: .05rem .85rem;
  padding: .95rem 1.1rem;
  transition: background .16s var(--ease);
}
.adv-card::after {
  content: "";
  position: absolute;
  left: 3.4rem;
  right: 0;
  bottom: 0;
  height: .5px;
  background: var(--sep);
}
.adv-card:last-child::after { display: none; }
.adv-card:active { background: rgba(0, 0, 0, .03); }
.adv-card h3 { grid-column: 2; margin: 0; font-size: 1rem; }
.adv-card p { grid-column: 2; margin-top: .15rem; color: var(--label-2); font-size: .875rem; line-height: 1.5; letter-spacing: -.006em; }
.adv-card .icon-tile { grid-row: span 2; align-self: start; }

/* ---------- 11. 分栏 + 代码 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem; align-items: center; }
.split h2 {
  margin: .55rem 0 .5rem;
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -.024em;
}
.split.reverse .split-copy { order: 0; }
.split.reverse .split-visual { order: 1; }

/* 浅色代码块：白底 + hairline，像 iOS 浅色模式的代码卡片 */
.code-card {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #ffffff;
  border: .5px solid var(--sep);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 18px rgba(0, 0, 0, .035);
}
.code-bar { display: flex; align-items: center; gap: .4rem; padding: .65rem .9rem; border-bottom: .5px solid var(--sep); background: #f7f7fa; }
.code-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(120, 120, 128, .28); }
.code-bar .dot.r { background: #ff5f57; }
.code-bar .dot.y { background: #febc2e; }
.code-bar .dot.g { background: #28c840; }
.code-title { margin-left: .4rem; font-family: var(--mono); font-size: .75rem; color: var(--label-3); letter-spacing: 0; }
.code {
  margin: 0;
  padding: 1.05rem;
  overflow-x: auto;
  font-size: .8125rem;
  line-height: 1.7;
  color: #1d1d1f;
  letter-spacing: 0;
}
.code code { white-space: pre; }
.c-key { color: #0b57c9; }
.c-str { color: #0d7a3f; }
.code-foot {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem 1.05rem .85rem;
  font-size: .75rem;
  color: var(--label-3);
  letter-spacing: 0;
}
.status { display: inline-flex; align-items: center; gap: .35rem; color: #248a3d; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chips { margin-left: auto; display: flex; gap: .35rem; }
.chips b {
  padding: .16rem .5rem;
  border-radius: 999px;
  background: var(--bg-3);
  color: var(--label-2);
  font-weight: 500;
}

.flow-list { display: grid; gap: .8rem; margin-top: 1.35rem; }
.flow-list li { display: flex; gap: .7rem; align-items: flex-start; }
.flow-list li > span {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(0, 122, 255, .12);
  color: var(--blue);
  font-size: .75rem;
  font-weight: 590;
  font-variant-numeric: tabular-nums;
}
.flow-list strong { font-size: .9375rem; font-weight: 590; color: var(--label); }
.flow-list p { margin-top: .1rem; color: var(--label-2); font-size: .875rem; line-height: 1.55; }
.flow-list code {
  padding: .05rem .3rem;
  border-radius: 5px;
  background: rgba(0, 122, 255, .1);
  color: var(--blue);
  font-size: .8125rem;
  letter-spacing: 0;
}

/* ---------- 12. FAQ ---------- */
.faq {
  display: grid;
  gap: 0;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 18px rgba(0, 0, 0, .035);
}
.faq-item { position: relative; }
.faq-item::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 0;
  bottom: 0;
  height: .5px;
  background: var(--sep);
}
.faq-item:last-child::after { display: none; }
.faq-q {
  display: flex;
  align-items: center;
  gap: .7rem;
  width: 100%;
  padding: .95rem 1.1rem;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: -.011em;
  color: var(--label);
  cursor: pointer;
  transition: background .16s var(--ease);
}
.faq-q:active { background: rgba(0, 0, 0, .04); }
.faq-q .plus { position: relative; flex: none; margin-left: auto; width: 12px; height: 12px; }
.faq-q .plus::before,
.faq-q .plus::after {
  content: "";
  position: absolute;
  border-radius: 1px;
  background: var(--blue);
  transition: transform .3s var(--spring), opacity .24s var(--ease);
}
.faq-q .plus::before { left: 0; top: 5.1px; width: 12px; height: 1.8px; }
.faq-q .plus::after { left: 5.1px; top: 0; width: 1.8px; height: 12px; }
.faq-item[data-open="true"] .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-a { height: 0; overflow: hidden; will-change: height; }
.faq-a > div {
  padding: 0 1.1rem .95rem;
  color: var(--label-2);
  font-size: .9375rem;
  line-height: 1.6;
  letter-spacing: -.006em;
  max-width: 62ch;
}

/* ---------- 13. CTA ---------- */
.cta-section { padding-top: 0; }
.cta-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  overflow: hidden;
  padding: 2rem;
  border-radius: var(--r-xl);
  background:
    radial-gradient(380px 200px at 92% 0%, rgba(0, 122, 255, .12), transparent 72%),
    var(--bg-2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .05);
}
.cta-copy { position: relative; max-width: 32rem; }
.cta-copy h2 { margin: .45rem 0 .4rem; font-size: clamp(1.375rem, 2.2vw, 1.75rem); letter-spacing: -.024em; }
.cta-copy p { color: var(--label-2); font-size: .9375rem; line-height: 1.55; }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- 14. 页脚 ---------- */
.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 0 1.25rem;
  border-top: .5px solid var(--sep);
  background: var(--bg);
  color: var(--label-2);
}
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 1.75rem; }
.footer-logo { display: flex; align-items: center; gap: .5rem; color: var(--label); font-size: .9375rem; font-weight: 600; letter-spacing: -.014em; }
.footer-logo img { width: 24px; height: 24px; border-radius: 6px; }
.footer-brand p {
  max-width: 17rem;
  margin-top: .65rem;
  color: var(--label-3);
  font-size: .8125rem;
  line-height: 1.55;
  letter-spacing: 0;
  text-wrap: pretty;
}
.footer-col h4 { margin-bottom: .55rem; color: var(--label-2); font-size: .8125rem; font-weight: 590; letter-spacing: 0; }
.footer-col ul { display: grid; gap: .45rem; font-size: .875rem; }
.footer-col a { color: var(--label-2); transition: color .16s var(--ease); }
.footer-col a:hover { color: var(--blue); }

.footer-contact p { margin-top: .35rem; font-size: .8125rem; color: var(--label-3); letter-spacing: 0; }
.footer-phone { color: var(--label) !important; font-size: .9375rem !important; font-weight: 590; }
.footer-phone a { color: var(--blue); font-variant-numeric: tabular-nums; }
.footer-badge { display: flex; align-items: center; gap: .4rem; }
.footer-badge i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: .5px solid var(--sep);
  font-size: .75rem;
  color: var(--label-3);
  letter-spacing: 0;
}
.footer-bottom a { color: var(--label-3); }
.footer-bottom a:hover { color: var(--label-2); }
.icp { font-size: .75rem; letter-spacing: 0; color: var(--label-3); }
.icp a { color: var(--label-3); }
.icp a:hover { color: var(--label-2); }

/* ---------- 15. 动效 ---------- */
.js .reveal { opacity: 0; transform: translateY(10px); }
.reveal { transition: opacity .6s var(--spring) var(--d, 0ms), transform .6s var(--spring) var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

section[id], div[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1000px) {
  .card-grid.four { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n + 3) { border-top: .5px solid var(--sep); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .rail { justify-content: flex-start; }
  .hero-inner { padding: 2.5rem 1.5rem 1.75rem; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; width: 44px; height: 44px; }
  .nav { margin-left: auto; }
  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .4rem 1.25rem .8rem;
    border-bottom: .5px solid var(--sep);
    background: rgba(249, 249, 249, .97);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .1);
  }
  .nav-links.open { display: flex; animation: menu-in .26s var(--spring); }
  .nav-links a { padding: .7rem .1rem; border-bottom: .5px solid var(--sep); color: var(--label); }
  .nav-links li:last-child a { border-bottom: 0; }
  .login { font-size: .875rem; }
  .site-header.compact .nav-title { display: none; }
  .cta-panel { flex-direction: column; align-items: flex-start; padding: 1.5rem 1.25rem; }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 620px) {
  :root { --gutter: 1rem; }
  .section { padding: 2.75rem 0; }
  .site-footer { margin-top: 3rem; }

  .brand-pill { display: none; }
  .header-inner { gap: .55rem; }
  .header-actions .btn { padding: .6rem .85rem; font-size: .875rem; }

  .hero { padding-top: 1.75rem; }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2rem); letter-spacing: -.026em; margin: .9rem auto .8rem; }
  .hero-cta { margin-top: 1.25rem; }
  .hero-lead { font-size: .9375rem; line-height: 1.55; }
  .hero-cta .btn { flex: 1 1 100%; }
  .stat { padding: .9rem .7rem 1rem; }

  .card-grid.two, .card-grid.four { grid-template-columns: 1fr; }
  .solution { padding: 1.1rem; }
  .adv-card { padding: .85rem 1rem; grid-template-columns: 30px 1fr; }
  .adv-card::after { left: 3rem; }
  .compat-code { flex-direction: column; align-items: flex-start; }
  .code { font-size: .75rem; padding: .9rem; }
  .chips { display: none; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.35rem; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- 17. 偏好适配 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .btn:active, .nav-toggle:active { transform: none; }
  .card:hover, .solution:hover { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header, .nav-links {
    background: #f9f9f9;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --label-2: rgba(60, 60, 67, .82);
    --label-3: rgba(60, 60, 67, .55);
    --sep: rgba(60, 60, 67, .55);
  }
  .site-header, .nav-links { background: #fff; backdrop-filter: none; }
}

/* ==========================================================================
   首页动效增强 v2 —— 页眉交互 / 首屏光晕 / 卡片跟随 / 入场节奏
   ========================================================================== */
:root { --hdr-spring: cubic-bezier(.22, 1, .36, 1); }

/* ---------- 页眉：入场、滚动收起、进度、玻璃质感 ---------- */
.site-header {
  transition: transform .5s var(--hdr-spring), background .35s var(--ease),
              border-color .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.site-header.scrolled {
  box-shadow: 0 1px 0 rgba(60, 60, 67, .10), 0 12px 32px -22px rgba(0, 0, 0, .45);
}
.site-header.is-hidden { transform: translateY(-104%); }

.header-inner { animation: hdr-in .8s var(--hdr-spring) both; }
@keyframes hdr-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: none; }
}

.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #0a84ff, #64d2ff 45%, #bf5af2);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
  z-index: 2;
}
.site-header.scrolled .scroll-progress { opacity: 1; }

/* 导航滑轨：鼠标移动与滚动定位共用一条指示条 */
.glide-host { position: relative; }
.nav-glide {
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), #64d2ff);
  opacity: 0;
  transition: transform .45s var(--hdr-spring), width .45s var(--hdr-spring),
              opacity .25s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.nav-glide.on { opacity: 1; }
.nav a, .nav-links a { position: relative; z-index: 1; }
.nav a.active, .nav-links a.active { color: var(--label); }

/* 品牌标识：悬停轻转，紧凑态收起文字 */
.brand img, .brand-mark {
  transition: transform .55s var(--hdr-spring), box-shadow .45s var(--ease);
}
.brand:hover img, .brand:hover .brand-mark {
  transform: rotate(-7deg) scale(1.08);
  box-shadow: 0 6px 16px -8px rgba(0, 122, 255, .65);
}
.brand-name, .brand .name, .brand-pill, .brand .pill {
  transition: opacity .24s var(--ease), transform .32s var(--hdr-spring);
}
.site-header.compact .brand-name,
.site-header.compact .brand .name,
.site-header.compact .brand-pill,
.site-header.compact .brand .pill {
  opacity: 0;
  transform: translateY(-3px);
}
.nav-title {
  transform: translateX(-50%) translateY(5px);
  opacity: 0;
  transition: opacity .28s var(--ease), transform .5s var(--hdr-spring);
}
.site-header.compact .nav-title {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ---------- 按钮：悬停抬升 + 高光扫过 ---------- */
.btn { position: relative; }
.btn-primary, .btn-outline { transition: transform .2s var(--hdr-spring), background .2s var(--ease), box-shadow .25s var(--ease); }
.btn-primary:hover, .btn-outline:hover { transform: translateY(-1px); }
.btn-primary:active, .btn-outline:active { transform: scale(.97); }
.btn-primary { overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .32) 48%, transparent 64%);
  transform: translateX(-130%);
  transition: transform .75s var(--ease);
  pointer-events: none;
}
.btn-primary:hover::after { transform: translateX(130%); }

/* ---------- 首屏：缓慢漂移的光晕 ---------- */
.hero { isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -16rem;
  width: min(1180px, 128vw);
  height: 46rem;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(30% 42% at 28% 42%, rgba(0, 122, 255, .17), transparent 70%),
    radial-gradient(26% 38% at 72% 34%, rgba(175, 82, 222, .15), transparent 70%),
    radial-gradient(24% 34% at 52% 72%, rgba(48, 176, 199, .14), transparent 70%);
  filter: blur(16px);
  animation: aurora-drift 18s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
  from { transform: translateX(-50%) translateY(-10px) scale(1); }
  to   { transform: translateX(-52%) translateY(16px) scale(1.06); }
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .js .hero .eyebrow   { animation: hero-rise .8s var(--hdr-spring) .05s both; }
  .js .hero h1         { animation: hero-rise .95s var(--hdr-spring) .13s both; }
  .js .hero .lead,
  .js .hero .hero-lead { animation: hero-rise .95s var(--hdr-spring) .22s both; }
  .js .hero .hero-cta  { animation: hero-rise .95s var(--hdr-spring) .30s both; }
  .js .hero .hero-note,
  .js .hero .hero-corpus { animation: hero-rise .95s var(--hdr-spring) .36s both; }
  .js .hero .hero-stats  { animation: hero-rise 1s var(--hdr-spring) .42s both; }
  .js .hero .app-window  { animation: hero-rise 1.05s var(--hdr-spring) .30s both; }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 渐变大标题：缓慢流动 ---------- */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad {
    background-image: linear-gradient(96deg, #0a84ff 0%, #32ade6 34%, #5e5ce6 68%, #0a84ff 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: grad-pan 16s linear infinite;
  }
  .grad-2 {
    background-image: linear-gradient(96deg, #af52de 0%, #5856d6 45%, #0a84ff 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: grad-pan 16s linear infinite reverse;
  }
}
@keyframes grad-pan { to { background-position: 220% 0; } }

/* ---------- 入场：位移 + 轻微失焦 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(5px);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity .8s var(--hdr-spring) var(--d, 0ms),
              transform .8s var(--hdr-spring) var(--d, 0ms),
              filter .55s var(--ease) var(--d, 0ms);
}

/* ---------- 卡片：跟随指针的柔光 + 轻微抬升 ---------- */
.card, .solution, .adv-card, .client, .feat {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.card::before, .solution::before, .adv-card::before,
.client::before, .feat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%),
              rgba(0, 122, 255, .12), transparent 68%);
  transition: opacity .35s var(--ease);
}
.card:hover::before, .solution:hover::before, .adv-card:hover::before,
.client:hover::before, .feat:hover::before { opacity: 1; }
.card > *, .solution > *, .adv-card > *, .client > *, .feat > * {
  position: relative;
  z-index: 1;
}
.card:hover, .client:hover, .adv-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 16px 36px -12px rgba(0, 0, 0, .16);
}

/* ---------- 移动端菜单：逐项滑入 ---------- */
@media (max-width: 900px) {
  .nav.open a {
    animation: nav-item .42s var(--hdr-spring) both;
  }
  .nav.open > a:nth-child(1), .nav.open li:nth-child(1) a { animation-delay: .02s; }
  .nav.open > a:nth-child(2), .nav.open li:nth-child(2) a { animation-delay: .06s; }
  .nav.open > a:nth-child(3), .nav.open li:nth-child(3) a { animation-delay: .10s; }
  .nav.open > a:nth-child(4), .nav.open li:nth-child(4) a { animation-delay: .14s; }
  .nav.open > a:nth-child(5), .nav.open li:nth-child(5) a { animation-delay: .18s; }
  .nav.open > a:nth-child(6), .nav.open li:nth-child(6) a { animation-delay: .22s; }
}
@keyframes nav-item {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--label);
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .28), 0 1px 0 rgba(255, 255, 255, .7) inset;
  cursor: pointer;
  z-index: 80;
  opacity: 0;
  transform: translateY(14px) scale(.9);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .45s var(--hdr-spring), box-shadow .25s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .34); }
.to-top .ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.to-top circle { fill: none; stroke-width: 2; }
.to-top .ring-bg { stroke: rgba(0, 0, 0, .08); }
.to-top .ring { stroke: var(--blue); stroke-linecap: round; }
.to-top .arrow { position: relative; z-index: 1; }

/* ---------- 细节 ---------- */
.nav.open .nav-glide { display: none; }
.site-header:focus-within { transform: none; }
.section-head h2 { text-wrap: balance; }
.site-footer { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.in { opacity: 1; transform: none; filter: none; transition: none; }
  .site-header.is-hidden { transform: none; }
  .header-inner { animation: none; }
  .hero::before, .grad, .grad-2 { animation: none; }
  .js .hero .eyebrow, .js .hero h1, .js .hero .lead, .js .hero .hero-lead,
  .js .hero .hero-cta, .js .hero .hero-note, .js .hero .hero-corpus,
  .js .hero .hero-stats, .js .hero .app-window { animation: none; }
  .card:hover, .client:hover, .adv-card:hover { transform: none; }
}

/* ---------- 移动端页眉：操作区与菜单按钮各就各位 ---------- */
@media (max-width: 900px) {
  .header-actions { order: 2; margin-left: auto; }
  .nav { order: 3; margin-left: .35rem; }
  .nav-toggle { margin-left: 0; }
}
@media (max-width: 760px) {
  .header-actions { order: 2; margin-left: auto; }
  .nav-toggle { order: 3; margin-left: .35rem; }
  .header-actions .btn-sm { height: 34px; padding: 0 .7rem; }
}

/* ---------- 紧凑态标题：贴着品牌标识左对齐，不再居中 ---------- */
.nav-title { left: 0; transform: translateY(5px); white-space: nowrap; }
.site-header.compact .nav-title { transform: translateY(0); }
