/* =============================================================================
 * 合田 · 视觉系统  style.css
 * 双形象主题：html[data-mode="ai"]（AI 合田 / 科技）  |  html[data-mode="love"]（爱 合田 / 温情）
 * 纯手写，零外部依赖，可离线部署
 * ========================================================================== */

/* ---------------------------------------------------------------- 1. Tokens */
:root {
  --bg: #04060d;
  --bg-soft: #080d18;
  --bg-elev: #0c1322;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e9f0fa;
  --text-dim: #a9b8cd;
  --muted: #6f8098;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB",
    "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, "Courier New", monospace;

  --nav-h: 72px;
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --accent: #2ee6ff;
  --accent-2: #7c5cff;
  --accent-3: #00ffc6;
  --accent-rgb: 46, 230, 255;
  --accent2-rgb: 124, 92, 255;
  --glow-alpha: 0.5;
  --grid-alpha: 0.05;
}

html[data-mode="love"] {
  --accent: #ff5f6d;
  --accent-2: #ffb347;
  --accent-3: #ff2e63;
  --accent-rgb: 255, 95, 109;
  --accent2-rgb: 255, 179, 71;
  --glow-alpha: 0.42;
  --grid-alpha: 0.035;
}

/* ---------------------------------------------------------------- 2. Reset */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.6s var(--ease);
  overflow-wrap: break-word;
  word-break: break-word;
}

/* 防止 grid / flex 子项被内容顶破容器（移动端横向溢出的常见根因） */
.wrap > *,
.grid > *,
.hero-inner > *,
.contact-grid > *,
.footer-top > *,
.form-row > *,
.duality > * { min-width: 0; }

body.is-locked { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: rgba(var(--accent-rgb), 0.28); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #05080f; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent), var(--accent-2));
  border-radius: 99px;
  border: 3px solid #05080f;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ------------------------------------------------------------ 3. Backdrops */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, var(--grid-alpha)) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, var(--grid-alpha)) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 78%);
  transition: background-image 0.6s var(--ease);
}

.bg-aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-aura i {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: calc(var(--glow-alpha) * 0.55);
  transition: background 0.7s var(--ease);
}
.bg-aura i:nth-child(1) {
  width: 46vw; height: 46vw; left: -12vw; top: -14vw;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.75), transparent 68%);
  animation: floatA 22s var(--ease-io) infinite alternate;
}
.bg-aura i:nth-child(2) {
  width: 40vw; height: 40vw; right: -10vw; top: 12vh;
  background: radial-gradient(circle, rgba(var(--accent2-rgb), 0.7), transparent 68%);
  animation: floatB 26s var(--ease-io) infinite alternate;
}
.bg-aura i:nth-child(3) {
  width: 52vw; height: 52vw; left: 26vw; bottom: -26vw;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.42), transparent 70%);
  animation: floatA 30s var(--ease-io) infinite alternate-reverse;
}
@keyframes floatA { to { transform: translate3d(6vw, 8vh, 0) scale(1.12); } }
@keyframes floatB { to { transform: translate3d(-7vw, -6vh, 0) scale(1.08); } }

.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 1%); }
}

/* ------------------------------------------------------------- 4. Cursor */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.9);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s, width 0.25s var(--ease), height 0.25s var(--ease),
    background 0.25s, border-color 0.25s;
}
body.cursor-on .cursor-dot,
body.cursor-on .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring {
  width: 62px; height: 62px;
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.8);
}
body.cursor-down .cursor-ring { width: 24px; height: 24px; }

.glow-follow {
  position: fixed;
  width: 620px; height: 620px;
  left: 0; top: 0;
  margin: -310px 0 0 -310px;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.11), transparent 62%);
  opacity: 0;
  transition: opacity 0.5s;
}
body.cursor-on .glow-follow { opacity: 1; }

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring, .glow-follow { display: none !important; }
}

