/* ==========================================================================
   索优人力 SOURCEYOU — 企业官网模板
   设计语言：科技蓝 + 青绿渐变 / 现代企业站
   ========================================================================== */

/* ==========================================================================
   1. 设计变量（四套可切换皮肤）
   --------------------------------------------------------------------------
   所有颜色都收敛成语义化变量，切换皮肤只改这里的取值。
   生效方式：<html data-theme="...">，由 <head> 里的内联脚本在首屏渲染前写入，
   所以换页不会出现"先亮后暗"的闪动。data-theme 的取值见 theme_list()。
     sky    亮色 · 晴空蓝（默认）
     coral  亮色 · 暖阳橙
     cosmos 深色 · 深空蓝
     onyx   深色 · 曜石黑金
   ========================================================================== */

/* ---------- 1.1 亮色 · 晴空蓝（默认皮肤，同时也是兜底取值） ---------- */
:root,
html[data-theme="sky"] {
  /* 品牌主色 */
  --brand-50:  #EEF5FF;
  --brand-100: #DCEBFF;
  --brand-200: #B9D6FF;
  --brand-500: #1667E0;
  --brand-600: #0E52C4;
  --brand-700: #0A3E9E;
  --brand-900: #052A6B;
  --teal-500:  #12C2A5;
  --teal-600:  #0FA98F;
  --cyan-500:  #19B8E8;
  --gold:      #FF9E3D;
  --danger:    #E5484D;

  /* 品牌色上的文字：亮色皮肤用白字 */
  --on-brand: #FFFFFF;
  /* 需要在"永远是白底"的按钮/标签上显示的品牌色（必须是深色，保证对比度） */
  --brand-on-light: #0E52C4;

  /* 中性 / 表面 */
  --ink:    #0D1B2E;
  --ink-2:  #3F526B;
  --muted:  #7C8BA1;
  --line:   #E6EDF6;
  --bg:     #F5F9FD;
  --bg-2:   #F2F6FC;
  --page:   #FFFFFF;
  --card-bg:      #FFFFFF;
  --card-bg-2:    #FBFDFF;
  --card-border:  rgba(13, 42, 86, .08);
  --input-bg:     #FBFDFF;
  --header-bg:    rgba(255, 255, 255, .92);
  --header-shadow: 0 4px 24px rgba(6, 36, 88, .10);

  /* 品牌色的几档透明叠加（聚焦光晕 / 悬停边框 / 卡片投影 / 图标辉光） */
  --accent-a:  rgba(22, 103, 224, .10);
  --accent-b:  rgba(22, 103, 224, .25);
  --accent-c:  rgba(22, 103, 224, .14);
  --glow-teal: rgba(18, 194, 165, .35);

  /* 深色区块：首屏 / 内页横幅 / CTA 横幅 / 页脚 / 侧栏 CTA */
  --deep-1: #030B1A;
  --deep-2: #061C3D;
  --deep-3: #063A69;
  --footer-bg: #06182F;
  --neon:      #35E0C8;
  --neon-blue: #4AA8FF;
  --glow-1: rgba(18, 194, 165, .20);
  --glow-2: rgba(30, 122, 232, .30);
  --hero-text-grad: linear-gradient(100deg, #7FF3DE 0%, #4FC7F0 55%, #9FD0FF 100%);
  --stat-num-grad:  linear-gradient(100deg, #8FF7E4 0%, #4FC7F0 55%, #A8D8FF 100%);

  /* 渐变 */
  --grad-brand:  linear-gradient(135deg, #1667E0 0%, #12C2A5 100%);
  --grad-hero:   linear-gradient(122deg, #04214F 0%, #063B86 40%, #0A6BA8 74%, #0FA295 100%);
  --grad-banner: linear-gradient(122deg, #04214F 0%, #063B86 55%, #0A6BA8 100%);
  /* 按钮底色（.btn 会就地覆盖它，这里给个兜底） */
  --btn-bg: var(--grad-brand);
  /* 主色简写别名：取值随皮肤（部分模板里直接用 var(--brand)） */
  --brand: var(--brand-500);

  /* 阴影 */
  --shadow-sm: 0 2px 10px rgba(13, 42, 86, .06);
  --shadow-md: 0 10px 30px rgba(13, 42, 86, .10);
  --shadow-lg: 0 24px 60px rgba(9, 40, 88, .16);
  --btn-shadow:       0 8px 22px rgba(22, 103, 224, .28);
  --btn-shadow-hover: 0 14px 30px rgba(22, 103, 224, .34);

  /* 圆角 */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* 配色切换器里小色板的兜底值（正式取值由页面内联 style 提供） */
  --sw1: var(--brand-500);
  --sw2: var(--teal-500);
  --sw3: var(--bg);

  /* 布局 */
  --container: 1200px;
  --header-h: 78px;

  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* ---------- 1.2 亮色 · 暖阳橙 ---------- */
html[data-theme="coral"] {
  --brand-50:  #FFF3E9;
  --brand-100: #FFE2CC;
  --brand-200: #FFC79E;
  --brand-500: #E2651B;
  --brand-600: #C25214;
  --brand-700: #9C3F0D;
  --brand-900: #5A2307;
  --teal-500:  #0F9B8E;
  --teal-600:  #0B8175;
  --cyan-500:  #2AA7C4;
  --gold:      #F2A03D;
  --danger:    #D93A34;

  --on-brand: #FFFFFF;
  --brand-on-light: #A8460F;

  --ink:   #241608;
  --ink-2: #4E3B27;
  --muted: #8C7660;
  --line:  #F2E3D4;
  --bg:    #FFF8F2;
  --bg-2:  #FDF1E6;
  --page:  #FFFFFF;
  --card-bg:      #FFFFFF;
  --card-bg-2:    #FFFBF6;
  --card-border:  rgba(90, 50, 15, .09);
  --input-bg:     #FFFBF6;
  --header-bg:    rgba(255, 255, 255, .92);
  --header-shadow: 0 4px 24px rgba(90, 50, 15, .10);

  --accent-a:  rgba(226, 101, 27, .12);
  --accent-b:  rgba(226, 101, 27, .26);
  --accent-c:  rgba(226, 101, 27, .15);
  --glow-teal: rgba(242, 160, 61, .35);

  --deep-1: #1A0B04;
  --deep-2: #3E1808;
  --deep-3: #7A3411;
  --footer-bg: #1E0D06;
  --neon:      #FFC271;
  --neon-blue: #FF9A5C;
  --glow-1: rgba(242, 160, 61, .22);
  --glow-2: rgba(226, 101, 27, .32);
  --hero-text-grad: linear-gradient(100deg, #FFE0B0 0%, #FFB066 55%, #FFD9A8 100%);
  --stat-num-grad:  linear-gradient(100deg, #FFE6BE 0%, #FFB066 55%, #FFDCB0 100%);

  --grad-brand:  linear-gradient(135deg, #E2651B 0%, #F2A03D 100%);
  --grad-hero:   linear-gradient(122deg, #2A1206 0%, #5C2409 40%, #8E4110 74%, #C2741F 100%);
  --grad-banner: linear-gradient(122deg, #2A1206 0%, #5C2409 55%, #8E4110 100%);

  --shadow-sm: 0 2px 10px rgba(90, 50, 15, .07);
  --shadow-md: 0 10px 30px rgba(90, 50, 15, .11);
  --shadow-lg: 0 24px 60px rgba(70, 35, 8, .17);
  --btn-shadow:       0 8px 22px rgba(226, 101, 27, .26);
  --btn-shadow-hover: 0 14px 30px rgba(226, 101, 27, .32);
}

/* ---------- 1.3 深色 · 深空蓝 ---------- */
html[data-theme="cosmos"] {
  color-scheme: dark;

  --brand-50:  #10243E;
  --brand-100: #16304F;
  --brand-200: #23496F;
  --brand-500: #4C9BFF;
  --brand-600: #7CB8FF;
  --brand-700: #A9CEFF;
  --brand-900: #D8E9FF;
  --teal-500:  #35E0C8;
  --teal-600:  #4FE6D2;
  --cyan-500:  #4CC7F0;
  --gold:      #FFB454;
  --danger:    #FF6B6B;

  /* 深色皮肤里按钮是高亮色，文字改用深色，保证对比度 */
  --on-brand: #061321;
  --brand-on-light: #2A6FC4;

  --ink:   #E9F2FF;
  --ink-2: #B6C8DE;
  --muted: #7E93AC;
  --line:  #1E2E44;
  --bg:    #0C1626;
  --bg-2:  #101D30;
  --page:  #070E1A;
  --card-bg:      #0F1B2C;
  --card-bg-2:    #122033;
  --card-border:  rgba(120, 170, 235, .14);
  --input-bg:     #0B1524;
  --header-bg:    rgba(8, 15, 28, .86);
  --header-shadow: 0 4px 24px rgba(0, 0, 0, .50);

  --accent-a:  rgba(76, 155, 255, .16);
  --accent-b:  rgba(76, 155, 255, .34);
  --accent-c:  rgba(76, 155, 255, .16);
  --glow-teal: rgba(53, 224, 200, .35);

  --deep-1: #03081A;
  --deep-2: #061736;
  --deep-3: #0A3260;
  --footer-bg: #040A15;
  --neon:      #3EE3CB;
  --neon-blue: #56B0FF;
  --glow-1: rgba(53, 224, 200, .22);
  --glow-2: rgba(76, 155, 255, .30);
  --hero-text-grad: linear-gradient(100deg, #8FF7E4 0%, #5CC9F5 55%, #A8D8FF 100%);
  --stat-num-grad:  linear-gradient(100deg, #9DF9E8 0%, #5CC9F5 55%, #B6DEFF 100%);

  --grad-brand:  linear-gradient(135deg, #4C9BFF 0%, #35E0C8 100%);
  --grad-hero:   linear-gradient(122deg, #04102A 0%, #06214C 40%, #08437A 74%, #0B7E86 100%);
  --grad-banner: linear-gradient(122deg, #04102A 0%, #06214C 55%, #08437A 100%);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .40);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .46);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .56);
  --btn-shadow:       0 8px 22px rgba(76, 155, 255, .24);
  --btn-shadow-hover: 0 14px 30px rgba(76, 155, 255, .32);
}

/* ---------- 1.4 深色 · 曜石黑金 ---------- */
html[data-theme="onyx"] {
  color-scheme: dark;

  --brand-50:  #23201A;
  --brand-100: #302B21;
  --brand-200: #4A412F;
  --brand-500: #D9A441;
  --brand-600: #E8BC63;
  --brand-700: #F0D59B;
  --brand-900: #F8EDD3;
  --teal-500:  #57C7B4;
  --teal-600:  #6FD6C4;
  --cyan-500:  #7FD3E0;
  --gold:      #E8BC63;
  --danger:    #FF6B6B;

  --on-brand: #17130A;
  --brand-on-light: #8A6218;

  --ink:   #F5F1E8;
  --ink-2: #C6BEB0;
  --muted: #8E877B;
  --line:  #262319;
  --bg:    #100F0C;
  --bg-2:  #151410;
  --page:  #0A0908;
  --card-bg:      #131210;
  --card-bg-2:    #181713;
  --card-border:  rgba(217, 164, 65, .15);
  --input-bg:     #0F0E0B;
  --header-bg:    rgba(10, 9, 7, .88);
  --header-shadow: 0 4px 24px rgba(0, 0, 0, .55);

  --accent-a:  rgba(217, 164, 65, .14);
  --accent-b:  rgba(217, 164, 65, .34);
  --accent-c:  rgba(217, 164, 65, .16);
  --glow-teal: rgba(87, 199, 180, .32);

  --deep-1: #080705;
  --deep-2: #191510;
  --deep-3: #33291A;
  --footer-bg: #070605;
  --neon:      #EBC978;
  --neon-blue: #7FD3E0;
  --glow-1: rgba(217, 164, 65, .20);
  --glow-2: rgba(87, 199, 180, .18);
  --hero-text-grad: linear-gradient(100deg, #F7E3B4 0%, #D9A441 55%, #F5EAD0 100%);
  --stat-num-grad:  linear-gradient(100deg, #F7E6BC 0%, #E8BC63 55%, #F8EDD3 100%);

  --grad-brand:  linear-gradient(135deg, #D9A441 0%, #F0D59B 100%);
  --grad-hero:   linear-gradient(122deg, #0A0806 0%, #241C11 45%, #3E2F1A 78%, #6B5228 100%);
  --grad-banner: linear-gradient(122deg, #0A0806 0%, #241C11 55%, #3E2F1A 100%);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .42);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .48);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .58);
  --btn-shadow:       0 8px 22px rgba(217, 164, 65, .22);
  --btn-shadow-hover: 0 14px 30px rgba(217, 164, 65, .30);
}

/* ---------- 1.5 切换皮肤时的过渡 ---------- */
/* 只在切换瞬间加过渡，避免影响首屏性能；由 JS 给 <html> 加 .theme-anim */
html.theme-anim,
html.theme-anim body,
html.theme-anim .site-header,
html.theme-anim .svc-card,
html.theme-anim .news-card,
html.theme-anim .case-card,
html.theme-anim .feature-item,
html.theme-anim .value-item,
html.theme-anim .contact-card,
html.theme-anim .form-card,
html.theme-anim .article,
html.theme-anim .side-card,
html.theme-anim .post-nav a,
html.theme-anim .news-row,
html.theme-anim .mobile-nav-panel,
html.theme-anim .site-footer {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease !important;
}

/* ---------- 2. Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { margin: 0 0 .5em; color: var(--ink); line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--brand-500); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--teal-600); }
/* 关键：height:auto 防止带 width/height 属性的图片在缩放时纵向拉伸变形 */
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

::selection { background: var(--brand-500); color: var(--on-brand); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 3. 通用板块 ---------- */
.section { padding: 96px 0; }
.section--soft { background: var(--bg); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--brand-500);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad-brand); border-radius: 2px; }
.eyebrow--light { color: rgba(255,255,255,.85); }
.eyebrow--light::before { background: rgba(255,255,255,.6); }

.section-title { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.01em; }
.section-desc { color: var(--muted); margin: 0; }

/* ---------- 4. 按钮 ---------- */
.btn {
  --btn-bg: var(--grad-brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border: 0; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600; line-height: 1.2; cursor: pointer;
  color: var(--on-brand); background: var(--btn-bg);
  box-shadow: var(--btn-shadow);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--btn-shadow-hover); color: var(--on-brand); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; }

.btn--lg { padding: 16px 34px; font-size: 16px; }
.btn--sm { padding: 9px 20px; font-size: 14px; box-shadow: none; }

.btn--white { background: #fff; color: var(--brand-on-light); box-shadow: 0 8px 22px rgba(3, 22, 52, .22); }
.btn--white:hover { color: var(--brand-on-light); filter: brightness(.88); box-shadow: 0 14px 30px rgba(3, 22, 52, .3); }

.btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); box-shadow: none; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); box-shadow: none; }

.btn--outline { background: var(--card-bg); color: var(--brand-600); border: 1.5px solid var(--brand-200); box-shadow: none; }
.btn--outline:hover { border-color: var(--brand-500); background: var(--brand-50); box-shadow: none; }

/* ---------- 5. 顶部导航 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.site-header .header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}
.site-header.is-solid {
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  box-shadow: var(--header-shadow);
}

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 19px; color: #fff; letter-spacing: .06em; transition: color .3s ease; }
.brand-text span { font-size: 10.5px; color: rgba(255,255,255,.72); letter-spacing: .3em; transition: color .3s ease; }
.site-header.is-solid .brand-text b { color: var(--ink); }
.site-header.is-solid .brand-text span { color: var(--muted); }

/* 导航 */
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-link {
  position: relative; padding: 9px 16px; font-size: 15px; font-weight: 500;
  color: rgba(255,255,255,.88); border-radius: var(--r-pill);
  transition: color .25s ease, background .25s ease;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.12); }
.nav-link.is-active { color: #fff; font-weight: 600; }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 18px; height: 3px; border-radius: 3px; background: var(--grad-brand);
}
.site-header.is-solid .nav-link { color: var(--ink-2); }
.site-header.is-solid .nav-link:hover { color: var(--brand-600); background: var(--brand-50); }
.site-header.is-solid .nav-link.is-active { color: var(--brand-600); }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

/* 汉堡按钮 */
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 0; background: rgba(255,255,255,.14);
  border-radius: 10px; cursor: pointer; position: relative; z-index: 210;
  transition: background .25s ease;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; margin: 4px auto; border-radius: 2px;
  background: #fff; transition: transform .3s ease, opacity .3s ease, background .3s ease;
}
.site-header.is-solid .nav-toggle { background: var(--brand-50); }
.site-header.is-solid .nav-toggle span { background: var(--ink); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle.is-open { background: var(--brand-50) !important; }
.nav-toggle.is-open span { background: var(--ink) !important; }

/* 移动端抽屉 */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200; background: rgba(4, 20, 46, .5);
  backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 84vw);
  background: var(--card-bg); padding: 96px 28px 32px; transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.is-open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-panel a {
  padding: 13px 14px; border-radius: var(--r-sm); font-size: 16px; font-weight: 500; color: var(--ink);
}
.mobile-nav-panel a:hover { background: var(--brand-50); color: var(--brand-600); }
.mobile-nav-panel a.is-active { background: var(--brand-50); color: var(--brand-600); font-weight: 600; }
.mobile-nav-panel .btn { margin-top: 18px; }

/* ---------- 6. 首屏 Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--grad-hero); color: #fff; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 400px at 88% 12%, rgba(18, 194, 165, .28), transparent 65%),
    radial-gradient(600px 420px at 8% 88%, rgba(25, 184, 232, .22), transparent 65%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 72%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  /* 注意：本元素同时是 .container，这里只能写上下内边距，左右交给 .container */
  padding-top: 168px; padding-bottom: 96px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24);
  font-size: 13.5px; letter-spacing: .04em; color: rgba(255,255,255,.94);
  margin-bottom: 26px; backdrop-filter: blur(6px);
}
.hero-badge i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(18, 194, 165, .25); font-style: normal;
}
.hero h1 {
  color: #fff; font-size: clamp(34px, 5vw, 58px); line-height: 1.14;
  letter-spacing: -.015em; margin-bottom: 22px;
}
.hero h1 .grad-text {
  background: linear-gradient(100deg, #7FE7D4 0%, #4FC7F0 60%, #9FD0FF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 17px; color: rgba(255,255,255,.84); max-width: 520px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-points li {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: rgba(255,255,255,.8);
}
.hero-points svg { width: 16px; height: 16px; color: var(--teal-500); flex-shrink: 0; }

.hero-visual { position: relative; }
.hero-visual .hero-img {
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 30px 70px rgba(2, 16, 40, .45);
  border: 1px solid rgba(255,255,255,.16);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
}
.hero-visual img { width: 100%; height: auto; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.96); border-radius: var(--r-md);
  padding: 13px 18px; box-shadow: var(--shadow-lg);
  animation: floatY 5s ease-in-out infinite;
}
.float-card .fc-icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-500); flex-shrink: 0;
}
.float-card .fc-icon svg { width: 21px; height: 21px; }
.float-card b { display: block; font-size: 22px; color: var(--ink); line-height: 1.2; }
.float-card span { font-size: 12.5px; color: var(--muted); }
.float-card--1 { left: -34px; bottom: 42px; }
.float-card--2 { right: -22px; top: 46px; animation-delay: -2.5s; }
.float-card--2 .fc-icon { background: rgba(18, 194, 165, .12); color: var(--teal-600); }

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

/* 数据条 */
.hero-stats {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.16);
  background: rgba(2, 18, 44, .28); backdrop-filter: blur(8px);
}
.hero-stats .stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 46px 0 42px;
}
.stat { text-align: center; }
.stat b {
  display: block; font-size: clamp(52px, 7vw, 92px); font-weight: 800; color: #fff;
  line-height: 1.05; letter-spacing: -.02em;
}
.stat b .num { font-variant-numeric: tabular-nums; }
.stat b .unit { font-size: .42em; margin-left: 4px; color: var(--teal-500); font-weight: 700; }
.stat > span { font-size: 15px; color: rgba(255,255,255,.78); letter-spacing: .02em; }

/* ---------- 7. 内页 Banner ---------- */
.page-banner {
  position: relative; overflow: hidden; color: #fff;
  background: var(--grad-banner); padding-top: 168px; padding-bottom: 84px;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(640px 340px at 85% 20%, var(--glow-1), transparent 65%);
}
.page-banner::after {
  content: ""; position: absolute; inset: 0; opacity: .45;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 75%);
}
.page-banner .container { position: relative; z-index: 2; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: rgba(255,255,255,.66); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 13px; height: 13px; opacity: .6; }
.page-banner h1, .page-banner .page-banner-title { color: #fff; font-size: clamp(30px, 4vw, 44px); line-height: 1.25; font-weight: 700; margin: 0 0 12px; }
.page-banner p { color: rgba(255,255,255,.8); max-width: 640px; margin: 0; }

/* ---------- 8. 服务 / 行业卡片 ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc-card {
  position: relative; background: var(--card-bg); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 34px 30px; overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.svc-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-500); margin-bottom: 20px;
  transition: background .35s ease, color .35s ease, transform .35s ease;
}
.svc-icon svg { width: 27px; height: 27px; }
.svc-card:hover .svc-icon { background: var(--grad-brand); color: var(--on-brand); transform: scale(1.06) rotate(-4deg); }
.svc-card h3 { font-size: 19px; margin-bottom: 10px; }
.svc-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.svc-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--brand-500);
}
.svc-more svg { width: 15px; height: 15px; transition: transform .3s ease; }
.svc-card:hover .svc-more svg { transform: translateX(4px); }

/* 数字角标 */
.svc-index {
  position: absolute; top: 22px; right: 26px; font-size: 40px; font-weight: 800;
  color: var(--brand-50); line-height: 1; transition: color .35s ease;
}
.svc-card:hover .svc-index { color: var(--brand-100); }

/* ---------- 9. 为什么选择我们 ---------- */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.feature-item {
  display: flex; gap: 20px; background: var(--card-bg); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px; transition: box-shadow .35s ease, transform .35s ease;
}
.feature-item:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-num {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 20px; font-weight: 800; color: var(--on-brand); background: var(--grad-brand);
}
.feature-item h3 { font-size: 18px; margin-bottom: 8px; }
.feature-item p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- 10. 成功案例 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case-card {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .35s ease, box-shadow .35s ease;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.case-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.case-card:hover .case-thumb img { transform: scale(1.07); }
.case-tag {
  position: absolute; top: 14px; left: 14px; padding: 5px 13px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.94); color: var(--brand-on-light);
  font-size: 12.5px; font-weight: 600; backdrop-filter: blur(4px);
}
.case-body { padding: 22px 24px 24px; }
.case-body h3 { font-size: 17.5px; margin-bottom: 10px; }
.case-body h3 a { color: var(--ink); }
.case-body h3 a:hover { color: var(--brand-600); }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.case-meta span { display: inline-flex; align-items: center; gap: 6px; }
.case-meta svg { width: 14px; height: 14px; color: var(--brand-500); }

/* ---------- 11. 关于我们分栏 ---------- */
.about-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.about-media { position: relative; }
.about-media img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.about-media::before {
  content: ""; position: absolute; inset: -22px 22px 22px -22px;
  border: 2px solid var(--brand-100); border-radius: var(--r-lg); z-index: -1;
}
.exp-badge {
  position: absolute; right: -18px; bottom: -20px;
  background: var(--grad-brand); color: var(--on-brand); border-radius: var(--r-md);
  padding: 18px 24px; text-align: center; box-shadow: var(--shadow-lg);
}
.exp-badge b { display: block; font-size: 30px; line-height: 1.1; }
.exp-badge span { font-size: 13px; opacity: .9; }

.check-list { display: grid; gap: 12px; margin: 24px 0 30px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.check-list svg { width: 19px; height: 19px; color: var(--teal-500); flex-shrink: 0; margin-top: 4px; }

/* ---------- 12. 新闻资讯 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-thumb { aspect-ratio: 16 / 9; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-card:hover .news-thumb img { transform: scale(1.07); }
.news-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.news-date {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--muted); margin-bottom: 10px;
}
.news-date svg { width: 13px; height: 13px; }
.news-body h3 { font-size: 17px; line-height: 1.5; margin-bottom: 10px; }
.news-body h3 a { color: var(--ink); }
.news-body h3 a:hover { color: var(--brand-600); }
.news-body p { font-size: 14px; color: var(--muted); margin-bottom: 16px; flex: 1; }
.news-link { font-size: 14px; font-weight: 600; color: var(--brand-500); display: inline-flex; align-items: center; gap: 6px; }
.news-link svg { width: 14px; height: 14px; transition: transform .3s ease; }
.news-card:hover .news-link svg { transform: translateX(4px); }

/* 列表式新闻 */
.news-rows { display: grid; gap: 14px; }
.news-row {
  display: flex; align-items: center; gap: 22px; padding: 18px 22px;
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.news-row:hover { box-shadow: var(--shadow-md); transform: translateX(4px); border-color: var(--brand-200); }
.news-row-date {
  flex-shrink: 0; text-align: center; padding-right: 20px; border-right: 1px solid var(--line);
}
.news-row-date b { display: block; font-size: 24px; color: var(--brand-600); line-height: 1.1; }
.news-row-date span { font-size: 12px; color: var(--muted); }
.news-row h3 { font-size: 16px; margin: 0 0 4px; }
.news-row h3 a { color: var(--ink); }
.news-row h3 a:hover { color: var(--brand-600); }
.news-row p { font-size: 13.5px; color: var(--muted); margin: 0; }
.news-row .row-tag {
  margin-left: auto; flex-shrink: 0; padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--brand-50); color: var(--brand-600); font-size: 12.5px; font-weight: 600;
}

/* ---------- 13. CTA 横幅 ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--grad-hero); color: #fff; border-radius: var(--r-lg); padding: 60px 56px; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(560px 300px at 90% 30%, var(--glow-1), transparent 65%);
}
.cta-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.82); margin: 0; }

/* ---------- 14. 页脚 ---------- */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,.68); margin-top: 96px; }
.footer-main {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px;
  padding: 68px 0 48px;
}
.footer-brand .brand-text b { color: #fff; }
.footer-brand .brand-text span { color: rgba(255,255,255,.55); }
.footer-brand p { font-size: 14px; margin: 18px 0 0; max-width: 300px; }
.footer-brand .footer-slogan {
  font-size: 13.5px; letter-spacing: .16em; color: rgba(255,255,255,.5);
  margin: 16px 0 0; padding-left: 14px; position: relative; max-width: 300px;
}
.footer-brand .footer-slogan::before {
  content: ""; position: absolute; left: 0; top: .35em; bottom: .35em; width: 3px;
  background: var(--grad-brand); border-radius: 2px;
}
.footer-brand .footer-slogan + p { margin-top: 10px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer-col h4::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px;
  background: var(--grad-brand); border-radius: 2px;
}
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: rgba(255,255,255,.62); font-size: 14px; }
.footer-col a:hover { color: #fff; padding-left: 3px; }
.footer-contact li { display: flex; gap: 11px; font-size: 14px; margin-bottom: 14px; }
.footer-contact svg { width: 17px; height: 17px; color: var(--teal-500); flex-shrink: 0; margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 22px 0; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: #fff; }

/* ---------- 15. 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; gap: 18px; }
.contact-card {
  display: flex; gap: 16px; background: var(--card-bg); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 22px; transition: box-shadow .3s ease, transform .3s ease;
}
.contact-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.contact-card .cc-icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-500); flex-shrink: 0;
}
.contact-card .cc-icon svg { width: 23px; height: 23px; }
.contact-card h3 { font-size: 16px; margin-bottom: 5px; }
.contact-card p { font-size: 14.5px; color: var(--muted); margin: 0; word-break: break-all; }

.form-card {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 38px; box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.form-field label em { color: var(--danger); font-style: normal; margin-left: 2px; }
.form-field input, .form-field textarea, .form-field select {
  font-family: inherit; font-size: 14.5px; color: var(--ink);
  padding: 12px 15px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--input-bg); outline: none; transition: border-color .25s ease, box-shadow .25s ease;
  width: 100%;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--brand-500); box-shadow: 0 0 0 4px var(--accent-a); background: var(--card-bg);
}
.form-note { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }

/* 蜜罐字段：移出视口，真人看不见，自动填表脚本却会把它当普通输入框 */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* 图形验证码（服务端 SVG） */
.form-field[hidden] { display: none; }
.captcha-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.captcha-row input { flex: 1 1 170px; min-width: 0; }
.captcha-row img {
  width: 132px; height: 44px; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2);
  cursor: pointer; user-select: none;
}
.captcha-refresh {
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--brand-600);
  cursor: pointer; background: var(--card-bg); border: 1.5px solid var(--brand-200);
  border-radius: var(--r-sm); padding: 10px 14px; white-space: nowrap;
  transition: border-color .25s ease, background .25s ease;
}
.captcha-refresh:hover { border-color: var(--brand-500); background: var(--brand-50); }
#captchaField .tip { font-size: 12.5px; color: var(--muted); }

/* ---------- 16. 关于页时间线 / 价值观 ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-item {
  text-align: center; background: var(--card-bg); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 36px 24px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.value-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.value-item .vi-icon {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad-brand); color: var(--on-brand);
}
.value-item .vi-icon svg { width: 26px; height: 26px; }
.value-item h3 { font-size: 17px; margin-bottom: 8px; }
.value-item p { font-size: 13.5px; color: var(--muted); margin: 0; }

.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--brand-500), var(--teal-500)); border-radius: 2px;
}
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -33px; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--card-bg); border: 3px solid var(--brand-500);
  box-shadow: 0 0 0 4px var(--accent-a);
}
.timeline-item h3 { font-size: 17px; margin-bottom: 6px; }
.timeline-item h3 span { color: var(--brand-500); margin-right: 10px; }
.timeline-item p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- 17. 服务页行业图卡 ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ind-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 320px;
  display: flex; align-items: flex-end; color: #fff;
  transition: transform .35s ease, box-shadow .35s ease;
}
.ind-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ind-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.ind-card:hover img { transform: scale(1.08); }
.ind-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 20, 46, .05) 30%, rgba(4, 20, 46, .88) 100%);
}
.ind-body { position: relative; z-index: 2; padding: 26px; }
.ind-body h3 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.ind-body p { font-size: 13.5px; color: rgba(255,255,255,.82); margin: 0; }

/* ---------- 17b. 案例筛选条 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.filter-bar button, .filter-bar .filter-btn {
  padding: 9px 24px; border-radius: var(--r-pill); cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card-bg); color: var(--ink-2);
  font-size: 14px; font-weight: 600; transition: all .25s ease;
  text-decoration: none; line-height: 1.6;
}
.filter-bar button:hover, .filter-bar .filter-btn:hover { border-color: var(--brand-500); color: var(--brand-600); }
.filter-bar button.is-active, .filter-bar .filter-btn.is-active {
  background: var(--grad-brand); border-color: transparent; color: var(--on-brand);
  box-shadow: 0 6px 16px var(--accent-b);
}

/* ---------- 18. 回到顶部 ---------- */
.back-top {
  position: fixed; right: 26px; bottom: 30px; z-index: 90;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--grad-brand); color: var(--on-brand); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}
.back-top.is-show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { filter: brightness(1.08); }
.back-top svg { width: 20px; height: 20px; }

/* ---------- 19. 进场动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 20. 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding-top: 150px; padding-bottom: 80px; }
  .hero-visual { max-width: 620px; }
  .float-card--1 { left: 10px; }
  .float-card--2 { right: 10px; }
  .about-split { grid-template-columns: 1fr; gap: 48px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
  .section { padding: 72px 0; }
  .cards-grid, .case-grid, .news-grid, .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: 1fr; }
  .hero-stats .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .cta-band { padding: 44px 32px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 0 18px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 38px; }
  .hero-inner { padding-top: 128px; padding-bottom: 64px; gap: 36px; }
  .hero-cta .btn { width: 100%; }
  .hero-visual .hero-img { transform: none; }
  .float-card { padding: 10px 14px; }
  .float-card b { font-size: 15px; }
  .float-card--2 { display: none; }
  .cards-grid, .case-grid, .news-grid, .ind-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .cta-band { padding: 36px 22px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-main { grid-template-columns: 1fr; padding: 52px 0 36px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .news-row { flex-wrap: wrap; gap: 12px; }
  .news-row-date { border-right: 0; padding-right: 0; }
  .news-row .row-tag { margin-left: 0; }
  .page-banner { padding: 140px 0 64px; }
  .exp-badge { right: 8px; }
  .value-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   ★ 科技风增强层（覆盖层）
   ========================================================================== */

/* 板块留白收紧，整体更紧凑 */
.section { padding: 84px 0; }

/* —— 小标题：代码注释风 —— */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .16em;
  color: var(--brand-500);
  gap: 8px;
}
.eyebrow::before {
  content: "//"; width: auto; height: auto; background: none;
  color: var(--teal-500); font-weight: 700; letter-spacing: 0;
}
.eyebrow--light { color: rgba(255, 255, 255, .78); }
.eyebrow--light::before { color: var(--neon); }

/* —— 标题下方的科技装饰线 —— */
.section-head .section-title { position: relative; }
.section-head .section-title::after {
  content: ""; display: block; width: 54px; height: 3px; margin: 18px auto 0;
  border-radius: 3px; background: var(--grad-brand);
  box-shadow: 0 0 14px var(--glow-teal);
}
.section-head--left .section-title::after { margin-left: 0; }

/* ==========================================================================
   1. 首屏（深色霓虹）
   ========================================================================== */
.hero { background: var(--deep-1); }
.hero::before, .hero::after { content: none; }

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 520px at 78% 6%, var(--glow-1), transparent 62%),
    radial-gradient(760px 480px at 10% 96%, var(--glow-2), transparent 64%),
    linear-gradient(152deg, var(--deep-1) 0%, var(--deep-2) 46%, var(--deep-3) 100%);
}

/* —— 首屏动态视频背景（AI 生成的循环视频，渐变层作加载兜底） —— */
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none; opacity: 0; transition: opacity 1.1s ease;
}
.hero-video.is-ready { opacity: 1; }

/* 视频上方的暗色遮罩，保证文字可读性 */
.hero-veil {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 11, 26, .68) 0%, rgba(3, 11, 26, .30) 46%, rgba(3, 11, 26, .78) 100%);
}

.hero-canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }

