/* ============================================================
   自助标准服务 — IBM Carbon Design System 风格
   Carbon Design: https://carbondesignsystem.com
   主色 #0f62fe | 背景 #f4f4f4 | 文字 #161616
   ============================================================ */

/* ---- Google Fonts: IBM Plex Sans (通过 HTML <link> 加载，避免 @import 阻塞渲染) ---- */

/* ============================================================
   设计令牌（Design Tokens）
   ------------------------------------------------------------
   本区块由 tools/css-tokenize.js 生成，是本站**唯一的颜色 / 字体 / 圆角定义源**。
   规则：
     · 业务样式一律引用 var(--xxx)，不得再写硬编码色值
     · 换配色 / 换字体 = 只改本区块的变量值，业务样式零改动
     · 取值等价性由 tools/css-token-verify.js 保证（展开 var 后须与原文件逐字符一致）
   结构说明：本区块为**语义层单层**结构，不做色板层。
       语义命名对齐「用途」（surface / text / border / primary / state / scrollbar），
       而非对齐「数值」（gray-10 / blue-60），以便将来整体切换设计语言（如 macOS）。
       同一语义在浅色区与深色区各有一套变量，互不牵连。
   ============================================================ */
:root {
  /* ---- 品牌色 ---- */
  --brand-navy: #1B2A4A;
  --brand-navy-soft: #2C3B59;
  --brand-cream: #F5F2EA;
  --brand-amber: #C8A24D;
  --color-primary: #0f62fe;
  --color-primary-hover: #0353e9;
  --color-primary-active: #0043ce;
  --color-primary-soft: #d0e2ff;
  --color-primary-tint: #edf5ff;
  --color-primary-tint-2: #edf5ff;
  --color-primary-tint-3: #d0e2ff;
  --color-primary-shadow: rgba(15, 98, 254, .1);

  /* ---- 文字：浅色区 ---- */
  --color-text-primary: #161616;
  --color-text-secondary: #525252;
  --color-text-tertiary: #6f6f6f;
  --color-text-quaternary: #8d8d8d;
  --color-text-disabled: #bbb;
  --color-text-inverse: #fff;

  /* ---- 文字：深色区 ---- */
  /* ---- 表面 / 背景：浅色区 ---- */
  --color-bg-app: #f4f4f4;
  --color-surface: #fff;
  --color-surface-hover: #f4f4f4;
  --color-surface-hover-strong: #e8e8e8;
  --color-neutral-surface: #e0e0e0;

  /* ---- 表面 / 背景：深色区 ---- */
  /* ---- 边框 ---- */
  --color-border-subtle: #e0e0e0;
  --color-border-faint: #f4f4f4;
  --color-border-faintest: #f0f0f0;
  --color-border-strong: #8d8d8d;
  --color-border-inverse: #525252;
  /* ---- 状态色 ---- */
  --color-success-bg: #defbe6;
  --color-success-text: #0e6027;
  --color-warning-bg: #ffd6c2;
  --color-warning-text: #8a3800;

  /* ---- 装饰 ---- */
  --color-hero-grid-line: rgba(22, 22, 22, .04);

  /* ---- 滚动条 ---- */
  --color-scrollbar-track: #f4f4f4;
  --color-scrollbar-thumb: #8d8d8d;
  --color-scrollbar-thumb-hover: #525252;
  --color-scrollbar-track-2: #f5f5f5;
  --color-scrollbar-thumb-2: #c1c1c1;

  /* ---- 字体族 ---- */
  --font-sans: 'IBM Plex Sans', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* ---- 圆角 ---- */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 10px;
}

/* ---- CSS Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 14px; }
body {
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background: var(--color-bg-app);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .1s; }
a:hover { color: var(--color-primary); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }

/* ---- Layout ---- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================================
   TOP BAR (Carbon Global Header style)
   ============================================================ */