/* --------------------------------------------------------- 5. Preloader */
/* 渐进增强：无 JS 时【完全不出现】。
   否则 site.js 没加载 / 被拦截时，这层遮罩会永久盖住整页内容，
   爬虫与安全扫描只会看到一个黑屏——这正是被判定为"空壳营销页"的典型特征。 */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
html.js .preloader {
  display: grid;
  /* 纯 CSS 兜底：即使 site.js 加载失败，1.6 秒后也会自动放行 */
  animation: preloaderAutoHide 0.4s var(--ease) 1.6s forwards;
}
html.js .preloader.done {
  opacity: 0;
  visibility: hidden;
  animation: none;
}
@keyframes preloaderAutoHide { to { opacity: 0; visibility: hidden; } }
.preloader-inner { display: grid; justify-items: center; gap: 22px; }
.pl-mark {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.22em;
  background: linear-gradient(100deg, var(--accent), var(--accent-2), var(--accent-3));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 2.4s linear infinite;
}
@keyframes shine { to { background-position: 220% 0; } }
.pl-bar {
  width: min(240px, 56vw);
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.pl-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.8);
  transition: width 0.35s var(--ease);
}
.pl-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ----------------------------------------------------- 6. Page transition */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  background: linear-gradient(140deg, var(--bg), var(--bg-elev));
  clip-path: inset(0 0 100% 0);
}
.page-transition.run {
  pointer-events: all;
  animation: wipeIn 0.55s var(--ease) forwards;
}
@keyframes wipeIn {
  0% { clip-path: inset(100% 0 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

/* ------------------------------------------------------------- 7. Layout */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

main { position: relative; z-index: 2; }

.section {
  position: relative;
  padding: clamp(72px, 10vw, 130px) 0;
}
.section--tight { padding: clamp(52px, 7vw, 88px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.section-title {
  font-size: clamp(28px, 4.6vw, 50px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub {
  margin-top: 18px;
  max-width: 60ch;
  color: var(--text-dim);
  font-size: clamp(14px, 1.6vw, 17px);
}
.section-head { margin-bottom: clamp(38px, 5vw, 62px); }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .section-sub { margin-inline: auto; }

/* -------------------------------------------------------------- 8. Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(5, 8, 15, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 17px;
  color: #04060d;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 8px 28px rgba(var(--accent-rgb), 0.35);
  transition: background 0.6s var(--ease);
}
.brand-text { display: grid; line-height: 1.25; }
.brand-text b { font-size: 16px; letter-spacing: 0.08em; font-weight: 700; }
.brand-text span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.26em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  position: relative;
  padding: 9px 16px;
  font-size: 14px;
  color: var(--text-dim);
  border-radius: 99px;
  transition: color 0.3s, background 0.3s;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 3px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: translateX(-50%);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--panel); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 20px; }

.nav-tools { display: flex; align-items: center; gap: 10px; flex: none; }

/* 主题切换开关 */
.mode-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  overflow: hidden;
}
.mode-switch button {
  position: relative;
  z-index: 2;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-radius: 99px;
  transition: color 0.35s var(--ease);
  white-space: nowrap;
}
.mode-switch button.on { color: #04060d; }
.mode-switch .knob {
  position: absolute;
  z-index: 1;
  top: 4px; left: 4px;
  height: calc(100% - 8px);
  border-radius: 99px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.45);
  transition: transform 0.42s var(--ease), width 0.42s var(--ease), background 0.6s var(--ease);
}

.nav-burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  place-items: center;
}
.nav-burger span {
  display: block;
  width: 17px; height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.nav-burger span + span { margin-top: 4px; }
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* 滚动进度 */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  z-index: 510;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.8);
}

/* 移动端抽屉 */
.drawer {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 480;
  background: rgba(4, 6, 13, 0.96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  padding: 28px 24px 40px;
  display: none;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  overflow-y: auto;
}
body.menu-open .drawer { opacity: 1; transform: none; }
.drawer a {
  padding: 16px 6px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
}
.drawer a.active { color: var(--accent); }
.drawer a i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.2em;
}
.drawer-foot {
  margin-top: auto;
  padding-top: 26px;
  display: grid;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}
.drawer-foot b { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------ 9. Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  min-height: 48px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s, color 0.3s;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--primary {
  color: #04060d;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 34px rgba(var(--accent-rgb), 0.3);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, var(--accent-3), var(--accent));
  opacity: 0;
  transition: opacity 0.4s;
}
.btn--primary:hover::before { opacity: 1; }
.btn--ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: rgba(var(--accent-rgb), 0.6);
  color: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.08);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; min-height: 40px; font-size: 13.5px; }

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 0.65s var(--ease) forwards;
  pointer-events: none;
}
@keyframes ripple { to { transform: translate(-50%, -50%) scale(14); opacity: 0; } }

/* ------------------------------------------------------------- 10. Cards */
.card {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
  transform-style: preserve-3d;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.45s;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(var(--accent-rgb), 0.16),
    transparent 62%
  );
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover {
  border-color: rgba(var(--accent-rgb), 0.42);
  box-shadow: 0 24px 60px -30px rgba(var(--accent-rgb), 0.6);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  box-shadow: inset 0 0 22px rgba(var(--accent-rgb), 0.12);
}
.card-icon svg { width: 25px; height: 25px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; letter-spacing: 0.01em; }
.card p { color: var(--text-dim); font-size: 14.5px; line-height: 1.75; }
.card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.card-tags span {
  font-size: 11.5px;
  padding: 4px 11px;
  border-radius: 99px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.card-index {
  position: absolute;
  top: 22px; right: 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* -------------------------------------------------------------- 11. Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 60px;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(34px, 5vw, 56px); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  font-size: 12.5px;
  color: var(--text-dim);
  backdrop-filter: blur(10px);
  width: fit-content;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

.hero-title {
  font-size: clamp(38px, 8.4vw, 96px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.025em;
  margin: 4px 0 0;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: riseIn 1s var(--ease) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes riseIn { to { transform: none; } }

.grad-text {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 52%, var(--accent-3) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.5vw, 13px);
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-lead {
  max-width: 62ch;
  color: var(--text-dim);
  font-size: clamp(15px, 1.85vw, 18.5px);
  line-height: 1.85;
  min-height: 3.6em;
}
.hero-lead .caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  vertical-align: -0.16em;
  background: var(--accent);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 12.5px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}
.hero-meta b { color: var(--accent); font-weight: 600; }

.hero-scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero-scroll i {
  width: 1px; height: 42px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollHint 2s var(--ease-io) infinite;
}
@keyframes scrollHint {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* 双形象切换大字 */
.duality {
  display: flex;
  align-items: stretch;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.duality-item {
  flex: 1 1 240px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.4s, background 0.4s, transform 0.4s var(--ease);
}
.duality-item.on {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.07);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.16), 0 20px 50px -32px rgba(var(--accent-rgb), 0.9);
}
.duality-item h4 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.duality-item p { font-size: 13.5px; color: var(--text-dim); line-height: 1.7; }

/* ------------------------------------------------------------- 12. Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--line);
}
.stat {
  padding: 30px 26px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  position: relative;
  transition: background 0.45s;
}
.stat:hover { background: rgba(var(--accent-rgb), 0.07); }
.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-num small { font-size: 0.44em; margin-left: 3px; letter-spacing: 0; }
.stat-label { margin-top: 12px; font-size: 14.5px; font-weight: 600; }
.stat-sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------ 13. Marquee */
.marquee {
  position: relative;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  font-size: clamp(15px, 2.4vw, 24px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.22);
  white-space: nowrap;
  transition: color 0.4s;
}
.marquee-track span::after {
  content: "◆";
  font-size: 0.5em;
  color: var(--accent);
  opacity: 0.7;
}
.marquee-track span:hover { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* -------------------------------------------------------- 14. Grids / svc */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ------------------------------------------------- 15. 服务流程 / 标签 */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 9px 16px;
  font-size: 13.5px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-dim);
  transition: all 0.3s var(--ease);
}
.chip:hover { border-color: rgba(var(--accent-rgb), 0.5); color: var(--text); }
.chip.on {
  color: #04060d;
  font-weight: 600;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-color: transparent;
  box-shadow: 0 8px 24px -10px rgba(var(--accent-rgb), 0.9);
}

/* 四步服务流程 */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 20px;
}
.process-item {
  position: relative;
  padding: 30px 26px 28px;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.process-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
  opacity: 0.55;
  transition: opacity 0.4s;
}
.process-item:hover {
  border-color: rgba(var(--accent-rgb), 0.42);
  transform: translateY(-4px);
  box-shadow: 0 26px 60px -36px rgba(var(--accent-rgb), 0.9);
}
.process-item:hover::before { opacity: 1; }
.process-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.process-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.process-item p { color: var(--text-dim); font-size: 14.5px; line-height: 1.78; }

/* 经营范围说明条 */
.scope-note {
  margin-top: 26px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
  font-size: 13.2px;
  line-height: 1.85;
  color: var(--text-dim);
}
.scope-note b { color: var(--accent); font-weight: 600; }
.gen-modules { display: grid; gap: 9px; }
.gen-modules li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14.5px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.026);
  opacity: 0;
  transform: translateY(10px);
  animation: popIn 0.5s var(--ease) forwards;
}
.gen-modules li i {
  width: 22px; height: 22px;
  flex: none;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  color: #04060d;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
@keyframes popIn { to { opacity: 1; transform: none; } }


/* --------------------------------------------------------- 16. Timeline */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
}
.timeline-progress {
  position: absolute;
  left: 11px; top: 8px;
  width: 2px;
  height: 0;
  border-radius: 2px;
  background: linear-gradient(var(--accent), var(--accent-2));
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.8);
  transition: height 0.2s linear;
}
.tl-item { position: relative; padding: 0 0 42px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -34px; top: 7px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-strong);
  transition: all 0.5s var(--ease);
}
.tl-item.in::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.16), 0 0 18px rgba(var(--accent-rgb), 0.9);
}
.tl-period {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 8px;
}
.tl-item h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.tl-item p { color: var(--text-dim); font-size: 14.8px; max-width: 62ch; }

