/* ============================================================
   Linkio Box 官网 v2 — 共享设计系统
   品牌绿 #18b26b · 暖光米白 · 深夜墨蓝 · 巨字中英叠排
   ============================================================ */

:root {
  --green: #18b26b;
  --green-dark: #12915a;
  --lime: #c6f24e;
  --cream: #f4efe6;
  --cream-2: #ece5d8;
  --ink: #0e1626;
  --ink-blue: #0b1020;
  --white: #ffffff;
  --muted: #5c6675;
  --line: rgba(14, 22, 38, 0.1);

  --font-sans: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC",
    "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 6px 20px rgba(14, 22, 38, 0.06);
  --shadow-md: 0 18px 50px rgba(14, 22, 38, 0.12);
  --shadow-green: 0 12px 34px rgba(24, 178, 107, 0.32);

  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.18; margin: 0; font-weight: 800; letter-spacing: -0.01em; }

p { margin: 0; }

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

/* ---------- 通用文字 ---------- */

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green-dark);
  font-weight: 700;
  margin: 0 0 18px;
}

.lead { font-size: 19px; color: var(--muted); max-width: 640px; }

.muted { color: var(--muted); }

.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section.alt { background: var(--cream); }
.section.ink {
  color: var(--white);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(680px 420px at 12% -8%, rgba(24, 178, 107, 0.20), transparent 62%),
    radial-gradient(560px 420px at 92% 108%, rgba(24, 178, 107, 0.14), transparent 60%),
    linear-gradient(120deg, #0b1020, #0d1a2c 48%, #0b1020);
  background-size: 160% 160%, 160% 160%, 220% 220%;
  animation: inkBgMove 14s ease-in-out infinite;
}
@keyframes inkBgMove {
  0%, 100% { background-position: 0% 0%, 100% 100%, 0% 50%; }
  50% { background-position: 30% 22%, 68% 78%, 100% 50%; }
}
.section.ink > .container { position: relative; z-index: 1; }
.section.ink .eyebrow { color: var(--green); }
.section.ink .lead, .section.ink .muted { color: rgba(255, 255, 255, 0.72); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head .lead { margin-top: 18px; }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-green { background: var(--green); color: var(--white); box-shadow: var(--shadow-green); }
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); }

.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }

.btn-lime { border-color: var(--lime); color: var(--lime); background: transparent; }
.btn-lime:hover { background: var(--lime); color: var(--ink); }

.btn-ghost { color: var(--ink); background: var(--cream); }
.btn-ghost:hover { background: var(--cream-2); }

.btn-lg { padding: 16px 32px; font-size: 16px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- 页头 ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.25s ease, box-shadow 0.25s ease, height 0.25s ease;
}
.topbar.is-solid {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.topbar .container, .topbar .bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand .logo-mark {
  width: 28px; height: 28px; flex: none;
  border-radius: 8px;
  background:
    linear-gradient(var(--green), var(--green)) 50% 50% / 38% 26% no-repeat,
    linear-gradient(var(--green), var(--green)) left 50% / 30% 56% no-repeat,
    linear-gradient(var(--green), var(--green)) right 50% / 30% 56% no-repeat;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(14, 22, 38, 0.72);
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--ink); background: rgba(14, 22, 38, 0.05); }
.nav a.active { color: var(--green-dark); background: rgba(24, 178, 107, 0.12); }
.nav .nav-sep { width: 1px; height: 18px; background: var(--line); margin: 0 8px; }

.topbar.on-dark .brand { color: var(--white); }
.topbar.on-dark:not(.is-solid) .nav a { color: rgba(255, 255, 255, 0.82); }
.topbar.on-dark:not(.is-solid) .nav a:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.topbar.on-dark:not(.is-solid) .nav a.active { color: var(--white); background: rgba(24, 178, 107, 0.5); }
.topbar.on-dark:not(.is-solid) .nav .nav-sep { background: rgba(255, 255, 255, 0.25); }
.topbar.on-dark.is-solid .brand { color: var(--ink); }
.topbar.on-dark.is-solid .nav a { color: rgba(14, 22, 38, 0.72); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}
.topbar.on-dark:not(.is-solid) .nav-toggle { color: var(--white); }

