/* 灵境 OZON 官网 · 深色设计系统（dark.css）
   全站共用：令牌、基础、导航、按钮、标签、玻璃面板与窗口外壳、段落标题（带俄文副行）、卡片、表格、表单、页脚。
   页面专属的东西放各自的文件（首页：t3.css）。
   颜色取自标志的玻璃 + 光带：青 → 蓝 → 紫。标题 Noto Sans SC 子集（LJ Head）+ Inter；不用宋体、纸纹、墨色。
   Chromium 86 安全：无 @layer、无 :has、无 aspect-ratio、无 inset 简写、无 svh / dvh。字号只用 --fs-* 令牌或 em。
   防卡顿：悬停只动小元素的 transform / opacity；不在大面积上用 backdrop-filter；入场只用 transform / opacity。 */

/* ---------- 字体 ---------- */
@font-face {
  /* Noto Sans SC 可变字体（SIL OFL）按全站标题用字裁成子集：scripts/site-subset-display-font.mjs 生成，字重固定 700 */
  font-family: "LJ Head";
  src: url("/fonts/head-sans.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "LJ Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-2013, U+2015-2025, U+2027-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "LJ Inter";
  src: url("/fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "LJ Inter";
  src: url("/fonts/inter-ruble-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20BD;
}

/* ---------- 令牌 ---------- */
:root {
  color-scheme: dark;

  /* 底色与面 */
  --bg: #05070d;
  --bg-1: #080b14;
  --bg-2: #0c1120;
  --bg-foot: #04060b;
  --panel: #0e1424;
  --panel-2: #131b30;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-2: rgba(255, 255, 255, 0.045);
  --glass-hi: rgba(255, 255, 255, 0.06);
  --line: rgba(150, 172, 255, 0.12);
  --line-2: rgba(150, 172, 255, 0.22);
  --line-soft: rgba(150, 172, 255, 0.07);

  /* 文字（在 --bg 上：fg 18:1，fg-2 10.9:1，fg-3 6.8:1；fg-3 在 --panel-2 上 5.8:1，都过 WCAG AA） */
  --fg: #eef2fa;
  --fg-2: #b6bfd3;
  --fg-3: #8b96ae;
  --on-grad: #060914;

  /* 品牌光带 */
  --cyan: #62e4ff;
  --blue: #5b8cff;
  --violet: #a47dff;
  --pink: #e3a2ff;
  --ok: #4be3b0;
  --warn: #ffc46b;
  --bad: #ff7f9b;
  --grad: linear-gradient(100deg, #74e8ff 0%, #5b8cff 42%, #a47dff 78%, #e3a2ff 100%);
  --grad-soft: linear-gradient(100deg, rgba(116, 232, 255, 0.16), rgba(91, 140, 255, 0.12) 45%, rgba(164, 125, 255, 0.16));
  --grad-line: linear-gradient(90deg, transparent, rgba(98, 228, 255, 0.4), rgba(164, 125, 255, 0.4), transparent);
  --grad-edge: linear-gradient(90deg, transparent, rgba(116, 232, 255, 0.9) 30%, rgba(164, 125, 255, 0.9) 70%, transparent);
  --tint-blue: rgba(91, 140, 255, 0.16);
  --tint-ok: rgba(75, 227, 176, 0.14);
  --tint-warn: rgba(255, 196, 107, 0.16);
  --tint-bad: rgba(255, 127, 155, 0.1);

  /* 字体与字号 */
  --font: "LJ Inter", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --font-head: "LJ Inter", "LJ Head", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "LJ Inter", monospace;
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.32vw, 1.25rem);
  --fs-h3: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem);
  --fs-h2: clamp(2rem, 1.45rem + 1.45vw, 2.875rem);   /* R2-7：全站同一级段标题（首页同值） */
  --fs-h2-close: clamp(2rem, 1.2rem + 2.7vw, 3.5rem);  /* 页尾收束标题（.signoff）：比段标题大一级 */
  --fs-h1: clamp(2.75rem, 1.3rem + 5.2vw, 6.25rem);
  --fs-h1-page: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem);
  --fs-note: clamp(1.625rem, 1.1rem + 1.4vw, 2.5rem);
  --fs-price: clamp(2.25rem, 1.8rem + 1.4vw, 3rem);
  --fs-price-row: 1.75rem;                              /* R2-8 手机收起的票据行 */
  --fs-fact: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
  --fs-pane: clamp(8px, 0.74vw, 11.5px);
  --fs-live: calc(var(--fs-pane) * 1.08); /* 首页：玻璃前的引擎日志与核价读数 */
  --fs-pane-fixed: 10.6px; /* 首页窄屏横滑：玻璃里的界面按 660 px 宽、这个字号排版，再整体缩放 */
  --fs-live-m: 10.5px; /* 首页窄屏横滑：日志、读数与「示例数据」标签（不缩放，保持可读） */
  --fs-mug-s: 6px;
  --fs-mug-m: 9px;

  /* 间距（4 px 网格） */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --gut: clamp(16px, 4vw, 40px);
  --sec-y: clamp(80px, 11vw, 150px);
  --nav-h: 64px;
  --maxw: 1240px;

  /* 圆角 */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r: 20px;
  --r-lg: 22px;
  --r-pill: 99px;

  /* 阴影 */
  --sh-pane: 0 50px 90px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.4);
  --sh-card: 0 30px 60px -36px rgba(91, 140, 255, 0.5);
  --sh-glow: 0 30px 80px -30px rgba(91, 140, 255, 0.6);
  --sh-btn: 0 10px 36px -6px rgba(91, 140, 255, 0.55);

  /* 动效 */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 0.2s;
  --dur-2: 0.35s;
  --dur-3: 0.8s;
}
/* 贴牌页（服务端给 <html> 标 data-brand，2026-10-16）：标题子集字体只收了官网现有的字，
   品牌名的字它没有，标题里会一半子集字体一半系统字体；品牌页的标题统一用正文字体 */
