/* ============ 瑞米科技官网样式 ============ */

/* 深色主题为基准值，浅色主题在文件末尾覆盖同名变量 */
:root {
  color-scheme: dark;

  --bg: #060B14;
  --bg-soft: #0A1220;
  --surface: rgba(19, 32, 52, 0.55);
  --surface-2: rgba(24, 40, 64, 0.75);
  --line: rgba(122, 172, 226, 0.14);
  --line-strong: rgba(122, 172, 226, 0.32);

  --navy: #13395E;
  --accent: #4FA3E3;
  --accent-soft: #8FD0F5;
  --accent-deep: #2C7BB8;
  --teal: #6FC3A8;
  --gold: #D9A94E;
  --pink: #E48AA8;

  --text: #E9F1FB;
  --text-2: #A9BCD2;
  --text-3: #6E8299;

  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
  --glow: 0 0 0 1px rgba(79, 163, 227, 0.28), 0 24px 60px -28px rgba(79, 163, 227, 0.45);

  /* ---- 主题语义变量 ---- */
  --heading: #ffffff;
  --grad-text: linear-gradient(100deg, #bfe6ff 0%, #6fb8ee 45%, #3e93d6 100%);
  --selection-bg: rgba(79, 163, 227, 0.32);

  --grid-line: rgba(122, 172, 226, 0.055);
  --glow-a: rgba(47, 118, 190, 0.5);
  --glow-b: rgba(18, 78, 130, 0.45);
  --glow-op: 0.5;
  --halo: radial-gradient(circle, rgba(79, 163, 227, 0.28), transparent 65%);
  --mascot-shadow: drop-shadow(0 40px 60px rgba(4, 12, 24, 0.9)) drop-shadow(0 0 44px rgba(79, 163, 227, 0.24));
  --logo-shadow: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.55));
  --orbit-1: rgba(122, 172, 226, 0.16);
  --orbit-2: rgba(122, 172, 226, 0.1);
  --orbit-3: rgba(122, 172, 226, 0.06);

  --card-grad: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  --card-grad-soft: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  --card-grad-strong: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  --metrics-grad: linear-gradient(180deg, rgba(16, 27, 44, 0.9), rgba(10, 18, 32, 0.9));
  --modal-grad: linear-gradient(180deg, #0c1626, #08111e);
  --modal-shadow: 0 60px 160px -50px rgba(0, 0, 0, 1);
  --contact-glow: rgba(79, 163, 227, 0.12);
  --skeleton-grad: linear-gradient(100deg, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0.03) 70%);

  --nav-bg: rgba(6, 11, 20, 0.78);
  --nav-bg-solid: rgba(6, 11, 20, 0.97);
  --chip-bg: rgba(10, 18, 32, 0.72);
  --panel-bg: rgba(8, 15, 26, 0.6);
  --toast-bg: rgba(14, 24, 40, 0.96);
  --toast-shadow: 0 20px 50px -24px rgba(0, 0, 0, 1);
  --input-bg: rgba(6, 11, 20, 0.55);
  --input-bg-focus: rgba(6, 11, 20, 0.8);
  --placeholder: rgba(110, 130, 153, 0.75);
  --scrim: rgba(3, 7, 13, 0.72);
  --table-head-bg: rgba(6, 11, 20, 0.3);
  --row-line: rgba(122, 172, 226, 0.08);
  --row-hover: rgba(79, 163, 227, 0.045);

  --switch-bg: rgba(255, 255, 255, 0.04);
  --switch-active: rgba(79, 163, 227, 0.18);
  --switch-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);

  --tint: rgba(122, 172, 226, 0.04);
  --tint-2: rgba(122, 172, 226, 0.06);
  --tint-3: rgba(122, 172, 226, 0.08);
  --tint-accent: rgba(79, 163, 227, 0.1);
  --marquee-text: rgba(169, 188, 210, 0.55);
  --marquee-sep: rgba(122, 172, 226, 0.3);

  --badge-color: #d9a94e;
  --badge-bg: rgba(217, 169, 78, 0.12);
  --badge-line: rgba(217, 169, 78, 0.28);

  --btn-grad: linear-gradient(180deg, #5fb0ec, #3e93d6);
  --btn-text: #04101d;

  --particle-rgb: 79, 163, 227;
  --particle-dot-rgb: 143, 208, 245;
  --particle-opacity: 0.55;

  --font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", "Cascadia Mono", Consolas, monospace;

  --maxw: 1200px;
  --nav-h: 74px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

::selection { background: var(--selection-bg); color: #fff; }

/* ---------- 背景层 ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-fx__grid {
  position: absolute;
  inset: -10% -10% 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 10%, transparent 72%);
}
.bg-fx__glow {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--glow-op);
}
.bg-fx__glow--a {
  top: -340px;
  left: 8%;
  background: radial-gradient(circle, var(--glow-a), transparent 62%);
}
.bg-fx__glow--b {
  top: 30%;
  right: -280px;
  background: radial-gradient(circle, var(--glow-b), transparent 60%);
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 max(24px, calc((100vw - var(--maxw)) / 2));
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand__mark {
  width: 30px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(79, 163, 227, 0.28));
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 16px; font-weight: 500; letter-spacing: 0.02em; }
.brand__text em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--text-3);
}

.nav__links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav__links a {
  font-size: 14px;
  color: var(--text-2);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: width 0.28s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 10px; }

/* 主题切换 */
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--switch-bg);
  flex-shrink: 0;
  margin-left: 2px;
}
.theme-switch__btn {
  width: 30px;
  height: 27px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.theme-switch__btn:hover { color: var(--text-2); }
.theme-switch__btn[aria-pressed="true"] {
  color: var(--heading);
  background: var(--switch-active);
  box-shadow: var(--switch-shadow);
}
.theme-switch__btn svg { display: block; }

.theme-switch--adm { margin-left: 0; }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav__toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.2s;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s, box-shadow 0.25s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn--primary {
  background: var(--btn-grad);
  color: var(--btn-text);
  box-shadow: 0 12px 30px -16px rgba(79, 163, 227, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px -18px rgba(79, 163, 227, 1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn--ghost { color: var(--text-2); border-color: transparent; }
.btn--ghost:hover { color: var(--text); background: var(--tint-3); }
.btn--line {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--tint);
}
.btn--line:hover { border-color: rgba(79, 163, 227, 0.6); background: var(--tint-accent); }
.btn--lg { height: 50px; padding: 0 26px; font-size: 15px; border-radius: 12px; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 72px) max(24px, calc((100vw - var(--maxw)) / 2)) 0;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: var(--particle-opacity);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
  min-height: 520px;
  padding-bottom: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent-soft);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 163, 227, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(79, 163, 227, 0.14); }
  50% { box-shadow: 0 0 0 7px rgba(79, 163, 227, 0.03); }
}

