/* ============================================================
   帕亨网络 — 前台样式
   质感机构风：香槟金 / 深蓝黑 / 冷青点缀 · 玻璃拟态导航 · 卡片光影 · 入场动效
   浅色主题与深色主题共用同一套「金 + 冷青」设计语言，仅底色明暗不同
   ============================================================ */

:root {
  /* 浅色主题：暖白底 + 铜金主色 + 深冷青辅助（与深色主题同一设计语言） */
  --bg: #faf9f6;
  --bg-alt: #f4f1e9;
  --surface: #ffffff;
  --surface-2: #f7f4ec;
  --fg: #26221b;
  --fg-muted: #6f6a5f;
  --primary: #9a7428;        /* 铜金：浅底上保证足够对比度 */
  --primary-2: #b8903f;
  --primary-hover: #7e5d1d;
  --accent: #356f86;         /* 深冷青 */
  --gradient: linear-gradient(120deg, #a67c2e 0%, #c9a24b 55%, #d4af6a 100%);
  --cta-gradient: linear-gradient(120deg, #9a7428 0%, #c9a24b 55%, #d4af6a 100%);
  --cta-fg: #ffffff;
  --border: #e7e2d6;
  --line-strong: rgba(154, 116, 40, .30);
  --glow-gold: rgba(201, 162, 75, .18);
  --glow-cyan: rgba(127, 179, 200, .14);
  --shadow-sm: 0 1px 3px rgba(40, 32, 18, .06), 0 1px 2px rgba(40, 32, 18, .04);
  --shadow-md: 0 12px 30px rgba(40, 32, 18, .10);
  --shadow-lg: 0 24px 60px rgba(154, 116, 40, .15);
  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1120px;
  --header-h: 72px;
  --footer-bg: #efece3;
  --footer-fg: #6f6a5f;
  --footer-fg-strong: #26221b;
}
[data-theme="dark"] {
  /* 深蓝黑底 + 香槟金主色 + 冷青点缀（展览展示方案同款质感） */
  --bg: #0d1015;
  --bg-alt: #12161d;
  --surface: #171c25;
  --surface-2: #1d2330;
  --fg: #ece9e2;
  --fg-muted: #9aa1ad;
  --primary: #d4af6a;        /* 香槟金 */
  --primary-2: #c9a24b;      /* 古铜金 */
  --primary-hover: #e6c98a;
  --accent: #7fb3c8;         /* 冷青 */
  --gradient: linear-gradient(120deg, #c9a24b 0%, #d4af6a 55%, #e6c98a 100%);
  --cta-gradient: linear-gradient(120deg, #b8913f 0%, #d4af6a 50%, #e8cb8e 100%);
  --cta-fg: #12161d;
  --border: rgba(255, 255, 255, .09);
  --line-strong: rgba(201, 162, 75, .32);
  --glow-gold: rgba(201, 162, 75, .16);
  --glow-cyan: rgba(127, 179, 200, .12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, .42);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  --footer-bg: #0a0d12;
  --footer-fg: #8d94a0;
  --footer-fg-strong: #ece9e2;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1015;
    --bg-alt: #12161d;
    --surface: #171c25;
    --surface-2: #1d2330;
    --fg: #ece9e2;
    --fg-muted: #9aa1ad;
    --primary: #d4af6a;
    --primary-2: #c9a24b;
    --primary-hover: #e6c98a;
    --accent: #7fb3c8;
    --gradient: linear-gradient(120deg, #c9a24b 0%, #d4af6a 55%, #e6c98a 100%);
    --cta-gradient: linear-gradient(120deg, #b8913f 0%, #d4af6a 50%, #e8cb8e 100%);
    --cta-fg: #12161d;
    --border: rgba(255, 255, 255, .09);
    --line-strong: rgba(201, 162, 75, .32);
    --glow-gold: rgba(201, 162, 75, .16);
    --glow-cyan: rgba(127, 179, 200, .12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, .42);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
    --footer-bg: #0a0d12;
    --footer-fg: #8d94a0;
    --footer-fg-strong: #ece9e2;
    color-scheme: dark;
  }
}

/* ---------- 深色主题细节：香槟金 + 冷青（与浅色同一语言，仅换色与装饰，不改布局） ---------- */
/* 主按钮：深底 + 金色渐变描边 + 温润金晕 */
[data-theme="dark"] .btn-primary,
:root:not([data-theme="light"]) .btn-primary {
  background: linear-gradient(#171c25, #171c25) padding-box,
              linear-gradient(120deg, #c9a24b 0%, #e6c98a 50%, #c9a24b 100%) border-box;
  border: 1.5px solid transparent;
  color: #f0e6d2 !important;
  box-shadow:
    0 0 20px rgba(201, 162, 75, .18),
    0 0 48px rgba(201, 162, 75, .08),
    0 8px 28px rgba(0, 0, 0, .45);
}
[data-theme="dark"] .btn-primary:hover,
:root:not([data-theme="light"]) .btn-primary:hover {
  background: linear-gradient(120deg, #c9a24b 0%, #e6c98a 50%, #c9a24b 100%) border-box,
              #171c25 padding-box;
  color: #12161d !important;
  box-shadow:
    0 0 28px rgba(212, 175, 106, .32),
    0 0 60px rgba(201, 162, 75, .16),
    0 10px 32px rgba(0, 0, 0, .5);
}
/* 导航 CTA：同款金色描边 + 光晕（hover 时填充金，字变深） */
[data-theme="dark"] .nav-cta,
:root:not([data-theme="light"]) .nav-cta {
  background: linear-gradient(#171c25, #171c25) padding-box,
              linear-gradient(120deg, #c9a24b 0%, #e6c98a 50%, #c9a24b 100%) border-box !important;
  border: 1.5px solid transparent !important;
  color: #f0e6d2 !important;
  box-shadow:
    0 0 16px rgba(201, 162, 75, .16),
    0 0 38px rgba(201, 162, 75, .07);
}
[data-theme="dark"] .nav-cta:hover,
:root:not([data-theme="light"]) .nav-cta:hover {
  background: linear-gradient(120deg, #c9a24b 0%, #e6c98a 50%, #c9a24b 100%) border-box,
              #171c25 padding-box !important;
  color: #12161d !important;
  box-shadow:
    0 0 24px rgba(212, 175, 106, .3),
    0 0 52px rgba(201, 162, 75, .14);
}
/* Hero 双色光球：金 + 冷青 */
[data-theme="dark"] .hero::before,
:root:not([data-theme="light"]) .hero::before {
  background: radial-gradient(circle, rgba(201, 162, 75, .20), transparent 70%);
}
[data-theme="dark"] .hero::after,
:root:not([data-theme="light"]) .hero::after {
  background: radial-gradient(circle, rgba(127, 179, 200, .14), transparent 70%);
}
[data-theme="dark"] .page-head::after,
:root:not([data-theme="light"]) .page-head::after {
  background: radial-gradient(circle, rgba(201, 162, 75, .20), transparent 70%);
}
/* 装饰圆环已移除：保持简约，不再显示 hero 背景弧线（保留类名以兼容旧模板） */
.neon-rings { display: none !important; }
/* 品牌标投影换暖金光 */
[data-theme="dark"] .brand-mark,
:root:not([data-theme="light"]) .brand-mark {
  box-shadow: 0 4px 18px rgba(201, 162, 75, .28);
}
/* 服务页徽标：深底金色描边 */
[data-theme="dark"] .hero-badges .badge-gold,
:root:not([data-theme="light"]) .hero-badges .badge-gold {
  background: linear-gradient(#171c25, #171c25) padding-box,
              linear-gradient(120deg, rgba(201, 162, 75, .65), rgba(230, 201, 138, .65)) border-box !important;
  border: 1.5px solid transparent !important;
  color: #f0e6d2 !important;
  box-shadow: 0 0 16px rgba(201, 162, 75, .12);
}
/* 卡片 hover：香槟金微光 */
[data-theme="dark"] .card:hover,
:root:not([data-theme="light"]) .card:hover {
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(201, 162, 75, .14), 0 12px 34px rgba(0, 0, 0, .32);
  border-color: var(--line-strong);
}
/* 选中文字与滚动条统一暖金调 */
[data-theme="dark"] ::selection,
:root:not([data-theme="light"]) ::selection {
  background: rgba(201, 162, 75, .28);
  color: #fff;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb,
:root:not([data-theme="light"]) ::-webkit-scrollbar-thumb {
  background: #33302b;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover,
:root:not([data-theme="light"]) ::-webkit-scrollbar-thumb:hover {
  background: #4a443a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: transparent;
  color: var(--fg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* 科技感：全站细网格底纹 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 100%);
  pointer-events: none;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- 入场动效（仅在 JS 可用时启用） ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
@media print {
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 头部：玻璃拟态 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 800; letter-spacing: .02em; color: var(--fg);
}
.brand-logo {
  height: 44px; width: auto; max-width: 220px;
  object-fit: contain; flex-shrink: 0;
}
.footer-logo { height: 36px; max-width: 240px; }
[data-theme="dark"] .footer-logo,
:root:not([data-theme="light"]) .footer-logo { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .footer-logo { filter: brightness(0) invert(1); }
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--gradient); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(154, 116, 40, .28);
}
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  position: relative; color: var(--fg-muted); font-size: .95rem; font-weight: 500;
  padding: 4px 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--gradient); border-radius: 2px; transition: right .25s ease;
}
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.site-nav a.active, .site-nav a:hover { color: var(--fg); }
.nav-cta {
  background: var(--cta-gradient); color: var(--cta-fg) !important;
  padding: 9px 22px !important; border-radius: 999px; font-size: .92rem; font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 4px 16px rgba(154, 116, 40, .26), 0 0 22px rgba(201, 162, 75, .12);
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(154, 116, 40, .34), 0 0 32px rgba(201, 162, 75, .2); color: var(--cta-fg) !important; }
.theme-toggle {
  background: color-mix(in srgb, var(--primary) 5%, transparent);
  border: 1px solid var(--border); border-radius: 999px;
  width: 36px; height: 36px; cursor: pointer; font-size: .95rem;
  color: var(--fg-muted); display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
  flex-shrink: 0;
}
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle:hover {
  border-color: var(--primary); color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  transform: rotate(-12deg);
}
/* 图标随主题切换：浅色显示月亮（点按进入深色），深色显示太阳（点按回到浅色） */
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon,
:root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--fg); cursor: pointer; line-height: 1; }

/* ---------- Hero：渐变光晕 ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 110px 0 90px; text-align: center;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35;
  pointer-events: none;
}
.hero::before {
  width: 520px; height: 520px; top: -180px; left: 50%;
  transform: translateX(-70%);
  background: radial-gradient(circle, rgba(201, 162, 75, .28), transparent 70%);
}
.hero::after {
  width: 460px; height: 460px; top: -120px; left: 50%;
  transform: translateX(5%);
  background: radial-gradient(circle, rgba(127, 179, 200, .2), transparent 70%);
}
.hero-badge {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px; border-radius: 999px; margin-bottom: 22px;
  background: color-mix(in srgb, var(--primary) 10%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  color: var(--primary); font-size: .85rem; font-weight: 600;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 8%, transparent); }
}
.hero h1 {
  position: relative;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem); line-height: 1.25;
  letter-spacing: -.01em; font-weight: 800;
  margin: 0 auto;
}
.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  position: relative;
  margin: 20px auto 34px; color: var(--fg-muted);
  font-size: clamp(.92rem, 2vw, 1.02rem); max-width: 620px;
}
.hero-actions { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  position: relative;
  display: flex; justify-content: center; margin: 56px auto 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  max-width: 720px;
}
.hero-stats > div { flex: 1; padding: 20px 10px; text-align: center; }
.hero-stats > div + div { border-left: 1px solid var(--border); }
.hero-stats strong {
  display: block; font-size: 1.45rem; font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-stats span { color: var(--fg-muted); font-size: .88rem; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 999px;
  font-size: .95rem; font-weight: 600; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s, color .2s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--cta-gradient); color: var(--cta-fg) !important;
  box-shadow: 0 6px 22px rgba(154, 116, 40, .28), 0 0 28px rgba(201, 162, 75, .14);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(154, 116, 40, .36), 0 0 38px rgba(201, 162, 75, .22); color: var(--cta-fg) !important; }
.btn-ghost { border-color: var(--border); color: var(--fg) !important; background: var(--bg); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary) !important; transform: translateY(-2px); }

/* ---------- 区块 ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p { color: var(--fg-muted); margin-top: 12px; }
.section-title {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem); font-weight: 800; letter-spacing: -.01em;
  background: linear-gradient(120deg, var(--fg) 40%, var(--primary) 75%, var(--primary-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section-title small {
  display: block; font-size: .72rem; color: var(--primary);
  font-weight: 700; text-transform: uppercase; letter-spacing: .3em; margin-bottom: 10px;
}
.page-head {
  position: relative; overflow: hidden;
  padding: 72px 0 46px; background: var(--bg-alt); text-align: center;
}
.page-head::after {
  content: ""; position: absolute; width: 480px; height: 300px; left: 50%; top: -120px;
  transform: translateX(-50%); border-radius: 50%; filter: blur(80px); opacity: .25;
  background: radial-gradient(circle, rgba(201, 162, 75, .24), transparent 70%);
  pointer-events: none;
}
.page-head h1 { position: relative; font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 800; }
.page-head p { position: relative; color: var(--fg-muted); margin-top: 10px; }

/* ---------- 网格与卡片 ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; display: block;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 25px; color: var(--fg);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; top: auto; height: 3px;
  background: var(--gradient); opacity: 0; transition: opacity .25s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  color: var(--fg);
}
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 10px; font-size: 1.02rem; font-weight: 700; }
.card p { color: var(--fg-muted); font-size: .88rem; }
.price {
  display: inline-block; margin-top: 14px; padding: 4px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 8%, var(--bg));
  color: var(--primary); font-weight: 700; font-size: .85rem;
}

/* 首页服务卡：flex 纵向，简介弹性撑开，价格徽标统一贴底对齐 */
.home-svc { display: flex; flex-direction: column; align-items: flex-start; }
.home-svc h3 { margin-top: 8px; }
.home-svc p { flex: 1; margin: 8px 0 0; }
.home-svc .price { margin-top: 14px; }
.price-lg { font-size: 1.05rem; }
.more-link { text-align: center; margin-top: 36px; }
.more-link a { font-weight: 600; }

/* 服务图标 */
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  background: color-mix(in srgb, var(--primary) 10%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
}

/* ---------- 服务项目页（核心版块） ---------- */
.services-hero { padding: 84px 0 56px; }
.hero-kicker {
  font-size: .78rem; font-weight: 800; letter-spacing: .45em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.services-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900;
  background: linear-gradient(120deg, var(--fg) 30%, var(--primary) 70%, var(--primary-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.services-hero p { margin-top: 12px; }
.hero-badges { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; position: relative; }
.hero-badges span {
  padding: 6px 16px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 72%, transparent);
  color: var(--fg-muted); backdrop-filter: blur(6px);
}
.hero-badges .badge-gold {
  background: var(--cta-gradient); color: var(--cta-fg); border-color: transparent;
  box-shadow: 0 4px 16px rgba(154, 116, 40, .24), 0 0 20px rgba(201, 162, 75, .12);
}

.service-stack { display: flex; flex-direction: column; gap: 20px; }
.svc-card {
  display: flex; gap: 26px; align-items: flex-start;
  padding: 26px 28px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg);
  box-shadow: var(--shadow-sm); text-decoration: none;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.svc-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--gradient); opacity: 0; transition: opacity .25s;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.svc-card:hover::before { opacity: 1; }
.svc-side { display: flex; flex-direction: column; align-items: center; gap: 14px; flex-shrink: 0; width: 120px; }
.svc-icon {
  width: 64px; height: 64px; border-radius: 16px; font-size: 1.9rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, var(--bg)), color-mix(in srgb, var(--primary-2) 10%, var(--bg)));
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
}
.svc-price {
  font-size: .8rem; font-weight: 700; white-space: nowrap;
  padding: 4px 12px; border-radius: 999px;
  background: var(--cta-gradient); color: var(--cta-fg);
  box-shadow: 0 3px 12px rgba(154, 116, 40, .2);
}
.svc-body { flex: 1; min-width: 0; }
.svc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.svc-head h3 { font-size: 1.14rem; font-weight: 800; }
.svc-arrow { font-size: .85rem; font-weight: 600; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: all .25s; white-space: nowrap; }
.svc-card:hover .svc-arrow { opacity: 1; transform: none; }
.svc-summary { color: var(--fg-muted); font-size: .92rem; margin-top: 6px; }
.svc-features { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.svc-feat-label {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .18em;
  color: var(--primary); text-transform: uppercase; margin-bottom: 8px;
}
.svc-features ul { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; }
.svc-features li { position: relative; padding-left: 18px; font-size: .86rem; color: var(--fg-muted); }
.svc-features li::before {
  content: "◆"; position: absolute; left: 0; top: 1px; font-size: .6rem; color: var(--accent);
}
@media (max-width: 768px) {
  .svc-card { flex-direction: column; gap: 14px; }
  .svc-side { flex-direction: row; width: auto; }
  .svc-arrow { opacity: 1; transform: none; }
}

/* 服务详情页 */
.svc-detail-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.svc-price-lg { font-size: 1rem; padding: 6px 18px; }
.svc-cases-badge {
  font-size: .84rem; font-weight: 600; color: var(--primary);
  padding: 6px 14px; border-radius: 999px;
  border: 1px dashed color-mix(in srgb, var(--primary) 40%, transparent);
  background: color-mix(in srgb, var(--primary) 6%, var(--bg));
}
.svc-scope ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.svc-scope li {
  position: relative; padding: 14px 16px 14px 44px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg);
  font-size: .92rem; font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.svc-scope li::before {
  content: "✓"; position: absolute; left: 14px; top: 13px;
  width: 20px; height: 20px; border-radius: 6px; font-size: .72rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  background: var(--cta-gradient); color: var(--cta-fg);
}
@media (max-width: 640px) { .svc-scope ul { grid-template-columns: 1fr; } }

/* 核心竞争力 */
.flow-card { text-align: center; padding-top: 30px; }
.flow-no {
  display: block; font-size: 2.4rem; font-weight: 800; line-height: 1;
  margin-bottom: 14px;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  opacity: .85;
}
.flow-card h3 { margin-bottom: 8px; }
.flow-card p { font-size: .9rem; }

/* 案例 */
.case-card h3 { font-size: 1.02rem; }
.case-card::after {
  content: "→"; position: absolute; right: 20px; top: 24px;
  color: var(--primary); opacity: 0; transition: opacity .2s, transform .2s;
  transform: translateX(-6px);
}
.case-card:hover::after { opacity: 1; transform: none; }
.case-cover { border-radius: var(--radius-sm); margin-bottom: 14px; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.case-tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px; margin-bottom: 10px;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  color: var(--accent); font-size: .75rem; font-weight: 600;
}

/* 案例详情 */
.case-detail { max-width: var(--max-w); }
.case-hero {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--border); margin-bottom: 24px;
}
.case-meta {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  padding: 14px 18px; margin-bottom: 24px;
  background: var(--bg-alt); border-radius: var(--radius-sm);
  color: var(--fg-muted); font-size: .9rem;
}
.case-meta a { color: var(--primary); text-decoration: none; }
.case-content.article-content img {
  max-width: 100%; height: auto; display: block;
  margin: 0 auto; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
/* 图片多为整体设计：纯图片段落去掉上下外间距，保证多图连成一体 */
.case-content p:has(> img:only-child),
.case-content div:has(> img:only-child) { margin: 0; }
.case-content div { margin: 10px 0; }
.case-content div[style*="display: none"], .case-content div[style*="opacity: 0"] { display: none; }
.case-nav {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px;
  margin-top: 40px; align-items: stretch;
}
.case-nav-card {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 18px; font-size: .92rem; color: var(--fg-muted);
  text-align: center; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.case-nav-card:hover { color: var(--fg); }
@media (max-width: 768px) {
  .case-nav { grid-template-columns: 1fr; }
}

/* ---------- 文章列表 ---------- */
.article-list { display: flex; flex-direction: column; gap: 16px; }
.article-item {
  display: flex; gap: 22px; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 26px; color: var(--fg); background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.article-item:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  box-shadow: var(--shadow-md);
}
.article-item-body { flex: 1; min-width: 0; }
.article-item h2 { font-size: 1.02rem; margin-bottom: 8px; line-height: 1.45; }
.article-item p { color: var(--fg-muted); font-size: .88rem; }
.article-brief {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.6;
}
.article-thumb {
  width: 150px; height: 96px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0;
}
.meta { color: var(--fg-muted); font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 开源项目单页 ---------- */
.oss-page { display: flex; flex-direction: column; gap: 24px; }
.oss-card {
  padding: 30px 34px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg);
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.oss-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--gradient); opacity: 0; transition: opacity .25s;
}
.oss-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.oss-card:hover::before { opacity: 1; }
.oss-head { display: flex; gap: 20px; align-items: flex-start; }
.oss-icon {
  width: 64px; height: 64px; border-radius: 16px; font-size: 1.9rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, var(--bg)), color-mix(in srgb, var(--primary-2) 10%, var(--bg)));
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
}
.oss-title { flex: 1; min-width: 0; }
.oss-title h2 { font-size: 1.3rem; font-weight: 800; }
.oss-tagline { color: var(--fg-muted); font-size: .94rem; margin-top: 6px; }
.oss-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.oss-badge {
  padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  color: var(--primary); border: 1px dashed color-mix(in srgb, var(--primary) 40%, transparent);
  background: color-mix(in srgb, var(--primary) 6%, var(--bg));
}
.oss-badge-tech { color: var(--fg-muted); border-style: solid; background: var(--bg-alt); }
.oss-desc { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border); }
.oss-desc p { color: var(--fg-muted); font-size: .93rem; margin: 10px 0; }
.oss-desc ul { margin: 10px 0 10px 22px; color: var(--fg-muted); font-size: .92rem; }
.oss-desc li { margin: 6px 0; }
.oss-desc h3 { font-size: 1.02rem; margin: 18px 0 8px; color: var(--fg); }
.oss-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.oss-footnote { text-align: center; color: var(--fg-muted); font-size: .9rem; margin-top: 8px; }
@media (max-width: 640px) {
  .oss-card { padding: 22px; }
  .oss-head { flex-direction: column; }
}

/* 正文图片灯箱（点击放大预览） */
.article-content img { cursor: zoom-in; }
.img-lightbox {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center; padding: 40px;
  background: rgba(8, 12, 24, .84); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .22s, visibility .22s;
  cursor: zoom-out;
}
.img-lightbox.show { opacity: 1; visibility: visible; }
.img-lightbox img {
  max-width: 92vw; max-height: 88vh; object-fit: contain;
  border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}

/* ---------- 分页 / 分类导航 ---------- */
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 36px; color: var(--fg-muted); }
.pager a {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border);
  color: var(--fg-muted); font-size: .92rem; background: var(--bg);
  transition: border-color .2s, color .2s;
}
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; justify-content: center; }
.cat-nav a {
  padding: 6px 18px; border-radius: 999px; border: 1px solid var(--border);
  color: var(--fg-muted); font-size: .9rem; background: var(--bg);
  transition: all .2s;
}
.cat-nav a:hover { border-color: var(--primary); color: var(--primary); }
.cat-nav a.active {
  background: var(--gradient); color: #fff; border-color: transparent;
  font-weight: 600;
}

/* ---------- 文章详情 ---------- */
.article-page { padding: 56px 24px 30px; max-width: var(--max-w); }
.article-header h1 { font-size: clamp(1.35rem, 2.8vw, 1.8rem); margin-bottom: 14px; line-height: 1.4; }
.article-header .meta { display: flex; gap: 18px; margin-bottom: 28px; }
.article-cover { border-radius: var(--radius); margin-bottom: 28px; box-shadow: var(--shadow-sm); }
.article-content { font-size: .95rem; color: color-mix(in srgb, var(--fg) 88%, var(--fg-muted)); }
.article-content p { margin: 16px 0; }
.article-content h2, .article-content h3 { margin: 34px 0 14px; color: var(--fg); }
.article-content h2 { font-size: 1.4rem; }
.article-content img { border-radius: var(--radius-sm); margin: 18px 0; }
.article-content ul, .article-content ol { margin: 16px 0 16px 26px; }
.article-content li { margin: 6px 0; }
.article-content blockquote {
  margin: 20px 0; padding: 14px 20px; border-left: 4px solid var(--primary);
  background: var(--bg-alt); color: var(--fg-muted); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-content pre {
  background: #0f1428; color: #dbe4ff;
  padding: 18px 20px; border-radius: var(--radius-sm); overflow-x: auto;
  font-size: .88rem; line-height: 1.6;
}
.article-content code { background: var(--bg-alt); padding: 2px 7px; border-radius: 5px; font-size: .9em; }
.article-content pre code { background: none; padding: 0; }
.article-content table { border-collapse: collapse; width: 100%; margin: 18px 0; }
.article-content td, .article-content th { border: 1px solid var(--border); padding: 9px 14px; }
.article-content th { background: var(--bg-alt); }
.article-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  background: var(--bg-alt); padding: 90px 0;
}
.cta::before {
  content: ""; position: absolute; width: 640px; height: 340px; left: 50%; top: 50%;
  transform: translate(-50%, -50%); border-radius: 50%; filter: blur(90px); opacity: .3;
  background: radial-gradient(circle, rgba(201, 162, 75, .26), transparent 70%);
  pointer-events: none;
}
.cta h2 { position: relative; font-size: clamp(1.3rem, 2.5vw, 1.7rem); margin-bottom: 12px; font-weight: 800; }
.cta p { position: relative; color: var(--fg-muted); margin-bottom: 28px; }
.cta-inline { margin: 40px 0; border: 1px dashed var(--border); border-radius: var(--radius); padding: 30px; }

/* ---------- 表单 ---------- */
.contact-wrap { max-width: var(--max-w); }
.contact-form {
  display: flex; flex-direction: column; gap: 18px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 7px; font-size: .9rem; font-weight: 600; color: var(--fg); }
.contact-form input, .contact-form textarea, .contact-form select {
  padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-alt); color: var(--fg); font-size: .95rem; font-family: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
  font-weight: 400;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--primary);
  background: var(--bg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}
.contact-form .btn { align-self: flex-start; margin-top: 4px; }
.form-result { color: var(--primary); font-size: .92rem; min-height: 1.4em; font-weight: 600; }

/* ---------- 页脚：深色 ---------- */
.site-footer {
  margin-top: 0; padding: 56px 0 32px;
  background: var(--footer-bg); color: var(--footer-fg);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
.footer-contact strong { color: var(--footer-fg-strong); font-size: 1.1rem; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-contact strong .brand-mark { width: 28px; height: 28px; font-size: .85rem; border-radius: 8px; }
.footer-contact p { font-size: .88rem; margin: 5px 0; }
.footer-contact a { color: var(--footer-fg); }
.footer-contact a:hover { color: var(--footer-fg-strong); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--footer-fg); font-size: .9rem; }
.footer-links a:hover { color: var(--footer-fg-strong); }
.copyright { width: 100%; font-size: .82rem; color: color-mix(in srgb, var(--footer-fg) 65%, transparent); padding-top: 8px; }
.copyright a { color: inherit; text-decoration: none; text-underline-offset: 3px; }

/* ---------- 其他 ---------- */
.empty { color: var(--fg-muted); text-align: center; padding: 48px 0; }
.notfound { text-align: center; padding: 100px 0; }
.notfound h1 {
  font-size: 5.5rem; font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.notfound p { padding: 12px 0; }
.about-page, .about-brief { max-width: var(--max-w); }
.about-page h2 { margin: 40px 0 16px; font-size: 1.4rem; font-weight: 800; }
.about-page h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--gradient); border-radius: 2px; margin-top: 8px; }
.about-page p { margin: 14px 0; color: var(--fg-muted); }
.about-page h2 + p strong, .about-brief strong { color: var(--fg); }
.about-block-title { margin: 44px 0 6px; font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 900; letter-spacing: -.01em; }
.about-block-title small { display: inline-block; margin-left: 14px; font-size: .85rem; font-weight: 500; color: var(--accent); }
.about-block-title::after { content: ""; display: block; width: 48px; height: 3px; background: var(--gradient); border-radius: 2px; margin-top: 10px; }
.about-slogans {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px;
  margin: 26px 0 8px; padding: 0;
}
.about-slogans li {
  position: relative; padding: 12px 18px 12px 34px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg);
  color: var(--fg); font-weight: 600; font-size: .95rem;
  box-shadow: var(--shadow-sm);
}
.about-slogans li::before {
  content: "“"; position: absolute; left: 12px; top: 6px;
  font-size: 1.5rem; font-weight: 800; color: var(--accent); line-height: 1;
}
@media (max-width: 640px) { .about-slogans { grid-template-columns: 1fr; } }
.about-brief p { color: var(--fg-muted); margin-top: 14px; }
.philosophy { list-style: none; margin: 16px 0; }
.philosophy li { padding: 12px 0 12px 28px; position: relative; color: var(--fg-muted); border-bottom: 1px dashed var(--border); }
.philosophy li::before { content: "✦"; position: absolute; left: 4px; color: var(--primary); }
.contact-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 26px 0; }
.contact-info-grid .card strong { display: block; margin-bottom: 8px; font-size: .95rem; }
.contact-info-grid p { color: var(--fg-muted); font-size: .92rem; margin: 0; }
.muted { color: var(--fg-muted); font-size: .82rem; }

/* 返回顶部 */
.back-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient); color: #fff; border: none; cursor: pointer;
  font-size: 1.1rem; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.back-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { transform: translateY(-2px); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  /* 内容较长的服务卡/案例卡保持单列 */
  .svc-grid, .case-grid { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .article-item { flex-direction: column-reverse; align-items: stretch; }
  .article-thumb { width: 100%; height: 160px; }
  .nav-toggle { display: block; }
  .theme-toggle { margin-left: auto; }
  .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg); flex-direction: column; padding: 20px 24px;
    border-bottom: 1px solid var(--border); gap: 16px; align-items: flex-start;
    box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 1rem; }
  .hero { padding: 72px 0 64px; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stats > div { flex: 1 1 33%; }
  .section { padding: 60px 0; }
}
@media (max-width: 480px) {
  /* 统计块 2×2 网格（纵向堆叠过于占屏） */
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: 36px; }
  .hero-stats > div { flex: none; padding: 14px 8px; }
  .hero-stats > div + div { border-left: none; }
  .hero-stats > div:nth-child(2n) { border-left: 1px solid var(--border); }
  .hero-stats > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .hero-stats strong { font-size: 1.3rem; }
  /* 核心竞争力卡 2 列收紧 */
  .flow-card { padding: 18px 14px; }
  .flow-no { font-size: 1.8rem; margin-bottom: 8px; }
  .flow-card h3 { font-size: .98rem; }
  .flow-card p { font-size: .82rem; }
  .contact-form { padding: 22px; }
}