.top-bar {
  background: var(--color-surface-hover);
  color: var(--color-text-secondary);
  font-size: 12px;
  letter-spacing: 0.32px;
  height: 32px;
  line-height: 32px;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-notice { color: var(--color-text-tertiary); font-size: 12px; }
.top-bar-actions a { color: var(--color-text-secondary); margin: 0 8px; font-size: 12px; }
.top-bar-actions a:hover { color: var(--color-text-primary); }
.top-bar-actions span { color: var(--color-text-disabled); }

/* 2026-11-19 登录态顶栏下拉菜单（仿 WorkBuddy 用户中心菜单） */
.header-auth {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--color-border-light, #e0e0e0); border-radius: 20px;
  background: var(--color-bg-secondary, #f7f7f7);
}
.header-auth-link {
  font-size: 13px; color: var(--color-text-secondary, #525252) !important;
  text-decoration: none; margin: 0 !important; line-height: 1.4;
}
.header-auth-link:hover { color: var(--ic-primary, #0f62fe) !important; }
.header-auth-sep { color: var(--color-text-disabled, #c6c6c6); font-size: 12px; }
.header-auth .nav-user { margin: 0; }
.header-auth .nav-user > a {
  font-size: 14px; font-weight: 600; color: var(--color-text-primary, #161616);
  cursor: pointer; white-space: nowrap;
}
.nav-user { position: relative; display: inline-block; margin: 0 8px; }
.nav-user > a { margin: 0; cursor: pointer; }
.nav-user-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 999;
  min-width: 176px; padding: 6px 0;
  background: #fff; border: 1px solid var(--color-border-light, #e0e0e0); border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
}
.nav-user-menu.open { display: block; }
.nav-user-name {
  padding: 10px 16px 12px; font-size: 14px; font-weight: 600; color: var(--color-text-primary, #161616);
  border-bottom: 1px solid var(--color-border-light, #f0f0f0); margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px;
}
.nav-user-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 16px; font-size: 13px; color: var(--color-text-primary, #393939);
  text-decoration: none; white-space: nowrap;
}
.nav-user-item:hover { background: var(--color-bg-hover, #f4f4f4); }
.nav-user-item .nui-icon { font-size: 14px; width: 18px; text-align: center; }
.nav-user-sep { height: 1px; background: var(--color-border-light, #f0f0f0); margin: 4px 0; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--color-surface);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border-subtle);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 56px;
  height: auto;
  padding: 6px 16px;
}

/* Logo */
.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 40px; height: 40px;
  overflow: hidden; flex-shrink: 0;
}
.logo-icon img { display: block; }
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-size: 18px; font-weight: 600; color: var(--color-text-primary); letter-spacing: 0.5px; }
.logo-sub { font-size: 11px; color: var(--color-text-tertiary); letter-spacing: 0.5px; margin-top: 1px; }

/* Search */
.header-search { flex: 1; max-width: 500px; }
.search-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
}
.search-tab {
  padding: 4px 14px;
  font-size: 12px;
  color: var(--color-text-tertiary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .1s;
}
.search-tab.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.search-tab:hover { color: var(--color-text-primary); }
.search-box {
  display: flex;
  border: 1px solid var(--color-border-inverse);
  background: var(--color-surface-hover-strong);
}
.search-box input {
  flex: 1;
  padding: 8px 14px;
  font-size: 14px;
  border: none;
  outline: none;
  color: var(--color-text-primary);
  background: transparent;
  font-family: inherit;
}
.search-box input::placeholder { color: var(--color-text-quaternary); }
.search-box button {
  background: var(--color-primary);
  color: var(--color-text-primary);
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .1s;
  border-radius: var(--radius-none);
}
.search-box button:hover { background: var(--color-primary-hover); }
.search-hot { margin-top: 4px; font-size: 11px; color: var(--color-text-quaternary); display: none; }
.search-hot a { color: var(--color-text-tertiary); margin-right: 8px; }
.search-hot a:hover { color: var(--color-primary); }

/* Hotline */
.header-right { margin-left: auto; }
.hotline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-primary);
}
.hotline-icon { font-size: 20px; color: var(--color-text-tertiary); }
.hotline-label { font-size: 11px; color: var(--color-text-tertiary); }
.hotline-num { font-size: 16px; font-weight: 600; color: var(--color-text-primary); font-family: var(--font-mono); }

/* ============================================================
   MAIN NAV — Carbon Shell / Navigation
   ============================================================ */
.main-nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-subtle);
  position: sticky;
  top: 97px;
  z-index: 90;
}
.nav-inner { display: flex; }
.nav-list { display: flex; width: 100%; }
.nav-item { position: relative; }
.nav-item > a {
  display: block;
  color: var(--color-text-secondary);
  padding: 0 20px;
  font-size: 14px;
  letter-spacing: 0.32px;
  font-weight: 400;
  white-space: nowrap;
  height: 48px;
  line-height: 48px;
  transition: background .1s, color .1s;
  border-left: 2px solid transparent;
}
.nav-item:hover > a { background: var(--color-surface-hover-strong); color: var(--color-text-primary); }
.nav-item.active > a {
  background: var(--color-primary-tint);
  color: var(--color-primary);
  font-weight: 600;
  box-shadow: inset 0 -3px 0 var(--brand-amber); /* 知新链琥珀金底线=唯一品牌点缀 */
}
.arrow { font-size: 9px; opacity: .7; margin-left: 4px; }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-surface);
  min-width: 200px;
  border: 1px solid var(--color-border-subtle);
  border-top: 2px solid var(--color-primary);
  z-index: 200;
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 12px 20px;
  font-size: 13px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border-faint);
  transition: all .1s;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--color-surface-hover-strong); color: var(--color-text-primary); padding-left: 28px; }

/* ============================================================
   SECTION COMMON
   ============================================================ */
section { padding: 40px 0; }
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--color-border-subtle);
  padding-bottom: 16px;
}
.section-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: 0;
  /* Carbon uses a left-border accent on headings (2026-11-17 知新链品牌藏蓝竖线) */
  padding-left: 20px;
  border-left: 4px solid var(--brand-navy);
}
/* Override for dark sections */
.dark-section .section-title { color: var(--color-text-primary); }
.dark-section .section-header { border-bottom-color: var(--color-border-subtle); }
.section-desc { color: var(--color-text-tertiary); font-size: 13px; }
.section-desc-center { text-align: center; color: var(--color-text-tertiary); margin-bottom: 24px; font-size: 14px; }
.view-more {
  margin-left: auto;
  color: var(--color-primary);
  font-size: 13px;
  white-space: nowrap;
  padding: 6px 16px;
  border: 1px solid var(--color-primary);
  background: transparent;
  transition: all .1s;
  font-weight: 500;
}
.view-more:hover { background: var(--color-primary); color: var(--color-text-inverse); }

