/* 字体分片改由 HTML <link> 并行预加载，避免 @import 阻塞渲染路径。
   fonts-sliced.css 内部各 @font-face 已声明 font-display:swap，不阻塞首屏。 */

/* ============================================
   牢尘lc星闪工作室 - 官网样式 v2
   现代简约 · 蓝色主题 · 流畅交互
   ============================================ */

/* ── CSS 变量 ── */
:root {
  /* 分片字体（fonts/sliced，由 font-slice 生成，按 unicode-range 按需加载，font-display:swap） */
  --font-sliced: "Sarasa Mono SC", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-mono: "Sarasa Mono SC", "JetBrains Mono", "Fira Code", "Cascadia Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 主色 —— 蓝（沉稳、信赖） */
  --primary: #2563eb;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;

  /* 辅助色 —— 青（活力、点睛），与主蓝形成同色系深浅呼应 */
  --accent: #06b6d4;
  --accent-50: #ecfeff;
  --accent-100: #cffafe;
  --accent-300: #67e8f9;
  --accent-500: #06b6d4;
  --accent-600: #0891b2;
  --accent-700: #0e7490;

  /* 语义色（状态反馈） */
  --success: #10b981;
  --success-50: #ecfdf5;
  --success-100: #d1fae5;
  --warning: #f59e0b;
  --warning-50: #fffbeb;
  --warning-100: #fef3c7;
  --danger: #ef4444;
  --danger-50: #fef2f2;
  --danger-100: #fee2e2;
  --info: var(--primary-600);
  --info-50: var(--primary-50);

  /* 中性色 */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* 语义变量 —— 文字层级收紧，提升可读性对比 */
  --bg: var(--gray-50);
  --bg-soft: var(--gray-100);
  --bg-soft-glass: rgba(241, 245, 249, 0.55);
  --bg-card: var(--white);
  --text: #1a2438;                 /* 主文字：深一档，比 gray-800 更清晰 */
  --text-secondary: #475569;       /* 次级文字：保持可读 */
  --text-muted: #64748b;           /* 弱化文字：略深，避免对比不足 */
  --border: var(--gray-200);
  --border-light: var(--gray-100);

  /* 渐变 —— 多停点，层次更丰富 */
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 45%, #06b6d4 100%);
  --gradient-primary-soft: linear-gradient(135deg, rgba(37,99,235,0.12) 0%, rgba(6,182,212,0.12) 100%);
  --gradient-hero: linear-gradient(135deg, #1e40af 0%, #2563eb 40%, #06b6d4 110%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #134e4a 100%);
  --gradient-soft: linear-gradient(180deg, var(--gray-50) 0%, var(--primary-50) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%);
  --gradient-text-shine: linear-gradient(110deg, var(--primary-600) 0%, var(--accent-500) 50%, var(--primary-600) 100%);

  /* 鼠标跟随光晕（淡、通透、低亮度，蓝青融合） */
  --mouse-glow-color: rgba(59, 130, 246, 0.16);

  /* 毛玻璃 */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-blur: blur(22px) saturate(180%);
  --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.1), 0 2px 8px rgba(15, 23, 42, 0.05);

  /* 阴影系统 */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.1), 0 4px 8px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 20px 50px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(15, 23, 42, 0.08);
  --shadow-primary: 0 8px 30px rgba(37, 99, 235, 0.25);
  --shadow-inner: inset 0 2px 4px rgba(15, 23, 42, 0.04);

  /* 圆角 */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* 过渡 */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* 布局 */
  --max-width: 1160px;
  --nav-height: 68px;

  /* 页脚高斯模糊（浅色：白色玻璃） */
  --footer-glass-bg: rgba(255, 255, 255, 0.5);
  --footer-glass-border: rgba(15, 23, 42, 0.08);
  --footer-heading: var(--text);
  --footer-text: var(--text-secondary);
  --footer-text-muted: var(--text-muted);
  --footer-link: var(--text-secondary);
  --footer-link-hover: var(--primary-600);
  --footer-social-bg: rgba(15, 23, 42, 0.04);
  --footer-social-color: var(--text-secondary);
  --footer-divider: rgba(15, 23, 42, 0.08);
  --footer-logo-sub: var(--text-muted);
}

/* ══════════════════════════════════════
   主题色切换（仅浅色主题生效）
   通过 <html data-accent="lime|mint|sky|orange"> 覆盖主色变量
   ══════════════════════════════════════ */