/* --------------------------------------------------------- 17. Metrics */
.metric-row { display: grid; gap: 22px; }
.metric-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.metric-top span { font-size: 15px; color: var(--text-dim); }
.metric-top b {
  font-family: var(--font-mono);
  font-size: 19px;
  color: var(--accent);
}
.metric-bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.metric-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.7);
  transition: width 1.3s var(--ease);
}

/* ------------------------------------------------------------ 18. Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table tr {
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.data-table tr:last-child { border-bottom: 0; }
.data-table tr:hover { background: rgba(var(--accent-rgb), 0.055); }
.data-table th {
  text-align: left;
  width: 200px;
  padding: 17px 20px;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.025);
  vertical-align: top;
  white-space: nowrap;
}
.data-table td { padding: 17px 20px; color: var(--text); }
.data-table td .flag {
  display: inline-block;
  margin-left: 10px;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 99px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: #ffd166;
  border: 1px solid rgba(255, 209, 102, 0.34);
  background: rgba(255, 209, 102, 0.09);
  vertical-align: 1px;
}

/* ------------------------------------------------------------ 19. Notice */
.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 209, 102, 0.3);
  background: rgba(255, 209, 102, 0.07);
  color: #ffe6b0;
  font-size: 13.8px;
  line-height: 1.7;
  margin-bottom: 30px;
}
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.notice b { color: #ffd166; }
body.no-draft .notice { display: none; }
.flag-inline { display: none; }
body.no-draft .flag-inline { display: none; }

/* ----------------------------------------------------------- 20. Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  gap: 24px;
  align-items: start;
}
.info-card {
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  padding: 30px 28px;
}
.info-row {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
  align-items: flex-start;
}
.info-row:last-child { border-bottom: 0; }
.info-row .ic {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.09);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
}
.info-row .ic svg { width: 19px; height: 19px; }
.info-row .lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.info-row .val { font-size: 15.5px; font-weight: 600; word-break: break-word; }
.info-row .sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.copy-btn {
  margin-left: auto;
  align-self: center;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  transition: all 0.3s;
  white-space: nowrap;
}
.copy-btn:hover { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.55); }
.copy-btn.ok { color: #04120c; background: var(--accent-3); border-color: transparent; }

.form {
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  padding: clamp(24px, 3.6vw, 34px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input, .textarea, .select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  font-size: 14.5px;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  appearance: none;
}
.textarea { min-height: 128px; resize: vertical; line-height: 1.7; }
.input::placeholder, .textarea::placeholder { color: #55637a; }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.75);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.11);
  background: rgba(0, 0, 0, 0.4);
}
.input.err, .textarea.err { border-color: #ff6b6b; box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.12); }
.form-field { margin-bottom: 16px; }
.form-field > label {
  display: block;
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.form-field > label i { color: var(--accent); font-style: normal; margin-left: 3px; }
.err-msg { display: block; font-size: 12px; color: #ff8f8f; margin-top: 6px; min-height: 15px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; line-height: 1.7; }

.form-ok {
  display: none;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.08);
  text-align: center;
}
.form-ok.show { display: block; animation: popIn 0.5s var(--ease); }
.form-ok .ok-ic {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #04060d;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0.12);
}
.form-ok h4 { font-size: 20px; margin-bottom: 8px; }
.form-ok p { color: var(--text-dim); font-size: 14.5px; }

.map-box {
  position: relative;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  overflow: hidden;
  background: #060a13;
  min-height: 300px;
}
.map-box canvas { width: 100%; height: 320px; }
.map-overlay {
  position: absolute;
  left: 22px; bottom: 22px;
  right: 22px;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(4, 6, 13, 0.78);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.map-overlay .mo-t { flex: 1 1 200px; }
.map-overlay b { display: block; font-size: 15px; margin-bottom: 3px; }
.map-overlay span { font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------------- 21. CTA */
.cta-band {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(90% 130% at 12% 0%, rgba(var(--accent-rgb), 0.2), transparent 58%),
    radial-gradient(80% 120% at 92% 100%, rgba(var(--accent2-rgb), 0.2), transparent 58%),
    rgba(255, 255, 255, 0.028);
  padding: clamp(34px, 6vw, 64px);
  text-align: center;
  overflow: hidden;
}
.cta-band h2 {
  font-size: clamp(25px, 4.2vw, 42px);
  font-weight: 800;
  line-height: 1.24;
  margin-bottom: 16px;
}
.cta-band p { color: var(--text-dim); max-width: 56ch; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------------ 22. Footer */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 60px 0 34px;
  margin-top: 40px;
  background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), 0.04));
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand p { color: var(--text-dim); font-size: 14px; margin-top: 16px; max-width: 44ch; }
.footer h5 {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul a, .footer ul span { color: var(--text-dim); font-size: 14px; transition: color 0.3s; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
}
.footer-bottom a:hover { color: var(--accent); }

/* --------------------------------------------- 23. 备案信息栏（页脚最下方） */
/* 工信部 ICP 备案号 + 公安联网备案号。
   按要求放在页面最下方最显眼的位置：全宽独立横条、居中、字号大于版权行。 */
.record-bar {
  margin-top: 24px;
  padding: 20px 18px;
  border-top: 1px solid var(--line-strong);
  border-radius: 0 0 var(--radius-l) var(--radius-l);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.07), rgba(255, 255, 255, 0.015));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 38px;
  text-align: center;
}
.record-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 2px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  transition: color 0.3s;
}
.record-item:hover { color: var(--accent); }
.record-item .record-ic {
  width: 18px;
  height: 18px;
  flex: none;
  opacity: 0.95;
}
/* ICP 号：比其它信息更醒目 */
.record-item[data-icp-link] {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}
.record-item[data-icp-link]:hover { color: var(--accent); }
/* 公安备案号占位（未拿到号时） */
.record-item.is-pending {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  padding: 4px 15px;
  border: 1px dashed var(--line-strong);
  border-radius: 99px;
  pointer-events: none;
  cursor: default;
}