/* ============================================================
   SECTION: 标准动态
   ============================================================ */
.section-standard-news { background: var(--color-surface); }
.news-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border-subtle);
  margin-bottom: 0;
}
.news-tab {
  padding: 10px 24px;
  font-size: 14px;
  color: var(--color-text-tertiary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .1s;
  white-space: nowrap;
  font-weight: 400;
}
.news-tab.active { color: var(--color-text-primary); border-bottom-color: var(--color-primary); font-weight: 600; }
.news-tab:hover { color: var(--color-text-primary); background: var(--color-surface-hover); }
.news-panel { display: none; padding: 4px 0; }
.news-panel.active { display: block; }
.news-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid var(--color-border-faint);
  gap: 12px;
  transition: background .1s;
}
.news-list li:hover { background: var(--color-surface-hover); }
.news-list li:last-child { border-bottom: none; }
.news-link {
  flex: 1;
  color: var(--color-text-primary);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}
.news-link::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--color-primary);
  flex-shrink: 0;
  /* Carbon uses square dots */
  border-radius: 0;
}
.news-link:hover { color: var(--color-primary); }
.news-date { color: var(--color-text-quaternary); font-size: 12px; white-space: nowrap; flex-shrink: 0; font-family: var(--font-mono); }

/* ============================================================
   SECTION: 行业资讯 + 快速入口
   ============================================================ */