/* 青柠绿 */
:root[data-accent="lime"] {
  --primary: #65a30d;
  --primary-50: #f7fee7;
  --primary-100: #ecfccb;
  --primary-200: #d9f99d;
  --primary-300: #bef264;
  --primary-400: #a3e635;
  --primary-500: #84cc16;
  --primary-600: #65a30d;
  --primary-700: #4d7c0f;
  --primary-800: #3f6212;
  --primary-900: #365314;
  --accent: #84cc16;
  --accent-500: #84cc16;
  --gradient-primary: linear-gradient(135deg, #65a30d 0%, #84cc16 45%, #a3e635 100%);
  --gradient-primary-soft: linear-gradient(135deg, rgba(101,163,13,0.12) 0%, rgba(132,204,22,0.12) 100%);
  --gradient-hero: linear-gradient(135deg, #3f6212 0%, #65a30d 40%, #a3e635 110%);
  --gradient-soft: linear-gradient(180deg, var(--gray-50) 0%, #f7fee7 100%);
  --gradient-text-shine: linear-gradient(110deg, #65a30d 0%, #a3e635 50%, #65a30d 100%);
  --mouse-glow-color: rgba(132, 204, 22, 0.16);
  --shadow-primary: 0 8px 30px rgba(101, 163, 13, 0.25);
}

/* 薄荷绿 */
:root[data-accent="mint"] {
  --primary: #059669;
  --primary-50: #ecfdf5;
  --primary-100: #d1fae5;
  --primary-200: #a7f3d0;
  --primary-300: #6ee7b7;
  --primary-400: #34d399;
  --primary-500: #10b981;
  --primary-600: #059669;
  --primary-700: #047857;
  --primary-800: #065f46;
  --primary-900: #064e3b;
  --accent: #10b981;
  --accent-500: #10b981;
  --gradient-primary: linear-gradient(135deg, #059669 0%, #10b981 45%, #34d399 100%);
  --gradient-primary-soft: linear-gradient(135deg, rgba(5,150,105,0.12) 0%, rgba(16,185,129,0.12) 100%);
  --gradient-hero: linear-gradient(135deg, #065f46 0%, #059669 40%, #34d399 110%);
  --gradient-soft: linear-gradient(180deg, var(--gray-50) 0%, #ecfdf5 100%);
  --gradient-text-shine: linear-gradient(110deg, #059669 0%, #34d399 50%, #059669 100%);
  --mouse-glow-color: rgba(16, 185, 129, 0.16);
  --shadow-primary: 0 8px 30px rgba(5, 150, 105, 0.25);
}

/* 浅蓝（背景 #c9f4ff / 主题 #1781b5） */
:root[data-accent="sky"] {
  --primary: #1781b5;
  --primary-50: #eef9ff;
  --primary-100: #d9f0ff;
  --primary-200: #bce4ff;
  --primary-300: #8ed3ff;
  --primary-400: #58bcef;
  --primary-500: #2f9fd6;
  --primary-600: #1781b5;
  --primary-700: #126a98;
  --primary-800: #0f5579;
  --primary-900: #0d4562;
  --accent: #2f9fd6;
  --accent-500: #2f9fd6;
  --gradient-primary: linear-gradient(135deg, #1781b5 0%, #2f9fd6 45%, #58bcef 100%);
  --gradient-primary-soft: linear-gradient(135deg, rgba(23,129,181,0.12) 0%, rgba(47,159,214,0.12) 100%);
  --gradient-hero: linear-gradient(135deg, #0f5579 0%, #1781b5 40%, #58bcef 110%);
  --gradient-text-shine: linear-gradient(110deg, #1781b5 0%, #58bcef 50%, #1781b5 100%);
  --mouse-glow-color: rgba(47, 159, 214, 0.16);
  --shadow-primary: 0 8px 30px rgba(23, 129, 181, 0.25);
}

/* 橙色（背景 #ffffff / 主题 #ffa400） */
:root[data-accent="orange"] {
  --primary: #ffa400;
  --primary-50: #fff8eb;
  --primary-100: #ffefc6;
  --primary-200: #ffdf88;
  --primary-300: #ffc94a;
  --primary-400: #ffb71c;
  --primary-500: #ffa400;
  --primary-600: #d98400;
  --primary-700: #b36500;
  --primary-800: #8f4f00;
  --primary-900: #6e3d00;
  --accent: #ffa400;
  --accent-500: #ffa400;
  --gradient-primary: linear-gradient(135deg, #ffa400 0%, #ffb71c 45%, #ffc94a 100%);
  --gradient-primary-soft: linear-gradient(135deg, rgba(255,164,0,0.12) 0%, rgba(255,183,28,0.12) 100%);
  --gradient-hero: linear-gradient(135deg, #8f4f00 0%, #ffa400 40%, #ffc94a 110%);
  --gradient-text-shine: linear-gradient(110deg, #d98400 0%, #ffc94a 50%, #d98400 100%);
  --mouse-glow-color: rgba(255, 164, 0, 0.16);
  --shadow-primary: 0 8px 30px rgba(255, 164, 0, 0.25);
}

/* 珊瑚红（柔和暖珊瑚，背景暖米色） */
:root[data-accent="coral"] {
  --primary: #e0584c;
  --primary-50: #fdf3f1;
  --primary-100: #fbe4df;
  --primary-200: #f6c9bf;
  --primary-300: #eea596;
  --primary-400: #e87866;
  --primary-500: #e0584c;
  --primary-600: #d04438;
  --primary-700: #b3352b;
  --primary-800: #8f2a22;
  --primary-900: #6f211b;
  --accent: #e0584c;
  --accent-500: #e0584c;
  --gradient-primary: linear-gradient(135deg, #d04438 0%, #e0584c 45%, #e87866 100%);
  --gradient-primary-soft: linear-gradient(135deg, rgba(208,68,56,0.12) 0%, rgba(224,88,76,0.12) 100%);
  --gradient-hero: linear-gradient(135deg, #8f2a22 0%, #d04438 40%, #e87866 110%);
  --gradient-text-shine: linear-gradient(110deg, #b3352b 0%, #e87866 50%, #b3352b 100%);
  --mouse-glow-color: rgba(224, 88, 76, 0.16);
  --shadow-primary: 0 8px 30px rgba(208, 68, 56, 0.22);
}

/* 玫瑰粉（雾感玫瑰，背景柔粉） */
:root[data-accent="rose"] {
  --primary: #c4567a;
  --primary-50: #fdf3f6;
  --primary-100: #fbe6ee;
  --primary-200: #f6cddb;
  --primary-300: #eea6be;
  --primary-400: #db7d9b;
  --primary-500: #c4567a;
  --primary-600: #b04568;
  --primary-700: #913856;
  --primary-800: #722e44;
  --primary-900: #592536;
  --accent: #c4567a;
  --accent-500: #c4567a;
  --gradient-primary: linear-gradient(135deg, #b04568 0%, #c4567a 45%, #db7d9b 100%);
  --gradient-primary-soft: linear-gradient(135deg, rgba(176,69,104,0.12) 0%, rgba(196,86,122,0.12) 100%);
  --gradient-hero: linear-gradient(135deg, #722e44 0%, #b04568 40%, #db7d9b 110%);
  --gradient-text-shine: linear-gradient(110deg, #913856 0%, #db7d9b 50%, #913856 100%);
  --mouse-glow-color: rgba(196, 86, 122, 0.16);
  --shadow-primary: 0 8px 30px rgba(176, 69, 104, 0.22);
}

/* 天蓝（清润天蓝，背景柔蓝） */
:root[data-accent="azure"] {
  --primary: #3d7bb8;
  --primary-50: #eef6fc;
  --primary-100: #d4e9f8;
  --primary-200: #a8d2ef;
  --primary-300: #74b4e0;
  --primary-400: #4f93c8;
  --primary-500: #3d7bb8;
  --primary-600: #316798;
  --primary-700: #28547b;
  --primary-800: #1f4262;
  --primary-900: #18344e;
  --accent: #3d7bb8;
  --accent-500: #3d7bb8;
  --gradient-primary: linear-gradient(135deg, #316798 0%, #3d7bb8 45%, #74b4e0 100%);
  --gradient-primary-soft: linear-gradient(135deg, rgba(49,103,152,0.12) 0%, rgba(61,123,184,0.12) 100%);
  --gradient-hero: linear-gradient(135deg, #1f4262 0%, #316798 40%, #74b4e0 110%);
  --gradient-text-shine: linear-gradient(110deg, #28547b 0%, #74b4e0 50%, #28547b 100%);
  --mouse-glow-color: rgba(61, 123, 184, 0.16);
  --shadow-primary: 0 8px 30px rgba(49, 103, 152, 0.22);
}

/* 桃色（暖桃橙，背景暖米桃色） */
:root[data-accent="peach"] {
  --primary: #f59e5c;
  --primary-50: #fff7f0;
  --primary-100: #ffeede;
  --primary-200: #ffd9b8;
  --primary-300: #ffc594;
  --primary-400: #fbb070;
  --primary-500: #f59e5c;
  --primary-600: #e08342;
  --primary-700: #bd6a33;
  --primary-800: #985529;
  --primary-900: #784320;
  --accent: #f59e5c;
  --accent-500: #f59e5c;
  --gradient-primary: linear-gradient(135deg, #e08342 0%, #f59e5c 45%, #fbb070 100%);
  --gradient-primary-soft: linear-gradient(135deg, rgba(224,131,66,0.12) 0%, rgba(245,158,92,0.12) 100%);
  --gradient-hero: linear-gradient(135deg, #985529 0%, #e08342 40%, #fbb070 110%);
  --gradient-text-shine: linear-gradient(110deg, #bd6a33 0%, #fbb070 50%, #bd6a33 100%);
  --mouse-glow-color: rgba(245, 158, 92, 0.16);
  --shadow-primary: 0 8px 30px rgba(224, 131, 66, 0.22);
}

/* ── 深色主题 —— 参照 iOS 13 / Material Dark 规范 ──
   设计要点：
   1. 主背景用中性深灰 #121212（非纯黑），减少视觉疲劳、提升层次感
   2. 通过 4 档中性灰阶梯（#121212 → #1a1a1a → #1e1e1e → #242424）区分模块层级
   3. 阴影不可见 → 改用「顶部 1px 高光 inset + 极淡白边框」区分元素层级
   4. 文字对比度全部 ≥ 4.5:1（主文字 16:1，弱化文字 5.2:1）
   5. 彩色元素降饱和度，避免深色背景下的光学振动 */
[data-theme="dark"] {
  /* 中性灰阶梯 —— iOS 13 elevation 规范 */
  --bg: #121212;                    /* surface-0：主背景，中性深灰 */
  --bg-soft: #1a1a1a;               /* surface-1：列表/次级背景 */
  --bg-soft-glass: rgba(30, 30, 30, 0.5);
  --bg-card: #1e1e1e;               /* surface-2：卡片/面板背景 */

  /* 文字层级 —— 全部通过 4.5:1 对比度校验 */
  --text: #ffffff;                  /* 主文字：对比度 16.1:1 */
  --text-secondary: #d1d5db;        /* 次级文字：gray-300，对比度 10.3:1 */
  --text-muted: #9ca3af;            /* 弱化文字：gray-400，对比度 5.4:1 ✓ */

  /* 边框 —— 用极淡白色做"微高光边框"替代阴影做层级 */
  --border: rgba(255, 255, 255, 0.12);
  --border-light: rgba(255, 255, 255, 0.06);

  --gradient-soft: linear-gradient(180deg, var(--bg) 0%, #1a1a1a 100%);

  /* 鼠标光晕：降一档饱和度，避免光学振动 */
  --mouse-glow-color: rgba(96, 165, 250, 0.18);

  /* 毛玻璃 —— 中性灰玻璃，保持质感 */
  --glass-bg: rgba(30, 30, 30, 0.55);
  --glass-bg-strong: rgba(30, 30, 30, 0.72);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-blur: blur(22px) saturate(160%);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3),
                  inset 0 1px 0 rgba(255, 255, 255, 0.04);

  /* 阴影系统 —— 纯黑阴影 + 顶部高光 inset 组合
     阴影负责"浮起感"，inset 高光负责"边缘定义"，两者协同在深色背景上重建层级 */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-primary: 0 8px 30px rgba(59, 130, 246, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.4);

  /* 页脚高斯模糊（深色：黑色玻璃） */
  --footer-glass-bg: rgba(18, 18, 18, 0.55);
  --footer-glass-border: rgba(255, 255, 255, 0.08);
  --footer-heading: #fff;
  --footer-text: var(--gray-300);
  --footer-text-muted: var(--gray-400);
  --footer-link: var(--gray-400);
  --footer-link-hover: var(--primary-400);
  --footer-social-bg: rgba(255, 255, 255, 0.06);
  --footer-social-color: var(--gray-400);
  --footer-divider: rgba(255, 255, 255, 0.08);
  --footer-logo-sub: var(--gray-400);
}

/* ── 全局过渡 ── */
body,
.navbar,
.nav-links,
.feature-card,
.product-card,
.contact-info-card,
.social-link,
.contact-tip,
.cta-box,
.footer,
.hero,
.about-hero,
.section-soft,
.code-block,
.product-detail,
.btn,
.avatar-circle,
.partner-card {
  transition:
    background-color var(--duration-normal) var(--ease-default),
    color var(--duration-normal) var(--ease-default),
    border-color var(--duration-normal) var(--ease-default),
    box-shadow var(--duration-normal) var(--ease-default),
    transform var(--duration-normal) var(--ease-out);
}

/* ── 基础重置 ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  height: 100%;
}

/* Silky 惯性滚动接管后，禁用 CSS 平滑滚动避免冲突 */
html.silky-active {
  scroll-behavior: auto;
}

/* ── 高斯模糊背景层 ── */
body {
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 38% at 12% 18%, rgba(37, 99, 235, 0.14), transparent 60%),
    radial-gradient(38% 34% at 88% 24%, rgba(6, 182, 212, 0.11), transparent 60%),
    radial-gradient(46% 40% at 72% 82%, rgba(124, 155, 255, 0.1), transparent 62%),
    radial-gradient(40% 36% at 28% 88%, rgba(59, 130, 246, 0.09), transparent 60%);
  filter: blur(64px);
  -webkit-filter: blur(64px);
  animation: bgDrift 26s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes bgDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(2%, -2.5%, 0) scale(1.08); }
}

/* ── 鼠标跟随背景光晕（柔和、通透、水体惯性形变） ── */
#mouse-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.6s ease;
}

#mouse-glow::before {
  content: "";
  position: absolute;
  width: 820px;
  height: 820px;
  left: var(--glow-x, 50%);
  top: var(--glow-y, 50%);
  /* 沿运动方向拉伸 + 旋转，营造水体流动的惯性形变 */
  transform: translate(-50%, -50%)
             rotate(var(--glow-rot, 0deg))
             scale(var(--glow-sx, 1), var(--glow-sy, 1));
  background: radial-gradient(circle, var(--mouse-glow-color) 0%, transparent 72%);
  filter: blur(78px);
  -webkit-filter: blur(78px);
  will-change: left, top, transform;
}

@media (prefers-reduced-motion: reduce) {
  #mouse-glow { display: none; }
}

body {
  font-family: "Sarasa Mono SC", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: transparent;
  line-height: 1.65;
  letter-spacing: 0.008em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  height: 100%;
}

/* 表单控件默认不继承 body 字体，显式继承以统一全站字体 */
button, input, textarea, select {
  font-family: inherit;
}

::selection {
  background: var(--primary-500);
  color: white;
}

/* ── 溢出防御：替换元素不超出容器，长词自动换行 ── */
img, video, canvas, svg, iframe, embed, object {
  max-width: 100%;
  height: auto;
}
body { overflow-wrap: break-word; word-break: break-word; }

/* ── 滚动条 ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--gray-600); }

/* ── PJAX 顶栏进度条 ── */
#pjax-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--gradient-primary);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.6);
  transition: width 0.2s var(--ease-out), opacity 0.34s ease;
  border-radius: 0 3px 3px 0;
}
#pjax-progress.active { opacity: 1; }
#pjax-progress.done { opacity: 0; }

:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.18);
}

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}
a:hover { color: var(--primary-700); }

img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── 容器 ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ══════════════════════════════════════
   导航栏
   ══════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1100;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: saturate(190%) blur(20px);
  -webkit-backdrop-filter: saturate(190%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition:
    background var(--duration-normal) ease,
    box-shadow var(--duration-normal) ease,
    border-color var(--duration-normal) ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .navbar.scrolled {
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  text-decoration: none !important;
  transition: opacity var(--duration-fast) ease;
}
.nav-logo:hover { opacity: 0.85; }

.nav-logo .logo-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  color: #fff;
  box-shadow: var(--shadow-primary);
  overflow: hidden;
  flex-shrink: 0;
  transition: transform var(--duration-slow) var(--ease-spring);
}
.nav-logo:hover .logo-icon { transform: rotate(-6deg) scale(1.04); }

.nav-logo .logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.nav-logo .logo-text .name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav-logo .logo-text .sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* 导航链接 */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
  isolation: isolate;
  transition:
    color var(--duration-fast) ease,
    background var(--duration-fast) ease;
}

.nav-links a:hover {
  color: var(--primary-600);
  background: var(--primary-50);
}

.nav-links a.active {
  color: var(--primary-700);
  background: var(--gradient-primary-soft);
  font-weight: 600;
}

.nav-links a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-spring);
}
.nav-links a:hover svg { transform: scale(1.12); }

/* 链接下划线动画 —— 蓝青渐变 */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 18px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: transform var(--duration-normal) var(--ease-spring);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* 汉堡菜单 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5.5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 9px;
  margin-left: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
  transform-origin: center;
}
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.5);
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* 导航操作区 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

/* 主题切换按钮 */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background var(--duration-fast) ease,
    color var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    transform var(--duration-normal) var(--ease-spring);
}
.theme-toggle:hover {
  background: var(--primary-50);
  color: var(--primary-600);
  border-color: var(--primary-200);
  transform: rotate(20deg) scale(1.05);
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon,
.theme-toggle .icon-auto { display: none; }
[data-theme-pref="system"] .theme-toggle .icon-auto { display: block; }
[data-theme-pref="light"] .theme-toggle .icon-sun { display: block; }
[data-theme-pref="dark"] .theme-toggle .icon-moon { display: block; }

/* ── 主题色切换器（仅浅色主题显示） ── */
.accent-picker {
  position: relative;
  display: none; /* 浅色主题下由 JS 显示 */
}
:root:not([data-theme="dark"]) .accent-picker { display: block; }

.accent-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background var(--duration-fast) ease,
    color var(--duration-fast) ease,
    border-color var(--duration-fast) ease;
}
.accent-toggle:hover {
  background: var(--primary-50);
  color: var(--primary-600);
  border-color: var(--primary-200);
}
.accent-toggle.active {
  color: var(--primary-600);
  border-color: var(--primary-300);
}

/* 色板气泡 */
.accent-swatch {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--duration-fast) ease,
    transform var(--duration-fast) ease,
    visibility var(--duration-fast);
  z-index: 100;
}
.accent-picker.open .accent-swatch {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.swatch-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-spring),
    border-color var(--duration-fast) ease;
  position: relative;
}
.swatch-dot:hover { transform: scale(1.12); }
.swatch-dot.active { border-color: var(--text); }
.swatch-dot.active::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--border);
  border-radius: 50%;
}
.swatch-blue { background: #2563eb; }
.swatch-lime { background: #65a30d; }
.swatch-mint { background: #059669; }
.swatch-sky { background: #1781b5; }
.swatch-orange { background: #ffa400; }
.swatch-coral { background: #e0584c; }
.swatch-rose { background: #c4567a; }
.swatch-azure { background: #3d7bb8; }
.swatch-peach { background: #f59e5c; }

/* ══════════════════════════════════════
   通用区块
   ══════════════════════════════════════ */
.section {
  padding: 108px 0;
  position: relative;
}
.section-soft {
  background: var(--bg-soft-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

/* 区块之间用细分隔线收束节奏，仅在浅色背景上可见 */
.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
  opacity: 0.6;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 68px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--gradient-primary-soft);
  color: var(--primary-700);
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  position: relative;
}
.section-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-500);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
}

.section-title {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.028em;
  line-height: 1.18;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto;
}

/* ══════════════════════════════════════
   按钮
   ══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-size: 14.5px;
  font-weight: 620;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition:
    transform var(--duration-normal) var(--ease-spring),
    box-shadow var(--duration-normal) ease,
    background var(--duration-normal) ease,
    color var(--duration-normal) ease,
    border-color var(--duration-normal) ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* 按钮高光扫过 —— 速度更快、亮度更柔和，避免抢戏 */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  transform: skewX(-18deg);
  transition: left var(--duration-slow) var(--ease-out);
  pointer-events: none;
}
.btn:hover::after { left: 150%; }

.btn:active { transform: scale(0.96); transition-duration: 80ms; }

.btn-primary {
  background: var(--gradient-primary);
  background-size: 180% 100%;
  background-position: 0% 50%;
  color: #fff;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
  color: #fff;
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.42);
}

.btn-outline {
  background: transparent;
  color: var(--primary-600);
  border: 1.8px solid var(--primary-200);
}
.btn-outline:hover {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.28);
}

.btn-ghost {
  background: var(--gray-100);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--primary-50);
  color: var(--primary-600);
  border-color: var(--primary-200);
  transform: translateY(-1px);
}

.btn-lg { padding: 15px 34px; font-size: 15px; }
.btn-sm { padding: 9px 20px; font-size: 13px; }

/* 按钮内 SVG 跟随交互微动 */
.btn svg {
  transition: transform var(--duration-normal) var(--ease-spring);
}
.btn:hover svg { transform: translateX(2px); }
.btn-ghost:hover svg,
.btn-outline:hover svg { transform: translateX(0); }

/* ══════════════════════════════════════
   Hero 区域
   ══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 90px;
  overflow: hidden;
  background: var(--gradient-soft);
}

/* Hero 背景 */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: -15%;
  right: -10%;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 65%);
  animation: heroFloat 10s ease-in-out infinite;
}

.hero-bg::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.07) 0%, transparent 65%);
  animation: heroFloat 14s ease-in-out infinite reverse;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.02); }
  66% { transform: translate(-15px, 15px) scale(0.98); }
}

/* 网格背景 */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 45%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 45%, black 20%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

/* 左侧文字 */
.hero-text .badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary-600);
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.hero-text .badge .dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: dotPulse 2.5s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.35); }
}