.hero__title {
  font-size: clamp(2.1rem, 4.3vw, 3.65rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-bottom: 22px;
}
.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  max-width: 30em;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.85;
}

.hero__cta { display: flex; gap: 14px; margin: 34px 0 44px; flex-wrap: wrap; }

.stats { display: flex; gap: 44px; flex-wrap: wrap; }
.stats__item dd {
  font-family: var(--font-mono);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 500;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stats__item dd small {
  font-size: 14px;
  color: var(--accent);
  margin-left: 2px;
}
.stats__item dt {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* 吉祥物视觉 */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
}
.hero__halo {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--halo);
  filter: blur(24px);
}
.hero__mascot {
  position: relative;
  width: clamp(210px, 22vw, 300px);
  height: auto;
  filter: var(--mascot-shadow);
  animation: float 6.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-16px) rotate(0.6deg); }
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--orbit-1);
}
.orbit--1 { width: 320px; height: 320px; animation: spin 26s linear infinite; }
.orbit--2 { width: 420px; height: 420px; border-color: var(--orbit-2); animation: spin 40s linear infinite reverse; }
.orbit--3 { width: 520px; height: 520px; border-color: var(--orbit-3); }
.orbit::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px 3px rgba(79, 163, 227, 0.7);
}
.orbit--2::before { background: var(--gold); box-shadow: 0 0 14px 3px rgba(217, 169, 78, 0.55); }
.orbit--3::before { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  backdrop-filter: blur(10px);
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
}
.chip--tl { top: 8%; left: 2%; }
.chip--tr { top: 18%; right: 0%; }
.chip--bl { bottom: 20%; left: 0%; }
.chip--br { bottom: 8%; right: 0%; }
.chip__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(79, 163, 227, 0.8);
}
.chip__dot--gold { background: var(--gold); box-shadow: 0 0 8px rgba(217, 169, 78, 0.7); }
.chip__dot--teal { background: var(--teal); box-shadow: 0 0 8px rgba(111, 195, 168, 0.7); }
.chip__dot--pink { background: var(--pink); box-shadow: 0 0 8px rgba(228, 138, 168, 0.7); }