.hero-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 160px; z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(74, 168, 255, .10), transparent);
  animation: heroScan 8s linear infinite; pointer-events: none;
}
@keyframes heroScan {
  0%   { transform: translateY(-200px); }
  100% { transform: translateY(880px); }
}

.hero-inner { z-index: 3; }

.hero-badge {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em;
  background: rgba(9, 30, 62, .6); border: 1px solid rgba(74, 168, 255, .32);
  box-shadow: inset 0 0 22px rgba(74, 168, 255, .12);
}
.hero-badge i { background: var(--neon); box-shadow: 0 0 0 4px var(--glow-1), 0 0 12px var(--neon); }

.hero h1 { letter-spacing: -.02em; text-shadow: 0 6px 40px rgba(0, 0, 0, .4); }
.hero h1 .grad-text {
  background: var(--hero-text-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px var(--glow-1));
}

/* 首屏右侧：HUD 相框 */
.hero-visual .hero-img {
  position: relative;
  border: 1px solid rgba(74, 168, 255, .30);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 30px 80px rgba(2, 16, 40, .6), 0 0 60px rgba(18, 194, 165, .18);
}
.hero-visual::before, .hero-visual::after,
.about-media::after {
  content: ""; position: absolute; width: 22px; height: 22px; z-index: 3;
  border: 2px solid var(--neon); pointer-events: none;
}
.hero-visual::before { top: -9px; left: -9px; border-right: 0; border-bottom: 0; }
.hero-visual::after { bottom: -9px; right: -9px; border-left: 0; border-top: 0; }