.hero-text h1,
.hero-title {
  font-size: clamp(36px, 4.6vw, 50px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  color: var(--text);
}

/* 副标题：英文工作室名，等宽、淡色，像签名而非口号 */
.hero-title-sub {
  display: block;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 12px;
  letter-spacing: 0.01em;
  font-family: var(--font-mono);
}

.hero-text h1 .gradient-text {
  background: var(--gradient-text-shine);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 6s ease-in-out infinite;
}

@keyframes textShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-text p,
.hero-lead {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-600);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--primary-300);
  transition: color var(--duration-fast) ease,
    border-color var(--duration-fast) ease;
}

.hero-link-arrow {
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-out);
}

.hero-link:hover {
  color: var(--primary-700);
  border-bottom-color: var(--primary-600);
}

.hero-link:hover .hero-link-arrow {
  transform: translateX(4px);
}

/* 右侧视觉卡片 */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  transform-style: preserve-3d;
  transition: transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) ease;
}

/* 倾斜交互中：禁用 transform 过渡，让鼠标跟手不滞后；离开时恢复过渡用于平滑回弹 */
.hero-card.tilting {
  transition: box-shadow var(--duration-slow) ease;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  background: var(--gradient-primary);
  border-radius: calc(var(--radius-xl) + 1px);
  z-index: -1;
  opacity: 0.4;
  filter: blur(24px);
  transition: opacity var(--duration-slow) ease, filter var(--duration-slow) ease;
}