.section-news-info { background: var(--color-bg-app); }
.news-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
.news-main { background: var(--color-surface); padding: 24px; }
.news-info-tabs {
  display: flex;
  gap: 4px;
}
.ni-tab {
  padding: 6px 16px;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all .1s;
  border: 1px solid var(--color-border-subtle);
  background: transparent;
  font-family: inherit;
}
.ni-tab.active { background: var(--color-primary); color: var(--color-text-inverse); border-color: var(--color-primary); }
.ni-tab:hover:not(.active) { background: var(--color-surface-hover-strong); }
.ni-panel { display: none; margin-top: 16px; }
.ni-panel.active { display: block; }
.news-info-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 8px;
  border-bottom: 1px solid var(--color-border-faint);
  gap: 12px;
  transition: background .1s;
}
.news-info-list li:hover { background: var(--color-surface-hover); }
.news-info-list li:last-child { border-bottom: none; }
.ni-title {
  flex: 1;
  font-size: 14px;
  color: var(--color-text-primary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ni-title:hover { color: var(--color-primary); }
.ni-date { color: var(--color-text-quaternary); font-size: 12px; white-space: nowrap; flex-shrink: 0; padding-top: 2px; font-family: var(--font-mono); }

/* 快速入口 */
.quick-entry {
  background: var(--color-surface);
  padding: 24px;
}
.qe-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-subtle);
  padding-left: 12px;
  border-left: 4px solid var(--color-primary);
}
.qe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-neutral-surface);
  border: 1px solid var(--color-border-subtle);
}
.qe-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 8px;
  background: var(--color-surface);
  font-size: 13px;
  color: var(--color-text-secondary);
  transition: all .1s;
  text-align: center;
  font-weight: 400;
}
.qe-icon { font-size: 20px; }
.qe-item:hover { background: var(--color-primary-tint); color: var(--color-primary); }

.region-cards { display: flex; flex-direction: column; gap: 0; margin-top: 16px; }
.region-card {
  border: 1px solid var(--color-border-subtle);
  border-bottom: none;
  padding: 14px 16px;
  cursor: pointer;
  transition: all .1s;
}
.region-card:last-child { border-bottom: 1px solid var(--color-border-subtle); }
.region-card:hover, .region-card.selected {
  border-left: 4px solid var(--color-primary);
  background: var(--color-surface-hover);
  padding-left: 12px;
}
.rc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.rc-name { font-size: 14px; font-weight: 600; color: var(--color-text-primary); }
.rc-link { font-size: 12px; color: var(--color-primary); }
.rc-data { display: flex; gap: 20px; font-size: 12px; color: var(--color-text-tertiary); }
.rc-data b { color: var(--color-primary); font-size: 13px; font-family: var(--font-mono); }

/* ============================================================
   SECTION: 产业链
   ============================================================ */
.section-industry-chain { background: var(--color-bg-app); }
.chain-search {
  display: flex;
  max-width: 540px;
  margin: 0 auto 20px;
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
}
.chain-search input {
  flex: 1;
  padding: 12px 16px;
  font-size: 14px;
  border: none;
  outline: none;
  color: var(--color-text-primary);
  background: transparent;
  font-family: inherit;
}
.chain-search input::placeholder { color: var(--color-text-quaternary); }
.chain-search button {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: 12px 28px;
  font-size: 14px;
  transition: background .1s;
  font-weight: 500;
}
.chain-search button:hover { background: var(--color-primary-hover); }
.chain-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.chain-tag {
  display: inline-block;
  padding: 6px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  font-size: 13px;
  color: var(--color-text-secondary);
  transition: all .1s;
}
.chain-tag:hover { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-text-inverse); }