.hero-visual .hero-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(3, 11, 26, .55));
}

.float-card {
  background: rgba(6, 24, 52, .78);
  border: 1px solid rgba(74, 168, 255, .26);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(1, 10, 26, .6);
}
.float-card b { color: #fff; font-family: var(--mono); }
.float-card span { color: rgba(190, 218, 245, .72); }
.float-card .fc-icon { background: rgba(74, 168, 255, .14); color: var(--neon-blue); }
.float-card--2 .fc-icon { background: var(--glow-1); color: var(--neon); }

/* 首屏数据条（大号数字 + 渐变辉光） */
.hero-stats {
  border-top: 1px solid rgba(74, 168, 255, .18);
  background: rgba(3, 12, 28, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(6px);
}
.stat b { font-family: var(--mono); letter-spacing: -.02em; text-shadow: none; }
.stat b .num {
  background: var(--stat-num-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 20px var(--glow-1));
}
.stat b .unit { color: var(--neon); text-shadow: 0 0 18px var(--glow-teal); }
.stat > span { color: rgba(190, 218, 245, .82); font-size: 15px; letter-spacing: .04em; }

/* ==========================================================================
   3. 卡片科技化
   ========================================================================== */
.svc-card {
  background: linear-gradient(180deg, var(--card-bg) 0%, var(--card-bg-2) 100%);
  border: 1px solid var(--card-border);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.svc-card::after {
  content: ""; position: absolute; right: 14px; bottom: 14px; width: 20px; height: 20px;
  border-right: 2px solid rgba(22, 103, 224, .18); border-bottom: 2px solid rgba(22, 103, 224, .18);
  transition: border-color .35s ease;
}
.svc-card:hover { border-color: var(--accent-b); box-shadow: 0 20px 48px var(--accent-c); }
.svc-card:hover::after { border-color: var(--teal-500); }
.svc-index { font-family: var(--mono); font-size: 36px; }
.svc-card:hover .svc-icon { box-shadow: 0 10px 26px var(--glow-teal); }

.feature-item { position: relative; overflow: hidden; }
.feature-item::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad-brand); transform: scaleY(0); transform-origin: top;
  transition: transform .4s ease;
}
.feature-item:hover::after { transform: scaleY(1); }
.feature-num { font-family: var(--mono); font-size: 18px; }

.case-card, .news-card, .ind-card { border-color: var(--card-border); }
.case-card:hover, .news-card:hover { box-shadow: var(--shadow-md); }
.case-tag { font-family: var(--mono); letter-spacing: .06em; }

/* 关于我们的 HUD 角标 */
.about-media::after { bottom: 12px; right: 12px; }
.exp-badge { box-shadow: var(--shadow-lg), 0 0 34px var(--glow-teal); }
.exp-badge b { font-family: var(--mono); }

/* 优势小卡（首页合并版） */
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 22px; margin: 26px 0 30px; }
.adv-item { display: flex; gap: 13px; }
.adv-item .ai {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-500); transition: background .3s ease, color .3s ease;
}
.adv-item .ai svg { width: 21px; height: 21px; }
.adv-item:hover .ai { background: var(--grad-brand); color: var(--on-brand); }
.adv-item h4 { font-size: 15.5px; margin: 2px 0 4px; }
.adv-item p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.65; }