.hero-card:hover::before {
  opacity: 0.65;
  filter: blur(32px);
}

/* 边框流光：mask 让光只显示在边框一圈，跟随鼠标移动 */
.hero-card-spotlight {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    220px circle at var(--mx, 50%) var(--my, 50%),
    var(--primary-400),
    transparent 70%
  );
  padding: 2px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}
.hero-card:hover .hero-card-spotlight { opacity: 1; }
[data-theme="dark"] .hero-card-spotlight {
  background: radial-gradient(
    220px circle at var(--mx, 50%) var(--my, 50%),
    var(--primary-300),
    transparent 70%
  );
}

.terminal-bar,
.terminal-body {
  position: relative;
  z-index: 1;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.hero-card-header .dots {
  display: flex;
  gap: 7px;
}
.hero-card-header .dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.hero-card-header .dots span:nth-child(1) { background: #ff5f57; }
.hero-card-header .dots span:nth-child(2) { background: #febc2e; }
.hero-card-header .dots span:nth-child(3) { background: #28c840; }

.hero-card-header .title {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 550;
  letter-spacing: 0.01em;
}

/* 代码块 */
.code-block {
  background: var(--gray-900);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.85;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.code-block .line { display: block; }
.code-block .kw { color: #c084fc; }
.code-block .fn { color: #60a5fa; }
.code-block .str { color: #34d399; }
.code-block .com { color: #4b5563; }
.code-block .num { color: #fbbf24; }
.code-block .var { color: #f472b6; }

/* 代码光标闪烁 */
.code-block .cursor,
.terminal .cursor {
  display: inline-block;
  color: var(--primary-400);
  animation: cursorBlink 1.1s steps(2) infinite;
  margin-left: 2px;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ══════════════════════════════════════
   Hero 终端面板
   ══════════════════════════════════════ */
.hero-card.terminal {
  background: #16171f;
  border-color: rgba(255, 255, 255, 0.08);
  padding: 0;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-bar .dots {
  display: flex;
  gap: 7px;
}
.terminal-bar .dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.terminal-bar .dots span:nth-child(1) { background: #ff5f57; }
.terminal-bar .dots span:nth-child(2) { background: #febc2e; }
.terminal-bar .dots span:nth-child(3) { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.01em;
}

.terminal-body {
  padding: 22px 24px 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.95;
  color: #c8cdd9;
}

.term-line {
  color: #e2e8f0;
  white-space: nowrap;
  overflow-x: auto;
}

.term-prompt {
  color: var(--primary-400);
  margin-right: 8px;
  flex-shrink: 0;
}

.term-out {
  color: #7a8190;
  padding-left: 0;
  white-space: nowrap;
  overflow-x: auto;
}

.term-hash {
  color: #fbbf24;
  margin-right: 10px;
}

/* 运行日志的时间戳/标签 */
.term-info {
  color: #60a5fa;
  margin-right: 8px;
}

.term-warn {
  color: #fbbf24;
  margin-left: 4px;
}

.terminal .cursor {
  color: #e2e8f0;
}

/* 浮动图标 */
.floating-icon {
  position: absolute;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-500);
  border: 1px solid var(--border-light);
  animation: iconFloat 5s ease-in-out infinite;
  will-change: transform;
  transition: transform 0.3s var(--ease-out);
  z-index: 2;
}

.floating-icon.icon-1 {
  top: -18px;
  right: 16px;
  animation-delay: 0s;
}
.floating-icon.icon-2 {
  bottom: -18px;
  left: -16px;
  animation-delay: 1.5s;
}
.floating-icon.icon-3 {
  top: 50%;
  right: -28px;
  animation-delay: 3s;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ══════════════════════════════════════
   特性卡片
   ══════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: transform var(--duration-normal) var(--ease-spring),
    box-shadow var(--duration-normal) ease,
    border-color var(--duration-normal) ease,
    background var(--duration-normal) ease;
}

/* 顶部渐变光条 */
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-slow) var(--ease-spring);
}

/* 悬停时右下角的蓝青光晕，营造卡片发光感 */
.feature-card::after {
  content: "";
  position: absolute;
  right: -30%;
  bottom: -30%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 65%);
  opacity: 0;
  transition: opacity var(--duration-slow) ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(37, 99, 235, 0.1);
  border-color: var(--primary-300);
  background: var(--glass-bg-strong);
}

.feature-card:hover::before {
  transform: scaleX(1);
}
.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50);
  border-radius: var(--radius-md);
  color: var(--primary-600);
  margin-bottom: 22px;
  transition: transform var(--duration-slow) var(--ease-spring),
    background var(--duration-normal) ease, color var(--duration-normal) ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(-6deg);
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 750;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ══════════════════════════════════════
   特性条目（首页 — 编辑式三栏，无图标）
   ══════════════════════════════════════ */
.feature-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 38px 32px 34px;
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) ease,
    border-color var(--duration-normal) ease;
}

/* 底部渐变细线 —— 悬停时从左滑入，替代旧版顶部光带 */
.feature-tile::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease-out);
}

.feature-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border-color: var(--primary-200);
}

[data-theme="dark"] .feature-tile:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border-color: var(--primary-700);
}

.feature-tile:hover::after {
  transform: scaleX(1);
}

.feature-tile-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
  transition: color var(--duration-normal) ease;
}

.feature-tile:hover .feature-tile-num {
  color: var(--primary-600);
}

.feature-tile-title {
  font-size: 20px;
  font-weight: 720;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.012em;
  line-height: 1.3;
}

.feature-tile-desc {
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--text-secondary);
}

/* ══════════════════════════════════════
   产品卡片（首页 — 简洁对称两栏）
   ══════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) ease,
    border-color var(--duration-normal) ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border-color: var(--primary-200);
}

[data-theme="dark"] .product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border-color: var(--primary-700);
}

.product-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.product-num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.product-tag {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  padding: 3px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.product-name {
  font-size: 22px;
  font-weight: 750;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.012em;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.meta-sep { color: var(--border); }

.product-desc {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 24px;
  flex: 1;
}

.product-actions {
  display: flex;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

/* ══════════════════════════════════════
   关于我们（重构 — 编辑式对称布局）
   ══════════════════════════════════════ */

/* 子区块标题（kicker + h2 + desc，左对齐） */
.page-sub-head {
  margin-bottom: 56px;
}
.page-sub-head .page-kicker {
  margin-bottom: 14px;
}
.page-sub-head h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.018em;
  margin-bottom: 12px;
  line-height: 1.2;
}
.page-sub-desc {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 580px;
}

/* 个人简介两栏 */
.about-intro-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.about-portrait {
  position: sticky;
  top: 100px;
}

.portrait-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portrait-meta {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.portrait-name {
  font-size: 17px;
  font-weight: 720;
  color: var(--text);
  letter-spacing: -0.01em;
}
.portrait-tag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* 简介文字 */
.about-bio .block-label { margin-bottom: 18px; }
.about-bio p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.bio-quote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--primary-500);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  font-style: italic;
  line-height: 1.6;
}