/* 技术关键词滚动 */
.marquee {
  position: relative;
  margin-top: 26px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: scroll 42s linear infinite;
}
.marquee__track span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--marquee-text);
}
.marquee__track i { color: var(--marquee-sep); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- 通用区块 ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: 108px max(24px, calc((100vw - var(--maxw)) / 2));
}
.section--products { padding-top: 92px; }

.section__head { max-width: 720px; margin-bottom: 54px; }
.section__head h2 {
  font-size: clamp(1.7rem, 2.9vw, 2.5rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section__head h2 em {
  font-style: normal;
  color: var(--accent-soft);
  position: relative;
}
.section__head h2 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 8px;
  background: linear-gradient(90deg, rgba(79, 163, 227, 0.22), transparent);
  z-index: -1;
}
.section__desc { color: var(--text-2); font-size: 15px; line-height: 1.8; }
.br-m { display: none; }

/* ---------- 产品 ---------- */
.pgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card-grad);
  animation: pcard-in 0.34s ease both;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
/* 只动透明度，避免和 hover 的位移冲突 */
@keyframes pcard-in { from { opacity: 0; } to { opacity: 1; } }
.pcard::after {
  content: "";
  position: absolute;
  top: 0;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.pcard:hover {
  transform: translateY(-5px);
  border-color: rgba(79, 163, 227, 0.42);
  box-shadow: 0 30px 70px -38px rgba(79, 163, 227, 0.6);
}
.pcard:hover::after { opacity: 0.85; }

.pcard__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.pcard__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--icon, var(--accent));
  background: color-mix(in srgb, var(--icon, #4FA3E3) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--icon, #4FA3E3) 30%, transparent);
}
/* 产品自定义 Logo：白底图标砖，深浅主题下都能看清 */
.pcard__logo,
.detail__logo {
  flex: none;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(16, 42, 67, 0.12);
  box-shadow: 0 8px 20px -14px rgba(9, 30, 52, 0.55);
  overflow: hidden;
}
.pcard__logo { width: 52px; height: 52px; border-radius: 14px; padding: 6px; }
.pcard__logo img,
.detail__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pcard__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--badge-color);
  background: var(--badge-bg);
  border: 1px solid var(--badge-line);
}
.pcard__cat { font-size: 11.5px; color: var(--text-3); font-family: var(--font-mono); letter-spacing: 0.1em; margin-bottom: 8px; }
.pcard h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.45; }
.pcard__tagline { font-size: 13.5px; color: var(--text-2); line-height: 1.65; margin-bottom: 16px; min-height: 44px; }

.pcard__feats { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.pcard__feats li {
  position: relative;
  padding-left: 16px;
  font-size: 12.8px;
  color: var(--text-2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard__feats li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.pcard__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.pcard__cta {
  width: 100%;
  height: 38px;
  gap: 6px;
  font-weight: 400;
  color: var(--text-2);
  background: transparent;
  border-color: var(--line);
}
.pcard:hover .pcard__cta {
  color: var(--heading);
  border-color: rgba(79, 163, 227, 0.55);
  background: var(--tint-accent);
}
.pcard__arrow { transition: transform 0.22s ease; }
.pcard:hover .pcard__arrow { transform: translateX(3px); }

.skeleton {
  height: 360px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--skeleton-grad);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -120% 0; } }

/* ---------- 产品中心页 ---------- */
.nav__links a.is-current { color: var(--text); }
.nav__links a.is-current::after { width: 100%; }

.pcenter {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 64px) max(24px, calc((100vw - var(--maxw)) / 2)) 104px;
}
.pcenter__head { max-width: 760px; margin-bottom: 46px; }
.pcenter__title {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.pcenter__lede { color: var(--text-2); font-size: 15px; line-height: 1.85; }

.pcenter__layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

/* 左侧分类栏：滚动时吸附 */
.pcenter__side {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 18px 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
}
.pcenter__sideTitle {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0 8px 12px;
}
.catlist { display: flex; flex-direction: column; gap: 2px; }
.catlist__loading { display: block; padding: 8px; font-size: 13px; color: var(--text-3); }
.catlist__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.catlist__item:hover { background: var(--tint-accent); color: var(--text); }
.catlist__item.is-active {
  background: rgba(79, 163, 227, 0.14);
  border-color: rgba(79, 163, 227, 0.34);
  color: var(--accent-soft);
}
.catlist__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catlist__num { flex: none; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.catlist__item.is-active .catlist__num { color: var(--accent-soft); opacity: 0.85; }

.catlist__subs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0 8px 11px;
  padding-left: 9px;
  border-left: 1px solid var(--line-strong);
}
.catlist__sub {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text-3);
  font-family: inherit;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.catlist__sub:hover { color: var(--text); background: var(--tint-2); }
.catlist__sub.is-active { color: var(--accent-soft); background: rgba(79, 163, 227, 0.1); }
.catlist__sub i { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; opacity: 0.6; margin-left: 5px; }

.pcenter__sideFoot { margin-top: 14px; padding: 14px 8px 2px; border-top: 1px dashed var(--line); }
.pcenter__sideFoot p { font-size: 12.5px; color: var(--text-3); margin-bottom: 10px; line-height: 1.6; }
.pcenter__sideFoot .btn { width: 100%; height: 34px; font-size: 12.5px; }

.pcenter__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.pcenter__crumb { font-size: 14.5px; color: var(--text); }
.pcenter__count { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--text-3); }