/* CTA 科技感 */
.cta-band { background: linear-gradient(122deg, var(--deep-1) 0%, var(--deep-2) 50%, var(--deep-3) 100%); border: 1px solid rgba(74, 168, 255, .22); }
.cta-band::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 200, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 200, 255, .06) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(90% 120% at 100% 0%, #000, transparent 70%);
  mask-image: radial-gradient(90% 120% at 100% 0%, #000, transparent 70%);
}
.cta-band h2 { text-shadow: 0 4px 30px rgba(0, 0, 0, .4); }

/* 页脚科技条纹 */
.site-footer { border-top: 1px solid rgba(74, 168, 255, .14); }
.footer-col h4::after { box-shadow: 0 0 12px var(--glow-teal); }

/* ==========================================================================
   4. 详情页
   ========================================================================== */
.page-banner--sm { padding: 148px 0 60px; }

.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300;
  background: var(--grad-brand); box-shadow: 0 0 14px var(--glow-teal);
  transition: width .1s linear;
}

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 44px; align-items: start; }

.article {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 46px 48px; box-shadow: var(--shadow-sm);
}
.article-cover { border-radius: var(--r-md); overflow: hidden; margin-bottom: 30px; }
.article-cover img { width: 100%; height: auto; }

.article-title { font-size: clamp(23px, 3vw, 33px); letter-spacing: -.015em; margin-bottom: 16px; }