html[data-brand] { --font-head: var(--font); }

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
/* hidden 属性一律藏起：上面的 img { display: block } 与各组件的 display 会盖过浏览器默认的 [hidden]。
   服务端用 hidden 藏下载按钮（#dlLink）、buy.js 用 hidden 切换步骤面板、截图位 <img hidden> 未到图前都靠这一条。 */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
p, h1, h2, h3, h4, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
table { border-collapse: collapse; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(98, 228, 255, 0.3); color: #fff; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--fg); color: var(--bg); font-weight: 600;
}
.skip:focus { top: 12px; }
.nb { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.mono { font-family: var(--font-mono); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.ico--right, .ico--down, .ico--back { width: 1em; height: 1em; }
.ok { color: var(--ok); font-weight: 600; }
.bad { color: var(--bad); font-weight: 600; }
.warn { color: var(--warn); font-weight: 600; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--cyan);
}

/* ---------- 文字 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-2);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(75, 227, 176, 0.18), 0 0 12px rgba(75, 227, 176, 0.7);
  flex: none;
}
.h1, .h2, .h3 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-synthesis: none;
}
.h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.035em; }
.h1--page { font-size: var(--fs-h1-page); line-height: 1.08; }
.h2 { font-size: var(--fs-h2); line-height: 1.16; }
.signoff .h2 { font-size: var(--fs-h2-close); line-height: 1.12; }
.h3 { font-size: var(--fs-h3); line-height: 1.3; }
.h1 .ph, .h2 .ph, .h3 .ph { display: inline-block; }
.ru { color: var(--fg-3); font-size: var(--fs-sm); letter-spacing: 0.01em; margin-top: 12px; }
.lead { color: var(--fg-2); font-size: var(--fs-lead); line-height: 1.75; max-width: 40em; }
.small { font-size: var(--fs-sm); color: var(--fg-3); }
.prose { color: var(--fg-2); max-width: 44em; }
.prose p + p { margin-top: 14px; }
.prose strong, .prose b { color: var(--fg); }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--cyan); font-weight: 600;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.25s var(--ease);
}
.link:hover { background-size: 100% 1px; }

/* ---------- 按钮：只过渡 transform / opacity ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 12px; border: 1px solid transparent;
  font-weight: 650; font-size: var(--fs-base); line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--dur-1) var(--ease);
  isolation: isolate;
}
.btn::after {
  content: ""; position: absolute; left: -1px; top: -1px; right: -1px; bottom: -1px; border-radius: inherit; z-index: -1;
  box-shadow: var(--sh-btn);
  opacity: 0; transition: opacity 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0); }
.btn--ink { background: var(--grad); color: var(--on-grad); }
.btn--glass { background: var(--glass-2); border-color: var(--line-2); color: var(--fg); }
.btn--glass::after { box-shadow: 0 0 0 1px rgba(98, 228, 255, 0.4), 0 10px 30px -10px rgba(98, 228, 255, 0.35); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn__ver { color: inherit; opacity: 0.7; font-weight: 500; }
.copy-ok {
  display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; margin-left: 4px;
  border-radius: var(--r-xs); background: var(--ok); color: #04130d; font-size: 0.75em; font-weight: 700;
}

/* ---------- 标签 / 小药丸 ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--tint-blue); color: #b9ccff;
  font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; line-height: 1.5;
}
.chip--ok { background: var(--tint-ok); color: var(--ok); }
.chip--warn { background: var(--tint-warn); color: var(--warn); }
.chip--bad { background: var(--tint-bad); color: var(--bad); }
.chip--line { background: none; border: 1px solid var(--line-2); color: var(--fg-2); }
.chip--grad { background: var(--grad); color: var(--on-grad); font-weight: 700; }
.pill { display: inline-block; padding: 2px 9px; border-radius: var(--r-pill); font-size: var(--fs-xs); border: 1px solid var(--line-2); color: var(--fg-2); white-space: nowrap; }
.pill--on { background: var(--tint-ok); border-color: rgba(75, 227, 176, 0.35); color: var(--ok); }
.pill--bad { background: var(--tint-bad); border-color: rgba(255, 127, 155, 0.35); color: var(--bad); }

/* ---------- 导航（实色底，不用 backdrop-filter：滚过的文字不会透出来和导航字重叠；0.96 实测仍能读出字） ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__bar { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; flex: none; }
.brand__pic, .brand__mark { width: 30px; height: 30px; flex: none; }
.brand__word { font-family: var(--font-head); font-size: var(--fs-md); letter-spacing: 0.02em; }
.brand__ozon { margin-left: 6px; font-family: var(--font); font-weight: 750; letter-spacing: 0.08em; font-size: 0.82em; color: var(--fg-2); }
.nav__links { margin-left: auto; }
.nav__links ul { display: flex; gap: 4px; }
.nav__links a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--fg-2); font-size: var(--fs-sm); font-weight: 550;
  transition: color var(--dur-1);
}
.nav__links a:hover, .nav__links a[aria-current] { color: var(--fg); }
.nav__links a[aria-current] { box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 0; }
.nav__menu {
  display: none; align-items: center; gap: 6px; margin-left: auto;
  min-height: 40px; padding: 0 12px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); cursor: pointer;
  font-size: var(--fs-sm);
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 60;
  background: #070a12;
  padding: 16px var(--gut) 32px;
  display: flex; flex-direction: column; gap: 24px;
  overflow-y: auto;
}
.drawer[hidden] { display: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.drawer__top .nav__menu { display: inline-flex; margin-left: 0; }
.drawer__links li { border-bottom: 1px solid var(--line); }
.drawer__links a { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; font-size: var(--fs-h3); font-family: var(--font-head); font-weight: 700; }
.drawer__links span { font-family: var(--font); font-size: var(--fs-sm); color: var(--fg-3); font-weight: 500; }
.drawer__actions { display: grid; gap: 12px; }

/* ---------- 段落与标题（中文主标题 + 俄文副行） ---------- */
.section { position: relative; padding: var(--sec-y) 0; }
.section--line { border-top: 1px solid var(--line); }
.section--line::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--grad-line);
}
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .eyebrow { margin-bottom: 18px; color: var(--cyan); }
.section-head .lead { margin-top: 20px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

/* 子页页头：和首页同一片天空，但不吸顶、不跑 WebGL */
.page-head { position: relative; padding: calc(var(--nav-h) + clamp(56px, 8vw, 110px)) 0 clamp(48px, 6vw, 80px); overflow: hidden; isolation: isolate; }
.page-head::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 70% at 78% 10%, rgba(91, 140, 255, 0.2), transparent 70%),
    radial-gradient(36% 50% at 96% 0%, rgba(164, 125, 255, 0.18), transparent 70%),
    radial-gradient(40% 60% at 20% 0%, rgba(98, 228, 255, 0.08), transparent 70%);
}
.page-head .eyebrow { margin-bottom: 20px; color: var(--cyan); }
.page-head .lead { margin-top: 22px; }