.pempty {
  grid-column: 1 / -1;
  padding: 64px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.pempty p { margin-bottom: 16px; }

/* ---------- 交付流程 ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.flow__item {
  position: relative;
  padding: 32px 24px 32px 0;
  border-right: 1px solid var(--line);
}
.flow__item:last-child { border-right: 0; }
.flow__item + .flow__item { padding-left: 24px; }
.flow__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.flow__item h3 { font-size: 16px; margin-bottom: 10px; }
.flow__item p { font-size: 13.5px; color: var(--text-2); line-height: 1.7; min-height: 69px; }
.flow__out {
  display: inline-block;
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--text-3);
  font-family: var(--font-mono);
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--tint-2);
  border: 1px solid var(--line);
}

/* ---------- 数据带 ---------- */
.section--metrics { padding-top: 0; }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.metrics__item {
  background: var(--metrics-grad);
  padding: 34px 26px;
  text-align: center;
}
.metrics__item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 500;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.metrics__item small { font-size: 0.5em; color: var(--accent); margin-left: 3px; }
.metrics__item span { font-size: 12.5px; color: var(--text-3); }

/* ---------- 关于 ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 48px;
  align-items: start;
}
.about__text h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 20px; line-height: 1.35; }
.about__text h2 em { font-style: normal; color: var(--accent-soft); }
.about__text p { color: var(--text-2); font-size: 14.5px; line-height: 1.9; margin-bottom: 14px; }
.about__points { margin-top: 26px; display: flex; flex-direction: column; gap: 0; }
.about__points li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-2);
}
.about__points li span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.about__card {
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--card-grad-strong);
  text-align: center;
  box-shadow: var(--shadow);
}
.about__logo { display: grid; place-items: center; margin-bottom: 6px; }
.about__logo img { width: 116px; height: auto; filter: var(--logo-shadow); }
.about__card h3 { font-size: 17px; letter-spacing: 0.04em; }
.about__domain { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin: 4px 0 22px; letter-spacing: 0.06em; }
.about__meta { text-align: left; display: flex; flex-direction: column; gap: 0; }
.about__meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}
.about__meta dt { color: var(--text-3); }
.about__meta dd { color: var(--text); text-align: right; }

/* ---------- 联系 ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
  padding: 48px 44px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 0% 0%, var(--contact-glow), transparent 70%),
    var(--card-grad-soft);
}
.contact__intro h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); line-height: 1.35; margin-bottom: 18px; }
.contact__intro h2 em { font-style: normal; color: var(--accent-soft); }
.contact__intro > p { color: var(--text-2); font-size: 14px; line-height: 1.85; }
.contact__list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.contact__list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  color: var(--text-2);
}
.contact__list svg { color: var(--accent); flex-shrink: 0; }

.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; color: var(--text-3); letter-spacing: 0.02em; }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(79, 163, 227, 0.6);
  box-shadow: 0 0 0 3px rgba(79, 163, 227, 0.14);
  background: var(--input-bg-focus);
}
.field input.is-error,
.field textarea.is-error { border-color: rgba(228, 138, 168, 0.7); }
.form__foot {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.form__note { font-size: 11.5px; color: var(--text-3); line-height: 1.6; max-width: 30em; }

/* ---------- 页脚 ---------- */
.footer {
  position: relative;
  z-index: 1;
  padding: 0 max(24px, calc((100vw - var(--maxw)) / 2)) 34px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.footer__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 0 30px;
  flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { width: 26px; height: auto; }
.footer__brand strong { display: block; font-size: 14px; font-weight: 500; }
.footer__brand span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.2em; color: var(--text-3); }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a { font-size: 13px; color: var(--text-2); transition: color 0.2s; }
.footer__links a:hover { color: var(--accent-soft); }
.footer__bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--text-3);
  flex-wrap: wrap;
}