/* ---------- 网格 / 卡片 ---------- */

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card .ico {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(24, 178, 107, 0.12);
  color: var(--green-dark);
  font-size: 22px;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: rgba(24, 178, 107, 0.13);
  color: var(--green-dark);
}
.badge.lime { background: rgba(198, 242, 78, 0.25); color: #5d7310; }

ul.tick { list-style: none; padding: 0; margin: 22px 0 0; }
ul.tick li { position: relative; padding-left: 28px; margin-bottom: 12px; color: rgba(14, 22, 38, 0.82); }
ul.tick li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}
.section.ink ul.tick li { color: rgba(255, 255, 255, 0.82); }

/* ink 深色段里的卡片：深色玻璃 + 顶部流动光条 */
.section.ink .card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 18px 44px -20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.section.ink .card::before {
  content: "";
  position: absolute; left: 0; top: 0; right: 0; height: 2px;
  background: linear-gradient(100deg, transparent, rgba(24, 178, 107, 0.95), rgba(198, 242, 78, 0.75), transparent);
  background-size: 220% 100%;
  animation: cardShine 3.2s linear infinite;
}
.section.ink .card:nth-child(2)::before { animation-delay: 1.5s; }
.section.ink .card:nth-child(3)::before { animation-delay: 3s; }
@keyframes cardShine {
  0% { background-position: 200% 0; }
  100% { background-position: -120% 0; }
}
.section.ink .card:hover {
  transform: translateY(-6px);
  border-color: rgba(24, 178, 107, 0.55);
  box-shadow: 0 26px 60px -20px rgba(24, 178, 107, 0.4);
}
.section.ink .card h3 { color: #fff; }
.section.ink .card .ico {
  background: rgba(24, 178, 107, 0.2);
  color: #7ce3ac;
  animation: icoBob 3s ease-in-out infinite;
}
.section.ink .card:nth-child(2) .ico { animation-delay: 0.6s; }
.section.ink .card:nth-child(3) .ico { animation-delay: 1.2s; }
@keyframes icoBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* 否定项列表 */
ul.tick.nope li { color: var(--muted); }
ul.tick.nope li::before {
  background: #c2c8d2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* 提示条 */
.callout {
  margin-top: 26px;
  padding: 18px 22px;
  border-radius: 12px;
  background: rgba(24, 178, 107, 0.09);
  border-left: 3px solid var(--green);
  font-size: 15px;
}
.callout strong { color: var(--green-dark); }

/* 表格 */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
table.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 660px; }
table.compare th, table.compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--cream); font-weight: 700; white-space: nowrap; }
table.compare td.yes { color: var(--green-dark); font-weight: 700; text-align: center; }
table.compare td.no { color: #aab1bd; text-align: center; }
table.compare tbody tr:last-child td { border-bottom: 0; }

/* 锚点小导航 */
.anchor-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.anchor-nav a {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  background: var(--white);
}
.anchor-nav a:hover { border-color: var(--green); color: var(--green-dark); }

/* ---------- 内页 Hero ---------- */

.page-hero {
  padding: calc(var(--header-h) + 72px) 0 84px;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(24, 178, 107, 0.10), transparent 60%),
    radial-gradient(circle at 1px 1px, rgba(22, 58, 38, 0.05) 1px, transparent 0) 0 0 / 28px 28px,
    var(--cream);
  position: relative;
  overflow: hidden;
}
.page-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.page-hero h1 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -0.02em; max-width: 18ch; }
.page-hero .lead { margin-top: 22px; }

/* 漂浮光斑（左上 / 右下各一） */
.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.page-hero::before {
  left: -160px; bottom: -180px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(24, 178, 107, 0.12), transparent 70%);
  animation: orbDrift 11s ease-in-out infinite;
}
.page-hero::after {
  right: -140px; top: -140px;
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(24, 178, 107, 0.16), transparent 70%);
  animation: orbDrift 14s ease-in-out infinite reverse;
}
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -20px) scale(1.06); }
}