/* 首页产业链卡片网格 */
.chain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.chain-card {
  background: var(--color-surface);
  border-radius: 2px;
  border: 1px solid var(--color-border-subtle);
  padding: 24px;
  cursor: pointer;
  transition: all .25s;
}
.chain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--color-primary-shadow);
  border-color: var(--color-primary);
}
.cc-top { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.cc-emoji { font-size: 28px; flex-shrink: 0; line-height: 1; }
.cc-header h3 { font-size: 15px; font-weight: 700; color: var(--color-text-primary); margin-bottom: 4px; line-height: 1.3; }
.cc-desc { font-size: 12px; color: var(--color-text-tertiary); line-height: 1.5; }
.chain-flow { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.cf-node {
  padding: 4px 8px;
  background: var(--color-primary-tint-2);
  border: 1px solid var(--color-primary-tint-3);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--color-primary);
}
.cf-arrow { color: var(--color-text-disabled); font-size: 11px; }
.cc-stats { display: flex; gap: 10px; border-top: 1px solid var(--color-border-faintest); padding-top: 10px; flex-wrap: wrap; }
.cc-stat-item { font-size: 12px; color: var(--color-text-tertiary); }
.cc-stat-item b { color: var(--color-primary); }

@media (max-width: 1024px) {
  .chain-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .chain-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTION: 解决方案
   ============================================================ */
.section-solutions { background: var(--color-surface); }
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--color-border-subtle);
}
.solution-card {
  background: var(--color-surface);
  padding: 32px 24px;
  transition: all .15s;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--color-border-subtle);
  position: relative;
  overflow: hidden;
}
.solution-card:last-child { border-right: none; }
.solution-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: transparent;
  transition: background .15s;
}
.solution-card:hover { background: var(--color-surface-hover); }
.solution-card:hover::before { background: var(--color-primary); }
.sc-icon { font-size: 32px; margin-bottom: 20px; filter: grayscale(0.3); }
.sc-title { font-size: 15px; font-weight: 600; color: var(--color-text-primary); margin-bottom: 12px; line-height: 1.4; }
.sc-desc { font-size: 13px; color: var(--color-text-tertiary); line-height: 1.7; flex: 1; }
.sc-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 20px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 500;
}
.sc-more:hover { text-decoration: underline; }

/* ============================================================
   SECTION: 合作机构
   ============================================================ */
.section-partners { background: var(--color-bg-app); }
.partners-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--color-border-subtle);
}
.partner-item {
  background: var(--color-surface);
  border-right: 1px solid var(--color-border-subtle);
  padding: 20px 12px;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-secondary);
  transition: all .1s;
  line-height: 1.6;
}
.partner-item:last-child { border-right: none; }
.partner-item:hover { background: var(--color-primary); color: var(--color-text-inverse); }

/* ============================================================
   FOOTER — Carbon Global Footer
   ============================================================ */
.site-footer { background: var(--color-surface-hover); }
.footer-top { padding: 48px 0 40px; }
.footer-top-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.footer-col {
  padding: 0 24px 0 0;
  border-right: 1px solid var(--color-border-subtle);
  margin-right: 24px;
}
.footer-col:last-child { border-right: none; margin-right: 0; }
.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-subtle);
  letter-spacing: 0.5px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: var(--color-text-tertiary); transition: color .1s; }