.article-meta {
  display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 13.5px; color: var(--muted);
  padding-bottom: 22px; margin-bottom: 30px; border-bottom: 1px solid var(--line);
}
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta svg { width: 15px; height: 15px; color: var(--brand-500); }
.article-meta .am-tag {
  padding: 4px 13px; border-radius: var(--r-pill); background: var(--brand-50);
  color: var(--brand-600); font-weight: 600; font-size: 12.5px;
}

.article-body { font-size: 15.5px; }
.article-body p { color: var(--ink-2); line-height: 1.95; margin-bottom: 18px; }
.article-body h2 {
  font-size: 20px; margin: 38px 0 16px; padding-left: 15px;
  border-left: 4px solid var(--brand-500); line-height: 1.4;
}
.article-body h3 { font-size: 17px; margin: 28px 0 12px; }
.article-body ul { margin: 0 0 20px; }
.article-body ul li {
  position: relative; padding-left: 24px; margin-bottom: 11px;
  font-size: 15px; color: var(--ink-2); line-height: 1.8;
}
.article-body ul li::before {
  content: "▹"; position: absolute; left: 2px; top: 0;
  color: var(--teal-500); font-weight: 700;
}
.article-body ol { counter-reset: oi; margin: 0 0 20px; }
.article-body ol li {
  position: relative; padding-left: 34px; margin-bottom: 12px; counter-increment: oi;
  font-size: 15px; color: var(--ink-2); line-height: 1.8;
}
.article-body ol li::before {
  content: counter(oi, decimal-leading-zero); position: absolute; left: 0; top: 1px;
  font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--brand-500);
}
.article-body blockquote {
  margin: 26px 0; padding: 20px 26px; border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--brand-50); border-left: 3px solid var(--brand-500);
  color: var(--brand-700); font-size: 15px;
}
.article-body blockquote p { margin: 0; color: inherit; }