/* ============================================================
   质感增强：香槟金细节（纯装饰，不改变结构与布局）
   ============================================================ */
/* 分节线：呼应规划方案的分节描边 */
.section:not(.cta) { border-bottom: 1px solid var(--border); }
.site-footer { border-top: 1px solid var(--border); }

/* 段落小标题（kicker）：金色短线包裹，提升精致度 */
.section-title small::before,
.section-title small::after {
  content: ""; display: inline-block; width: 20px; height: 1px;
  background: var(--primary); vertical-align: middle; opacity: .55;
}
.section-title small::before { margin-right: 10px; }
.section-title small::after { margin-left: 10px; }

/* 卡片内高光：深色下微弱金边反光，提升层次 */
.card { box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .05); }
[data-theme="dark"] .card,
:root:not([data-theme="light"]) .card {
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(212, 175, 106, .07);
}
/* 首屏徽标字距，贴近参考方案的 tag 质感 */
.hero-badge { letter-spacing: .03em; }

/* 浅色主题滚动条（深色滚动条已在主题覆盖中定义） */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #d8d2c4; border-radius: 8px;
  border: 2px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #c4bca9; background-clip: padding-box; }

/* 正文表格：金调表头，呼应参考方案的表格样式 */
.article-content th { background: var(--surface-2); color: var(--primary); font-weight: 700; }

/* 内联 CTA：淡金渐变底 + 金色描边（呼应参考方案的 .hl 区块） */
.cta-inline {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--primary) 7%, var(--bg)),
    color-mix(in srgb, var(--primary) 2%, var(--bg)));
  border: 1px solid var(--line-strong);
}