.footer-col ul li a:hover { color: var(--color-text-primary); }
.contact-list li { font-size: 13px; color: var(--color-text-tertiary); line-height: 1.8; }
.footer-divider {
  border: none;
  border-top: 1px solid var(--color-border-subtle);
  margin: 0;
}
.footer-bottom {
  background: var(--color-surface);
  padding: 28px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom-inner p { font-size: 12px; color: var(--color-text-quaternary); }

/* ============================================================
   BACK TO TOP — Carbon style
   ============================================================ */
.back-to-top {
  display: none;
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 40px; height: 40px;
  background: var(--color-surface-hover-strong);
  color: var(--color-text-primary);
  font-size: 18px;
  border-radius: var(--radius-none);
  transition: all .1s;
  z-index: 999;
  border: 1px solid var(--color-border-inverse);
}
.back-to-top:hover { background: var(--color-primary); border-color: var(--color-primary); }
.back-to-top.visible { display: flex; align-items: center; justify-content: center; }

/* ============================================================
   HERO BANNER (首页顶部英雄区)
   ============================================================ */
.hero-banner {
  background: #ffffff;
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
/* 2026-11-18: 内容居中,消除右侧空白 */
.hero-banner { text-align: center; }
.hero-banner .hero-search-box { margin-left: auto; margin-right: auto; }
.hero-banner::before {
  content: none;
  position: absolute;
  right: -180px; top: -260px;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,162,77,.14) 0%, rgba(200,162,77,0) 62%);
}
.hero-banner::after {
  content: none;
  position: absolute;
  left: -140px; bottom: -320px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.05) 0%, rgba(255,255,255,0) 60%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: 12px;
  color: var(--brand-amber);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}
.hero-title {
  font-size: 42px;
  font-weight: 300;
  color: var(--brand-navy);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.hero-title strong { font-weight: 600; color: var(--brand-navy); }
.hero-subtitle {
  font-size: 16px;
  color: #6f6f6f;
  margin-bottom: 36px;
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
  line-height: 1.6;
}
/* 2026-09-23 停用：hero 底部统计栏已取消，其中「现行有效标准」「涵盖标准层级」
   并入右上「平台数据概览」卡片。若日后再需要独立统计栏，从这里恢复 .hero-stats 三件套。
.hero-stats { display: flex; gap: 48px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--color-border-subtle); }
.hero-stat-num { font-size: 32px; font-weight: 300; color: var(--color-text-primary); font-family: var(--font-mono); display: block; }
.hero-stat-label { font-size: 12px; color: var(--color-text-tertiary); display: block; margin-top: 4px; letter-spacing: 0.5px; }
*/

/* Hero search */
.hero-search-wrap {
  margin-bottom: 24px;
}
.hero-search-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--color-border-subtle);
}
.hero-search-tab {
  padding: 8px 20px;
  font-size: 13px;
  color: var(--color-text-tertiary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .1s;
}
.hero-search-tab.active { color: var(--color-text-primary); border-bottom-color: var(--color-primary); }
.hero-search-tab:hover { color: var(--color-text-primary); }
.hero-search-box {
  display: flex;
  max-width: 640px;
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
}
.hero-search-box input {
  flex: 1;
  padding: 14px 18px;
  font-size: 16px;
  border: none;
  outline: none;
  color: var(--color-text-primary);
  background: transparent;
  font-family: inherit;
}
.hero-search-box input::placeholder { color: var(--color-text-quaternary); }
.hero-search-box button {
  background: var(--color-primary);
  color: #ffffff;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  transition: background .1s;
}
.hero-search-box button:hover { background: var(--color-primary-hover); }
.hero-hot-tags { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hero-hot-tag {
  font-size: 12px;
  color: var(--color-text-tertiary);
  padding: 3px 10px;
  border: 1px solid var(--color-border-subtle);
  background: transparent;
  cursor: pointer;
  transition: all .1s;
}
.hero-hot-tag:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ============================================================
   INLINE NOTIFICATION (Carbon-style)
   ============================================================ */
.inline-notification {
  background: var(--color-surface);
  border-left: 4px solid var(--color-primary);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-secondary);
  font-size: 13px;
}

/* ============================================================
   DATA TABLE (Carbon style)
   ============================================================ */
.carbon-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.carbon-table thead tr {
  background: var(--color-surface);
  color: var(--color-text-primary);
}
.carbon-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 13px;
  white-space: nowrap;
}
.carbon-table tbody tr {
  border-bottom: 1px solid var(--color-border-subtle);
  transition: background .1s;
}
.carbon-table tbody tr:hover { background: var(--color-surface-hover); }
.carbon-table tbody td { padding: 12px 16px; color: var(--color-text-primary); font-size: 14px; }
.carbon-table tbody tr:last-child { border-bottom: none; }