[data-theme="dark"] .bio-quote {
  background: rgba(255, 255, 255, 0.03);
}

/* ══════════════════════════════════════
   CTA 区域
   ══════════════════════════════════════ */
.cta-section { padding: 88px 0; }

.cta-box {
  background: var(--gradient-dark);
  border-radius: var(--radius-xl);
  padding: 68px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -8%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, transparent 65%);
}

.cta-box::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -8%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 65%);
}

.cta-box > * { position: relative; }

.cta-box h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-box p {
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 34px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

.cta-box .btn-primary {
  background: #fff;
  color: var(--primary-700);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.cta-box .btn-primary:hover {
  background: var(--gray-50);
  color: var(--primary-800);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.cta-box .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.cta-box .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

/* ══════════════════════════════════════
   联系我们页面（居中卡片布局）
   ══════════════════════════════════════ */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1020px;
  margin: 0 auto;
}

.contact-cta-card {
  background: var(--gradient-primary);
  border-color: transparent;
}
.contact-cta-card .ci-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.contact-cta-card .ci-content .label {
  color: rgba(255, 255, 255, 0.7);
}
.contact-cta-card .ci-content .value {
  color: #fff;
}
.contact-cta-card:hover {
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.35);
}

.contact-cta-card.loading {
  opacity: 0.6;
  pointer-events: none;
}

.contact-tip {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 1020px;
  margin: 34px auto 0;
  padding: 24px 28px;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-500);
  border-top: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.contact-tip .tip-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--primary-600);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.contact-tip .tip-content strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 5px;
  font-weight: 700;
}