/* 漂浮小装饰点 */
.hero-orbs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-orbs i {
  position: absolute;
  border-radius: 50%;
  background: rgba(24, 178, 107, 0.18);
  border: 1px solid rgba(24, 178, 107, 0.22);
  animation: floatDot 5s ease-in-out infinite;
}
.hero-orbs i:nth-child(1) { width: 12px; height: 12px; left: 6%;  top: 30%; }
.hero-orbs i:nth-child(2) { width: 8px;  height: 8px;  left: 42%; top: 16%; animation-delay: 1.2s; background: rgba(212, 168, 67, 0.22); border-color: rgba(212, 168, 67, 0.30); }
.hero-orbs i:nth-child(3) { width: 16px; height: 16px; left: 30%; top: 78%; animation-delay: 2.1s; }
.hero-orbs i:nth-child(4) { width: 9px;  height: 9px;  left: 66%; top: 64%; animation-delay: 0.6s; background: rgba(212, 168, 67, 0.22); border-color: rgba(212, 168, 67, 0.30); }
@keyframes floatDot {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(-18px); opacity: 1; }
}

/* 左侧文字入场 */
.hero-copy { animation: heroIn 0.8s cubic-bezier(.22,.8,.32,1) both; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* hero 配图卡：入场后持续轻浮动 */
.hero-media {
  position: relative;
  justify-self: stretch;
  animation:
    heroIn 0.9s 0.12s cubic-bezier(.22,.8,.32,1) both,
    mediaFloat 5.5s 1.2s ease-in-out infinite;
}
@keyframes mediaFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: -14px -16px 20px 16px;
  border: 1.5px solid rgba(24, 178, 107, 0.35);
  border-radius: 26px;
  transform: rotate(-2.6deg);
  transition: transform 0.5s ease;
  pointer-events: none;
}
.hero-media:hover::before { transform: rotate(0deg) scale(1.02); }
.hero-media img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  background: #e9e4d8;
  box-shadow: 0 32px 60px -26px rgba(22, 58, 38, 0.32);
  animation: kenburns 14s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.1) translate(-1.4%, -1.1%); }
}

/* 图上气泡贴纸 */
.media-bubble {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 21px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(24, 178, 107, 0.18);
  box-shadow: 0 12px 26px -10px rgba(22, 58, 38, 0.40);
  animation: bubbleFloat 3.8s ease-in-out infinite;
}
.media-bubble.b1 { top: -16px; right: 14px; }
.media-bubble.b2 { left: -16px; top: 38%; animation-delay: 1.4s; }
@keyframes bubbleFloat {
 0%, 100% { transform: translateY(0) rotate(-3deg); }
 50% { transform: translateY(-11px) rotate(4deg); }
}

.hero-chip {
  position: absolute;
  left: -12px;
  bottom: 16px;
  z-index: 2;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(24, 178, 107, 0.25);
  box-shadow: 0 10px 24px -10px rgba(22, 58, 38, 0.35);
  animation: chipGlow 2.6s ease-in-out infinite;
}
@keyframes chipGlow {
  0%, 100% { box-shadow: 0 10px 24px -10px rgba(22, 58, 38, 0.35); }
  50% { box-shadow: 0 10px 30px -8px rgba(24, 178, 107, 0.55); }
}

@media (max-width: 900px) {
  .page-hero { padding-top: calc(var(--header-h) + 44px); }
  .page-hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: -1; max-width: 560px; width: 100%; }
  .media-bubble { width: 40px; height: 40px; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero::before,
  .page-hero::after,
  .hero-orbs i,
  .hero-copy,
  .hero-media,
  .hero-media img,
  .media-bubble,
  .hero-chip,
  .scene:not(:has(.bg-video)) .bg,
  .scene-dots button.active { animation: none !important; }
}

.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--green-dark); }

/* ============================================================
   首页 — 全屏分屏
   ============================================================ */