/* ===== D371o（老王拍板）：全站表格安全网——长词/长串折行，防溢出撑破列 ===== */
td, th { overflow-wrap: break-word; word-wrap: break-word; }

/* ============================================================
   TAG / BADGE
   ============================================================ */
.carbon-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-none);
}
.tag-blue { background: var(--color-primary-soft); color: var(--color-primary-active); }
.tag-green { background: var(--color-success-bg); color: var(--color-success-text); }
.tag-yellow { background: var(--color-warning-bg); color: var(--color-warning-text); }
.tag-gray { background: var(--color-neutral-surface); color: var(--color-text-secondary); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-card:nth-child(2) { border-right: none; }
  .solution-card:nth-child(3) { border-top: 1px solid var(--color-border-subtle); }
  .partners-logos { grid-template-columns: repeat(3, 1fr); }
  .footer-top-inner { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .footer-col { border-right: none; margin-right: 0; }
}

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .main-nav { top: 56px; }
  .news-info-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 28px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
}

@media (max-width: 700px) {
  .nav-list { overflow-x: auto; }
  .solutions-grid { grid-template-columns: 1fr; }
  .solution-card { border-right: none; border-bottom: 1px solid var(--color-border-subtle); }
  .solution-card:last-child { border-bottom: none; }
  .partners-logos { grid-template-columns: repeat(2, 1fr); }
  .footer-top-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .footer-top-inner { grid-template-columns: 1fr; }
  .partners-logos { grid-template-columns: 1fr 1fr; }
  .header-right { display: none; }
  .hero-title { font-size: 24px; }
}

/* ============================================================
   SCROLLBAR (WebKit 兼容样式)
   ============================================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--color-scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--color-scrollbar-thumb); border-radius: var(--radius-none); }
::-webkit-scrollbar-thumb:hover { background: var(--color-scrollbar-thumb-hover); }
/* Firefox */
html { scrollbar-width: thin; scrollbar-color: var(--color-scrollbar-thumb) var(--color-scrollbar-track); }

/* P3: 滚动条样式 — Firefox 兼容 */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-scrollbar-thumb-2) var(--color-scrollbar-track-2);
}

/* ===== 顶部横幅处置沿革 =====
   2026-10-08 老王指示下线全站彩色大横幅，当时做法是本文件加
   `.page-hero { display:none !important }` 只隐藏不删 DOM。
   2026-10-27 老王要求「删干净」，两步走：
   ① 上午 D255：全站 27 页的 .page-hero 改造为常规标题条 .page-titlebar
      （去渐变背景与白字，保留 h1/p 及其 id），本隐藏规则随之删除；
   ② 下午 D255b：老王要求标题条也整体下线 —— .page-titlebar 的结构、内联 CSS、
      各页 loadChainConfig 的 heroSelector/heroSubSelector、向 h1/p 写入的 JS 行、
      js/chain-config-loader.js 的 Hero 写入块、embed-mode 隐藏规则一并删除。
      库内 hero_title 自此仅用于同步浏览器 <title>，链页不再显示任何顶部标题条。 */