.contact-tip .tip-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ══════════════════════════════════════
   合作项目 — 案例展示
   非对称布局、克制装饰、强调真实感
   ══════════════════════════════════════ */
/* 案例流 —— 对称编辑式条目，与 about 的 .entries 视觉语言一致 */
.cases {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.case {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 40px 0;
  position: relative;
  scroll-margin-top: 96px;
  transition: opacity var(--duration-fast) ease;
}

.case:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

[data-theme="dark"] .case:hover {
  box-shadow: none;
  border-color: var(--border);
}

/* hover 轻反馈：编号变色，编辑式克制 */
.case:hover .case-index {
  color: var(--primary-600);
}

.case-meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}

.case-index {
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.case-type {
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.case-title {
  font-size: 26px;
  font-weight: 750;
  color: var(--text);
  letter-spacing: -0.022em;
  line-height: 1.25;
  margin-bottom: 4px;
}

.case-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.case-body {
  display: grid;
  gap: 20px;
}

.case-section h4 {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 6px;
}

.case-section p {
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--text-secondary);
}

.case-section code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  border-radius: var(--radius-xs);
  background: rgba(125, 125, 125, 0.13);
  border: 1px solid var(--border-light);
  color: var(--text);
  word-break: break-word;
}

.case-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary-600);
  text-decoration: none;
  transition: color var(--duration-fast) ease, gap var(--duration-fast) ease;
}

.case-link:hover {
  color: var(--primary-700);
  gap: 10px;
}

.case-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--duration-fast) ease;
}
.case-link:hover svg { transform: translateX(2px); }

/* 收尾区 —— 极简横排，不堆叠 CTA 卡片 */
.case-cta {
  grid-column: 1 / -1;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
}

.case-cta-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 520px;
}

.case-cta-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--primary-600);
  text-decoration: none;
  border-bottom: 1.5px solid var(--primary-200);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.case-cta-link:hover {
  color: var(--primary-700);
  border-color: var(--primary-600);
}

/* ══════════════════════════════════════
   档案式页面（产品服务 / 联系我们）
   左对齐页眉、编号条目、规格表、朴素问答
   ══════════════════════════════════════ */

/* ── 左对齐页眉：不用居中徽章 + 三段式套路 ── */
.page-head {
  padding: 138px 0 0;
}

.page-head-inner {
  max-width: 720px;
}

.page-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.page-head h1 {
  font-size: 40px;
  font-weight: 760;
  letter-spacing: -0.028em;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 16px;
}

.page-head p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.page-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.page-facts span:not(:last-child)::after {
  content: "·";
  margin-left: 18px;
  color: var(--border);
}

/* ── 编号条目（档案条） ── */
.entries {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.entry {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 0 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 96px;
  transition: opacity var(--duration-fast) ease;
}
.entry:hover .entry-no { color: var(--primary-600); }
.entry:hover .entry-title { color: var(--primary-700); }
[data-theme="dark"] .entry:hover .entry-no { color: var(--primary-400); }
[data-theme="dark"] .entry:hover .entry-title { color: var(--primary-300); }

.entry-no {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding-top: 6px;
  font-variant-numeric: tabular-nums;
  transition: color var(--duration-fast) ease;
}

.entry-main {
  min-width: 0;
}

.entry-title {
  font-size: 25px;
  font-weight: 730;
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: var(--text);
  margin-bottom: 6px;
  transition: color var(--duration-fast) ease;
}

.entry-line {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.entry-lead {
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-secondary);
  max-width: 68ch;
}

/* 规格表：两列定义列表，替代彩色标签堆砌 */
.spec {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0;
  margin: 22px 0 0;
  border-top: 1px solid var(--border-light);
}

.spec dt {
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
  letter-spacing: 0.02em;
}

.spec dd {
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 9px 0;
  margin: 0;
  border-bottom: 1px solid var(--border-light);
  line-height: 1.65;
}

.spec dd code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text);
}

/* 折叠详情：原生 details，去掉默认箭头 */
.entry-more {
  margin-top: 20px;
}

.entry-more > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary-600);
  user-select: none;
  transition: color var(--duration-fast) ease;
}

.entry-more > summary::-webkit-details-marker { display: none; }
.entry-more > summary:hover { color: var(--primary-700); }

.entry-more > summary::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform var(--duration-fast) var(--ease-out);
}

.entry-more[open] > summary::before {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.entry-more[open] > summary { margin-bottom: 18px; }

.entry-doc {
  border-left: 2px solid var(--border);
  padding-left: 22px;
  max-width: 72ch;
}

.entry-doc h4 {
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin: 24px 0 8px;
}

.entry-doc h4:first-child { margin-top: 0; }

.entry-doc p {
  font-size: 14px;
  line-height: 1.78;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.entry-doc ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.entry-doc li {
  position: relative;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  padding-left: 16px;
  margin-bottom: 5px;
}

.entry-doc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 1px;
  background: var(--text-muted);
}

.entry-doc pre {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 14px 16px;
  overflow-x: auto;
  color: var(--text);
  margin: 0 0 14px;
}

.entry-warn {
  border-left: 2px solid var(--primary-400);
  background: var(--primary-50);
  padding: 12px 16px;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 14px;
}

[data-theme="dark"] .entry-warn {
  background: rgba(59, 130, 246, 0.08);
}

/* 条目操作区 */
.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
}

.entry-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary-600);
  text-decoration: none;
  transition: color var(--duration-fast) ease, gap var(--duration-fast) ease;
}

.entry-link:hover { color: var(--primary-700); gap: 9px; }
.entry-link svg { width: 14px; height: 14px; flex-shrink: 0; }

.entry-link-muted { color: var(--text-secondary); }
.entry-link-muted:hover { color: var(--text); }

/* ── 尾部一行式引导 ── */
.closing {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  padding: 34px 0 0;
}

.closing p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
}

.closing a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--primary-600);
  text-decoration: none;
  border-bottom: 1.5px solid var(--primary-200);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.closing a:hover { color: var(--primary-700); border-color: var(--primary-600); }

/* ══════════════════════════════════════
   联系页 — 清单式
   ══════════════════════════════════════ */
.reach-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.block-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* 联系方式行表 */
.reach {
  border-top: 1px solid var(--border);
}