.snap-deck {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.snap-deck::-webkit-scrollbar { display: none; }

.scene {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.scene .bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.04);
}
.scene .bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity .6s ease;
}
.scene .bg-video.is-ready { opacity: 1; }
.scene::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(8, 12, 24, 0.66) 0%, rgba(8, 12, 24, 0.28) 46%, rgba(8, 12, 24, 0.12) 100%);
}
.scene.light::before {
  background: linear-gradient(90deg, rgba(20, 24, 36, 0.34) 0%, rgba(20, 24, 36, 0.08) 55%, rgba(255, 255, 255, 0.05) 100%);
}
.scene .scene-inner {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}
.scene-copy { max-width: 720px; color: var(--white); }
.scene-copy .en {
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 16px;
}
.scene-copy .zh {
  font-size: clamp(34px, 5.6vw, 68px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.scene-copy .sub { margin-top: 22px; font-size: 18px; color: rgba(255, 255, 255, 0.85); max-width: 540px; }
.scene-copy .btn-row { margin-top: 34px; }

/* 右侧文字版（用于亮场/产品屏） */
.scene.align-right .scene-inner { display: flex; justify-content: flex-end; }
.scene.align-right .scene-copy { text-align: left; }

/* 奶白亮场（S9 产品棚拍）：左侧奶白渐隐 + 深色文字 */
.scene.on-cream::before {
  background: linear-gradient(90deg, rgba(244, 239, 230, 0.94) 0%, rgba(244, 239, 230, 0.6) 42%, rgba(244, 239, 230, 0) 74%);
}
.scene-copy.dark { color: var(--ink); }
.scene-copy.dark .en { color: rgba(14, 22, 38, 0.58); }
.scene-copy.dark .sub { color: rgba(14, 22, 38, 0.72); }

/* 导航点 */
.scene-dots {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.scene-dots button {
  width: 10px; height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.scene-dots button.active { background: var(--green); transform: scale(1.35); }
.scene-dots.on-light button { background: rgba(14, 22, 38, 0.28); }
.scene-dots.on-light button.active { background: var(--green); }

/* 滚动提示 */
.scroll-hint {
  position: absolute;
  left: 50%; bottom: 30px;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  letter-spacing: 0.22em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 38px;
  background: linear-gradient(rgba(255, 255, 255, 0.8), transparent);
  animation: drop 1.8s ease-in-out infinite;
}
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* 静态场景背景缓移（视频屏 S2-S6 由视频承担动态，:has 排除避免双层动画浪费 GPU） */
.scene:not(:has(.bg-video)) .bg {
  animation: sceneDrift 16s ease-in-out infinite alternate;
}
@keyframes sceneDrift {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.12) translate(1.6%, -1.2%); }
}

/* 导航点 active 呼吸扩散 */
.scene-dots button.active {
  animation: dotPulse 2.2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1.35); box-shadow: 0 0 0 0 rgba(24, 178, 107, 0.4); }
  50% { transform: scale(1.6); box-shadow: 0 0 0 7px rgba(24, 178, 107, 0); }
}

/* 入场动画 */
.scene.is-active .anim-up { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.scene.is-active .anim-up:nth-child(2) { animation-delay: 0.08s; }
.scene.is-active .anim-up:nth-child(3) { animation-delay: 0.16s; }
.scene.is-active .anim-up:nth-child(4) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 价格/型号卡 ---------- */

.tier {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.tier.featured { border-color: var(--green); box-shadow: var(--shadow-green); }
.tier .tier-name { font-size: 22px; }
.tier .tier-sub { color: var(--muted); margin-top: 6px; }
.tier .price { font-size: 34px; font-weight: 900; margin: 22px 0 4px; }
.tier .price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.tier .tier-cta { margin-top: auto; padding-top: 26px; }
.tier .ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: var(--white);
  font-size: 12.5px; font-weight: 700; padding: 5px 16px; border-radius: 999px;
}

/* ---------- 步骤 ---------- */

.steps { counter-reset: step; display: grid; gap: 28px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: 15px; font-weight: 800; color: var(--green);
  letter-spacing: 0.1em;
}
.step h3 { font-size: 19px; margin: 14px 0 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 14px; max-width: 860px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--white); overflow: hidden; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 24px; color: var(--green); font-weight: 400; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 26px 24px; color: var(--muted); }

/* ---------- CTA 带 ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--ink-blue), #14304f);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); }
.cta-band p { color: rgba(255, 255, 255, 0.75); margin-top: 12px; }

/* ---------- 页脚 ---------- */

.footer { background: var(--ink-blue); color: rgba(255, 255, 255, 0.7); padding: 72px 0 40px; }
.footer .f-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer .brand { color: var(--white); margin-bottom: 14px; }
.footer h4 { color: var(--white); font-size: 15px; margin-bottom: 16px; }
.footer a { display: block; color: rgba(255, 255, 255, 0.66); font-size: 14.5px; padding: 5px 0; }
.footer a:hover { color: var(--green); }
.footer .copy {
  margin-top: 52px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px; color: rgba(255, 255, 255, 0.5);
}