/* 入场：只做透明度 + 位移（core.js 加 .is-in）；每屏最多几个 */
.js-motion [data-reveal] { transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); }
/* 隐藏态只给 core.js 判定为「载入时在视口外」的元素（.rv-wait）：视口内的从不隐藏 */
.js-motion [data-reveal].rv-wait:not(.is-in) { opacity: 0; transform: translateY(22px); }
.js-motion [data-reveal].reveal-now { transition-duration: 0.24s; transform: none; }
.js-motion [data-reveal].reveal-instant { transition: none; }

/* ---------- 玻璃面板 ---------- */
.panel {
  position: relative;
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
}
.panel--edge::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px;
  background: var(--grad-line);
}
.panel--deep { background: linear-gradient(180deg, rgba(20, 27, 49, 0.75), rgba(10, 14, 26, 0.75)); border-radius: var(--r-lg); }
.panel--warn { border-color: rgba(255, 196, 107, 0.28); }

/* ---------- 窗口外壳（按软件真实结构画的界面示意；.frame 是静态版，首页 .pane 是 3D 版） ---------- */
.frame {
  position: relative;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #141b31 0%, #0d1324 100%);
  border: 1px solid rgba(160, 182, 255, 0.2);
  box-shadow: var(--sh-pane);
  overflow: hidden;
}
.frame::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 3;
  background: var(--grad-edge);
}
.frame .win { position: relative; }
.win { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; }
.win__bar {
  display: flex; align-items: center; gap: 0.7em;
  height: 2.6em; padding: 0 0.9em; flex: none;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--line);
}
.win__logo { width: 1.35em; height: 1.35em; }
.win__title { font-weight: 600; color: var(--fg-2); }
.win__ctl { margin-left: auto; display: flex; gap: 1.4em; }
.win__ctl i { width: 0.8em; height: 0.8em; border: 1px solid var(--fg-3); border-radius: 2px; opacity: 0.6; }
.win__ctl i:first-child { height: 0; border-width: 1px 0 0; margin-top: 0.4em; border-radius: 0; }
.win__body { flex: 1; display: flex; min-height: 0; }
.win__body--pad { display: block; padding: 1.3em 1.5em; }
.win__side {
  width: 10.5em; flex: none; padding: 1em 0.7em;
  display: flex; flex-direction: column; gap: 0.15em;
  background: rgba(0, 0, 0, 0.22); border-right: 1px solid var(--line);
}
.ws { padding: 0.36em 0.7em; border-radius: 0.5em; color: var(--fg-3); white-space: nowrap; }
.ws--h { font-size: 0.85em; letter-spacing: 0.12em; color: var(--fg-3); opacity: 0.8; padding-top: 0; }
.ws.is-on { background: rgba(91, 140, 255, 0.18); color: var(--fg); box-shadow: inset 2px 0 0 var(--cyan); }
.ws--run { margin-top: auto; display: flex; align-items: center; gap: 0.5em; color: var(--ok); }
.ws--run i { width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.win__main { flex: 1; min-width: 0; padding: 1.1em 1.3em; display: flex; flex-direction: column; gap: 0.9em; }

/* 「示例数据」角标：所有演示数字旁边都要有它 */
.demo-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-xs); color: var(--fg-3);
}