/* -------------------------------------------------------- 24. Page hero */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(56px, 9vw, 108px)) 0 clamp(40px, 6vw, 72px);
}
.page-hero h1 {
  font-size: clamp(32px, 6.4vw, 68px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.page-hero .lead { color: var(--text-dim); max-width: 62ch; font-size: clamp(15px, 1.8vw, 18px); }
.breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 22px;
  text-transform: uppercase;
}
.breadcrumb a:hover { color: var(--accent); }

/* --------------------------------------------------------- 25. Reveal */
/* 渐进增强：默认【可见】。只有 JS 可用时才先隐藏、再由 IntersectionObserver 显现。
   反过来写（默认隐藏）会导致无 JS 时整页内容不可见。 */
[data-reveal] {
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  will-change: opacity, transform;
}
html.js [data-reveal="left"] { transform: translateX(-30px); }
html.js [data-reveal="right"] { transform: translateX(30px); }
html.js [data-reveal="scale"] { transform: scale(0.95); }
html.js [data-reveal].in { opacity: 1; transform: none; }

/* ----------------------------------------------------- 26. Misc / utils */
.divider { height: 1px; background: var(--line); margin: 0; border: 0; }
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 28px; }
.mt-l { margin-top: 48px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--font-mono); letter-spacing: 0.06em; }