/* ---------- 滚动显现 ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 方向化入场：从左/从右滑入 + 渐变淡入 ----------
   两列/四列：奇偶卡左右分入
   三列：两侧卡左右分入，中间卡保持上浮
   单列元素（标题/提示条/FAQ/下载行）仍上浮 */
.grid-2 > .reveal:nth-child(odd),
.grid-4 > .reveal:nth-child(odd),
.steps  > .reveal:nth-child(odd),
.grid-3 > .reveal:nth-child(3n+1),
.cards  > .reveal:nth-child(3n+1) { transform: translateX(-56px); }

.grid-2 > .reveal:nth-child(even),
.grid-4 > .reveal:nth-child(even),
.steps  > .reveal:nth-child(even),
.grid-3 > .reveal:nth-child(3n),
.cards  > .reveal:nth-child(3n) { transform: translateX(56px); }

.grid-2 > .reveal.in:nth-child(odd),
.grid-4 > .reveal.in:nth-child(odd),
.steps  > .reveal.in:nth-child(odd),
.grid-3 > .reveal.in:nth-child(3n+1),
.cards  > .reveal.in:nth-child(3n+1),
.grid-2 > .reveal.in:nth-child(even),
.grid-4 > .reveal.in:nth-child(even),
.steps  > .reveal.in:nth-child(even),
.grid-3 > .reveal.in:nth-child(3n),
.cards  > .reveal.in:nth-child(3n) { opacity: 1; transform: none; }

/* 同组卡错相入场 */
.grid > .reveal:nth-child(2), .steps > .reveal:nth-child(2) { transition-delay: 0.1s; }
.grid > .reveal:nth-child(3), .steps > .reveal:nth-child(3) { transition-delay: 0.18s; }
.grid > .reveal:nth-child(4), .steps > .reveal:nth-child(4) { transition-delay: 0.26s; }

/* 窄屏：全部回退为上浮淡入，避免横向大幅位移 */
@media (max-width: 760px) {
  .grid-2 > .reveal:nth-child(n),
  .grid-3 > .reveal:nth-child(n),
  .grid-4 > .reveal:nth-child(n),
  .steps  > .reveal:nth-child(n),
  .cards  > .reveal:nth-child(n) { transform: translateY(24px); }
}

/* ============================================================
   下载中心 / 设备查询
   ============================================================ */

.tool-page {
  max-width: 860px;
  margin-inline: auto;
  padding: calc(var(--header-h) + 64px) 24px 88px;
}
.tool-page h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.tool-page > .section-head { margin-bottom: 30px; }
.tool-page h2.sub-title { font-size: 19px; margin: 34px 0 14px; }

.dl-row {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}
.dl-row .ico {
  width: 46px; height: 46px; flex: none;
  border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(24, 178, 107, 0.12);
  font-size: 22px;
}
.dl-row .dl-body { flex: 1; min-width: 0; }
.dl-row h3 { font-size: 17px; margin-bottom: 4px; }
.dl-row p { color: var(--muted); font-size: 14px; }