/* 版本号：不抢视觉，仅作发布标识 */
.footer__ver em {
  font-family: var(--font-mono);
  font-style: normal;
  letter-spacing: 0.04em;
  color: var(--text-3);
  opacity: 0.9;
}

/* 备案信息：公安备案（带标识）与 ICP 备案 */
.footer__legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-3);
  flex-wrap: wrap;
}
.footer__legal a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  transition: color 0.2s;
}
.footer__legal a:hover { color: var(--accent-soft); }
.footer__legal img {
  display: block;
  width: 15px;
  height: 16px;
  object-fit: contain;
}

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.modal.is-open { display: block; }
.modal__scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  backdrop-filter: blur(8px);
  animation: fade 0.25s ease;
}
.modal__panel {
  position: relative;
  width: min(1000px, calc(100vw - 40px));
  max-height: calc(100vh - 64px);
  margin: 32px auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--modal-grad);
  box-shadow: var(--modal-shadow);
  overflow: auto;
  animation: rise 0.32s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.99); } }
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s;
}
.modal__close:hover { border-color: var(--line-strong); color: var(--accent-soft); }
.modal__body { padding: 34px 34px 30px; }

/* 产品详情 */
.detail__head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 24px; padding-right: 44px; }
.detail__icon {
  width: 56px; height: 56px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 15px;
  color: var(--icon, var(--accent));
  background: color-mix(in srgb, var(--icon, #4FA3E3) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--icon, #4FA3E3) 32%, transparent);
}
.detail__logo { width: 56px; height: 56px; border-radius: 15px; padding: 7px; }
.detail__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 6px; }
.detail__head h2 { font-size: 24px; line-height: 1.35; margin-bottom: 6px; }
.detail__tagline { font-size: 13.5px; color: var(--text-2); }

.detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; }
.detail__summary { font-size: 14px; color: var(--text-2); line-height: 1.9; margin-bottom: 26px; }
.detail__block { margin-bottom: 26px; }
.detail__block h4 {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.feat-list { display: flex; flex-direction: column; gap: 10px; }
.feat-list li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
}
.feat-list li::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 50%;
  border: 1px solid rgba(79, 163, 227, 0.5);
  background: radial-gradient(circle, rgba(79, 163, 227, 0.9) 32%, transparent 34%);
}
.spec-list { display: flex; flex-direction: column; }
.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.spec-list dt { color: var(--text-3); flex-shrink: 0; }
.spec-list dd { color: var(--text); text-align: right; }