/* ---------- 卡片 ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tile {
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--line);
}
.tile__k { font-weight: 650; color: var(--fg); }
.tile__v { color: var(--fg-3); font-size: var(--fs-sm); line-height: 1.65; }
.tile__no { font-size: var(--fs-xs); letter-spacing: 0.12em; color: var(--fg-3); text-transform: uppercase; }
.tile__no .num { color: var(--cyan); font-weight: 700; }
/* 可点的卡：悬停只让一层预先画好的高光淡入（opacity），不重绘卡面 */
a.tile::before {
  content: ""; position: absolute; left: -1px; top: -1px; right: -1px; bottom: -1px; border-radius: inherit; pointer-events: none;
  background: var(--grad-soft);
  box-shadow: inset 0 0 0 1px rgba(98, 228, 255, 0.35);
  opacity: 0; transition: opacity 0.25s;
}
a.tile:hover::before { opacity: 1; }
a.tile > * { position: relative; }

/* 价格票据（首页价格段与价格页共用） */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
/* 代理只卖其中几档（R5-12）：按实际张数排，单张宽度不变、整体居中；等代理答复时先不露；不划算的「比按月省」留位不显示 */
.plans.is-wait { visibility: hidden; }
.ticket__save.is-void { visibility: hidden; }
@media (min-width: 1000px) {
  .plans[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 75%; margin-left: auto; margin-right: auto; }
  .plans[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 50%; margin-left: auto; margin-right: auto; }
  .plans[data-count="1"] { grid-template-columns: minmax(0, 1fr); width: 25%; margin-left: auto; margin-right: auto; }
}
@media (min-width: 601px) and (max-width: 999px) {
  .plans[data-count="1"] { grid-template-columns: minmax(0, 1fr); width: 50%; margin-left: auto; margin-right: auto; }
}
.ticket {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px 24px 24px; border-radius: var(--r);
  background: var(--glass); border: 1px solid var(--line);
}
.ticket--rec {
  border-color: transparent;
  background: linear-gradient(180deg, #121a33, #0b1022) padding-box, var(--grad) border-box;
  box-shadow: var(--sh-glow);
}
.ticket__name { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--fg-2); }
.ticket__rec { padding: 2px 10px; border-radius: var(--r-pill); background: var(--grad); color: var(--on-grad); font-size: var(--fs-xs); font-weight: 700; }
.ticket__price { margin-top: 14px; font-family: var(--font); font-size: var(--fs-price); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.ticket__cur { font-size: 0.5em; margin-right: 4px; color: var(--fg-2); vertical-align: 0.6em; }
.ticket__days { margin-top: 10px; color: var(--fg-2); font-size: var(--fs-sm); }
.ticket__per { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: var(--fs-sm); }
.ticket__save { margin-top: 4px; color: var(--ok); font-size: var(--fs-sm); }
.ticket__save--none { color: var(--fg-3); }
.ticket__btn { margin-top: 22px; width: 100%; }
.ticket__paused { white-space: normal; }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--glass); }
.tbl { width: 100%; font-size: var(--fs-sm); }
.tbl caption { text-align: left; padding: 14px 16px 0; color: var(--fg-3); font-size: var(--fs-xs); }
.tbl th { text-align: left; font-weight: 600; color: var(--fg-3); font-size: var(--fs-xs); letter-spacing: 0.06em; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); color: var(--fg-2); vertical-align: top; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td:first-child { color: var(--fg); font-weight: 550; }
.tbl .r { text-align: right; }
.tbl tr.is-on td { background: rgba(91, 140, 255, 0.07); }
.tbl tr.is-out td { color: var(--fg-3); }