.badge.gray { background: #eef0f3; color: var(--muted); flex: none; }

.callout.warn {
  background: rgba(232, 168, 40, 0.1);
  border-left-color: #e0a020;
}
.callout.warn strong { color: #a8700c; }
.callout a { color: var(--green-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* 设备查询 */
.lookup-wrap {
  max-width: 720px;
  margin: calc(var(--header-h) + 48px) auto 88px;
  padding: 0 24px;
  display: grid;
  gap: 18px;
}
.lookup-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-sm);
}
.lookup-card h1 { font-size: 24px; margin-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.field input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
}
.field input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(24, 178, 107, 0.15);
}
.lookup-card .btn { margin-top: 20px; width: 100%; justify-content: center; }

.result-box { margin-top: 24px; padding: 20px 22px; border-radius: 14px; font-size: 14.5px; }
.result-box.ok { background: rgba(24, 178, 107, 0.09); border: 1px solid rgba(24, 178, 107, 0.3); }
.result-box.err { background: rgba(225, 70, 70, 0.08); border: 1px solid rgba(225, 70, 70, 0.3); }
.result-box a { color: var(--green-dark); font-weight: 700; }

/* 查询三态：初始引导 / 加载中 */
.result-box.idle { background: var(--cream); border: 1px dashed var(--line); color: var(--muted); }
.result-box.loading { background: rgba(24, 178, 107, 0.05); border: 1px solid rgba(24, 178, 107, 0.22); color: var(--ink); }
.lookup-idle, .lookup-loading { display: flex; align-items: center; gap: 10px; }
.lookup-idle-dot {
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: idlePulse 2.4s ease-in-out infinite;
}
@keyframes idlePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(24, 178, 107, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(24, 178, 107, 0); }
}
.lookup-spinner {
  flex: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(24, 178, 107, 0.25);
  border-top-color: var(--green);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading { opacity: 0.85; pointer-events: none; }
.result-ip { font-size: 22px; font-weight: 800; margin: 2px 0 0; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.pill.on { background: rgba(24, 178, 107, 0.14); color: var(--green-dark); }
.pill.off { background: #eef0f3; color: var(--muted); }

/* ============================================================
   文档中心外壳
   ============================================================ */

.doc-wrap {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 52px;
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  padding: calc(var(--header-h) + 40px) 0 88px;
}
.doc-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  display: grid;
  gap: 26px;
}
.doc-sidebar .group h4 {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.doc-sidebar .group a {
  display: block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(14, 22, 38, 0.72);
}
.doc-sidebar .group a:hover { background: rgba(14, 22, 38, 0.05); color: var(--ink); }
.doc-sidebar .group a.active { color: var(--green-dark); background: rgba(24, 178, 107, 0.12); }

.doc-content { min-width: 0; }
.doc-content > h1:first-child { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 8px; }
.doc-meta { color: var(--muted); font-size: 13.5px; }

.doc-content h2 { font-size: 23px; margin: 44px 0 14px; }
.doc-content h3 { font-size: 18.5px; margin: 30px 0 10px; }
.doc-content p, .doc-content li { color: rgba(14, 22, 38, 0.84); }
.doc-content ul, .doc-content ol { padding-left: 24px; margin: 12px 0; }
.doc-content li { margin-bottom: 6px; }
.doc-content a { color: var(--green-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.doc-content code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
  background: var(--cream);
  padding: 2px 7px;
  border-radius: 6px;
}
.doc-content pre {
  background: var(--ink-blue);
  padding: 20px 22px;
  border-radius: 14px;
  overflow-x: auto;
}
.doc-content pre code { background: none; padding: 0; color: #e8edf6; font-size: 13.5px; }
.doc-content blockquote {
  margin: 16px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--green);
  background: rgba(24, 178, 107, 0.07);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
}
.doc-content blockquote p { margin: 4px 0; }
.doc-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 18px 0;
  display: block;
  overflow-x: auto;
}
.doc-content th, .doc-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.doc-content thead th { background: var(--cream); }
.doc-content hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.doc-content img { border-radius: 12px; }

/* 文档首页 */
.doc-search {
  width: 100%;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  margin: 22px 0 26px;
}
.doc-search:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(24, 178, 107, 0.15); }
.doc-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.doc-cards .card { padding: 24px 26px; box-shadow: var(--shadow-sm); }
.doc-cards .card .tagline { color: var(--muted); font-size: 13px; margin-top: 10px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.cards .card { padding: 24px 26px; }

/* ---------- 响应式 ---------- */

@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .doc-wrap { grid-template-columns: 1fr; gap: 28px; }
  .doc-sidebar {
    position: static;
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  .doc-sidebar .group { flex: none; }
}

@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
  .dl-row { flex-wrap: wrap; }
  .dl-row .dl-body { flex-basis: calc(100% - 64px); }
  .doc-cards { grid-template-columns: 1fr; }
  .lookup-card { padding: 28px 22px; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer .f-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 44px 32px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--white);
    padding: 12px 20px 22px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 13px 14px; border-radius: 10px; color: var(--ink); }
  .nav .nav-sep { display: none; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer .f-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 68px 0; }

  .scene-dots { right: 14px; }
  .scene-copy .zh { font-size: 34px; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   内页正文持续动效
   白卡光带扫过 · 图标轻浮 · 价格卡呼吸/缎带摆动 · 步骤光带接力
   FAQ 展开淡入 · 提示条呼吸 · CTA 渐变流动 + 光斑漂移
   ============================================================ */

/* 白底卡片：顶部光带扫过 + 图标上下轻浮 */
.section:not(.ink) .card,
.doc-cards .card,
.cards .card {
  position: relative;
  overflow: hidden;
}
.section:not(.ink) .card::before,
.doc-cards .card::before,
.cards .card::before {
  content: "";
  position: absolute; left: 0; top: 0; right: 0; height: 2px;
  background: linear-gradient(100deg, transparent, rgba(24, 178, 107, 0.72), rgba(212, 168, 67, 0.5), transparent);
  background-size: 220% 100%;
  animation: cardShine 3.4s linear infinite;
}
.section:not(.ink) .card:nth-child(2)::before { animation-delay: 1.1s; }
.section:not(.ink) .card:nth-child(3)::before { animation-delay: 2.2s; }
.section:not(.ink) .card:nth-child(4)::before { animation-delay: 3s; }
.section:not(.ink) .card .ico,
.dl-row .ico {
  animation: icoBob 3.4s ease-in-out infinite;
}
.section:not(.ink) .card:nth-child(2) .ico { animation-delay: 0.7s; }
.section:not(.ink) .card:nth-child(3) .ico { animation-delay: 1.4s; }
.section:not(.ink) .card:nth-child(4) .ico { animation-delay: 2.1s; }

/* 价格/型号卡：内侧顶部光带错相扫过；推荐档阴影呼吸、缎带轻摆 */
.tier::before {
  content: "";
  position: absolute; left: 14px; right: 14px; top: 0; height: 2px;
  border-radius: 2px;
  background: linear-gradient(100deg, transparent, rgba(24, 178, 107, 0.55), transparent);
  background-size: 220% 100%;
  animation: cardShine 3.6s linear infinite;
}
.tier:nth-child(2)::before { animation-delay: 1.2s; }
.tier:nth-child(3)::before { animation-delay: 2.4s; }
.tier.featured { animation: tierGlow 3.2s ease-in-out infinite; }
@keyframes tierGlow {
  0%, 100% { box-shadow: 0 10px 30px -12px rgba(24, 178, 107, 0.35); }
  50% { box-shadow: 0 18px 46px -14px rgba(24, 178, 107, 0.6); }
}
.tier.featured .ribbon { animation: ribbonWave 2.8s ease-in-out infinite; }
@keyframes ribbonWave {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); }
}

/* 步骤卡：底部光带按 1→2→3→4 接力扫过 */
.step::after {
  content: "";
  position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(24, 178, 107, 0.8), transparent);
  background-size: 220% 100%;
  animation: cardShine 3.2s linear infinite;
}
.step:nth-child(2)::after { animation-delay: 0.8s; }
.step:nth-child(3)::after { animation-delay: 1.6s; }
.step:nth-child(4)::after { animation-delay: 2.4s; }