/* 详情介绍（软件类产品） */
.rich { display: flex; flex-direction: column; gap: 14px; }
.rich__p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}
.rich__h {
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
  margin-top: 2px;
  padding-left: 10px;
  border-left: 2px solid var(--accent);
  line-height: 1.5;
}
.rich__fig { margin: 0; }
.rich__fig img,
.rich__fig video {
  width: 100%;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.rich__fig img { background: var(--tint-3); max-height: 460px; object-fit: contain; }
.rich__fig--video video { background: #000; max-height: 460px; }
.rich__fig figcaption {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 7px;
  text-align: center;
  line-height: 1.6;
}

.buybox {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  background: var(--panel-bg);
  position: sticky;
  top: 0;
}
.buybox h4 { font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
.buybox__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.buybox__head h4 { margin-bottom: 0; }
.buybox__tip { font-size: 11px; color: var(--text-3); }
.plans { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.plan {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border-radius: 11px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.plan:hover { border-color: var(--line-strong); }
.plan:focus-visible { outline: 2px solid rgba(79, 163, 227, 0.6); outline-offset: 2px; }
.plan.is-active {
  border-color: rgba(79, 163, 227, 0.65);
  background: rgba(79, 163, 227, 0.1);
  box-shadow: inset 0 0 0 1px rgba(79, 163, 227, 0.2);
}
.plan.is-locked { cursor: default; }
.plan.is-locked:hover { border-color: rgba(79, 163, 227, 0.65); }
.plan__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.plan__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text);
}
.plan__check {
  flex: none;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: transparent;
  background: var(--input-bg);
  transition: all 0.18s;
  transform: translateY(1px);
}
.plan.is-active .plan__check {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}
.plan__req {
  flex: none;
  font-size: 10px;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  color: var(--accent-soft);
  background: rgba(79, 163, 227, 0.12);
  border: 1px solid rgba(79, 163, 227, 0.35);
}
.plan__price { font-family: var(--font-mono); font-size: 14px; color: var(--heading); }
.plan__price i { font-style: normal; font-size: 11px; color: var(--text-3); }
.plan__desc { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 5px; line-height: 1.5; }
.plan__items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.plan__items span {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--tint-3);
  color: var(--text-2);
}
.buybox__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 0 16px;
  border-top: 1px solid var(--line);
  margin-bottom: 14px;
}
.buybox__total span { font-size: 12.5px; color: var(--text-3); }
.buybox__count { font-style: normal; }
.buybox__total strong {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  color: var(--heading);
}
.buybox .btn { width: 100%; }
.buybox__hint { font-size: 11px; color: var(--text-3); margin-top: 12px; line-height: 1.6; text-align: center; }

/* 下单表单 */
.checkout h3 { font-size: 20px; margin-bottom: 6px; }
.checkout__sub { font-size: 13px; color: var(--text-2); margin-bottom: 22px; }
.order-brief {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(79, 163, 227, 0.07);
  border: 1px solid rgba(79, 163, 227, 0.2);
  margin-bottom: 24px;
}
.order-brief b { font-size: 14px; font-weight: 500; display: block; }
.order-brief small { font-size: 12px; color: var(--text-2); }
.order-brief strong { font-family: var(--font-mono); font-size: 19px; color: var(--heading); white-space: nowrap; }
.order-brief--list { align-items: flex-start; }
.order-brief__plans { list-style: none; margin: 9px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.order-brief__plans li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--text-2);
}
.order-brief__plans li span:last-child { font-family: var(--font-mono); color: var(--text-3); white-space: nowrap; }
.checkout__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkout__foot { margin-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.checkout__foot .btn { min-width: 180px; }

/* 支付结果 */
.result { text-align: center; padding: 14px 0 6px; }
.result__icon {
  width: 66px; height: 66px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(111, 195, 168, 0.22), transparent 70%);
  border: 1px solid rgba(111, 195, 168, 0.4);
  color: var(--teal);
}
.result h3 { font-size: 21px; margin-bottom: 8px; }
.result__desc { font-size: 13.5px; color: var(--text-2); }
.result__no {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-2);
  margin: 16px 0;
  letter-spacing: 0.06em;
  padding: 9px 14px;
  border-radius: 8px;
  background: rgba(122, 172, 226, 0.07);
  display: inline-block;
  border: 1px solid var(--line);
}
.result__amount {
  font-family: var(--font-mono);
  font-size: 34px;
  color: var(--heading);
  margin: 6px 0 22px;
  letter-spacing: -0.02em;
}
.result__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.result__hint { font-size: 11.5px; color: var(--text-3); margin-top: 16px; line-height: 1.7; }