.to-top {
  position: fixed;
  right: 22px; bottom: 26px;
  z-index: 600;
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  background: rgba(7, 11, 20, 0.8);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.4s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.6); }
.to-top svg { width: 18px; height: 18px; }

/* 双形象文案显隐 */
.only-love { display: none !important; }
html[data-mode="love"] .only-ai { display: none !important; }
html[data-mode="love"] .only-love { display: revert !important; }
html[data-mode="love"] .only-love.inline { display: inline !important; }
html[data-mode="love"] .only-love.flex { display: flex !important; }
html[data-mode="love"] .only-love.grid { display: grid !important; }
html[data-mode="love"] .only-love.block { display: block !important; }

/* ----------------------------------------------------- 27. Responsive */
@media (max-width: 1080px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .drawer { display: flex; }
  .nav-tools .mode-switch span.lbl { display: none; }
  .wrap { padding: 0 18px; }
  .nav-inner { padding: 0 18px; gap: 12px; }
  .brand-text span { display: none; }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .data-table { table-layout: fixed; }
  .data-table th { width: 104px; padding: 13px 12px; font-size: 12.5px; white-space: normal; }
  .data-table td { padding: 13px 12px; font-size: 13px; }
  .timeline { padding-left: 30px; }
  .timeline::before, .timeline-progress { left: 6px; }
  .tl-item::before { left: -29px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .to-top { right: 16px; bottom: 20px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .duality-item { flex: 1 1 100%; }
  .mode-switch button { padding: 6px 10px; font-size: 12px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 22px 18px; }
  .card { padding: 24px 20px; }
  .info-card, .form { padding: 22px 20px; }
  .process { grid-template-columns: minmax(0, 1fr); }
  .record-bar { flex-direction: column; gap: 12px; padding: 18px 14px; }
  .record-item { justify-content: center; font-size: 13.5px; }
}

@media (max-width: 380px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
}

/* 触摸设备：关掉悬浮位移，避免误触 */
@media (hover: none) {
  .card:hover { transform: none; }
  .btn:hover { transform: none; }
}

/* 降低动态效果偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-title .line > span { transform: none; }
  #bg-canvas, .grain, .bg-aura { display: none; }
}

/* 打印 */
@media print {
  #bg-canvas, .grain, .bg-aura, .nav, .to-top, .cursor-dot, .cursor-ring { display: none !important; }
  body { background: #fff; color: #000; }
}