/* FAQ：展开内容淡入下移；展开项绿色微光呼吸 */
.faq-item[open] .faq-a { animation: faqIn 0.45s ease both; }
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.faq-item[open] {
  border-color: rgba(24, 178, 107, 0.45);
  animation: faqOpenGlow 3s ease-in-out infinite;
}
@keyframes faqOpenGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(24, 178, 107, 0); }
  50% { box-shadow: 0 6px 26px -10px rgba(24, 178, 107, 0.4); }
}

/* 提示条：背景呼吸（警示条不参与） */
.callout { animation: calloutBreath 4s ease-in-out infinite; }
.callout.warn { animation: none; }
@keyframes calloutBreath {
  0%, 100% { background: rgba(24, 178, 107, 0.09); }
  50% { background: rgba(24, 178, 107, 0.14); }
}

/* CTA 带：深蓝渐变缓慢流动 + 绿色光斑漂移 */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--ink-blue), #14304f, #10283f, #14304f);
  background-size: 260% 100%;
  animation: ctaFlow 10s ease-in-out infinite;
}
@keyframes ctaFlow {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  left: -100px; bottom: -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 178, 107, 0.3), transparent 70%);
  animation: orbDrift 12s ease-in-out infinite;
  pointer-events: none;
}
.cta-band > * { position: relative; }