/* ---------- 表单 ---------- */
.field { display: grid; gap: 6px; }
.field__label { font-size: var(--fs-sm); font-weight: 600; color: var(--fg-2); }
.field__hint { font-size: var(--fs-xs); color: var(--fg-3); }
.field__err { font-size: var(--fs-xs); color: var(--bad); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04); color: var(--fg);
  transition: border-color var(--dur-1);
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--fg-3); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(150, 172, 255, 0.36); }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: transparent; }
.input[aria-invalid="true"] { border-color: var(--bad); }
.select { -webkit-appearance: none; appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--fg-3) 50%), linear-gradient(135deg, var(--fg-3) 50%, transparent 50%); background-position: right 18px top 50%, right 13px top 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.select option { background: var(--panel); color: var(--fg); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input, .switch input { width: 16px; height: 16px; accent-color: #5b8cff; }

/* ---------- 俄文行浮出中文释义（core.js：[data-zh] → .gloss） ---------- */
[data-zh] { position: relative; cursor: help; }
.gloss {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 20;
  width: max-content; max-width: min(22em, 80vw);
  padding: 6px 10px; border-radius: 8px;
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--fg);
  font-family: var(--font); font-size: var(--fs-sm); line-height: 1.5; letter-spacing: 0;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.8);
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.gloss::before { content: "中"; margin-right: 8px; padding: 0 4px; border-radius: 4px; border: 1px solid currentColor; font-size: var(--fs-xs); opacity: 0.7; }
[data-zh].is-glossed .gloss { opacity: 1; transform: none; }
@media (hover: none) {
  .ru[data-zh]::after { content: "点按看中文"; margin-left: 8px; font-size: var(--fs-xs); white-space: nowrap; color: var(--fg-3); }
}
html.zh-seen .ru[data-zh]:not(.zh-hint-keep)::after { display: none; }

/* ---------- 页脚 ---------- */
.foot { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--bg-foot); font-size: var(--fs-sm); color: var(--fg-3); }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 32px; }
.foot__brand p { margin-top: 12px; }
.foot__h { color: var(--fg); font-weight: 650; margin-bottom: 12px; }
.foot__list { display: grid; gap: 8px; }
.foot__list a { transition: color var(--dur-1); }
.foot__list a:hover { color: var(--fg); }
.copy { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--fg-2); }
.copy__hint { color: var(--cyan); }
.foot__legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: var(--fs-xs); line-height: 1.8; }
.foot__bottom { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: var(--fs-xs); }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

