/* ============================================================
   上海智证检测技术有限公司 官方网站
   设计语言：现代 · 简洁 · 大气 · 科技感（Apple 风格参考）
   主色：深海靛蓝（信任 · 专业）；辅助：极光青（精准 · 科技）
   底色：白 / 冷调浅灰；阴影统一带靛蓝调
   ============================================================ */

:root {
  /* 让浏览器为表单控件/滚动条使用与主题匹配的系统配色 */
  color-scheme: light;

  /* ---- 主色：深海靛蓝 ---- */
  --blue-900: #061E33;
  --blue-800: #0A2C4A;
  --blue-700: #0E3F66;
  --blue-600: #115A8C;   /* 品牌主色 */
  --blue-500: #1A7CB8;
  --blue-400: #3498D6;
  --blue-200: #B9D8F0;
  --blue-100: #D1E2ED;
  --blue-50:  #E3EDF3;

  /* ---- 强调色：极光青 ---- */
  --cyan-600: #087488;
  --cyan-500: #148297;
  --cyan-400: #2BC5D8;
  --cyan-200: #A9E6EF;
  --cyan-100: #D4F1F6;

  /* ---- 中性：冷调石板灰 ---- */
  --ink-950: #061826;
  --ink-900: #0F1D2B;
  --ink-700: #33475B;
  --ink-500: #506477;
  --ink-400: #596E80;
  --ink-300: #607487;
  --line:        #C5D1DA;
  --line-strong: #91A6B7;
  --bg-body:   #E4E9ED;
  --bg-soft:   #D8E1E7;
  --bg-softer: #EAF0F3;

  /* ---- 语义色 ---- */
  --green-600:  #0F9D6B;
  --green-100:  #D9F2E7;
  --orange-600: #D97706;
  --orange-100: #FDF0DC;
  --red-600:    var(--red-600);
  --gray-500:   #6B7C8F;

  /* ---- 渐变 ---- */
  --grad-primary:       linear-gradient(135deg, var(--blue-500), var(--blue-700));
  --grad-primary-hover: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  --grad-accent:        linear-gradient(135deg, #087B8D, #086477);
  --grad-hero:          linear-gradient(155deg, #102638 0%, #193E54 46%, #245469 100%);
  --grad-band:          linear-gradient(135deg, var(--blue-800), var(--blue-600));
  --grad-footer:        linear-gradient(180deg, #08243C 0%, #061E33 100%);
  --grad-soft:          linear-gradient(180deg, #D9E2E8 0%, #E1E8ED 100%);

  /* ---- 阴影 / 焦点环（带靛蓝调，与页面冷暖统一） ---- */
  --shadow-sm: inset 0 1px 0 rgba(255,255,255,.85), 0 2px 3px rgba(24,47,65,.08), 0 10px 24px -8px rgba(24,47,65,.24);
  --shadow-md: inset 0 1px 0 rgba(255,255,255,.85), 0 4px 8px rgba(24,47,65,.09), 0 18px 36px -12px rgba(24,47,65,.3);
  --shadow-lg: inset 0 1px 0 rgba(255,255,255,.85), 0 8px 14px rgba(24,47,65,.1), 0 28px 48px -14px rgba(24,47,65,.32);
  --shadow-brand:    0 8px 22px rgba(17, 90, 140, .26);
  --shadow-brand-lg: 0 12px 34px rgba(17, 90, 140, .36);
  --focus-ring: 0 0 0 4px rgba(26, 124, 184, .16);

  /* ---- 表面 / 玻璃层 / 反色（日间·夜间切换时整体替换） ---- */
  --surface:            #F5F7F8;
  --surface-2:          #EDF2F5;
  --header-bg:          rgba(237, 242, 245, .94);
  --header-bg-scrolled: rgba(237, 242, 245, .98);
  --overlay-bg:         rgba(237, 242, 245, .98);
  --glass-panel:        rgba(245, 247, 248, .96);
  --glass-panel-strong: rgba(245, 247, 248, .98);
  --btn-outline-bg:     #EDF3F6;
  --inverse-bg:         #0F1D2B;
  --inverse-text:       #FFFFFF;
  /* 品牌文字色：浅色主题下为深蓝，深色主题下自动提亮 */
  --brand-text:         var(--blue-700);
  --brand-text-strong:  var(--blue-800);

  --radius-card: 20px;
  --radius-input: 14px;
  --radius-pill: 980px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Inter",
          "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink-700);
  background: var(--bg-body);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue-100); }

.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
@media (max-width: 768px) { .container { width: calc(100% - 40px); } }

/* ---------- 通用排版 ---------- */
.section { padding: 96px 0; }
.section.soft { background: var(--grad-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em;
  color: var(--blue-600); text-transform: uppercase;
  padding: 6px 16px; background: var(--blue-50);
  border: 1px solid var(--blue-100); border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan-500);
}
.section-title {
  font-size: clamp(26px, 4vw, 40px); font-weight: 700;
  color: var(--ink-900); letter-spacing: -.02em; line-height: 1.25;
}
.section-desc { margin-top: 14px; color: var(--ink-500); font-size: 17px; }

/* ---------- 按钮（胶囊形，Apple 风格） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-pill); border: 1.5px solid transparent;
  padding: 13px 30px; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease,
              color .3s ease, border-color .3s ease;
  white-space: nowrap; line-height: 1.4; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--grad-primary);
  color: #fff; box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255,255,255,.25), inset 0 -2px 4px rgba(0,0,0,.15);
}
.btn-primary:hover {
  transform: translateY(-2px); background: var(--grad-primary-hover);
  box-shadow: var(--shadow-brand-lg), inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 5px rgba(0,0,0,.18);
}
.btn-primary:active {
  transform: translateY(0) scale(.98);
  box-shadow: var(--shadow-brand), inset 0 2px 5px rgba(0,0,0,.2);
}
.btn-outline {
  background: var(--btn-outline-bg); border-color: var(--blue-500); color: var(--brand-text);
}
.btn-outline:hover { transform: scale(1.04); background: var(--blue-50); border-color: var(--blue-600); }
.btn-ghost { color: var(--brand-text); background: var(--blue-50); }
.btn-ghost:hover { background: var(--blue-100); transform: scale(1.03); }
/* 白色按钮用于深色背景（Hero / CTA 横幅），两种模式都保持白底深字 */
.btn-white { background: #fff; color: var(--blue-800); box-shadow: 0 6px 18px rgba(6, 24, 38, .26); }
.btn-white:hover { transform: scale(1.04); box-shadow: 0 10px 30px rgba(6, 24, 38, .36); }
.btn-accent { background: var(--grad-accent); color: #fff; box-shadow: 0 8px 22px rgba(18, 169, 192, .3); }
.btn-accent:hover { transform: scale(1.04); box-shadow: 0 12px 30px rgba(18, 169, 192, .4); }
/* 深色背景（Hero / CTA 横幅）上的半透明按钮 */
.btn-glass {
  background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.42); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-glass:hover { transform: scale(1.04); background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.62); }
.btn-lg { padding: 16px 38px; font-size: 17px; }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn .arr { transition: transform .3s ease; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- 页头导航（毛玻璃） ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.8) blur(18px);
  backdrop-filter: saturate(1.8) blur(18px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease, background-color .3s ease;
}
.site-header.scrolled {
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(6, 30, 51, .08);
  border-bottom-color: var(--line);
  background: var(--header-bg-scrolled);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: var(--grad-primary);
  display: grid; place-items: center;
  box-shadow: var(--shadow-brand);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-cn { font-size: 19px; font-weight: 800; color: var(--ink-900); letter-spacing: .02em; }
.brand-en { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; color: var(--ink-300); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 2px; position: relative; }
.nav a {
  padding: 8px 13px; border-radius: var(--radius-pill); font-size: 15px;
  font-weight: 500; color: var(--ink-700); transition: color .25s ease, background-color .25s ease,
              box-shadow .25s ease, transform .25s ease;
  white-space: nowrap; flex-shrink: 0; position: relative; z-index: 3;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 4px rgba(0,0,0,.06);
}
.nav a:hover {
  color: var(--blue-600); background: var(--blue-50);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -2px 5px rgba(0,0,0,.1), 0 2px 8px rgba(17,90,140,.15);
  transform: translateY(-1px);
}
.nav a.active {
  color: var(--brand-text); background: var(--blue-100); font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 5px rgba(0,0,0,.12), 0 2px 6px rgba(17,90,140,.12);
}
.nav-slide1, .nav-slide2 {
  position: absolute; top: 2px; bottom: 2px; border-radius: var(--radius-pill);
  pointer-events: none;
  transition: all .55s cubic-bezier(.23, 1, .32, 1.05);
}
.nav-slide1 {
  background: var(--blue-50); z-index: 1; opacity: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 4px rgba(0,0,0,.06);
}
.nav-slide2 {
  background: transparent; border: 1.5px solid var(--blue-400); z-index: 2; opacity: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 8px rgba(17,90,140,.15);
}
.footer-slide { top: 0; bottom: auto; }
.site-footer .nav-slide1 { background: rgba(124,176,207,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.site-footer .nav-slide2 { border: 1.5px solid rgba(124,176,207,.95); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 10px rgba(0,0,0,.25); }
.header-cta { display: none; flex-shrink: 0; }
.hamburger {
  display: none; width: 44px; height: 44px; border: none; background: transparent;
  cursor: pointer; border-radius: 12px; flex-direction: column; align-items: center;
  justify-content: center; gap: 5px;
}
.hamburger span {
  width: 22px; height: 2.5px; border-radius: 2px; background: var(--ink-900);
  transition: transform .3s ease, opacity .3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 999;
  background: var(--overlay-bg); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 12px 24px 20px; display: none; flex-direction: column;
  box-shadow: 0 24px 48px rgba(6,30,51,.12);
}
.mobile-menu a {
  padding: 13px 14px; border-radius: 12px; font-size: 16px; font-weight: 500;
  color: var(--ink-700);
}
.mobile-menu a:active, .mobile-menu a.active { background: var(--blue-50); color: var(--brand-text); }
.mobile-menu .btn { margin-top: 10px; }
body.menu-open { overflow: hidden; }

@media (max-width: 1024px) {
  .nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.show { display: flex; }
  .section { padding: 72px 0; }
}

/* ---------- 首屏 Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: calc(var(--header-h) + 88px) 0 110px;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(43, 197, 216, .26), transparent 62%),
    radial-gradient(900px 480px at 8% 112%, rgba(52, 152, 214, .28), transparent 62%),
    linear-gradient(180deg, rgba(6, 30, 51, 0) 72%, rgba(6, 30, 51, .3) 100%),
    var(--grad-hero);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(720px 480px at 70% 30%, #000, transparent 75%);
  mask-image: radial-gradient(720px 480px at 70% 30%, #000, transparent 75%);
}
#particle-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.hero::after {
  content: ""; position: absolute; right: -140px; top: -60px; width: 560px; height: 560px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, rgba(43, 197, 216, .22), transparent 65%);
  filter: blur(8px);
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  font-size: 13.5px; font-weight: 500; letter-spacing: .04em;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-400);
  box-shadow: 0 0 12px rgba(43, 197, 216, .9);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.hero-title {
  font-size: clamp(34px, 6.2vw, 62px); font-weight: 800; line-height: 1.16;
  letter-spacing: -.025em; color: #fff;
}
.hero-title .grad {
  background: linear-gradient(92deg, #7FE3F0, #CFE9FB 62%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin-top: 22px; font-size: clamp(16px, 2vw, 19px); line-height: 1.85;
  color: rgba(226, 239, 252, .88); max-width: 640px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-stats {
  margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  max-width: 860px;
}
.hero-stat {
  padding: 20px 22px; border-radius: 18px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .3s ease, background-color .3s ease;
}
.hero-stat:hover { transform: translateY(-4px); background: rgba(255,255,255,.15); }
.hero-stat .num {
  font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: #fff;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2;
}
.hero-stat .num em { font-style: normal; color: var(--cyan-400); }
.hero-stat .lab { margin-top: 4px; font-size: 13.5px; color: rgba(214, 232, 248, .78); }
@media (max-width: 768px) {
  .hero { padding-top: calc(var(--header-h) + 56px); padding-bottom: 76px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ---------- 内页 Hero ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: calc(var(--header-h) + 64px) 0 72px; text-align: center;
  background:
    radial-gradient(900px 400px at 85% -20%, rgba(43, 197, 216, .24), transparent 62%),
    var(--grad-hero);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .45; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(640px 340px at 50% 20%, #000, transparent 75%);
  mask-image: radial-gradient(640px 340px at 50% 20%, #000, transparent 75%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1.25;
}
.page-hero .sub { margin: 16px auto 0; max-width: 640px; color: rgba(224, 238, 252, .85); font-size: 16.5px; }

/* ---------- 详情页：面包屑 / 返回按钮 ---------- */
.detail-toolbar {
  position: relative; z-index: 2;
  width: min(1180px, calc(100% - 48px)); margin: -28px auto 0;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 18px; box-shadow: var(--shadow-sm);
}
.detail-toolbar .crumbs { font-size: 13.5px; color: var(--ink-500); flex: 1; min-width: 0; }
.detail-toolbar .crumbs a { color: var(--ink-500); }
.detail-toolbar .crumbs a:hover { color: var(--blue-600); }
.detail-toolbar .crumbs .sep { margin: 0 8px; color: var(--ink-300); }
.detail-toolbar .crumbs .current { color: var(--ink-900); font-weight: 600; }
.detail-toolbar .back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: var(--radius-pill);
  background: var(--blue-600); color: #fff; font-size: 14px; font-weight: 600;
  transition: background .25s ease, transform .25s ease;
}
.detail-toolbar .back-btn:hover { background: var(--blue-700); }
.detail-toolbar .back-btn:hover svg { transform: translateX(-2px); }
.detail-toolbar .back-btn svg { width: 14px; height: 14px; transition: transform .25s ease; }
@media (max-width: 640px) {
  .detail-toolbar { margin: -20px calc(100% - 32px) 0; width: calc(100% - 32px); padding: 10px 12px; gap: 8px; }
  .detail-toolbar .crumbs { font-size: 12.5px; }
  .detail-toolbar .back-btn { padding: 6px 12px; font-size: 13px; }
  .detail-toolbar .back-btn span:not(.mobile-only) { display: none; }
  .detail-toolbar .back-btn .mobile-only { display: inline; }
}
@media (min-width: 641px) { .detail-toolbar .back-btn .mobile-only { display: none; } }

/* ---------- 详情页：上一篇 / 下一篇 ---------- */
.prev-next {
  width: min(1180px, calc(100% - 48px)); margin: 36px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.prev-next a {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.prev-next a:hover { border-color: var(--blue-100); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.prev-next .label { font-size: 13px; color: var(--ink-500); display: inline-flex; align-items: center; gap: 6px; }
.prev-next .title { font-size: 16px; font-weight: 600; color: var(--ink-900); line-height: 1.45; }
.prev-next .next { text-align: right; align-items: flex-end; }
.prev-next .empty { background: transparent; border-style: dashed; pointer-events: none; opacity: .55; }
/* 首篇无"上一篇"时，将"下一篇"按钮置于右列（右下角） */
.prev-next .pn-prev.empty ~ a.pn-next { grid-column: 2; }
@media (max-width: 720px) {
  .prev-next { grid-template-columns: 1fr; }
  .prev-next .next { text-align: left; align-items: flex-start; }
  .prev-next .pn-prev.empty ~ a.pn-next { grid-column: auto; }
}

/* ---------- 详情页：相关服务 ---------- */
.related-svc {
  width: min(1180px, calc(100% - 48px)); margin: 56px auto 0;
}
.related-svc .head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: 18px; font-weight: 700; color: var(--ink-900);
}
.related-svc .head::before {
  content: ""; width: 4px; height: 18px; border-radius: 4px;
  background: linear-gradient(180deg, var(--blue-600), var(--cyan-500));
}
.related-svc .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .related-svc .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .related-svc .grid { grid-template-columns: 1fr; } }
.related-svc .mini {
  display: block; padding: 22px 22px 18px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); transition: all .25s ease;
}
.related-svc .mini:hover { border-color: var(--blue-100); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.related-svc .mini .t { font-size: 16px; font-weight: 700; color: var(--ink-900); margin-bottom: 4px; }
.related-svc .mini .d { font-size: 13.5px; color: var(--ink-500); line-height: 1.55; }
.related-svc .mini .more {
  margin-top: 12px; font-size: 13.5px; color: var(--blue-600); font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}

/* ---------- 服务卡片 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } gap: 18px; }

.card {
  position: relative; background: var(--surface); border-radius: var(--radius-card); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); padding: 34px 30px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--blue-200); }
.card .icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  color: var(--blue-600); margin-bottom: 22px;
  transition: transform .35s ease, background .35s ease, color .35s ease;
}
.card:hover .icon { transform: scale(1.08) rotate(-4deg); background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff; }
.card .icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 20px; font-weight: 700; color: var(--ink-900); margin-bottom: 10px; letter-spacing: -.01em; }
.card p { color: var(--ink-500); font-size: 15px; flex: 1; }
.card .more {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600; color: var(--blue-600);
}
.card .more svg { transition: transform .3s ease; }
.card:hover .more svg { transform: translateX(5px); }
.card .more:hover { color: var(--brand-text); }

/* About advantages: keep the four editorial cards aligned and easy to scan. */
.about-advantages .card {
  padding: 30px 30px 32px;
  justify-content: flex-start;
}
.about-advantages .card .icon {
  width: 54px; height: 54px; margin-bottom: 16px; border-radius: 15px;
}
.about-advantages .card .icon svg { width: 28px; height: 28px; }
.about-advantages .card h3 {
  margin: 0 0 11px; font-size: 19px; line-height: 1.4;
  letter-spacing: -.015em;
}
.about-advantages .card p {
  max-width: 58ch; font-size: 15px; line-height: 1.75;
  color: var(--ink-500); text-wrap: pretty;
}
@media (max-width: 900px) {
  .about-advantages .card { padding: 26px 24px 28px; }
}
@media (max-width: 640px) {
  .about-advantages { gap: 18px; }
  .about-advantages .card { padding: 24px 22px 26px; }
  .about-advantages .card p { font-size: 14.5px; line-height: 1.7; }
}

/* ---------- 标准查询入口带 ---------- */
.search-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: 64px 48px;
  background:
    radial-gradient(700px 300px at 90% -30%, rgba(43, 197, 216, .26), transparent 62%),
    var(--grad-band);
  color: #fff; box-shadow: var(--shadow-lg);
}
.search-band::before {
  content: ""; position: absolute; inset: 0; opacity: .4; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.search-band-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; text-align: center; }
.search-band h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.02em; }
.search-band .desc { margin-top: 12px; color: rgba(220, 236, 251, .85); font-size: 16px; }
.search-box {
  margin-top: 30px; display: flex; gap: 10px; padding: 8px;
  background: #fff; border-radius: var(--radius-pill); box-shadow: 0 14px 40px rgba(6, 24, 38, .34);
}
.search-box input {
  flex: 1; border: none; outline: none; background: transparent;
  /* 搜索框始终白底，文字固定深色，保证夜间模式下可读 */
  padding: 12px 22px; font-size: 16px; color: #10202F; min-width: 0;
}
.search-box input::placeholder { color: rgba(16, 32, 47, .42); }
.search-box .btn { flex-shrink: 0; }
.search-chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  font-size: 13px; padding: 6px 16px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  color: rgba(230, 243, 253, .95); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .3s ease;
}
.chip:hover { background: rgba(255,255,255,.26); }
.search-src { margin-top: 20px; font-size: 12.5px; color: rgba(199, 220, 240, .6); }
@media (max-width: 640px) {
  .search-band { padding: 44px 24px; }
  .search-box { flex-direction: column; border-radius: 24px; padding: 10px; }
  .search-box .btn { width: 100%; }
}

/* ---------- 合作机构 Logo 墙 ---------- */
.logo-wall {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 900px) { .logo-wall { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .logo-wall { grid-template-columns: repeat(2, 1fr); } }
.logo-item {
  min-height: 140px; padding: 18px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.logo-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.logo-item img {
  width: 64px; height: 64px; object-fit: contain; border-radius: 10px; flex-shrink: 0;
}
.logo-item .n { font-size: 16px; font-weight: 800; color: var(--ink-900); letter-spacing: .02em; }
.logo-item .e { font-size: 11px; color: var(--ink-300); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- 全球动态卡片 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .case-grid { grid-template-columns: 1fr; } }
.case-card {
  border-radius: var(--radius-card); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
  display: flex; flex-direction: column;
}
.case-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.case-thumb { height: 176px; overflow: hidden; background: var(--bg-soft); position: relative; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-card:hover .case-thumb img { transform: scale(1.06); }
.case-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.case-body .flag { font-size: 12px; font-weight: 600; color: var(--blue-600); letter-spacing: .08em; text-transform: uppercase; }
.case-body h3 { margin-top: 6px; font-size: 18.5px; font-weight: 700; color: var(--ink-900); }
.case-body p { margin-top: 8px; font-size: 14.5px; color: var(--ink-500); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 新闻卡片 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 28px 26px; box-shadow: var(--shadow-sm); 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-date { font-size: 13px; color: var(--ink-300); font-weight: 600; letter-spacing: .04em; }
.news-card h3 { margin-top: 10px; font-size: 18px; font-weight: 700; color: var(--ink-900); line-height: 1.5; }
.news-card p { margin-top: 10px; font-size: 14.5px; color: var(--ink-500); flex: 1; }

/* 首页「最新标准动态」：JS 拉取真实标准数据后渲染 */
.latest-item { animation: latest-in .55s ease backwards; }
@keyframes latest-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.news-card.loading-card { min-height: 158px; }
.loading-card .news-date, .loading-card h3, .loading-card p {
  border-radius: 6px; background: linear-gradient(100deg, var(--line) 40%, var(--surface) 50%, var(--line) 60%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; color: transparent;
}
.loading-card .news-date { width: 84px; }
.loading-card h3 { width: 62%; }
.loading-card p { width: 100%; }
.latest-fallback {
  grid-column: 1 / -1; text-align: center; padding: 40px 20px;
  color: var(--ink-500); font-size: 15px;
}
.latest-fallback a { color: var(--blue-600); font-weight: 600; }
.latest-fallback a:hover { color: var(--brand-text); }

/* 新闻动态页：暂无内容时的空状态 */
.news-empty { text-align: center; padding: clamp(38px, 6vw, 76px) clamp(22px, 5vw, 56px); }
.news-empty .ico {
  width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 22px;
  background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center;
}
.news-empty .ico svg { width: 34px; height: 34px; }
.news-empty h2 { font-size: clamp(20px, 3vw, 26px); font-weight: 700; color: var(--ink-900); }
.news-empty p {
  margin: 12px auto 0; max-width: 560px; color: var(--ink-500); font-size: 16px; line-height: 1.85;
}
.quick-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.quick-links a {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink-700); font-weight: 600; font-size: 14.5px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, color .3s ease;
}
.quick-links a:hover {
  border-color: var(--blue-400); color: var(--blue-600);
  transform: translateY(-2px); box-shadow: var(--shadow-sm);
}
.quick-links a .arr { transition: transform .3s ease; }
.quick-links a:hover .arr { transform: translateX(4px); }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  border-radius: 28px; overflow: hidden; position: relative;
  padding: 64px 48px; text-align: center; color: #fff;
  background:
    radial-gradient(640px 280px at 88% -20%, rgba(43, 197, 216, .28), transparent 62%),
    linear-gradient(135deg, var(--blue-900), var(--blue-700));
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.cta-band p { margin-top: 14px; color: rgba(214, 232, 248, .86); }
.cta-band .actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) { .cta-band { padding: 46px 24px; } }

/* Footer: brand masthead followed by two navigation groups and a contact panel. */
.site-footer {
  --footer-text: #b7cad9;
  --footer-line: rgba(174, 206, 226, .17);
  position: relative; margin-top: 0; padding: 54px 0 0;
  background: var(--grad-footer); color: var(--footer-text); font-size: 14px;
}
.site-footer::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, transparent, #47869e 35%, #47869e 65%, transparent);
}
.footer-grid {
  display: grid; grid-template-columns: .85fr 1fr 1.5fr;
  gap: 34px 56px; align-items: start;
}
.footer-grid > div { min-width: 0; }
.footer-grid > div:first-child {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr;
  align-items: center; gap: 48px; padding-bottom: 32px;
  border-bottom: 1px solid var(--footer-line);
}
.footer-brand { display: flex; align-items: center; gap: 16px; margin: 0; }
.footer-brand .brand-mark {
  width: 48px; height: 48px; border-radius: 14px;
  border: 1px solid rgba(163,212,237,.22); box-shadow: none;
  background: linear-gradient(145deg, #24597b, #173d59);
}
.footer-brand .brand-text { min-width: 0; gap: 7px; }
.footer-brand .brand-cn { color: #eef5fa; font-size: 20px; line-height: 1.5; letter-spacing: .015em; }
.footer-brand .brand-en { color: #9eb8cc; font-size: 10px; line-height: 1.7; letter-spacing: .1em; }
.footer-grid > div:first-child > p { max-width: 470px; font-size: 13px; line-height: 1.9; color: #a8c0d2; }
.site-footer h4 { color: #edf4f9; font-size: 15px; font-weight: 600; margin: 0 0 16px; letter-spacing: .06em; }
.site-footer ul li { margin: 0; }
.site-footer ul a { color: var(--footer-text); transition: color .2s ease, background-color .2s ease; }
.site-footer ul a:hover { color: #fff; }
.footer-grid > div:nth-child(2), .footer-grid > div:nth-child(3) { padding-top: 24px; }
.footer-grid > div:nth-child(2) ul, .footer-grid > div:nth-child(3) ul { display: grid; gap: 2px; position: relative; }
.footer-grid > div:nth-child(2) a, .footer-grid > div:nth-child(3) a {
  display: block; width: fit-content; max-width: 100%; padding: 7px 0;
  font-size: 13px; line-height: 1.6; text-underline-offset: 5px;
}
.footer-grid > div:nth-child(2) a:hover, .footer-grid > div:nth-child(3) a:hover { text-decoration: underline; }
.footer-grid > div:last-child {
  padding: 24px 28px; border: 1px solid var(--footer-line); border-radius: 18px;
  background: linear-gradient(135deg, rgba(124,176,207,.1), rgba(124,176,207,.035));
  box-shadow: inset 0 1px 0 rgba(198,225,242,.04);
}
.footer-contact { display: grid; gap: 16px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.85; }
.footer-contact li > span { min-width: 0; overflow-wrap: anywhere; }
.footer-contact svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 4px; color: #88bed2; }
.site-footer .footer-cta { margin-top: 4px; padding-top: 8px; border-top: 0; }
.site-footer .btn-footer-message {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  width: fit-content; min-width: 154px; min-height: 44px; padding: 8px 13px; border-radius: 11px;
  background: linear-gradient(135deg, #23485d, #1b3547);
  color: #e1eff6; border: 1px solid #426579;
  font-size: 13px; font-weight: 600; line-height: 1.5;
  box-shadow: inset 0 1px 0 rgba(191,223,240,.1), 0 3px 8px rgba(0,0,0,.12);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.site-footer .btn-footer-message:hover {
  color: #f3f9fc; background: linear-gradient(135deg, #2b566d, #234358); border-color: #6c94ab;
  box-shadow: inset 0 1px 0 rgba(191,223,240,.16), 0 4px 10px rgba(0,0,0,.16);
}
.site-footer .btn-footer-message:active { background: #1b3547; box-shadow: inset 0 2px 4px rgba(0,0,0,.2); }
.site-footer .btn-footer-message svg {
  width: 25px; height: 25px; padding: 5px; border-radius: 7px;
  background: rgba(158,205,228,.1); color: #a9d4e7; margin: 0;
}
.site-footer .btn-footer-message::after {
  content: ''; width: 7px; height: 7px; margin-left: 8px; margin-right: 1px;
  border-top: 1.5px solid #a9d4e7; border-right: 1.5px solid #a9d4e7;
  transform: rotate(45deg); flex-shrink: 0;
}
.site-footer a:focus-visible { outline: 2px solid #a1d6e9; outline-offset: 5px; border-radius: 4px; }
.footer-bottom {
  margin-top: 36px; padding: 22px 0; border-top: 1px solid var(--footer-line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 24px; font-size: 12px; line-height: 1.8; color: #9eb6c9;
}
@media (max-width: 1000px) {
  .footer-grid { gap: 28px; grid-template-columns: .8fr 1fr 1.4fr; }
  .footer-grid > div:first-child { gap: 28px; }
  .footer-brand .brand-cn { font-size: 18px; }
  .footer-grid > div:last-child { padding: 22px; }
}
@media (max-width: 760px) {
  .site-footer { padding-top: 36px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .footer-grid > div:first-child { grid-template-columns: 1fr; gap: 18px; padding-bottom: 26px; }
  .footer-grid > div:first-child > p { max-width: none; }
  .footer-grid > div:nth-child(2), .footer-grid > div:nth-child(3) { padding-top: 0; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-brand .brand-cn { font-size: 17px; }
  .footer-brand .brand-en { font-size: 9px; letter-spacing: .06em; }
  .footer-bottom { margin-top: 26px; }
}
@media (max-width: 380px) {
  .footer-brand { align-items: flex-start; gap: 12px; }
  .footer-brand .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
  .footer-brand .brand-cn { font-size: 15px; }
  .footer-grid { column-gap: 18px; }
  .footer-grid > div:last-child { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .site-footer a { transition: none; } }

/* ---------- 表单 ---------- */
.form-wrap { max-width: 780px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-700); }
.field label .req { color: var(--red-600); margin-left: 2px; }
.field label .opt { color: var(--ink-400); font-weight: 400; font-size: 12.5px; margin-left: 4px; }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line); border-radius: var(--radius-input);
  padding: 13px 16px; font-size: 15.5px; background: var(--surface); color: var(--ink-900);
  transition: border-color .25s ease, box-shadow .25s ease;
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: var(--focus-ring);
}
.field .err { color: var(--red-600); font-size: 13px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--red-600); }
.field.invalid .err { display: block; }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
}
.info-card ul li {
  display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--bg-soft);
}
.info-card ul li:last-child { border-bottom: none; }
.info-card .ic {
  width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
  background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center;
}
.info-card .ic svg { width: 22px; height: 22px; }
.info-card .t { font-size: 13px; color: var(--ink-300); font-weight: 600; letter-spacing: .04em; }
.info-card .v { font-size: 15.5px; color: var(--ink-900); font-weight: 600; margin-top: 2px; word-break: break-all; }
.map-embed {
  margin-top: 22px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-soft); position: relative;
}
.map-embed img { width: 100%; height: 260px; object-fit: cover; }

/* ---------- 标准查询页 ---------- */
.std-toolbar {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 22px; box-shadow: var(--shadow-md); position: sticky; top: calc(var(--header-h) + 12px);
  z-index: 50;
}
.std-search-row { display: flex; gap: 10px; }
.std-search-row input {
  flex: 1; border: 1.5px solid var(--line); border-radius: var(--radius-pill);
  padding: 12px 22px; font-size: 15.5px; min-width: 0;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.std-search-row input:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: var(--focus-ring);
}
.std-filters { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.std-filters select {
  border: 1.5px solid var(--line); border-radius: var(--radius-pill);
  padding: 9px 16px; font-size: 14px; background: var(--surface); color: var(--ink-700);
  cursor: pointer; min-width: 130px;
}
.std-filters select:focus { outline: none; border-color: var(--blue-500); }
.std-meta-line { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--ink-500); }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: var(--radius-pill);
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.current { background: var(--green-100); color: var(--green-600); }
.badge.future  { background: var(--cyan-100); color: var(--cyan-600); }
.badge.abolished { background: var(--line); color: var(--gray-500); }
.badge.other { background: var(--orange-100); color: var(--orange-600); }

.std-list { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.std-row {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 26px; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) auto; gap: 8px 22px; align-items: center;
}
.std-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.std-code {
  font-size: 16.5px; font-weight: 800; color: var(--brand-text); letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
.std-main { min-width: 0; }
.std-main h3 { font-size: 16px; font-weight: 600; color: var(--ink-900); line-height: 1.5; }
.std-main .en { font-size: 13px; color: var(--ink-300); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.std-main .sub { margin-top: 7px; font-size: 13px; color: var(--ink-500); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.std-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; white-space: nowrap; }
.pdf-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--blue-600); background: var(--blue-50); padding: 4px 12px; border-radius: var(--radius-pill); border: 1px solid var(--blue-100); white-space: nowrap; }
.pdf-tag.none { color: var(--ink-300); background: var(--bg-soft); border-color: var(--line); }
@media (max-width: 860px) {
  /* 窄屏：标准号 + 标题堆叠在左列，状态徽章右对齐并跨两行，避免被挤压变形 */
  .std-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; row-gap: 6px; }
  .std-code { grid-column: 1; grid-row: 1; }
  .std-main { grid-column: 1; grid-row: 2; }
  .std-side { grid-column: 2; grid-row: 1 / -1; align-items: flex-end; justify-content: flex-start; }
  .std-main .en { white-space: normal; }
}

.pagination { margin-top: 28px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.page-btn {
  min-width: 40px; height: 40px; padding: 0 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-700);
  font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: all .25s ease; display: inline-flex; align-items: center; justify-content: center;
}
.page-btn:hover:not([disabled]) { border-color: var(--blue-500); color: var(--blue-600); }
.page-btn.cur { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.page-btn[disabled] { opacity: .4; cursor: default; }

/* ---------- 分页：跳转到指定页 ---------- */
.page-jump {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 6px; padding-left: 14px; border-left: 1px solid var(--line);
}
.page-jump .pj-lab { font-size: 14px; color: var(--ink-500); white-space: nowrap; }
.page-jump .pj-input {
  width: 72px; height: 40px; padding: 0 8px; text-align: center;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--ink-900); font-size: 14.5px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.page-jump .pj-input::placeholder { color: var(--ink-300); font-weight: 500; }
.page-jump .pj-input:focus {
  outline: none; border-color: var(--blue-500); box-shadow: var(--focus-ring);
}
.page-jump .pj-input.err {
  border-color: var(--red-600); box-shadow: 0 0 0 4px rgba(225, 29, 72, .12);
  animation: pj-shake .3s ease;
}
@keyframes pj-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
/* 去掉数字输入框的上下箭头 */
.page-jump .pj-input::-webkit-outer-spin-button,
.page-jump .pj-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.page-jump .pj-input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.page-jump .pj-btn { padding: 0 18px; }

@media (max-width: 640px) {
  .page-jump {
    width: 100%; justify-content: center; margin: 6px 0 0;
    padding-left: 0; border-left: none;
  }
}

.empty-tip { text-align: center; padding: 70px 20px; color: var(--ink-300); }
.empty-tip svg { width: 54px; height: 54px; margin: 0 auto 16px; opacity: .5; }
.skeleton {
  height: 88px; border-radius: 18px; margin-top: 14px;
  background: linear-gradient(100deg, var(--line) 40%, var(--surface) 50%, var(--line) 60%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* 标准详情 */
.std-detail { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 40px; box-shadow: var(--shadow-md); }
@media (max-width: 640px) { .std-detail { padding: 26px 20px; } }
.std-detail .top { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.std-detail h1 { font-size: clamp(24px, 3.6vw, 36px); font-weight: 800; color: var(--ink-900); letter-spacing: -.02em; }
.std-detail .code-line { font-size: 19px; font-weight: 700; color: var(--blue-600); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.std-detail .en-line { margin-top: 8px; color: var(--ink-300); font-size: 15px; }
.meta-table { margin-top: 30px; width: 100%; border-collapse: collapse; font-size: 15px; }
.meta-table th {
  text-align: left; font-weight: 600; color: var(--ink-500); width: 132px;
  padding: 14px 16px; border-bottom: 1px solid var(--bg-soft); vertical-align: top; background: var(--bg-softer);
}
.meta-table td { padding: 14px 16px; border-bottom: 1px solid var(--bg-soft); color: var(--ink-900); }
.meta-table tr:last-child th, .meta-table tr:last-child td { border-bottom: none; }
.detail-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.src-note {
  margin-top: 26px; padding: 14px 18px; border-radius: 14px;
  background: var(--bg-soft); color: var(--ink-500); font-size: 13px; line-height: 1.8;
  border-left: 3px solid var(--blue-400);
}
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 22px; font-size: 15px; font-weight: 600; color: var(--blue-600); }
.back-link:hover { color: var(--brand-text); }

/* ---------- 文章正文（关于/服务/案例详情） ---------- */
.prose { max-width: 860px; margin: 0 auto; }
.prose h2 { font-size: 24px; font-weight: 700; color: var(--ink-900); margin: 44px 0 16px; letter-spacing: -.01em; }
.prose h3 { font-size: 19px; font-weight: 700; color: var(--ink-900); margin: 34px 0 12px; }
.prose p { margin: 14px 0; font-size: 16.5px; color: var(--ink-700); }
.prose ul, .prose ol { margin: 14px 0 14px 4px; }
.prose li { padding: 5px 0 5px 26px; position: relative; color: var(--ink-700); font-size: 16px; }
.prose li::before {
  content: ""; position: absolute; left: 4px; top: 16px; width: 8px; height: 8px;
  border-radius: 3px; background: var(--blue-100); border: 2px solid var(--blue-500);
}
.prose .contact-inline {
  margin: 26px 0; padding: 18px 22px; border-radius: 16px; background: var(--blue-50);
  border: 1px solid var(--blue-100); color: var(--brand-text-strong); font-size: 15px;
}
.content-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow-sm);
}

/* 字母业务范围 */
.alpha-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 34px; }
.alpha-nav a {
  min-width: 38px; height: 38px; padding: 0 10px; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14px;
  color: var(--ink-500); transition: all .25s ease;
}
.alpha-nav a:hover { border-color: var(--blue-500); color: var(--blue-600); transform: translateY(-2px); }
.alpha-block { margin-bottom: 30px; }
.alpha-block .letter {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  background: var(--grad-primary); color: #fff;
  font-weight: 800; font-size: 18px; margin-bottom: 14px; box-shadow: var(--shadow-brand);
}
.alpha-block ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 20px; }
@media (max-width: 900px) { .alpha-block ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .alpha-block ul { grid-template-columns: 1fr; } }
.alpha-block li { font-size: 14.5px; color: var(--ink-700); padding: 6px 0 6px 18px; position: relative; }
.alpha-block li::before { content: "·"; position: absolute; left: 2px; color: var(--blue-400); font-weight: 800; }

/* 服务流程 */
.flow-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
@media (max-width: 1024px) { .flow-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .flow-grid { grid-template-columns: repeat(2, 1fr); } }
.flow-step {
  text-align: center; padding: 24px 12px; background: var(--surface); border-radius: 18px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
.flow-step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.flow-step .no {
  width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue-600); font-weight: 800; font-size: 16px;
  display: grid; place-items: center; border: 2px solid var(--blue-100);
}
.flow-step .t { font-size: 15px; font-weight: 700; color: var(--ink-900); }
.flow-step .d { margin-top: 6px; font-size: 12.5px; color: var(--ink-500); line-height: 1.6; }
.flow-grid.step3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .flow-grid.step3 { grid-template-columns: 1fr; } }

/* ============================================================
   战略合作页（cooperation.html）
   ============================================================ */

/* ---------- 悬浮统计条（压在 Hero 与正文之间） ---------- */
.stat-strip {
  position: relative; z-index: 3; max-width: 1000px; margin: -46px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow-lg); padding: 22px 12px;
}
.stat-cell { text-align: center; padding: 4px 10px; }
.stat-cell + .stat-cell { border-left: 1px solid var(--line); }
.stat-cell .num {
  font-size: clamp(22px, 3vw, 32px); font-weight: 800; color: var(--brand-text);
  letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums;
}
.stat-cell .num em { font-style: normal; color: var(--cyan-500); }
.stat-cell .lab { margin-top: 2px; font-size: 13px; color: var(--ink-500); }
@media (max-width: 760px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 14px 8px; margin-top: -40px; padding: 18px 10px; }
  .stat-cell:nth-child(odd) { border-left: none; }
}

/* ---------- 四列价值卡 ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.value-card { padding: 28px 24px; }
.value-card .icon { width: 52px; height: 52px; border-radius: 15px; margin-bottom: 18px; }
.value-card .icon svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 17.5px; }
.value-card p { font-size: 14.5px; }

/* ---------- 核心战略伙伴 ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .partner-grid { grid-template-columns: 1fr; } }

.partner-card {
  position: relative; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 28px 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
/* 顶部品牌渐变线 */
.partner-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
  transform: scaleX(0); transform-origin: left center; transition: transform .4s ease;
}
/* hover 时一道光泽扫过 */
.partner-card::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%;
  background: linear-gradient(100deg, rgba(255,255,255,0), rgba(43,197,216,.18), rgba(255,255,255,0));
  transform: skewX(-18deg); transition: left .65s ease; pointer-events: none;
}
.partner-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--blue-200); }
.partner-card:hover::before { transform: scaleX(1); }
.partner-card:hover::after { left: 125%; }

.pc-no {
  position: absolute; right: 18px; top: 18px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  color: #fff; box-shadow: 0 4px 12px rgba(18, 90, 140, .28);
  pointer-events: none; z-index: 1;
}
.pc-logo { height: 60px; display: flex; align-items: center; }
.pc-logo img {
  max-height: 56px; max-width: 76%; width: auto; object-fit: contain;
  opacity: 1; filter: none;                     /* 默认即原色 */
  transition: filter .35s ease, opacity .35s ease, transform .35s ease;
}
.partner-card:hover .pc-logo img { filter: saturate(1.15); transform: scale(1.05); }
.pc-name { margin-top: 18px; font-size: 18px; font-weight: 700; color: var(--ink-900); letter-spacing: -.01em; }
.pc-cn { margin-top: 3px; font-size: 13.5px; color: var(--ink-500); }
.pc-desc { margin-top: 12px; font-size: 14.5px; color: var(--ink-500); line-height: 1.85; }
.pc-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.pc-tags span {
  font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: var(--radius-pill);
  background: var(--blue-50); color: var(--brand-text); border: 1px solid var(--blue-100);
}

/* ---------- 合作伙伴矩阵 ---------- */
.matrix-wrap { position: relative; }
/* 背景节点连线：隐喻"协作网络" */
.matrix-bg {
  position: absolute; inset: -60px -40px; pointer-events: none; opacity: .55;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000, transparent 78%);
  mask-image: radial-gradient(70% 60% at 50% 45%, #000, transparent 78%);
}
.matrix-bg svg { width: 100%; height: 100%; }
.matrix-bg .nl { stroke: var(--blue-200); stroke-width: 1; fill: none; }
.matrix-bg .nd { fill: var(--cyan-500); }
.matrix-bg .g-float { animation: node-float 7s ease-in-out infinite; transform-origin: center; }
.matrix-bg .g-float:nth-of-type(even) { animation-duration: 9s; animation-delay: -2s; }
@keyframes node-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.matrix {
  position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
@media (max-width: 1024px) { .matrix { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { .matrix { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 440px) { .matrix { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.mx-item {
  position: relative; overflow: hidden; height: 98px; border-radius: 16px; padding: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.mx-item img {
  max-height: 48px; max-width: 84%; width: auto; object-fit: contain;
  opacity: 1; filter: none;                     /* 默认即原色，不再做灰度处理 */
  transition: filter .35s ease, opacity .35s ease, transform .35s ease;
}
.mx-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.mx-item:hover img { filter: saturate(1.15); transform: scale(1.07); }
.mx-item::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%;
  background: linear-gradient(100deg, rgba(255,255,255,0), rgba(43,197,216,.2), rgba(255,255,255,0));
  transform: skewX(-18deg); transition: left .6s ease; pointer-events: none;
}
.mx-item:hover::after { left: 125%; }

/* ---------- 合作领域标签云 ---------- */
.field-cloud {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 14px;
  justify-content: center; max-width: 780px; margin: 0 auto;
}
.field-cloud span {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap;
  font-size: 14.5px; font-weight: 600; color: var(--ink-700);
  padding: 10px 20px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, color .3s ease;
}
@media (max-width: 760px) { .field-cloud { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .field-cloud { grid-template-columns: 1fr; } }
.field-cloud span::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad-accent);
}
.field-cloud span:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: var(--blue-200); color: var(--brand-text);
}

/* ---------- 合作说明条 ---------- */
.note-band {
  margin-top: 34px; padding: 18px 24px; border-radius: 16px;
  background: var(--bg-softer); border: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-500); line-height: 1.9; text-align: center;
}

/* ---------- 浮动浏览量组件 ---------- */
.stats-widget {
  position: fixed; right: 18px; bottom: 18px; z-index: 1200;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  font-variant-numeric: tabular-nums;
}
.stats-panel {
  background: var(--glass-panel); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-md);
  padding: 14px 16px; min-width: 196px;
  animation: widget-in .35s ease;
  transition: opacity .3s ease, transform .3s ease;
}
@keyframes widget-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.stats-panel.hidden { display: none; }
.stats-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.stats-head .t { font-size: 12px; font-weight: 700; color: var(--ink-500); letter-spacing: .06em; }
.stats-head .ops { display: flex; gap: 4px; }
.stats-head .ops button {
  width: 24px; height: 24px; border: none; background: transparent; border-radius: 7px;
  cursor: pointer; color: var(--ink-300); display: grid; place-items: center;
  transition: all .25s ease;
}
.stats-head .ops button:hover { background: var(--bg-soft); color: var(--ink-700); }
.stats-head .ops svg { width: 13px; height: 13px; }
.stats-row { display: flex; justify-content: space-between; align-items: baseline; padding: 3px 0; }
.stats-row .k { font-size: 12.5px; color: var(--ink-500); }
.stats-row .v { font-size: 14px; font-weight: 700; color: var(--brand-text); }
.stats-row .v.online::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-600); margin-right: 5px; animation: pulse 2s infinite;
}
.stats-mini {
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--glass-panel-strong); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: var(--shadow-md); color: var(--blue-600);
  display: none; place-items: center;
  animation: widget-in .35s ease;
}
.stats-mini.show { display: grid; }
.stats-mini:hover { transform: scale(1.08); }
.stats-mini svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .stats-widget { right: 12px; bottom: 12px; } .stats-panel { min-width: 172px; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: 86px; transform: translateX(-50%) translateY(-16px);
  background: var(--inverse-bg); color: var(--inverse-text); padding: 13px 26px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 2000;
  opacity: 0; pointer-events: none; transition: all .35s ease; max-width: calc(100vw - 40px);
  display: flex; align-items: center; gap: 10px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--green-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.toast.err::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--red-600); }

/* ---------- 滚动显现动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation: none !important; }
}

/* ---------- 404 ---------- */
.err-wrap { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 120px 20px 80px; }
.err-wrap .code { font-size: 110px; font-weight: 800; line-height: 1;
  background: linear-gradient(120deg, var(--blue-600), var(--cyan-500));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.err-wrap p { margin: 18px 0 30px; color: var(--ink-500); }

/* ---------- 工具类 ---------- */
.text-c { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.loading { opacity: .6; pointer-events: none; }

/* ============================================================
   夜间模式（<html data-theme="dark">）
   仅替换设计令牌 + 少量需要单独处理的组件，业务样式零改动
   ============================================================ */
[data-theme="dark"] {
  color-scheme: dark;

  /* 主色：整体提亮，保证深底上的对比度 */
  --blue-900: #04121E;
  --blue-800: #0A2135;
  --blue-700: #1B5F92;
  --blue-600: #78B9E6;
  --blue-500: #4FA6E0;
  --blue-400: #6FBEEF;
  --blue-200: #587D9D;
  --blue-100: #2A435B;
  --blue-50:  #172A3D;

  --cyan-600: #55D8E6;
  --cyan-500: #2BC5D8;
  --cyan-400: #6FE0EC;
  --cyan-200: #9FE9F2;
  --cyan-100: #123039;

  /* 中性：反转为冷调浅灰 */
  --ink-950: #EDF3F8;
  --ink-900: #E5EDF5;
  --ink-700: #CAD6E2;
  --ink-500: #B0C0D0;
  --ink-400: #A4B6C8;
  --ink-300: #A4B6C8;
  --line:        #3C536B;
  --line-strong: #67849F;
  --bg-body:   #0B1420;
  --bg-soft:   #111E2D;
  --bg-softer: #152435;

  --green-600:  #34D399;
  --green-100:  #10312A;
  --orange-600: #FBBF24;
  --orange-100: #33240F;
  --gray-500:   #8CA0B3;

  /* 表面 / 玻璃层 / 反色 */
  --surface:            #203246;
  --surface-2:          #293E54;
  --header-bg:          rgba(23, 38, 55, .95);
  --header-bg-scrolled: rgba(23, 38, 55, .98);
  --overlay-bg:         rgba(23, 38, 55, .98);
  --glass-panel:        rgba(35, 54, 74, .97);
  --glass-panel-strong: rgba(35, 54, 74, .98);
  --btn-outline-bg:     #293E54;
  --inverse-bg:         #1B2A38;
  --inverse-text:       #E8F0F8;
  --brand-text:         #7FC4EE;
  --brand-text-strong:  #A7D8F5;

  /* 渐变：深色版 */
  --grad-hero:   linear-gradient(155deg, #091521 0%, #132F43 46%, #1C4357 100%);
  --grad-footer: linear-gradient(180deg, #0A1621 0%, #071018 100%);
  --grad-soft:   linear-gradient(180deg, #122132 0%, #162638 100%);
  --grad-primary:       linear-gradient(135deg, #246D9D, #19537F);
  --grad-primary-hover: linear-gradient(135deg, #2C77A7, #205D89);

  /* 阴影：深色下改用纯黑增强层次 */
  --shadow-sm: inset 0 1px 0 rgba(191,218,243,.12), 0 2px 4px rgba(0,0,0,.24), 0 12px 24px -8px rgba(0,0,0,.55);
  --shadow-md: inset 0 1px 0 rgba(191,218,243,.15), 0 5px 10px rgba(0,0,0,.28), 0 20px 36px -10px rgba(0,0,0,.6);
  --shadow-lg: inset 0 1px 0 rgba(191,218,243,.18), 0 8px 16px rgba(0,0,0,.3), 0 30px 50px -12px rgba(0,0,0,.65);
  --shadow-brand:    0 8px 22px rgba(46, 143, 208, .3);
  --shadow-brand-lg: 0 12px 34px rgba(46, 143, 208, .42);
  --focus-ring: 0 0 0 4px rgba(79, 166, 224, .25);
}

/* 夜间模式：Logo 反白处理 —— 给 Logo 一块浅色底板，保证图形与配色不失真 */
[data-theme="dark"] .mx-item { background: #EDF2F7; border-color: #22323F; }
[data-theme="dark"] .mx-item:hover { background: #FFFFFF; }
[data-theme="dark"] .mx-item img { opacity: 1; }
[data-theme="dark"] .mx-item:hover img { filter: saturate(1.15); transform: scale(1.07); }
[data-theme="dark"] .pc-logo {
  background: #EDF2F7; border-radius: 12px; padding: 6px 16px; height: 66px;
}
/* 序号角标：深色下用略亮的蓝色渐变圆底，保持清晰 */
[data-theme="dark"] .pc-no { background: linear-gradient(135deg, #0E93A8, #125A8C); }
[data-theme="dark"] .pc-logo img { opacity: 1; }
[data-theme="dark"] .partner-card:hover .pc-logo img { filter: saturate(1.15); transform: scale(1.05); }

/* 夜间模式：灰度 Logo 墙适当提亮 */
[data-theme="dark"] .logo-item img { background: #fff; }

/* 夜间模式：页头/菜单边框与分隔线 */
[data-theme="dark"] .site-header { border-bottom-color: transparent; }
[data-theme="dark"] .stat-cell + .stat-cell { border-left-color: var(--line); }

/* ---------- 日间 / 夜间切换按钮 ---------- */
.theme-toggle {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-700);
  display: grid; place-items: center; cursor: pointer;
  transition: transform .3s ease, border-color .3s ease, color .3s ease, background-color .3s ease;
}
.theme-toggle:hover {
  border-color: var(--blue-500); color: var(--blue-500); transform: translateY(-2px);
}
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { width: 19px; height: 19px; }
/* 日间显示月亮（点击去夜间），夜间显示太阳（点击去日间） */
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

.menu-theme {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px 4px; margin-top: 6px; border-top: 1px solid var(--line);
}
.menu-theme .lbl { font-size: 14px; color: var(--ink-500); font-weight: 500; }

/* Surface hierarchy: raised panels, recessed controls and visible navigation. */
.site-header, [data-theme="dark"] .site-header { border-bottom-color: var(--line); }
.card, .news-card, .info-card, .content-card, .partner-card, .flow-step,
.std-row, .std-detail, .std-toolbar, .detail-toolbar, .related-svc .mini {
  background: linear-gradient(155deg, var(--surface), var(--surface-2));
}
.related-svc .mini, .prev-next a { box-shadow: var(--shadow-sm); }
.field input, .field select, .field textarea, .std-search-row input {
  background: var(--bg-softer); border-color: var(--line-strong);
}
.hero-stat { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 12px 24px -10px rgba(0,0,0,.35); }

/* ============================================================
   卡片悬停 clip-path 展开效果
   （参考：鼠标悬停图片剪辑路径效果——默认四周留缝，悬停斜切展开填满）
   原理：卡片背景移入 ::after 裁剪层，grow/shrink 关键帧切换 clip-path
   ============================================================ */
.card, .case-card, .logo-item {
  position: relative;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  filter: drop-shadow(0 2px 6px rgba(6, 30, 51, .10));
  will-change: filter;
  isolation: isolate;
}
.card::after, .case-card::after, .logo-item::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  --zz-r: 18px;
  background: linear-gradient(155deg, var(--surface), var(--surface-2));
  border-radius: inherit;
  clip-path: inset(4.5% 4.5% round var(--zz-r));
  will-change: clip-path; pointer-events: none;
}
.logo-item::after { --zz-r: 14px; }
.card:hover, .case-card:hover, .logo-item:hover {
  filter: drop-shadow(0 10px 22px rgba(6, 30, 51, .18));
  box-shadow: none;
}
.card:hover::after, .case-card:hover::after, .logo-item:hover::after {
  animation: zz-clip-grow .25s ease-out forwards;
}
.card.go-back::after, .case-card.go-back::after,
.logo-item.go-back::after {
  animation: zz-clip-shrink .3s ease-in;
}
@keyframes zz-clip-grow {
  0%   { clip-path: inset(4.5% 4.5% round var(--zz-r, 18px)); }
  100% { clip-path: inset(0% 0% round var(--zz-r, 18px)); }
}
@keyframes zz-clip-shrink {
  0%   { clip-path: inset(0% 0% round var(--zz-r, 18px)); }
  100% { clip-path: inset(4.5% 4.5% round var(--zz-r, 18px)); }
}
@media (prefers-reduced-motion: reduce) {
  .card::after, .case-card::after, .logo-item::after { clip-path: none; }
}

/* 合作价值卡片：用圆角裁剪替代直角 clip-path，保持 hover 块感但卡片为圆角 */
.value-card,
.value-card::after { border-radius: var(--radius-card); }
.value-card::after { clip-path: inset(3.5% round var(--radius-card)); animation: none; }
.value-card:hover::after { animation: zz-vc-grow .25s ease-out forwards; }
.value-card.go-back::after { animation: zz-vc-shrink .3s ease-in; }
@keyframes zz-vc-grow {
  0%   { clip-path: inset(3.5% round var(--radius-card)); }
  50%  { clip-path: inset(.5% round var(--radius-card)); }
  100% { clip-path: inset(0% round var(--radius-card)); }
}
@keyframes zz-vc-shrink {
  0%   { clip-path: inset(0% round var(--radius-card)); }
  50%  { clip-path: inset(.5% round var(--radius-card)); }
  100% { clip-path: inset(3.5% round var(--radius-card)); }
}

/* ============================================================
   大标题悬停发光字效果（柔和光晕，1s 平滑渐亮/渐暗）
   参考实现：text-shadow 多层阴影叠加，颜色继承文字本身颜色
   ============================================================ */
.page-hero h1, .section-title, .cta-band h2 {
  transition: text-shadow 1s ease;
}
.page-hero h1:hover, .section-title:hover, .cta-band h2:hover {
  text-shadow: 0 0 .1em, 0 0 .3em;
}
[data-theme="dark"] .page-btn.cur,
[data-theme="dark"] .detail-toolbar .back-btn { background: var(--grad-primary); }
[data-theme="dark"] .detail-toolbar .back-btn:hover { background: var(--grad-primary-hover); }
[data-theme="dark"] .nav a {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -2px 4px rgba(0,0,0,.2);
}
[data-theme="dark"] .nav-slide1 {
  background: rgba(79, 166, 224, .12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -2px 4px rgba(0,0,0,.2);
}
[data-theme="dark"] .nav-slide2 {
  border-color: var(--blue-400);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 8px rgba(0,0,0,.3);
}
[data-theme="dark"] .nav a:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -2px 5px rgba(0,0,0,.25), 0 2px 8px rgba(0,0,0,.3);
}
[data-theme="dark"] .nav a.active {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 -2px 5px rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.25);
}
[data-theme="dark"] .btn-primary {
  box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255,255,255,.18), inset 0 -2px 5px rgba(0,0,0,.28);
}
[data-theme="dark"] .btn-primary:hover {
  box-shadow: var(--shadow-brand-lg), inset 0 1px 0 rgba(255,255,255,.25), inset 0 -2px 6px rgba(0,0,0,.3);
}
.btn-accent:hover { background: linear-gradient(135deg, #086D7E, #075567); }
:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 4px; }

/* Header rhythm: equal navigation cells and a dedicated appearance control. */
.site-header {
  --nav-face: linear-gradient(180deg, #f0f5f8, #dce6ed);
  --nav-face-hover: linear-gradient(180deg, #f7fafc, #e3edf3);
  --nav-face-selected: linear-gradient(180deg, #dbeaf3, #c6dce9);
  --nav-edge: rgba(100, 130, 151, .22);
  --nav-raised: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(83,113,136,.1), 0 2px 3px rgba(29,58,79,.1), 0 4px 8px -4px rgba(29,58,79,.18);
  --nav-hover-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 3px 5px rgba(29,58,79,.12), 0 6px 12px -5px rgba(29,58,79,.2);
  --nav-pressed: inset 0 2px 4px rgba(29,58,79,.16), 0 1px 0 rgba(255,255,255,.65);
}
[data-theme="dark"] .site-header {
  --nav-face: linear-gradient(180deg, #2c4257, #213447);
  --nav-face-hover: linear-gradient(180deg, #354e65, #283e53);
  --nav-face-selected: linear-gradient(180deg, #345773, #28455e);
  --nav-edge: rgba(142,177,203,.22);
  --nav-raised: inset 0 1px 0 rgba(185,217,240,.16), inset 0 -1px 0 rgba(0,0,0,.2), 0 2px 3px rgba(0,0,0,.24), 0 4px 8px -4px rgba(0,0,0,.35);
  --nav-hover-shadow: inset 0 1px 0 rgba(185,217,240,.22), 0 3px 5px rgba(0,0,0,.28), 0 6px 12px -5px rgba(0,0,0,.4);
  --nav-pressed: inset 0 2px 5px rgba(0,0,0,.35), 0 1px 0 rgba(185,217,240,.1);
}
.site-header .header-inner {
display: grid; grid-template-columns: auto minmax(0, 1fr) 44px 44px;
column-gap: 24px; align-items: center;
}
.site-header .lang-toggle {
width: 44px; height: 44px; border-radius: 12px; margin: 0;
border: 1px solid var(--nav-edge); background: var(--nav-face); box-shadow: var(--nav-raised);
font-size: 13px; font-weight: 700; color: var(--ink-700); cursor: pointer;
display: grid; place-items: center; letter-spacing: .02em;
transition: background .2s ease, box-shadow .2s ease, color .2s ease;
}
.site-header .lang-toggle:hover { background: var(--nav-face-hover); box-shadow: var(--nav-hover-shadow); transform: none; color: var(--brand-text); }
[data-theme="dark"] .site-header .lang-toggle { box-shadow: var(--nav-raised); }
@media (max-width: 1180px) {
.site-header .lang-toggle { width: 40px; height: 40px; font-size: 12px; }
}
.site-header .brand { gap: 10px; }
.site-header .nav {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px; width: min(100%, 800px); justify-self: end;
}
.site-header .nav a {
  display: flex; align-items: center; justify-content: center;
  min-width: 0; height: 44px; padding: 10px 4px;
  font-size: 13.5px; line-height: 24px; border-radius: 12px;
  background: var(--nav-face); border: 1px solid var(--nav-edge);
  box-shadow: var(--nav-raised); transform: none;
}
[data-theme="dark"] .site-header .nav a { box-shadow: var(--nav-raised); }
.site-header .nav a:hover, [data-theme="dark"] .site-header .nav a:hover {
  background: var(--nav-face-hover); box-shadow: var(--nav-hover-shadow); transform: none;
}
.site-header .nav a.active, [data-theme="dark"] .site-header .nav a.active {
  background: var(--nav-face-selected); color: var(--brand-text); font-weight: 600;
  border-color: var(--blue-200); box-shadow: var(--nav-raised);
}
.site-header .nav-slide1, .site-header .nav-slide2 { top: 0; bottom: 0; border-radius: 12px; box-shadow: none; }
.site-header .theme-toggle {
  width: 44px; height: 44px; border-radius: 12px; margin: 0;
  border: 1px solid var(--nav-edge); background: var(--nav-face); box-shadow: var(--nav-raised);
}
.site-header .theme-toggle:hover { transform: none; background: var(--nav-face-hover); box-shadow: var(--nav-hover-shadow); }
.site-header .hamburger { width: 44px; height: 44px; border: 1px solid var(--nav-edge); background: var(--nav-face); box-shadow: var(--nav-raised); }
.site-header .nav a:active, [data-theme="dark"] .site-header .nav a:active,
.site-header .theme-toggle:active, .site-header .hamburger:active { box-shadow: var(--nav-pressed); transform: none; }
@media (max-width: 1180px) {
  .site-header .header-inner { column-gap: 16px; }
}
@media (max-width: 1120px) {
  .site-header .header-inner { grid-template-columns: minmax(0, 1fr) 40px 40px 44px; gap: 10px; }
  .site-header .nav { display: none; }
  .site-header .hamburger { display: flex; }
  .mobile-menu.show { display: flex; }
  .mobile-menu { gap: 4px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .mobile-menu > a:not(.btn) { min-height: 44px; padding: 10px 14px; font-size: 15px; }
}
@media (max-width: 380px) {
  .site-header .header-inner { gap: 8px; }
  .site-header .brand-mark { width: 36px; height: 36px; }
  .site-header .brand-cn { font-size: 17px; }
  .site-header .brand-en { font-size: 8px; letter-spacing: .08em; }
}
@media (prefers-reduced-motion: reduce) {
.site-header .nav a, .site-header .nav-slide1, .site-header .nav-slide2 { transition: none; }
}

/* ---------- 机构介绍弹窗（点击 Logo 墙卡片）---------- */
.logo-item[data-org] { cursor: pointer; }
.org-mask {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(6, 30, 51, .55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: org-fade .22s ease;
}
@keyframes org-fade { from { opacity: 0; } }
.org-modal {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; max-width: 480px; width: 100%;
  padding: 30px 30px 28px; position: relative;
  box-shadow: var(--shadow-lg);
  animation: org-pop .3s cubic-bezier(.34, 1.4, .64, 1);
}
@keyframes org-pop { from { opacity: 0; transform: translateY(18px) scale(.96); } }
.org-modal .om-close {
  position: absolute; right: 14px; top: 14px; width: 34px; height: 34px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--bg-soft);
  color: var(--ink-500); font-size: 17px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: all .2s ease;
}
.org-modal .om-close:hover { color: var(--red-600); border-color: var(--red-600); }
.org-modal .om-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; padding-right: 36px; }
.org-modal .om-logo {
  width: 62px; height: 62px; border-radius: 14px; flex-shrink: 0;
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center;
}
.org-modal .om-logo img { max-width: 50px; max-height: 50px; object-fit: contain; }
.org-modal h3 { font-size: 19px; font-weight: 800; color: var(--ink-900); margin: 0; }
.org-modal .om-cn { font-size: 13px; color: var(--ink-500); margin-top: 3px; }
.org-modal .om-text { font-size: 14.5px; line-height: 1.9; color: var(--ink-700); margin: 0; }

/* 用户要求：隐藏无上一篇/下一篇时的虚线占位框（cases/news 动态生成的翻页空态） */
.pn-prev.empty, .pn-next.empty { display: none !important; }

/* ---------- 中文状态下隐藏英文装饰小标（切英文自动显示）---------- */
html:not([data-lang="en"]) .en-only,
html:not([data-lang="en"]) .en-tag { display: none !important; }
/* ---------- 英文状态下隐藏中文原文段（由 en-only 英文段替代）---------- */
html[data-lang="en"] .zh-only { display: none !important; }

/* ============================================================
   行业标准列表：长条 → 方块卡片（一行 3 个，响应式 2/1 列）
   与全站卡片一致的圆角 + clip-path 悬停展开效果
   ============================================================ */
.std-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px; align-items: stretch;
}
@media (max-width: 1100px) { .std-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .std-list { grid-template-columns: 1fr; } }
.std-row {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  padding: 20px 22px 22px; gap: 0;
  background: transparent; border-color: transparent; box-shadow: none;
  filter: drop-shadow(0 2px 6px rgba(6, 30, 51, .10));
  will-change: filter; isolation: isolate;
  transition: transform .3s ease, filter .3s ease;
}
.std-row::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  --zz-r: 18px;
  background: linear-gradient(155deg, var(--surface), var(--surface-2));
  border-radius: 18px;
  clip-path: inset(4.5% 4.5% round var(--zz-r));
  will-change: clip-path; pointer-events: none;
}
.std-row:hover {
  transform: translateY(-6px); box-shadow: none;
  filter: drop-shadow(0 10px 22px rgba(6, 30, 51, .18));
}
.std-row:hover::after { animation: zz-clip-grow .25s ease-out forwards; }
.std-row.go-back::after { animation: zz-clip-shrink .3s ease-in; }
/* 卡内排布：徽章行 → 标准号 → 中英文名 → 元信息 */
.std-side {
  position: static; order: -1; width: 100%; margin-bottom: 4px;
  flex-direction: row; align-items: center; justify-content: flex-start;
  flex-wrap: wrap; gap: 8px; white-space: normal;
}
.std-code { font-size: 17px; line-height: 1.3; }
.std-main { min-width: 0; width: 100%; }
.std-main h3 {
  margin-top: 9px; font-size: 15.5px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.std-main .en {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  white-space: normal; font-size: 12.5px; margin-top: 6px;
}
.std-main .sub { margin-top: auto; padding-top: 12px; font-size: 12.5px; gap: 4px 12px; }

/* ============================================================
   卡片悬停 3D 效果：底色加深 + 边框高亮 + 多层立体阴影
   （统一作用于全站方块卡片）
   ============================================================ */
.card:hover, .case-card:hover, .logo-item:hover, .std-row:hover {
  transform: translateY(-8px) scale(1.012);
  filter:
    drop-shadow(0 4px 8px rgba(6, 30, 51, .14))
    drop-shadow(0 14px 24px rgba(6, 30, 51, .16));
}
.card:hover::after, .case-card:hover::after, .logo-item:hover::after, .std-row:hover::after {
  /* 品牌色蒙版让底色"加深"，底层仍为原渐变，暗色模式自动适配 */
  background-image:
    linear-gradient(155deg, rgba(17, 90, 140, .12), rgba(18, 169, 192, .20)),
    linear-gradient(155deg, var(--surface), var(--surface-2));
  box-shadow: inset 0 0 0 1.5px var(--blue-200);
}
/* 夜间模式：深色卡片悬停提亮描边，阴影更重 */
[data-theme="dark"] .card:hover, [data-theme="dark"] .case-card:hover,
[data-theme="dark"] .logo-item:hover, [data-theme="dark"] .std-row:hover {
  filter:
    drop-shadow(0 6px 10px rgba(0, 0, 0, .45))
    drop-shadow(0 18px 32px rgba(0, 0, 0, .55));
}
[data-theme="dark"] .card:hover::after, [data-theme="dark"] .case-card:hover::after,
[data-theme="dark"] .logo-item:hover::after, [data-theme="dark"] .std-row:hover::after {
  background-image:
    linear-gradient(155deg, rgba(79, 166, 224, .18), rgba(43, 197, 216, .22)),
    linear-gradient(155deg, var(--surface), var(--surface-2));
  box-shadow: inset 0 0 0 1.5px var(--blue-500);
}
@media (prefers-reduced-motion: reduce) {
  .card:hover, .case-card:hover, .logo-item:hover, .std-row:hover { transform: none; }
}