/* 新品牌色（2026-11-16 zhixinskill 字标） */
.logo-main { color: #1B2A4A; }
.logo-sub { color: #8A6D1F; }

/* 完整品牌 LOGO（2026-11-16 深夜，老王定：前台用完整字标，不用 favicon 弧线） */
.logo-img { height: 84px; width: auto; display: block; }

/* 认证页完整 LOGO（2026-11-16，CSP 剥内联样式故用类） */
.auth-card .logo-area .logo-icon { background: none !important; width: auto !important; height: auto !important; }
.brand-logo-img { height: 88px; width: auto; display: block; margin: 0 auto; }

/* 导航站名（2026-11-16 深夜，老王定：站名放 LOGO 旁边） */
.logo a { display: flex; align-items: center; gap: 14px; }
.logo-name { font-size: 20px; font-weight: 600; color: #1B2A4A; letter-spacing: 0.5px; white-space: nowrap; }

/* ============================================================
   全站美化（2026-11-16 老王指令）——只做观感增强，不改结构与交互
   原则：追加层，全部引用既有令牌；任何页面如需还原，删除本区块即可
   ============================================================ */

/* 1. 页头：细阴影替代平面分割，层次感 */
.site-header { box-shadow: 0 1px 3px rgba(22,42,74,.06), 0 1px 2px rgba(22,42,74,.04); }
.main-nav { box-shadow: 0 1px 2px rgba(22,42,74,.04); }

/* 2. 导航项：hover/当前页底色过渡更柔和 */
.nav-item > a { transition: color .15s, background-color .15s; }
.nav-item > a:hover { color: var(--color-primary); background: var(--color-primary-tint); }
.nav-item > a::after { transition: width .18s ease; }

/* 3. 焦点可见性：键盘用户友好（不影响鼠标点击） */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
input:focus:not(:focus-visible), select:focus:not(:focus-visible), textarea:focus:not(:focus-visible) { outline: none; }

/* 4. 表单控件：hover 边框反馈 + 过渡 */
input[type="text"], input[type="search"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], select, textarea { transition: border-color .15s, box-shadow .15s; }
input[type="text"]:hover, input[type="search"]:hover, select:hover, textarea:hover { border-color: var(--color-border-strong); }

/* 5. 按钮：轻过渡（不改变配色与尺寸，避免破坏既有布局） */
button { transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s, opacity .15s; }

/* 6. 表格数字等宽：榜单/数据列自然对齐 */
table { font-variant-numeric: tabular-nums; }

/* 7. 回到顶部：圆角卡片化 + 柔影 */
.back-to-top {
  border-radius: 10px;
  border-color: var(--color-border-subtle);
  box-shadow: 0 4px 14px rgba(22,42,74,.14);
  background: var(--color-surface);
  transition: all .15s;
}
.back-to-top:hover { background: var(--color-primary); color: var(--color-text-inverse); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(22,98,254,.25); }

/* 8. 选中文本：品牌蓝淡底 */
::selection { background: var(--color-primary-tint); color: var(--color-text-primary); }

/* 9. 链接下划线动画（正文态链接不动，卡片/按钮类不受影响） */
.site-footer a, .footer-bottom a { transition: color .15s, opacity .15s; }

/* 10. 卡片类区块：主流容器的柔和悬停阴影（只加阴影不改变盒模型） */
@media (prefers-reduced-motion: no-preference) {
  .chain-card, .std-card, .tool-card { transition: box-shadow .18s, transform .18s, border-color .18s; }
}

/* 2026-11-18: 产业链13张卡,末行孤卡横条化收尾 */
.chain-grid .chain-card:last-child:nth-child(4n+1) { grid-column: 1 / -1; }
.chain-grid .chain-card:last-child:nth-child(4n+1) .cc-main { display: flex; align-items: center; gap: 16px; }
.chain-grid .chain-card:last-child:nth-child(4n+1) .cc-top { margin-bottom: 0; align-items: center; }
.chain-grid .chain-card:last-child:nth-child(4n+1) .cc-emoji { font-size: 36px; }