/* ---------- 响应式（共用部分） ---------- */
@media (max-width: 999px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: inline-flex; }
}
@media (max-width: 600px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .tbl th, .tbl td { padding: 10px 12px; }

  /* R2-8 手机票据：非推荐套餐收成一行（名称 + 天数 | 价格 | ›），整行就是购买链接；
     推荐的季卡保持展开（折合每月 + 按钮），一屏内就能看到。id / data-plan-* 不动。 */
  .plans { gap: 10px; }
  .ticket:not(.ticket--rec) {
    display: grid; grid-template-columns: minmax(0, 1fr) auto 10px; column-gap: 14px; align-items: center;
    padding: 14px 18px 14px 20px;
  }
  .ticket:not(.ticket--rec) .ticket__name { grid-column: 1; grid-row: 1; }
  .ticket:not(.ticket--rec) .ticket__days { grid-column: 1; grid-row: 2; margin-top: 2px; font-size: var(--fs-xs); }
  .ticket:not(.ticket--rec) .ticket__price { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; font-size: var(--fs-price-row); }
  .ticket:not(.ticket--rec)::after {
    content: ""; grid-column: 3; grid-row: 1 / span 2; width: 8px; height: 8px;
    border: solid var(--fg-3); border-width: 2px 2px 0 0; transform: rotate(45deg);
  }
  .ticket:not(.ticket--rec) .ticket__per, .ticket:not(.ticket--rec) .ticket__save { display: none; }
  .ticket:not(.ticket--rec) a.ticket__btn {
    position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 1;
    width: auto; min-height: 0; margin: 0; padding: 0; overflow: hidden;
    border-radius: inherit; border-color: transparent; background: transparent; color: transparent; transform: none;
  }
  .ticket:not(.ticket--rec) a.ticket__btn::after { display: none; }
  .ticket:not(.ticket--rec) .ticket__paused { grid-column: 1 / -1; grid-row: 3; margin-top: 12px; min-height: 40px; }
  .ticket--rec { padding: 22px 20px 20px; }
  .ticket--rec .ticket__btn { margin-top: 18px; }
}

/* 触屏：页脚链接、复制微信号、减少动效开关的点按区至少 40 px 高（静态 CSS，载入不位移） */
@media (hover: none) {
  .foot__list { gap: 0; }
  .foot__list li { display: flex; align-items: center; min-height: 40px; }
  .foot__list a, .foot .copy, .foot .switch { display: inline-flex; align-items: center; min-height: 40px; }
}

/* ---------- Windows 高对比度：去掉纯装饰的光与渐变字 ---------- */
@media (forced-colors: active) {
  .grad { -webkit-text-fill-color: currentColor; background: none; }
  .btn { border-color: ButtonText; }
  .frame::before, .panel--edge::before, .section--line::before, .page-head::before { display: none; }
}

/* ---------- 减少动效：系统设置 + 页脚开关（boot.js 写 data-motion） ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { transition-duration: 0.01ms !important; animation: none !important; }

/* ---------- 代理的客服二维码（R5-9）：代理推广进来、且代理传了二维码才显示（js/agent-contact.js）；白底保证手机能扫 ---------- */
.foot__qr { display: flex; align-items: center; gap: 10px; }
.foot__qr img { flex: none; width: 96px; height: 96px; padding: 4px; border-radius: var(--r-xs); background: #fff; }
.foot__qr span { color: var(--fg-3); font-size: var(--fs-xs); }