.reach-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.reach-k {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.reach-v {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  word-break: break-all;
  transition: color var(--duration-fast) ease;
}

a.reach-v:hover { color: var(--primary-600); }

.reach-copy {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-family: inherit;
  padding: 5px 11px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  white-space: nowrap;
  transition:
    color var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    background var(--duration-fast) ease;
}

.reach-copy:hover {
  color: var(--text);
  border-color: var(--gray-400);
}

.reach-copy.copied {
  color: var(--primary-600);
  border-color: var(--primary-300);
  background: var(--primary-50);
}

[data-theme="dark"] .reach-copy.copied {
  background: rgba(59, 130, 246, 0.1);
}

.reach-note {
  margin-top: 22px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-muted);
}

/* 侧栏说明块 */
.side-note {
  border-left: 2px solid var(--border);
  padding-left: 22px;
}

.side-note + .side-note { margin-top: 32px; }

.side-note h3 {
  font-size: 15px;
  font-weight: 680;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.012em;
}

.side-note ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-note li {
  position: relative;
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-secondary);
  padding-left: 16px;
  margin-bottom: 7px;
}

.side-note li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 1px;
  background: var(--text-muted);
}

.side-note p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* 朴素问答 */
.qa {
  border-top: 1px solid var(--border);
  max-width: 880px;
}

.qa-item {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.qa-q {
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.qa-a {
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--text-secondary);
}

.qa-a a {
  color: var(--primary-600);
  text-decoration: none;
  border-bottom: 1px solid var(--primary-200);
}

.qa-a a:hover { color: var(--primary-700); border-color: var(--primary-600); }

/* 档案页响应式 */
@media (max-width: 900px) {
  .reach-layout { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .qa-item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .about-intro-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .about-portrait { position: static; max-width: 280px; }
}

@media (max-width: 768px) {
  .page-head { padding-top: 112px; }
  .page-head h1 { font-size: 30px; }
  .page-head p { font-size: 15px; }

  .entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 32px 0;
  }
  .entry-no { padding-top: 0; margin-bottom: 10px; }
  .entry-title { font-size: 22px; }
  .spec { grid-template-columns: 78px minmax(0, 1fr); }
  .entry-doc { padding-left: 16px; }

  .reach-row {
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 14px 0;
  }
  .reach-k { grid-column: 1 / -1; }
  .closing { padding-top: 28px; }
}

/* ══════════════════════════════════════
   页脚
   ══════════════════════════════════════ */
.footer {
  background: var(--footer-glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--footer-glass-border);
  color: var(--footer-text);
  padding: 68px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  margin-bottom: 52px;
}

.footer-brand .nav-logo {
  color: var(--footer-heading);
  margin-bottom: 18px;
}
.footer-brand .nav-logo .logo-text .sub {
  color: var(--footer-logo-sub);
}

.footer-brand p {
  font-size: 14px;
  color: var(--footer-text);
  line-height: 1.8;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 14.5px;
  font-weight: 750;
  color: var(--footer-heading);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.footer-col ul li {
  margin-bottom: 11px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--footer-link);
  transition: color var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out);
  display: inline-block;
}
.footer-col ul li a:hover {
  color: var(--footer-link-hover);
  transform: translateX(4px);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--footer-social-bg);
  color: var(--footer-social-color);
  transition: transform var(--duration-slow) var(--ease-spring),
    background var(--duration-normal) ease,
    color var(--duration-normal) ease;
}
.footer-social a:hover {
  background: var(--primary-600);
  color: #fff;
  transform: translateY(-4px) scale(1.08);
}

.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid var(--footer-divider);
  text-align: center;
  font-size: 13px;
  color: var(--footer-text-muted);
}

.footer-bottom a {
  color: var(--footer-link);
}
.footer-bottom a:hover {
  color: var(--footer-link-hover);
}

/* 页脚品牌 Logo 图片（防止继承/样式丢失导致显示异常） */
.footer-brand .nav-logo .logo-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), var(--shadow-primary);
  overflow: hidden;
  flex-shrink: 0;
}

.footer-brand .nav-logo .logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* ══════════════════════════════════════
   动画系统
   ══════════════════════════════════════ */

/* 滚动显现 —— 更柔和的渐显上浮（18px，0.6s） */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 网格交错入场 */
.features-grid .reveal:nth-child(1) { --reveal-delay: 0s; }
.features-grid .reveal:nth-child(2) { --reveal-delay: 0.1s; }
.features-grid .reveal:nth-child(3) { --reveal-delay: 0.2s; }

.products-grid .reveal:nth-child(1) { --reveal-delay: 0s; }
.products-grid .reveal:nth-child(2) { --reveal-delay: 0.1s; }
.products-grid .reveal:nth-child(3) { --reveal-delay: 0.2s; }
.products-grid .reveal:nth-child(4) { --reveal-delay: 0.3s; }

.contact-cards-grid .reveal:nth-child(1) { --reveal-delay: 0s; }
.contact-cards-grid .reveal:nth-child(2) { --reveal-delay: 0.07s; }
.contact-cards-grid .reveal:nth-child(3) { --reveal-delay: 0.14s; }
.contact-cards-grid .reveal:nth-child(4) { --reveal-delay: 0.21s; }
.contact-cards-grid .reveal:nth-child(5) { --reveal-delay: 0.28s; }
.contact-cards-grid .reveal:nth-child(6) { --reveal-delay: 0.35s; }

.social-links .reveal:nth-child(1) { --reveal-delay: 0s; }
.social-links .reveal:nth-child(2) { --reveal-delay: 0.08s; }
.social-links .reveal:nth-child(3) { --reveal-delay: 0.16s; }
.social-links .reveal:nth-child(4) { --reveal-delay: 0.24s; }

.contact-info-grid .reveal:nth-child(1) { --reveal-delay: 0s; }
.contact-info-grid .reveal:nth-child(2) { --reveal-delay: 0.08s; }
.contact-info-grid .reveal:nth-child(3) { --reveal-delay: 0.16s; }
.contact-info-grid .reveal:nth-child(4) { --reveal-delay: 0.24s; }

.cases .reveal:nth-child(1) { --reveal-delay: 0s; }
.cases .reveal:nth-child(2) { --reveal-delay: 0.12s; }
.cases .reveal:nth-child(3) { --reveal-delay: 0.24s; }
.cases .reveal:nth-child(4) { --reveal-delay: 0.36s; }

/* ══════════════════════════════════════
   广告位 (ads)
   ══════════════════════════════════════ */
.ads-section { padding: 88px 0; }

.ads-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ad-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 280px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-out);
  isolation: isolate;
}

.ad-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.65) 100%);
  z-index: 0;
  transition: opacity 0.4s var(--ease-out);
}

.ad-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.ad-card:hover::after { opacity: 0.85; }

.ad-content {
  position: relative;
  z-index: 1;
  padding: 24px 26px;
  width: 100%;
}

.ad-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.ad-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.92;
}

.ad-cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

.ad-card:hover .ad-cta { transform: translateX(4px); transition: transform 0.3s var(--ease-spring); }

.ads-grid .reveal:nth-child(1) { --reveal-delay: 0s; }
.ads-grid .reveal:nth-child(2) { --reveal-delay: 0.1s; }
.ads-grid .reveal:nth-child(3) { --reveal-delay: 0.2s; }

/* 页面入场 —— 更柔和的渐显上浮 */
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
body { animation: pageEnter 0.5s var(--ease-out); }