.stat-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.stat-blocks .sb {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px 16px; text-align: center;
}
.stat-blocks .sb b {
  display: block; font-family: var(--mono); font-size: 25px; color: var(--brand-600);
  line-height: 1.15; margin-bottom: 4px;
}
.stat-blocks .sb span { font-size: 13px; color: var(--muted); }

.article-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--line);
}
.article-tags a {
  padding: 7px 16px; border-radius: var(--r-pill); background: var(--bg);
  font-size: 13px; color: var(--ink-2);
}
.article-tags a:hover { background: var(--brand-50); color: var(--brand-600); }

/* 侧栏 */
.side-card {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.side-card h4 {
  font-size: 15.5px; margin-bottom: 20px; padding-bottom: 13px; position: relative;
  border-bottom: 1px solid var(--line);
}
.side-card h4::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 34px; height: 2px;
  background: var(--grad-brand);
}
.side-list li { padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px dashed var(--line); }
.side-list li:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.side-list a { color: var(--ink-2); font-size: 14px; line-height: 1.6; display: block; }
.side-list a:hover { color: var(--brand-600); }
.side-list .sd { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.kv-list li {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.kv-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.kv-list .k { color: var(--muted); flex-shrink: 0; }
.kv-list .v { color: var(--ink); font-weight: 600; text-align: right; }

.side-card--cta {
  background: linear-gradient(140deg, var(--deep-1) 0%, var(--deep-2) 60%, var(--deep-3) 100%);
  border-color: rgba(74, 168, 255, .22); color: #fff; text-align: center;
}
.side-card--cta h4 { color: #fff; border-bottom-color: rgba(74, 168, 255, .2); }
.side-card--cta h4::after { left: 50%; transform: translateX(-50%); }
.side-card--cta p { color: rgba(190, 218, 245, .8); font-size: 13.5px; margin-bottom: 20px; }
.side-card--cta .btn { width: 100%; }

/* 上下篇 */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.post-nav a {
  display: block; padding: 20px 24px; background: var(--card-bg);
  border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.post-nav a:hover { border-color: var(--brand-200); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post-nav .pn-label {
  display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em;
  color: var(--brand-500); margin-bottom: 8px;
}
.post-nav .pn-title { font-size: 14.5px; color: var(--ink); font-weight: 600; line-height: 1.55; }
.post-nav .pn-next { text-align: right; }

/* 详情页响应式 */
@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .article { padding: 32px 26px; }
}
@media (max-width: 640px) {
  .stat-blocks { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .pn-next { text-align: left; }
  .adv-grid { grid-template-columns: 1fr; }
  .page-banner--sm { padding: 128px 0 48px; }
}

/* ==========================================================================
   21. 配色切换器（前端）
   ========================================================================== */

/* Logo 跟随皮肤：把 SVG 里的渐变停靠点接到品牌变量上
   （CSS 优先级高于 fill/stroke 呈现属性，所以不用改 PHP 里的 SVG） */
.brand-mark stop:first-of-type { stop-color: var(--brand-500); }
.brand-mark stop:last-of-type  { stop-color: var(--teal-500); }
.brand-mark .brand-s path { fill: var(--on-brand); stroke: none; }

.theme-picker { position: relative; flex-shrink: 0; }

.theme-trigger {
  width: 42px; height: 42px; padding: 0; border: 0; cursor: pointer;
  display: grid; place-items: center; border-radius: 12px;
  background: rgba(255, 255, 255, .14); color: #fff;
  transition: background .25s ease, color .25s ease, transform .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.theme-trigger:hover { background: rgba(255, 255, 255, .24); }
.theme-trigger:active { transform: scale(.94); }
.theme-trigger svg { width: 20px; height: 20px; }
.site-header.is-solid .theme-trigger { background: var(--brand-50); color: var(--brand-600); }
.site-header.is-solid .theme-trigger:hover { background: var(--brand-100); }
.theme-trigger[aria-expanded="true"] { background: rgba(255, 255, 255, .26); }
.site-header.is-solid .theme-trigger[aria-expanded="true"] { background: var(--brand-100); }

.theme-menu {
  position: absolute; top: calc(100% + 12px); right: 0; width: 252px;
  background: var(--card-bg); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: 8px; z-index: 130;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
}
.theme-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.theme-menu-title {
  display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); padding: 8px 10px 8px;
}
.theme-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: 11px; background: none;
  cursor: pointer; font-family: inherit; text-align: left; color: var(--ink-2);
  transition: background .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.theme-item:hover { background: var(--bg); color: var(--ink); }
.theme-item b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.theme-item em { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; }
.theme-item.is-active { background: var(--brand-50); }
.theme-item.is-active b { color: var(--brand-600); }
.theme-item .ti-check { width: 16px; height: 16px; margin-left: auto; flex-shrink: 0; color: var(--brand-500); opacity: 0; transition: opacity .2s ease; }
.theme-item.is-active .ti-check { opacity: 1; }

/* 色板预览：底色 + 两个品牌色圆点 */
.ti-swatch {
  position: relative; flex-shrink: 0; overflow: hidden;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--sw3); border: 1px solid var(--line);
}
.ti-swatch::before, .ti-swatch::after { content: ""; position: absolute; border-radius: 50%; }
.ti-swatch::before { width: 21px; height: 21px; left: -5px; top: -5px; background: var(--sw1); }
.ti-swatch::after  { width: 17px; height: 17px; right: -4px; bottom: -4px; background: var(--sw2); }

/* 移动端抽屉里的配色区 */
.mobile-theme { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.mobile-theme .mt-label {
  display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.mt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mt-item {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px;
  border: 1.5px solid var(--line); border-radius: 12px; background: none;
  cursor: pointer; font-family: inherit; color: var(--ink-2); text-align: left;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.mt-item .ti-swatch { width: 26px; height: 26px; border-radius: 8px; }
.mt-item .ti-swatch::before { width: 17px; height: 17px; left: -4px; top: -4px; }
.mt-item .ti-swatch::after  { width: 14px; height: 14px; right: -3px; bottom: -3px; }
.mt-item i { font-style: normal; font-size: 12.5px; font-weight: 600; }
.mt-item.is-active { border-color: var(--brand-500); background: var(--brand-50); color: var(--brand-600); }

/* ==========================================================================
   22. 移动端 / 平板端优化层
   （放在最后，专门覆盖前面的桌面端写法）
   ========================================================================== */

/* ---------- 22.1 溢出兜底 ---------- */
/* clip 不会创建滚动容器，因此不会破坏 position: fixed / sticky */
html { overflow-x: clip; }
img, video, canvas, iframe, svg { max-width: 100%; }

/* 长英文串、URL 不再撑破卡片 */
.article-body, .news-body, .case-body, .svc-card p, .feature-item p,
.side-card, .contact-card p, .footer-brand p { overflow-wrap: break-word; word-break: break-word; }

/* 文章里的表格与代码块：横向滚动，不撑破版面 */
.article-body table {
  display: block; width: 100%; max-width: 100%; overflow-x: auto;
  -webkit-overflow-scrolling: touch; border-collapse: collapse; margin: 22px 0;
}
.article-body th, .article-body td {
  border: 1px solid var(--line); padding: 10px 14px; text-align: left;
  white-space: nowrap; font-size: 14.5px;
}
.article-body thead th { background: var(--bg); color: var(--ink); font-weight: 700; }
.article-body pre { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article-body img { height: auto; border-radius: var(--r-sm); }

/* ---------- 22.2 触屏设备：不依赖 hover 也能用 ---------- */
@media (hover: none) {
  .btn:hover { transform: none; box-shadow: var(--btn-shadow); }
  .svc-card:hover, .case-card:hover, .news-card:hover, .news-row:hover,
  .feature-item:hover, .value-item:hover, .contact-card:hover,
  .ind-card:hover, .post-nav a:hover { transform: none; }
  .case-card:hover .case-thumb img, .news-card:hover .news-thumb img,
  .ind-card:hover img { transform: none; }
  /* 用按下反馈代替悬停反馈 */
  .svc-card:active, .case-card:active, .news-card:active, .news-row:active,
  .feature-item:active, .contact-card:active, .value-item:active { border-color: var(--brand-200); }
  .btn:active { transform: scale(.985); }
}

/* 可点击元素至少 44px 高（触屏友好） */
@media (pointer: coarse) {
  .filter-bar button, .filter-bar .filter-btn { padding: 11px 22px; }
  .post-nav a { padding: 20px 22px; }
  .mobile-nav-panel a { padding: 15px 14px; }
  .theme-item { padding: 11px 10px; }
  .back-top { width: 50px; height: 50px; }
}

/* ---------- 22.3 刘海屏安全区 ---------- */
.container {
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}
.site-header .header-inner {
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}
.back-top { right: max(26px, env(safe-area-inset-right)); bottom: max(30px, env(safe-area-inset-bottom)); }
.mobile-nav-panel { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.footer-bottom { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }

/* ---------- 22.4 抽屉菜单（平板与手机通用） ---------- */
.mobile-nav { touch-action: none; }
.mobile-nav-panel {
  overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-top: max(88px, calc(env(safe-area-inset-top) + 78px));
  width: min(340px, 88vw);
}
.mobile-nav-panel a { transition: background .25s ease, color .25s ease, transform .38s ease, opacity .38s ease; }
/* 打开时逐条滑入，观感更顺 */
.mobile-nav-panel > a { opacity: 0; transform: translateX(18px); }
.mobile-nav.is-open .mobile-nav-panel > a { opacity: 1; transform: none; }
.mobile-nav.is-open .mobile-nav-panel > a:nth-child(1) { transition-delay: .05s; }
.mobile-nav.is-open .mobile-nav-panel > a:nth-child(2) { transition-delay: .09s; }
.mobile-nav.is-open .mobile-nav-panel > a:nth-child(3) { transition-delay: .13s; }
.mobile-nav.is-open .mobile-nav-panel > a:nth-child(4) { transition-delay: .17s; }
.mobile-nav.is-open .mobile-nav-panel > a:nth-child(5) { transition-delay: .21s; }
.mobile-nav.is-open .mobile-nav-panel > a:nth-child(6) { transition-delay: .25s; }
.mobile-nav.is-open .mobile-nav-panel > a:nth-child(7) { transition-delay: .29s; }
.mobile-nav.is-open .mobile-nav-panel > a:nth-child(8) { transition-delay: .33s; }
.mobile-theme { opacity: 0; transform: translateX(18px); transition: opacity .38s ease, transform .38s ease; }
.mobile-nav.is-open .mobile-theme { opacity: 1; transform: none; transition-delay: .28s; }

/* 抽屉打开时锁住页面滚动（含 iOS 橡皮筋） */
html.nav-open, html.nav-open body { overflow: hidden; }
html.nav-open { height: 100%; }

@media (prefers-reduced-motion: reduce) {
  .mobile-nav-panel > a, .mobile-theme { opacity: 1 !important; transform: none !important; }
}

/* ---------- 22.5 平板横屏 / 小笔记本（≤1180） ---------- */
@media (max-width: 1180px) {
  /* 写 html[data-theme] 是为了压过皮肤块 html[data-theme="sky"] 的优先级，
     否则默认皮肤会吃不到这条覆盖（选择器列表按最具体选择器计优先级） */
  html[data-theme], :root { --container: 100%; }
  .hero-inner { gap: 44px; }
  .float-card--1 { left: -10px; }
  .float-card--2 { right: -10px; }
}

/* ---------- 22.6 平板（≤1024，竖屏 iPad） ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 42px; padding-top: 140px; padding-bottom: 78px; }
  .hero-visual { max-width: 660px; margin: 0 auto; width: 100%; }
  .hero-visual .hero-img { transform: none; }
  .float-card--1 { left: 12px; bottom: 24px; }
  .float-card--2 { right: 12px; top: 22px; }
  .about-split { grid-template-columns: 1fr; gap: 46px; }
  .about-media { max-width: 560px; margin: 0 auto; width: 100%; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .article-layout { grid-template-columns: 1fr; gap: 30px; }
  .article { padding: 36px 32px; }
  .value-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 34px; }
  .cta-band { padding: 50px 40px; }
  .section { padding: 78px 0; }
}

/* ---------- 22.7 平板竖屏 / 大屏手机（≤900） ---------- */
@media (max-width: 900px) {
  .section { padding: 66px 0; }
  .section-head { margin-bottom: 40px; }

  /* 卡片区两列，间距收敛 */
  .cards-grid, .case-grid, .news-grid, .ind-grid, .adv-grid { gap: 18px; }
  .cards-grid, .case-grid, .news-grid, .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: 1fr; gap: 18px; }

  .hero-inner { padding-top: 128px; padding-bottom: 68px; gap: 36px; }
  .hero-stats .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; padding: 36px 0 32px; }
  .stat b { font-size: clamp(44px, 9vw, 68px); }

  .cta-band { padding: 42px 30px; border-radius: var(--r-md); }
  .cta-inner { gap: 22px; }

  .header-actions { gap: 10px; }
  .theme-trigger { width: 40px; height: 40px; }
  .nav-toggle { width: 40px; height: 40px; }
}

/* ---------- 22.8 手机（≤640） ---------- */
@media (max-width: 640px) {
  /* 同上：html[data-theme] 压过皮肤块，保证四套皮肤 header 高度一致（修复 logo 上移） */
  html[data-theme], :root { --header-h: 64px; }
  body { font-size: 15px; line-height: 1.7; }
  .container { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
  .site-header .header-inner { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }

  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .section-title { font-size: clamp(22px, 6.4vw, 28px); }

  /* 首屏 */
  .hero-inner { padding-top: 108px; padding-bottom: 54px; gap: 30px; }
  .hero h1 { font-size: clamp(28px, 8.6vw, 38px); }
  .hero-lead { font-size: 15.5px; margin-bottom: 26px; }
  .hero-cta { gap: 10px; margin-bottom: 28px; }
  .hero-cta .btn { width: 100%; }
  .hero-points { gap: 8px 18px; }
  .hero-points li { font-size: 13px; }
  .hero-badge { font-size: 12px; padding: 7px 13px; margin-bottom: 20px; }
  .hero-visual .hero-img { border-radius: var(--r-md); }
  .float-card { padding: 10px 13px; gap: 9px; }
  .float-card b { font-size: 15px; }
  .float-card span { font-size: 11.5px; }
  .float-card .fc-icon { width: 32px; height: 32px; border-radius: 9px; }
  .float-card--2 { display: none; }
  .hero-stats .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; padding: 30px 0 26px; }
  .stat b { font-size: clamp(38px, 11vw, 52px); }
  .stat > span { font-size: 13px; }

  /* 内页横幅 */
  .page-banner { padding: 116px 0 52px; }
  .page-banner h1, .page-banner .page-banner-title { font-size: clamp(26px, 7.4vw, 34px); }
  .page-banner p { font-size: 14.5px; }
  .page-banner--sm { padding: 108px 0 44px; }

  /* 卡片全部改单列 */
  .cards-grid, .case-grid, .news-grid, .feature-list, .value-grid, .form-grid { grid-template-columns: 1fr; }
  .svc-card { padding: 26px 22px; }
  .svc-index { font-size: 30px; top: 18px; right: 20px; }
  .feature-item { padding: 24px 22px; }
  .feature-num { width: 44px; height: 44px; border-radius: 12px; font-size: 17px; }
  .case-body, .news-body { padding: 20px 20px 22px; }
  .value-item { padding: 28px 20px; }
  .contact-card { padding: 18px; }

  /* 行业图卡：改成横向滑动，一屏能看多张 */
  .ind-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 76%;
    gap: 14px; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px max(18px, env(safe-area-inset-left)) 14px;
    margin: 0 calc(-1 * max(18px, env(safe-area-inset-left)));
    scrollbar-width: none;
  }
  .ind-grid::-webkit-scrollbar { display: none; }
  .ind-card { scroll-snap-align: center; min-height: 260px; }
  .ind-body { padding: 22px 20px; }
  .ind-body h3 { font-size: 18px; }

  /* 新闻列表：改成卡片式，日期变横向 */
  .news-row { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px; }
  .news-row-date { display: flex; align-items: baseline; gap: 8px; border-right: 0; padding-right: 0; text-align: left; }
  .news-row-date b { font-size: 16px; }
  .news-row-date span { font-size: 12px; }
  .news-row h3 { font-size: 15.5px; }
  .news-row p { font-size: 13px; }
  .news-row .row-tag { margin-left: 0; }

  /* CTA */
  .cta-band { padding: 34px 22px; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .cta-inner .btn { width: 100%; }

  /* 表单 */
  .form-card { padding: 24px 18px; }
  .form-field textarea { min-height: 112px; }
  .captcha-row { gap: 10px; }

  /* 详情页 */
  .article { padding: 26px 20px; border-radius: var(--r-md); }
  .article-body { font-size: 15px; }
  .article-body h2 { font-size: 18px; padding-left: 12px; margin: 30px 0 14px; }
  .article-body h3 { font-size: 16px; }
  .article-body p { line-height: 1.9; }
  .article-meta { gap: 8px 16px; font-size: 12.5px; }
  .article-tags { margin-top: 30px; padding-top: 22px; }
  .side-card { padding: 22px 20px; }
  .stat-blocks { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .pn-next { text-align: left; }
  .filter-bar { gap: 8px; margin-bottom: 30px; }

  /* 页脚 */
  .footer-main { grid-template-columns: 1fr; gap: 30px; padding: 46px 0 32px; }
  .site-footer { margin-top: 64px; }
  .footer-bottom { justify-content: center; text-align: center; flex-direction: column; gap: 8px; }

  /* 回到顶部：躲开内容 */
  .back-top { right: max(14px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 42px; height: 42px; }

  /* 主题菜单在手机上改为通栏：锚定在按钮上时，窄屏会从屏幕左侧溢出（色板被裁掉） */
  .theme-menu {
    position: fixed; top: calc(var(--header-h) + 8px);
    left: 12px; right: 12px; width: auto;
  }
}

/* ---------- 22.9 小屏手机（≤420） ---------- */
@media (max-width: 420px) {
  .hero-visual { display: none; }          /* 小屏把首屏配图让位给文案，首屏一屏看完 */
  .hero-inner { padding-bottom: 46px; }
  .section { padding: 48px 0; }
  .mt-row { grid-template-columns: 1fr; }
  .captcha-row { flex-wrap: wrap; }
  .captcha-row img { width: 118px; height: 40px; }
  .captcha-refresh { flex: 1 1 100%; }
  .brand-text span { letter-spacing: .22em; }
  .header-actions .btn { display: none; }
}

/* ---------- 22.10 横屏手机（高度很矮，纵向留白全部收紧） ---------- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero-inner { padding-top: 92px; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(24px, 4.6vw, 32px); }
  .hero-visual, .hero-stats { display: none; }
  .page-banner, .page-banner--sm { padding: 96px 0 34px; }
}

/* ---------- 22.11 页脚优化（平板 + 手机） ----------
   平板：品牌区独占一行，三个栏目并排，列宽均衡不再挤压
   手机：品牌区/联系区通栏，两个链接栏目双列排布，纵向长度减半 */
@media (max-width: 1180px) {
  .footer-main { grid-template-columns: 1fr 1fr 1fr; gap: 36px 28px; }
  .footer-brand { grid-column: 1 / -1; max-width: 620px; }
  .footer-brand p { max-width: 560px; }
}
@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 30px 22px; padding: 48px 0 34px; }
  .footer-brand, .footer-col--contact { grid-column: 1 / -1; }
  /* 链接栏目双列，纵向长度直接减半 */
  .footer-col ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
}
@media (max-width: 640px) {
  .footer-main { gap: 24px 16px; padding: 36px 0 26px; }
  .footer-brand .brand-mark { width: 34px; height: 34px; }
  .footer-brand p { display: none; }   /* 简介收进「关于我们」页，手机页脚只留一句 slogan */
  .footer-brand .footer-slogan { margin-top: 12px; }
  .footer-col h4 { font-size: 15px; margin-bottom: 10px; padding-bottom: 8px; }
  .footer-col ul { gap: 0 14px; }
  .footer-col li { margin-bottom: 0; }
  .footer-col a { font-size: 13.5px; }
  .footer-col ul.footer-contact { grid-template-columns: 1fr; }
  .footer-contact { display: grid; grid-template-columns: 1fr; gap: 9px; }
  .footer-contact li { margin-bottom: 0; font-size: 13.5px; }
  .footer-contact li span { flex: 1; min-width: 0; }
  .footer-contact svg { margin-top: 2px; width: 16px; height: 16px; }
  .footer-bottom {
    font-size: 12px; gap: 5px; flex-direction: column;
    padding: 16px 0 calc(14px + env(safe-area-inset-bottom));
  }
}

/* ---------- 23. 404 错误页 ----------
   由 404.php 使用，同时也被详情页「文章/案例不存在」时复用。
   深色主区沿用 --grad-banner（与内页横幅同一套渐变），所以四套皮肤下观感一致。 */
.nf-hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--grad-banner);
  /* 注意：本元素内部还有 .container，左右内边距必须交给 .container，不能写简写 */
  padding-top: 168px; padding-bottom: 64px;
}
.nf-inner { position: relative; z-index: 1; text-align: center; }

.nf-code {
  font-family: var(--mono);
  font-size: clamp(76px, 14vw, 146px);
  font-weight: 800; line-height: 1; letter-spacing: .04em;
  background: var(--hero-text-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.nf-title { color: #fff; font-size: clamp(22px, 3.2vw, 30px); margin: 0 0 12px; }
.nf-desc { max-width: 560px; margin: 0 auto 26px; font-size: 15px; line-height: 1.85; color: rgba(255,255,255,.78); }

.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* 站内搜索：白底胶囊在深色主区上最醒目，框内文字固定用 --brand-on-light
   （它就是「白底上的品牌色」，四套皮肤下都足够深） */
.nf-search {
  display: flex; align-items: center; gap: 8px;
  max-width: 520px; margin: 26px auto 0; padding: 6px 6px 6px 16px;
  background: #fff; border-radius: var(--r-pill); box-shadow: var(--shadow-lg);
}
.nf-search svg { width: 19px; height: 19px; flex: none; color: var(--brand-on-light); opacity: .6; }
.nf-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font-size: 14.5px; color: var(--brand-on-light); font-family: var(--font);
}
.nf-search input::placeholder { color: var(--brand-on-light); opacity: .5; }
.nf-search button {
  flex: none; border: 0; cursor: pointer; font-family: var(--font);
  padding: 10px 22px; border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 700; color: var(--on-brand);
  background: var(--grad-brand);
  transition: transform .2s ease, filter .2s ease;
}
.nf-search button:hover { transform: translateX(1px); filter: brightness(1.06); }
.nf-tip { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.6); }

/* 快捷入口 */
.nf-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.nf-link {
  display: flex; flex-direction: column;
  padding: 22px 20px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.nf-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-b); }
.nf-link-i {
  width: 42px; height: 42px; margin-bottom: 12px;
  display: grid; place-items: center; border-radius: 12px;
  background: var(--accent-a); color: var(--brand-500);
  transition: background .25s ease, color .25s ease;
}
.nf-link:hover .nf-link-i { background: var(--brand-500); color: var(--on-brand); }
.nf-link-i svg { width: 21px; height: 21px; }
.nf-link b { font-size: 15.5px; color: var(--ink); margin-bottom: 4px; }
.nf-link-d { font-size: 13px; line-height: 1.6; color: var(--muted); }

/* 热门文章 */
.nf-hot { margin-top: 42px; }
.nf-hot h3 { font-size: 17px; color: var(--ink); margin: 0 0 6px; }
.nf-hot ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 26px; }
.nf-hot li a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
  color: var(--ink-2); font-size: 14px;
  transition: color .2s ease;
}
.nf-hot li a:hover { color: var(--brand-500); }
.nf-hot-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-hot-d { flex: none; font-size: 12.5px; color: var(--muted); }

/* 平板与手机 */
@media (max-width: 900px) {
  .nf-hero { padding-top: 132px; padding-bottom: 52px; }
  .nf-links { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .nf-hot ul { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nf-hero { padding-top: 106px; padding-bottom: 42px; }
  .nf-desc { font-size: 14px; margin-bottom: 22px; }
  .nf-actions { gap: 10px; }
  .nf-search { margin-top: 22px; padding: 5px 5px 5px 14px; }
  .nf-search button { padding: 9px 18px; font-size: 14px; }
  .nf-links { gap: 12px; }
  .nf-link { padding: 18px 16px; }
  .nf-link-i { width: 38px; height: 38px; margin-bottom: 10px; }
  .nf-hot { margin-top: 32px; }
}
@media (max-width: 420px) {
  .nf-actions { flex-direction: column; }
  .nf-actions .btn { justify-content: center; }
}