/* ---------- Toast ---------- */
.toasts {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--toast-bg);
  backdrop-filter: blur(12px);
  font-size: 13.5px;
  color: var(--text);
  box-shadow: var(--toast-shadow);
  animation: toastIn 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
  max-width: 340px;
}
.toast::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}
.toast--ok::before { background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.toast--err::before { background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.toast.is-out { animation: toastOut 0.25s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* ---------- 滚动出现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 24px; min-height: 0; }
  .hero__visual { min-height: 380px; order: -1; }
  .hero__mascot { width: 200px; }
  .orbit--1 { width: 250px; height: 250px; }
  .orbit--2 { width: 330px; height: 330px; }
  .orbit--3 { width: 400px; height: 400px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow__item:nth-child(2) { border-right: 0; }
  .flow__item:nth-child(1), .flow__item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .about { grid-template-columns: 1fr; gap: 34px; }
  .contact { grid-template-columns: 1fr; gap: 36px; padding: 36px 28px; }
  .detail__grid { grid-template-columns: 1fr; gap: 24px; }
  .buybox { position: static; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .pcenter { padding-top: calc(var(--nav-h) + 46px); padding-bottom: 88px; }
  .pcenter__layout { grid-template-columns: 208px minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 820px) {
  :root { --nav-h: 64px; }
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 18px;
    background: var(--nav-bg-solid);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__actions { display: none; }
  .theme-switch { margin-left: auto; }
  .nav__toggle { display: flex; margin-left: 10px; }

  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero__title { font-size: clamp(1.85rem, 7.4vw, 2.5rem); }
  .stats { gap: 26px; }
  .stats__item dd { font-size: 24px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .pgrid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow__item, .flow__item + .flow__item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px 0;
  }
  .flow__item p { min-height: 0; }
  .flow__item:last-child { border-bottom: 0; }
  .contact__form, .checkout__grid { grid-template-columns: 1fr; }
  .modal { padding: 0; }
  .modal__panel { width: 100%; max-height: 100vh; margin: 0; border-radius: 0; border: 0; }
  .modal__body { padding: 26px 20px 30px; }
  .detail__head h2 { font-size: 20px; }
  .br-m { display: inline; }
  .marquee { margin-top: 16px; }
  .chip { font-size: 11px; padding: 5px 10px; }
  .chip--tr { right: -2%; }
  .chip--bl { left: -2%; }

  /* 产品中心：分类栏收成顶部横向标签 */
  .pcenter { padding-top: calc(var(--nav-h) + 34px); padding-bottom: 72px; }
  .pcenter__head { margin-bottom: 28px; }
  .pcenter__layout { grid-template-columns: 1fr; gap: 22px; }
  .pcenter__side { position: static; padding: 14px; }
  .pcenter__sideTitle { padding: 0 4px 10px; }
  .catlist { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .catlist__item {
    width: auto;
    padding: 7px 13px;
    border-color: var(--line);
    border-radius: 100px;
    font-size: 13px;
  }
  .catlist__subs {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin: 4px 0 0;
    padding: 0;
    border-left: 0;
  }
  .catlist__sub {
    width: auto;
    padding: 5px 11px;
    border-color: var(--line);
    border-radius: 100px;
    font-size: 12px;
  }
  .pcenter__sideFoot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 4px 0;
  }
  .pcenter__sideFoot p { margin-bottom: 0; }
  .pcenter__sideFoot .btn { width: auto; }
}

@media (max-width: 520px) {
  .brand__text em { display: none; }
  .hero__cta .btn { flex: 1; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics__item { padding: 24px 14px; }
  .toasts { right: 12px; left: 12px; bottom: 12px; }
  .toast { max-width: none; }
  .footer__main { flex-direction: column; align-items: flex-start; }
  .pcenter__title { font-size: clamp(1.55rem, 7.8vw, 2rem); }
  .pcenter__bar { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ 浅色主题（默认） ============ */
:root[data-theme="light"] {
  color-scheme: light;

  --bg: #f6f8fc;
  --bg-soft: #ecf2f9;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --line: rgba(22, 58, 96, 0.11);
  --line-strong: rgba(22, 58, 96, 0.24);

  --navy: #13395e;
  --accent: #2e86c8;
  --accent-soft: #1b6db0;
  --accent-deep: #1a5c93;
  --teal: #2b8c6f;
  --gold: #a5761c;
  --pink: #c05c7c;

  --text: #10243c;
  --text-2: #4a6178;
  --text-3: #5f7489;

  --shadow: 0 22px 50px -32px rgba(16, 42, 67, 0.3);
  --glow: 0 0 0 1px rgba(46, 134, 200, 0.18), 0 20px 50px -30px rgba(46, 134, 200, 0.35);

  --heading: #0b2038;
  --grad-text: linear-gradient(100deg, #124c80 0%, #1e7bc0 48%, #2e86c8 100%);
  --selection-bg: rgba(46, 134, 200, 0.2);

  --grid-line: rgba(22, 58, 96, 0.055);
  --glow-a: rgba(126, 184, 232, 0.55);
  --glow-b: rgba(176, 208, 236, 0.5);
  --glow-op: 0.7;
  --halo: radial-gradient(circle, rgba(79, 163, 227, 0.22), transparent 68%);
  --mascot-shadow: drop-shadow(0 26px 40px rgba(23, 62, 100, 0.16)) drop-shadow(0 0 40px rgba(79, 163, 227, 0.12));
  --logo-shadow: drop-shadow(0 14px 22px rgba(23, 62, 100, 0.16));
  --orbit-1: rgba(22, 58, 96, 0.16);
  --orbit-2: rgba(22, 58, 96, 0.1);
  --orbit-3: rgba(22, 58, 96, 0.06);

  --card-grad: linear-gradient(180deg, #ffffff, #fbfdff);
  --card-grad-soft: linear-gradient(180deg, #ffffff, #f9fbff);
  --card-grad-strong: linear-gradient(180deg, #ffffff, #f7faff);
  --metrics-grad: linear-gradient(180deg, #ffffff, #f9fbff);
  --modal-grad: linear-gradient(180deg, #ffffff, #f7fafe);
  --modal-shadow: 0 40px 100px -44px rgba(16, 42, 67, 0.45);
  --contact-glow: rgba(79, 163, 227, 0.1);
  --skeleton-grad: linear-gradient(100deg, rgba(22, 58, 96, 0.04) 30%, rgba(22, 58, 96, 0.08) 50%, rgba(22, 58, 96, 0.04) 70%);

  --nav-bg: rgba(255, 255, 255, 0.82);
  --nav-bg-solid: rgba(255, 255, 255, 0.98);
  --chip-bg: rgba(255, 255, 255, 0.94);
  --panel-bg: #ffffff;
  --toast-bg: rgba(255, 255, 255, 0.98);
  --toast-shadow: 0 18px 44px -26px rgba(16, 42, 67, 0.4);
  --input-bg: #ffffff;
  --input-bg-focus: #ffffff;
  --placeholder: rgba(95, 116, 137, 0.85);
  --scrim: rgba(15, 32, 52, 0.42);
  --table-head-bg: rgba(22, 58, 96, 0.035);
  --row-line: rgba(22, 58, 96, 0.07);
  --row-hover: rgba(46, 134, 200, 0.05);

  --switch-bg: rgba(22, 58, 96, 0.06);
  --switch-active: #ffffff;
  --switch-shadow: 0 2px 6px rgba(22, 58, 96, 0.14);

  --tint: rgba(22, 58, 96, 0.035);
  --tint-2: rgba(22, 58, 96, 0.05);
  --tint-3: rgba(22, 58, 96, 0.07);
  --tint-accent: rgba(46, 134, 200, 0.12);
  --marquee-text: rgba(74, 97, 120, 0.75);
  --marquee-sep: rgba(22, 58, 96, 0.24);

  --badge-color: #8a6112;
  --badge-bg: rgba(217, 169, 78, 0.16);
  --badge-line: rgba(196, 149, 55, 0.34);

  --btn-grad: linear-gradient(180deg, #4fa3e3, #2c7bb8);
  --btn-text: #ffffff;

  --particle-rgb: 46, 134, 200;
  --particle-dot-rgb: 27, 109, 176;
  --particle-opacity: 0.75;
}

/* 浅色下的细节修正：阴影与透明色需要更收敛 */
:root[data-theme="light"] .btn--primary {
  box-shadow: 0 12px 26px -14px rgba(44, 123, 184, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
:root[data-theme="light"] .btn--primary:hover {
  box-shadow: 0 16px 34px -16px rgba(44, 123, 184, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}
:root[data-theme="light"] .pcard:hover {
  box-shadow: 0 24px 54px -34px rgba(24, 74, 118, 0.42);
}
:root[data-theme="light"] .chip {
  box-shadow: 0 10px 24px -18px rgba(24, 74, 118, 0.45);
}
:root[data-theme="light"] .pcard__icon,
:root[data-theme="light"] .detail__icon {
  color: color-mix(in srgb, var(--icon, #4fa3e3) 62%, #0b2038);
  background: color-mix(in srgb, var(--icon, #4fa3e3) 13%, #fff);
  border-color: color-mix(in srgb, var(--icon, #4fa3e3) 35%, transparent);
}
:root[data-theme="light"] .pcard {
  box-shadow: 0 16px 36px -32px rgba(16, 42, 67, 0.32);
}
:root[data-theme="light"] .about__card,
:root[data-theme="light"] .contact,
:root[data-theme="light"] .metrics {
  box-shadow: 0 24px 60px -46px rgba(16, 42, 67, 0.4);
}
:root[data-theme="light"] .field input,
:root[data-theme="light"] .field textarea {
  border-color: rgba(22, 58, 96, 0.16);
}
:root[data-theme="light"] .field input:focus,
:root[data-theme="light"] .field textarea:focus {
  border-color: rgba(46, 134, 200, 0.55);
  box-shadow: 0 0 0 3px rgba(46, 134, 200, 0.12);
}
:root[data-theme="light"] .modal__panel { border-color: rgba(22, 58, 96, 0.14); }
:root[data-theme="light"] .toast::before { box-shadow: none; }
:root[data-theme="light"] .plan.is-active { box-shadow: inset 0 0 0 1px rgba(46, 134, 200, 0.16); }
:root[data-theme="light"] .result__icon { background: radial-gradient(circle, rgba(43, 140, 111, 0.16), transparent 70%); }