/* Hero 元素交错入场 —— 页面加载后逐次浮现 */
.hero-text h1,
.hero-text p,
.hero-link {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.hero-visual .hero-card {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

body.loaded .hero-text h1 { transition-delay: 0.1s; opacity: 1; transform: none; }
body.loaded .hero-text p { transition-delay: 0.2s; opacity: 1; transform: none; }
body.loaded .hero-link { transition-delay: 0.3s; opacity: 1; transform: none; }
body.loaded .hero-visual .hero-card { transition-delay: 0.2s; opacity: 1; transform: none; }

/* PJAX 切换时移除 loaded，让 hero 入场可重复触发 */
body:not(.loaded) .hero-text h1,
body:not(.loaded) .hero-text p,
body:not(.loaded) .hero-link,
body:not(.loaded) .hero-visual .hero-card {
  opacity: 0;
  transform: translateY(18px);
}

/* 工具页 hero 交错入场（保留兼容，旧选择器已无元素，无害） */

/* ══════════════════════════════════════
   工具下载页 (Qiancheng Tools) — 重构
   ══════════════════════════════════════ */

/* 下载区块：两栏（主信息 + 安全说明） */
.dl-block {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.dl-main {
  padding: 36px 36px 32px;
  border-right: 1px solid var(--border);
}

.dl-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.dl-name {
  font-family: var(--font-mono);
  font-size: 15.5px;
  font-weight: 650;
  color: var(--text);
  letter-spacing: -0.01em;
  word-break: break-all;
}

.dl-tag {
  font-size: 12px;
  color: var(--text-muted);
  padding: 3px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.dl-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.dl-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--primary-600);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out);
}
.dl-btn:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
}

.dl-link {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none !important;
  transition: color var(--duration-fast) ease;
}
.dl-link:hover { color: var(--primary-600); }

.dl-side {
  padding: 36px 32px;
  background: var(--bg-soft);
}
.dl-side .block-label { margin-bottom: 16px; }
.dl-side p {
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.dl-side-note {
  font-size: 13px !important;
  color: var(--text-muted) !important;
}
.dl-side-note a {
  color: var(--primary-600);
  text-decoration: none !important;
}
.dl-side-note a:hover { color: var(--primary-700); }

/* 界面预览（对称两栏） */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0;
  transition: transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) ease,
    border-color var(--duration-normal) ease;
}
.preview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border-color: var(--primary-200);
}
[data-theme="dark"] .preview-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border-color: var(--primary-700);
}

.preview-img {
  overflow: hidden;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.preview-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}
.preview-card:hover .preview-img img {
  transform: scale(1.03);
}

.preview-card figcaption {
  padding: 22px 24px;
}
.preview-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.preview-card figcaption h3 {
  font-size: 17px;
  font-weight: 720;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.preview-card figcaption p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* 系统要求（清单式） */
.sysreq-grid {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
}

.sysreq-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.sysreq-row:last-child { border-bottom: none; }

.sysreq-k {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.sysreq-v {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* 工具页响应式 */
@media (max-width: 900px) {
  .dl-block { grid-template-columns: minmax(0, 1fr); }
  .dl-main { border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 768px) {
  .preview-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .dl-main { padding: 28px 24px; }
  .dl-side { padding: 28px 24px; }
  .sysreq-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 18px 22px;
  }
}

/* ══════════════════════════════════════
   尊重用户动效偏好
   ══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  /* hero 入场元素强制可见，避免因 loaded 未触发而消失 */
  .hero-text h1,
  .hero-text p,
  .hero-link,
  .hero-visual .hero-card,
  .tool-hero-info .badge,
  .tool-hero-info h1,
  .tool-hero-desc,
  .tool-hero-meta,
  .tool-hero-actions {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ══════════════════════════════════════
   响应式设计
   ══════════════════════════════════════ */

/* 平板 */
@media (max-width: 968px) {
  /* navbar 提前进入移动端模式：769–968px 区间链接过多会错位 */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 14px;
    gap: 2px;
    box-shadow: var(--shadow-xl);
    transform: translateY(calc(-100% - var(--nav-height)));
    transition: transform var(--duration-slow) var(--ease-spring);
    align-items: stretch;
    border-bottom: 1px solid var(--glass-border);
    z-index: 1099;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 15px; }
  .nav-links a::after { display: none; }

  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .hero-visual { order: -1; }
  .hero-text h1 { font-size: 40px; }
  .floating-icon { display: none; }

  .about-intro-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .contact-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features-grid { grid-template-columns: minmax(0, 1fr); }
  .products-grid { grid-template-columns: minmax(0, 1fr); }
  .ads-grid { grid-template-columns: minmax(0, 1fr); }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 36px;
  }

  .section { padding: 84px 0; }
  .section-header { margin-bottom: 54px;
}
}

/* 手机 */
@media (max-width: 768px) {
  :root { --nav-height: 62px; }

  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 14px;
    gap: 2px;
    box-shadow: var(--shadow-xl);
    transform: translateY(calc(-100% - var(--nav-height)));
    transition: transform var(--duration-slow) var(--ease-spring);
    align-items: stretch;
    border-bottom: 1px solid var(--glass-border);
    z-index: 1099;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
  }

  .nav-links a::after { display: none; }

  .nav-toggle { display: flex; }

  .hero { min-height: auto; padding: 110px 0 70px; }
  .hero-text h1 { font-size: 34px; }
  .hero-text p { font-size: 15.5px; }

  .hero-card { max-width: 100%; padding: 22px; }
  .hero-visual { overflow: hidden; }
  .hero-card-spotlight { display: none; }
  .hero-card::before { inset: 0; filter: blur(16px); opacity: 0.3; }
  .floating-icon { display: none; }

  /* 小屏解除 nowrap，防止按钮/链接文字撑破容器 */
  .btn { white-space: normal; }
  .btn-lg { padding: 13px 26px; }
  .case-cta-link { white-space: normal; }
  .closing a { white-space: normal; }

  /* flex/grid 子元素允许收缩，防止长内容撑破 */
  .hero-content > *,
  .features-grid > *,
  .products-grid > *,
  .contact-cards-grid > *,
  .footer-grid > *,
  .ads-grid > *,
  .dl-block > *,
  .cases > * { min-width: 0; }

  .section { padding: 72px 0; }
  .section-title { font-size: 28px; }
  .section-tag { font-size: 12px; padding: 5px 14px; }

  .features-grid { gap: 16px; }
  .feature-card { padding: 28px 22px; }
  .feature-tile { padding: 28px 22px 26px; }

  .products-grid { gap: 16px; }
  .product-card { padding: 26px 22px; }

  .contact-cards-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .social-links { grid-template-columns: minmax(0, 1fr); }

  .about-avatar .name { font-size: 24px; }

  .avatar-circle { width: 170px; height: 170px; }

  .partners-grid { gap: 18px; }
  .cases { gap: 16px; }
  .case { padding: 28px 22px; }

  .cta-box { padding: 44px 24px; }
  .cta-box h2 { font-size: 24px; }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer { padding: 52px 0 24px; }
  .footer-brand { text-align: center; }
  .footer-brand p { max-width: 100%; }
  .footer-social { justify-content: center; }
  .footer-col { text-align: center; }
}

/* 小屏手机 */
@media (max-width: 400px) {
  .hero-text h1 { font-size: 30px; }
  .section-title { font-size: 25px; }
}
