/* ==========================================================================
   亚非海关数据 — 站点样式
   设计基调：简约、大气、可信。以深海蓝为主色，琥珀金为强调色。
   性能：仅一个 CSS 文件、无外链字体、无第三方库，保证 Core Web Vitals。
   ========================================================================== */

:root {
  --c-primary: #0b2b4a;
  --c-primary-d: #071d33;
  --c-accent: #d4a24c;
  --c-accent-d: #b8862f;
  --c-blue: #2e7dd1;
  --c-text: #1c2430;
  --c-text-2: #4a5568;
  --c-text-3: #7b8794;
  --c-line: #e3e8ef;
  --c-bg: #ffffff;
  --c-bg-soft: #f6f8fa;
  --c-bg-deep: #f0f4f8;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(11, 43, 74, .06);
  --shadow: 0 4px 18px rgba(11, 43, 74, .08);
  --shadow-lg: 0 18px 48px rgba(11, 43, 74, .16);
  --max: 1200px;
  /* 页头高度与 Logo 高度分开定义：Logo 为「图形在上、品牌字在下」的正方形构图，
     品牌字只占整图高度约 15%，必须给足高度才不至于糊成一团；移动端改用纯图形图标，两者一起收窄 */
  --header-h: 92px;
  --logo-h: 80px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
strong { font-weight: 700; color: var(--c-primary-d); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------- 顶部信息条 ------------------------------- */
.topbar {
  background: var(--c-primary-d); color: #c8d4e2; font-size: 13px; height: 36px;
  display: flex; align-items: center;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar a { color: #dbe6f1; }
.topbar a:hover { color: var(--c-accent); }
.topbar-right { display: flex; gap: 18px; }
/* 窄屏：信息条固定 36px 高，文字一换行就被裁切。隐藏左侧标语、收紧字号与间距，保证单行显示 */
@media (max-width: 640px) {
  .topbar { font-size: 12px; }
  .topbar .wrap { justify-content: center; gap: 12px; }
  .topbar-left { display: none; }
  .topbar-right { gap: 12px; }
}

/* --------------------------------- Header -------------------------------- */
.header {
  position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.header .wrap {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
/* 保持原始宽高比：只锁高度，宽度 auto；max-width 兜住窄屏溢出 */
.logo-img {
  display: block; height: var(--logo-h); width: auto; max-width: 100%;
  object-fit: contain; object-position: left center;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; color: var(--c-text-2);
  transition: color .18s, background .18s;
}
.nav a:hover { color: var(--c-primary); background: var(--c-bg-soft); }
.nav a.active { color: var(--c-primary); font-weight: 600; background: #eef3f8; }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-tel { font-size: 15px; font-weight: 700; color: var(--c-primary); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 8px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all .18s; white-space: nowrap;
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-d); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent { background: var(--c-accent); color: #2b1d05; }
.btn-accent:hover { background: var(--c-accent-d); }
.btn-outline { border-color: var(--c-line); color: var(--c-primary); background: #fff; }
.btn-outline:hover { border-color: var(--c-primary); }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }

.burger { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; padding: 8px; }
.burger i { display: block; height: 2px; background: var(--c-primary); margin: 4px 0; transition: .2s; }

@media (max-width: 1020px) {
  /* 折叠菜单断点：页头收窄，Logo 换成纯图形（<picture> 已按此断点切换图源） */
  :root { --header-h: 64px; --logo-h: 48px; }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--c-line); flex-direction: column;
    align-items: stretch; padding: 8px 16px 16px; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--c-bg-soft); }
  .burger { display: block; }
  .header-tel { display: none; }
}

/* ---------------------------------- Hero --------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--c-primary-d) 0%, #123b63 55%, #1a4f80 100%);
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(900px 380px at 78% 12%, rgba(212, 162, 76, .22), transparent 60%),
    radial-gradient(700px 320px at 8% 100%, rgba(46, 125, 209, .28), transparent 62%);
  pointer-events: none;
}
/* 右侧 3D 舞台：绝对定位铺满右半区，不参与文档流（避免加载前后布局抖动） */
.hero-stage {
  position: absolute; top: 0; right: 0; bottom: 0; width: 45%;
  z-index: 1; pointer-events: none;
  /* 左缘渐隐，让画布自然融进背景，不出现竖直硬边 */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 25%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 25%, #000 100%);
}

/* 悬浮数据卡片：贴在球体外围，与左侧文字分区，不参与点击 */
.hero-float { position: absolute; top: 0; right: 0; bottom: 0; width: 45%; z-index: 2; pointer-events: none; }
.hero-float-card {
  position: absolute; display: flex; flex-direction: column; gap: 3px;
  padding: 11px 15px; border-radius: 12px;
  background: rgba(9, 34, 60, .55);
  border: 1px solid rgba(143, 216, 255, .26);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px rgba(3, 16, 30, .38);
  animation: heroFloat 7.5s ease-in-out infinite;
}
.hero-float-card span { font-size: 11.5px; color: #a9c9e4; letter-spacing: .02em; white-space: nowrap; }
.hero-float-card b { font-size: 20px; color: #fff; line-height: 1.15; }
.hero-float-card b i { font-style: normal; font-weight: 400; font-size: 15px; color: #7fa8c8; }
.hero-float-card.is-a { top: 15%; left: 6%; animation-delay: 0s; }
.hero-float-card.is-b { top: 36%; right: 5%; animation-delay: 1.6s; }
.hero-float-card.is-c { top: 66%; left: 12%; animation-delay: 3.1s; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.hero-3d, .hero-3d-fallback { position: absolute; inset: 0; }
.hero-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.hero-3d-fallback { display: grid; place-items: center; transition: opacity .35s ease; }
.hero-3d-fallback svg { width: min(82%, 470px); height: auto; }
/* JS 接管渲染后隐去静态降级图 */
.hero-stage.is-live .hero-3d-fallback { opacity: 0; visibility: hidden; }

.hero .wrap { position: relative; z-index: 2; padding: 40px 24px 40px; }
/* 660px + wrap 内边距，右缘落在 45% 舞台左缘（含 25% 渐隐）之外，文字不被遮挡 */
.hero-copy { max-width: 660px; }
/* 2.5rem 保证「海关数据 / 进出口数据 / 贸易数据」在 660px 内单行不折行 */
.hero h1 { font-size: 2.5rem; max-width: 20em; margin-bottom: 18px; }
.hero .lead { font-size: 1.15rem; color: #d3e0ee; max-width: 44em; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero .btn-primary { background: var(--c-accent); color: #2b1d05; }
.hero .btn-primary:hover { background: #e2b45f; }
.hero .btn-outline { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.hero .btn-outline:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .16); border-radius: var(--radius); overflow: hidden; }
.stat { background: rgba(9, 32, 56, .55); padding: 22px 18px; text-align: center; }
.stat b { display: block; font-size: 1.85rem; color: var(--c-accent); line-height: 1.2; }
.stat span { font-size: 13px; color: #c3d3e4; }

@media (max-width: 1180px) {
  .hero-stage, .hero-float { width: 50%; }
  .hero-copy { max-width: 560px; }
  .hero h1 { font-size: 2.2rem; }
}
@media (max-width: 860px) {
  .hero .wrap { padding: 28px 24px 32px; }
  .hero h1 { font-size: 2rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  /* 窄屏：舞台退为背景装饰，文字恢复全宽；浮动卡片会与文字抢空间，直接不显示 */
  .hero-stage { width: 100%; opacity: .46; }
  .hero-float { display: none; }
  .hero-copy { max-width: 100%; }
  /* 静态地球移到右上角，避免被文字完全盖住 */
  .hero-3d-fallback { display: block; }
  .hero-3d-fallback svg {
    position: absolute; top: 3%; right: -20%;
    width: 82%; max-width: 380px; height: auto;
  }
}
/* 用户要求减少动效时，卡片不再浮动（3D 场景也不会初始化，见 hero-3d.js） */
@media (prefers-reduced-motion: reduce) {
  .hero-float-card { animation: none; }
  .hero-3d-fallback { transition: none; }
}

/* --------------------------------- 通用区块 ------------------------------- */
.section { padding: 76px 0; }
.section-soft { background: var(--c-bg-soft); }
.section-head { max-width: 44em; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: 2rem; margin-bottom: 12px; }
.section-head p { color: var(--c-text-2); font-size: 1.05rem; }
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--c-accent-d); font-weight: 700; margin-bottom: 12px;
}

.grid { display: grid; gap: 24px; }
/* grid 子项默认 min-width:auto，会被内部 min-width 较大的表格撑开进而撑破页面，必须显式归零 */
.grid > * { min-width: 0; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------------------------------- 卡片 ---------------------------------- */
.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfd9e6; }
.card h3 { color: var(--c-primary); }
.card p { color: var(--c-text-2); font-size: 15px; }
.card .more { margin-top: auto; padding-top: 12px; color: var(--c-blue); font-weight: 600; font-size: 15px; }
.card .more:hover { color: var(--c-accent-d); }

.card-icon {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: #eef3f9; color: var(--c-primary); margin-bottom: 16px; font-size: 20px; font-weight: 700;
}

/* --------------------------------- 产品卡 --------------------------------- */
.product-card { position: relative; overflow: hidden; }
.product-card .tag {
  position: absolute; top: 18px; right: 18px; font-size: 12px; padding: 3px 10px;
  border-radius: 20px; background: #fdf4e3; color: var(--c-accent-d); font-weight: 700;
}
.product-meta { display: flex; gap: 18px; margin: 14px 0 4px; font-size: 13px; color: var(--c-text-3); flex-wrap: wrap; }
.product-meta b { color: var(--c-primary); font-size: 15px; }

/* --------------------------------- 国家列表 -------------------------------- */
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.country {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff;
}
.country:hover { border-color: var(--c-blue); }
.country-code {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 8px; background: var(--c-bg-deep);
  display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--c-primary);
}
.country-name { font-weight: 600; font-size: 15px; }
.country-sub { font-size: 12px; color: var(--c-text-3); }
.badge-buyer {
  display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 4px;
  background: #e8f5ec; color: #1d7a43; margin-left: 6px;
}

/* ---------------------------------- 表格 ---------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
thead th {
  background: var(--c-bg-deep); text-align: left; padding: 13px 16px; font-weight: 700;
  color: var(--c-primary); white-space: nowrap; border-bottom: 1px solid var(--c-line);
}
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--c-line); color: var(--c-text-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfe; }
td a { color: var(--c-blue); font-weight: 600; }
td a:hover { text-decoration: underline; }

/* --------------------------------- 面包屑 --------------------------------- */
.breadcrumb { font-size: 13px; color: var(--c-text-3); padding: 16px 0; }
.breadcrumb a { color: var(--c-text-2); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb span { margin: 0 8px; color: #c3ccd8; }

/* ------------------------------- 页面标题条 -------------------------------- */
.page-head {
  background: linear-gradient(120deg, #0b2b4a, #164a78); color: #fff; padding: 54px 0 50px;
}
.page-head h1 { font-size: 2.15rem; margin-bottom: 10px; }
.page-head p { color: #cddcec; max-width: 46em; margin: 0; font-size: 1.02rem; }
.page-head .breadcrumb, .page-head .breadcrumb a { color: #a9bdd2; }
.page-head .breadcrumb a:hover { color: #fff; }

/* ------------------------- 详情页页内定位导航 ------------------------- */
.anchornav {
  position: sticky; top: var(--header-h); z-index: 50;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-line);
  box-shadow: 0 2px 10px rgba(11, 43, 74, .05);
}
.anchornav .wrap {
  display: flex; align-items: center; gap: 20px; min-height: 52px;
}
.anchornav-label {
  flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--c-primary);
  padding-right: 20px; border-right: 1px solid var(--c-line); letter-spacing: .02em;
}
.anchornav-list {
  display: flex; align-items: center; gap: 4px; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
  /* 作为 flex 子项同样受 min-width:auto 影响，不归零则被 8 个锚点撑破页面 */
  min-width: 0;
}
.anchornav-list::-webkit-scrollbar { display: none; }
.anchornav-list a {
  flex-shrink: 0; display: block; padding: 7px 14px; border-radius: 6px;
  font-size: 14px; color: var(--c-text-2); text-decoration: none;
  transition: background .16s, color .16s;
}
.anchornav-list a:hover { background: var(--c-bg-soft); color: var(--c-primary); }
.anchornav-list a.active { background: var(--c-primary); color: #fff; font-weight: 600; }
/* 锚点跳转时预留吸顶高度（页头 + 页内导航 52 + 8px 呼吸），用 calc 跟随 --header-h 变化 */
.page-head[id], .section[id], .partner-box[id] { scroll-margin-top: calc(var(--header-h) + 60px); }
@media (max-width: 900px) {
  .anchornav-label { display: none; }
  .anchornav .wrap { gap: 0; }
}
@media (max-width: 560px) {
  .anchornav-list a { padding: 6px 11px; font-size: 13px; }
}

/* --------------------------------- 文章正文 -------------------------------- */
.article-body { font-size: 16.5px; line-height: 1.9; color: #26313f; max-width: 50em; }
.article-body h2 { font-size: 1.45rem; margin-top: 1.8em; padding-left: 12px; border-left: 4px solid var(--c-accent); }
.article-body h3 { font-size: 1.12rem; margin-top: 1.4em; color: var(--c-primary); }
.article-body ul li, .article-body ol li { margin-bottom: .5em; }
.article-meta { font-size: 14px; color: var(--c-text-3); display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }

.news-item {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start;
  padding: 24px 0; border-bottom: 1px solid var(--c-line);
}
.news-item:last-child { border-bottom: 0; }
.news-item h3 { margin-bottom: 8px; }
.news-item h3 a:hover { color: var(--c-blue); }
.news-item p { color: var(--c-text-2); font-size: 15px; margin-bottom: 8px; }
.news-date { color: var(--c-text-3); font-size: 13px; white-space: nowrap; }
.tag {
  display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 4px;
  background: var(--c-bg-deep); color: var(--c-primary); margin-right: 6px;
}

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 44px; }
.pager a, .pager span {
  padding: 8px 15px; border: 1px solid var(--c-line); border-radius: 8px; font-size: 14px; color: var(--c-text-2);
}
.pager a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pager .current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ---------------------------------- FAQ ----------------------------------- */
.faq-item { border-bottom: 1px solid var(--c-line); padding: 20px 0; }
.faq-item:first-child { border-top: 1px solid var(--c-line); }
.faq-q { font-weight: 700; color: var(--c-primary); font-size: 1.03rem; margin-bottom: 8px; }
.faq-a { color: var(--c-text-2); font-size: 15.5px; }

/* --------------------------------- 联系区 --------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; }
.info-list li { padding: 14px 0; border-bottom: 1px dashed var(--c-line); display: flex; gap: 14px; }
.info-list li:last-child { border-bottom: 0; }
.info-list .k { color: var(--c-text-3); width: 82px; flex-shrink: 0; font-size: 14px; }
.info-list .v { color: var(--c-text); font-weight: 500; }

/* --------------------------------- 表单 ----------------------------------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--c-text-2); }
.field label i { color: #d93025; font-style: normal; margin-left: 3px; }
.form-note { font-size: 12.5px; color: var(--c-text-3); margin-top: 12px; line-height: 1.6; }
.form-error { color: #d93025; font-size: 13.5px; margin-bottom: 10px; display: none; }
.form-ok { color: #1d7a43; font-size: 14px; background: #e8f5ec; padding: 10px 14px; border-radius: 8px; display: none; }

/* --------------------- 留资弹窗（全局唯一 · 左图右表单） --------------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
/* 打开时用 flex 布局，便于移动端把弹窗吸到底部；桌面靠 margin 控制上边距 */
.modal.open { display: flex; align-items: flex-start; justify-content: center; }
.modal-mask { position: absolute; inset: 0; background: rgba(6, 20, 36, .62); backdrop-filter: blur(3px); }
.modal-box {
  position: relative; z-index: 1; margin: 5vh auto 0; background: #fff;
  border-radius: 18px; box-shadow: 0 30px 80px rgba(6, 24, 44, .34);
  overflow: hidden; animation: modalIn .24s ease-out;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* 双栏：左固定 340px 说明面板 + 右自适应表单 */
.lead-split {
  display: grid; grid-template-columns: 340px minmax(0, 1fr);
  /* 行高必须用 minmax(0, 1fr)：默认 auto 会被内容撑高，
     即使容器有 max-height，表单区也不会形成滚动，底部按钮会被裁掉 */
  grid-template-rows: minmax(0, 1fr);
  width: calc(100% - 32px); max-width: 900px; max-height: 92vh;
}

/* ---------- 左：品牌说明面板 ---------- */
.lead-aside {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  padding: 30px 26px 20px; color: #fff;
  background: linear-gradient(168deg, #10508f 0%, #0b3a6b 46%, #07284b 100%);
}
.lead-aside::before {
  content: ''; position: absolute; left: -20%; right: -20%; top: -26%; height: 66%;
  background: radial-gradient(circle at 32% 44%, rgba(96, 190, 255, .34), transparent 64%);
  pointer-events: none;
}
.lead-aside-copy { position: relative; z-index: 2; }
.lead-aside-copy h3 { margin: 0 0 10px; font-size: 24px; color: #fff; letter-spacing: .2px; }
.lead-aside-copy > p { margin: 0; font-size: 13px; line-height: 1.68; color: #b9d6f2; }

.lead-points {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 16px;
}
.lead-points li { display: flex; align-items: center; gap: 12px; }
.lead-point-ico {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: #9fdcff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(159, 216, 255, .35);
}
.lead-point-ico svg { width: 20px; height: 20px; }
.lead-point-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lead-point-text b { font-size: 14px; font-weight: 600; color: #fff; }
.lead-point-text em { font-style: normal; font-size: 12px; color: #a8c8e6; }

/* 装饰插画铺在面板底部，靠 SVG 自身的渐隐融进底色 */
.lead-aside-art { position: relative; z-index: 1; flex: 1; min-height: 190px; margin: 6px -26px 0; }
/* 铺满容器并底部对齐（SVG 自带 preserveAspectRatio="xMidYMax slice"），避免货轮被裁掉 */
.lead-aside-art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.lead-aside-note {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 7px;
  margin: 8px 0 0; font-size: 11.5px; color: #9db9d4;
}
.lead-aside-note svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---------- 右：表单面板 ---------- */
/* min-height:0 是关键：grid/flex 子项默认 min-height:auto 会被内容撑高，
   导致 .modal-body 无法形成滚动区，超出 max-height 的部分被 .modal-box 的
   overflow:hidden 直接裁掉（手机端表现为底部按钮被切一半） */
.lead-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; }
.lead-main-head { position: relative; padding: 24px 26px 0; }
.lead-main-head h3 { margin: 0 0 6px; font-size: 20px; color: #16283c; }
.lead-main-head p { margin: 0; font-size: 13px; color: var(--c-text-3); }
.lead-main .modal-close {
  position: absolute; top: 18px; right: 18px; width: 30px; height: 30px;
  border: 0; border-radius: 6px; background: none; cursor: pointer;
  color: #9aa9b8; font-size: 22px; line-height: 1;
}
.lead-main .modal-close:hover { background: #f1f5f9; color: #5a6b7d; }
.lead-main .modal-body {
  flex: 1 1 auto; min-height: 0;
  padding: 18px 26px 22px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.lead-main .field { margin-bottom: 13px; }
.lead-main .field label { font-size: 13px; color: #33475d; margin-bottom: 7px; }
.lead-main .form-note { text-align: center; font-size: 11.5px; color: #93a2b2; margin: 10px 0 0; }

/* 输入框：左侧图标 + 统一圆角描边 */
.lead-input { position: relative; }
.lead-input .lead-ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: #9aabbd; pointer-events: none;
}
.lead-input input, .lead-input select, .lead-input textarea {
  width: 100%; padding: 11px 13px 11px 37px; font-size: 14px; font-family: inherit;
  border: 1px solid #dde5ee; border-radius: 9px; background: #fff; color: var(--c-text);
  transition: border-color .18s, box-shadow .18s;
}
.lead-input input::placeholder, .lead-input textarea::placeholder { color: #a9b7c6; }
.lead-input input:focus, .lead-input select:focus, .lead-input textarea:focus {
  outline: 0; border-color: #2f7fe0; box-shadow: 0 0 0 3px rgba(47, 127, 224, .12);
}
/* 自定义下拉箭头（原生箭头在带图标的内边距下位置会歪） */
.lead-input-select select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer; }
.lead-input-select::after {
  content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px;
  border-right: 1.6px solid #8a9bad; border-bottom: 1.6px solid #8a9bad;
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
/* 多行输入：图标贴顶，右下角字数 */
.lead-input-area .lead-ico { top: 14px; transform: none; }
.lead-input-area textarea { min-height: 74px; resize: vertical; line-height: 1.6; padding-right: 56px; }
.lead-count { position: absolute; right: 12px; bottom: 8px; font-size: 11.5px; color: #a9b7c6; pointer-events: none; }

.lead-consent {
  display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 14px;
  font-size: 12.5px; line-height: 1.55; color: #6b7c8f; cursor: pointer;
}
.lead-consent input { width: 14px; height: 14px; margin: 2px 0 0; flex-shrink: 0; accent-color: #2f7fe0; }
.lead-consent a { color: #2f7fe0; text-decoration: none; }
.lead-consent a:hover { text-decoration: underline; }

.lead-submit {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 13px 20px; border: 0; border-radius: 9px; cursor: pointer;
  font-size: 15px; font-weight: 600; font-family: inherit; color: #fff;
  background: linear-gradient(135deg, #3a8bea, #1c63c8);
  box-shadow: 0 8px 18px rgba(28, 99, 200, .28);
  transition: transform .16s, box-shadow .16s, filter .16s;
}
.lead-submit:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(28, 99, 200, .34); }
.lead-submit:disabled { opacity: .62; cursor: default; transform: none; box-shadow: none; filter: none; }
.lead-submit svg { width: 17px; height: 17px; }

/* 窄屏：说明面板收起，只留表单（保持原有字段与校验不变） */
@media (max-width: 900px) {
  .lead-split { grid-template-columns: 1fr; max-width: 520px; }
  .lead-aside { display: none; }
}
/* 移动端：改为底部抽屉 —— 全宽、贴底、顶部圆角、从下方滑入，内部滚动承载长表单 */
@media (max-width: 560px) {
  .modal.open { align-items: flex-end; }
  .modal-box {
    margin: 0; width: 100%; max-width: 100%;
    border-radius: 18px 18px 0 0;
    animation: sheetUp .26s cubic-bezier(.22, .8, .3, 1);
  }
  .lead-split { max-height: 92vh; }
  /* 抽屉把手：纯视觉提示可下滑关闭 */
  .lead-main-head::before {
    content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 38px; height: 4px; border-radius: 2px; background: #d7e0ea;
  }
  .lead-main-head { padding: 24px 20px 0; }
  .lead-main .modal-close { top: 20px; right: 14px; }
  /* 底部留安全区，避免提交按钮被 iPhone 横条压住 */
  .lead-main .modal-body { padding: 14px 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
  .lead-main .field { margin-bottom: 12px; }
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: none; }
}

/* --------------------------------- CTA 区 ---------------------------------- */
.cta-band {
  background: linear-gradient(120deg, #0b2b4a, #1a4f80); color: #fff; padding: 66px 0; text-align: center;
}
.cta-band h2 { font-size: 1.95rem; margin-bottom: 12px; }
.cta-band p { color: #cbdcea; max-width: 40em; margin: 0 auto 28px; }
.cta-band .btn-primary { background: var(--c-accent); color: #2b1d05; }

/* --------------------------------- Footer ---------------------------------- */
.footer { background: var(--c-primary-d); color: #b8c8da; font-size: 14.5px; padding: 56px 0 0; }
/* 品牌 + 3 组导航 + 联系方式，共 5 列同一排；列间距用 --footer-gap 统一调节 */
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .74fr) minmax(0, .74fr) minmax(0, .96fr) minmax(0, 1.36fr);
  column-gap: var(--footer-gap, 30px);
  row-gap: 34px;
  align-items: start;
}
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); row-gap: 34px; }
  .footer-grid > :nth-child(4), .footer-grid > :nth-child(5) { grid-column: span 1; }
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  /* 手机端：三组导航并排成一行三列，品牌与联系方式各占满整行，避免长页脚 */
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 26px;
  }
  /* 用 .footer-grid > 提高特异性：否则会被 1080px 断点的 :nth-child(4/5){span 1} 覆盖 */
  .footer-grid > .footer-brand,
  .footer-grid > .footer-contact { grid-column: 1 / -1; }
  .footer-grid > .footer-nav-col { grid-column: span 1; }
  .footer h4 { font-size: 13.5px; margin-bottom: 10px; }
  .footer-nav-col li { font-size: 12.5px; line-height: 1.9; }
  .footer-logo img { height: 74px; }
}
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 9px; }
.footer a:hover { color: var(--c-accent); }
.footer-logo { display: flex; align-items: center; margin-bottom: 16px; }
/* 深色页脚 + 深蓝品牌字 → 加白色圆角衬底，保证对比度；衬底随 Logo 等比缩放 */
.footer-logo img {
  display: block; height: 88px; width: auto; max-width: 100%;
  background: #fff; border-radius: 12px; object-fit: contain;
  /* 内边距必须四边等值：全局 box-sizing:border-box 下，不等值 padding 会把正方形衬底挤成矩形 */
  padding: 10px;
}
/* 联系方式列：地址较长，单独控制换行与行距 */
.footer-contact { font-size: 13.5px; }
.footer-contact li { display: flex; gap: 8px; margin-bottom: 10px; line-height: 1.65; }
.footer-contact li span:first-child { flex-shrink: 0; color: #8fa3b8; }
.footer-contact li span:last-child { color: #cfdcea; word-break: break-word; }
.footer-contact a { color: #cfdcea; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding: 18px 0;
  font-size: 13px; color: #8fa3b8; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ------------------------------- 404 / 错误页 ------------------------------- */
.error-page { padding: 120px 0; text-align: center; }
.error-page h1 { font-size: 4rem; color: var(--c-primary); margin-bottom: 8px; }

/* --------------------------------- 实用类 ---------------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.muted { color: var(--c-text-3); }
.divider { height: 1px; background: var(--c-line); margin: 32px 0; }

/* 降级提示条（仅数据库未连接时显示给站长，访客不可见风险） */
.dev-note {
  background: #fff8e6; border-bottom: 1px solid #f2e0b5; color: #8a6a1f;
  font-size: 12.5px; padding: 7px 24px; text-align: center;
}

/* ==========================================================================
   国家数据单页组件
   ========================================================================== */

/* 国家卡片（可点击） */
.country-link { text-decoration: none; transition: border-color .18s, transform .18s, box-shadow .18s; }
.country-link:hover { border-color: var(--c-accent); transform: translateY(-3px); box-shadow: 0 10px 26px rgba(15, 40, 70, .09); }
.country-desc {
  display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.65;
  color: var(--c-text-3); overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.count-badge {
  display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 999px;
  background: rgba(212, 162, 76, .16); color: #9a6f1c; font-size: 13px; font-weight: 600;
  vertical-align: middle;
}

/* 概览参数网格 */
.overview-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
/* HS 详情页：固定 4 列，8 个字段正好排满两行 */
.hs-overview { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .hs-overview { grid-template-columns: repeat(2, 1fr); } }
.overview-item {
  background: #fff; border: 1px solid var(--c-line); border-radius: 10px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 6px;
}
.ov-k { font-size: 12.5px; color: var(--c-text-3); letter-spacing: .02em; }
.ov-v { font-size: 14.5px; color: var(--c-text); font-weight: 600; line-height: 1.6; }

/* 数据表 */
/* max-width:100% + 父级 min-width:0 双保险：表格 min-width 较大时只在容器内横滑，不撑破页面 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.data-table th {
  text-align: left; padding: 12px 16px; background: #f4f7fa; color: var(--c-text-2);
  font-weight: 600; font-size: 13.5px; border-bottom: 1px solid var(--c-line); white-space: nowrap;
}
.data-table td {
  padding: 13px 16px; border-bottom: 1px solid var(--c-line); color: var(--c-text-2); line-height: 1.75;
  vertical-align: top;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #fbfcfe; }
.data-table td b { color: var(--c-text); }
.hs-link { color: var(--c-primary); font-weight: 700; text-decoration: none; }
.hs-link:hover { text-decoration: underline; }

/* 五维分析 */
.analysis-list { display: flex; flex-direction: column; gap: 18px; }
.analysis-item {
  display: flex; gap: 20px; padding: 22px 24px; background: #fff;
  border: 1px solid var(--c-line); border-left: 3px solid var(--c-accent); border-radius: 8px;
}
.analysis-no { font-size: 22px; font-weight: 800; color: rgba(212, 162, 76, .55); line-height: 1.2; min-width: 42px; }
.analysis-body h3 { font-size: 17px; margin-bottom: 8px; color: var(--c-primary); }
.analysis-body p { color: var(--c-text-2); line-height: 1.9; font-size: 14.5px; }

/* 贸易伙伴 */
.partner-box {
  margin-top: 30px; padding: 24px 26px; background: #fff;
  border: 1px solid var(--c-line); border-radius: 10px;
}
.partner-box h3 { font-size: 16px; margin-bottom: 14px; color: var(--c-primary); }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  display: inline-block; padding: 5px 13px; border-radius: 6px; background: #eef3f8;
  color: var(--c-primary); font-size: 13.5px; font-weight: 600;
}
.partner-note { margin-top: 14px; font-size: 13px; color: var(--c-text-3); line-height: 1.8; }

/* 首页国家内链 */
.exclusive-row { margin-bottom: 22px; }
.exclusive-row:last-of-type { margin-bottom: 0; }
.exclusive-title { font-size: 15px; color: var(--c-primary); margin-bottom: 12px; }
.tag-group-label {
  display: inline-block; margin-right: 4px; padding: 2px 10px;
  font-size: 12px; font-weight: 600; color: var(--c-primary);
  background: var(--c-bg-soft); border: 1px solid var(--c-line); border-radius: 4px;
}
.tag-link { text-decoration: none; transition: background .16s, color .16s; }
.tag-link:hover { background: var(--c-primary); color: #fff; }

/* 说明框 */
.notice-box {
  padding: 24px 28px; background: #f7f9fc;
  border: 1px solid var(--c-line); border-left: 3px solid var(--c-primary); border-radius: 8px;
}
.notice-box h3 { font-size: 16px; margin-bottom: 12px; color: var(--c-primary); }
.notice-box p { color: var(--c-text-2); line-height: 1.95; font-size: 14.5px; margin-bottom: 8px; }
.notice-box p:last-child { margin-bottom: 0; }
.notice-box a { color: var(--c-primary); text-decoration: underline; }
.lead-text { font-size: 15.5px; line-height: 2; color: var(--c-text-2); }

/* ==========================================================================
   国家卡片 v2：真实国旗 + 数据标签 + 更新频率 + 查看数据
   ========================================================================== */
.ccard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ccard {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 14px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  text-decoration: none; color: inherit;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.ccard:hover { border-color: var(--c-accent); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(11, 43, 74, .1); }
.ccard.is-exclusive { border-color: #efdfbd; background: linear-gradient(180deg, #fffdf8, #fff 46%); }
/* 行内「独家」标记（国家单页页头与概览卡） */
.badge-exclusive {
  display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 4px;
  font-size: 11px; font-style: normal; font-weight: 700; letter-spacing: .06em; line-height: 1.7;
  color: #7a5410; background: linear-gradient(135deg, #f7e0b0, #e2b862);
  vertical-align: 1px;
}
/* 右上角「独家」标记 */
.ccard-exclusive {
  position: absolute; top: 0; right: 0; padding: 3px 11px 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; line-height: 1.5;
  color: #7a5410; background: linear-gradient(135deg, #f7e0b0, #e2b862);
  border-radius: 0 var(--radius-lg) 0 10px;
  box-shadow: -1px 1px 0 rgba(255, 255, 255, .75) inset;
}
.ccard-top { display: flex; align-items: center; gap: 12px; }
.ccard-flag { display: block; flex-shrink: 0; }
.ccard-flag img {
  display: block; width: 52px; height: 39px; object-fit: cover; border-radius: 5px;
  border: 1px solid var(--c-line); box-shadow: 0 1px 3px rgba(11, 43, 74, .14); background: var(--c-bg-soft);
}
.ccard-title { display: flex; align-items: baseline; gap: 8px; font-size: 17px; font-weight: 700; color: var(--c-primary-d); }
.ccard-en { font-size: 12px; font-weight: 500; color: var(--c-text-3); letter-spacing: .02em; }
.ccard-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ctag {
  font-size: 12px; line-height: 1.7; padding: 1px 8px; border-radius: 4px;
  background: var(--c-bg-soft); color: var(--c-text-2); border: 1px solid var(--c-line); white-space: nowrap;
}
.ctag-blue { background: #eaf2fd; color: #1c5fa8; border-color: #d8e7fb; }
.ctag-green { background: #e9f6ee; color: #1d7a43; border-color: #d5ebdd; }
.ctag-gold { background: #fdf4e3; color: #9a6f1c; border-color: #f2e2c2; }
.ccard-desc {
  font-size: 13px; line-height: 1.75; color: var(--c-text-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ccard-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--c-text-2); margin-top: auto; }
.ccard-meta i { font-style: normal; color: var(--c-text-3); margin-right: 4px; }
.ccard-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; border-top: 1px dashed var(--c-line);
}
.ccard-cta { font-size: 13.5px; font-weight: 600; color: var(--c-accent-d); }
.ccard-cta em { font-style: normal; display: inline-block; transition: transform .18s; }
.ccard:hover .ccard-cta em { transform: translateX(4px); }
.ccard-code { font-size: 12px; color: var(--c-text-3); letter-spacing: .08em; }

/* 紧凑国家列表中的国旗 */
.country-flag {
  width: 44px; height: 33px; flex-shrink: 0; object-fit: cover; border-radius: 4px;
  border: 1px solid var(--c-line); box-shadow: 0 1px 2px rgba(11, 43, 74, .1); background: var(--c-bg-soft);
}
/* 首页内链小国旗 */
.mini-flag {
  display: inline-block; width: 18px; height: 13px; object-fit: cover; margin-right: 6px;
  border-radius: 2px; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(11, 43, 74, .12);
}
/* 国家单页页头国旗 */
.page-head p.page-head-flag { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.page-head-flag img {
  width: 68px; height: 51px; object-fit: cover; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .32); box-shadow: 0 2px 10px rgba(0, 0, 0, .28);
}
.page-head-flag span { font-size: 13px; color: #cddcec; letter-spacing: .04em; }

@media (max-width: 640px) {
  .ccard-grid { grid-template-columns: 1fr; }
  .analysis-item { flex-direction: column; gap: 8px; padding: 18px; }
  .analysis-no { font-size: 18px; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
}

/* --------------------- HS 编码：检索与结构树 --------------------- */
.hs-search { display: flex; gap: 12px; max-width: 760px; margin-bottom: 14px; }
.hs-search input { flex: 1; min-width: 0; }
@media (max-width: 560px) { .hs-search { flex-direction: column; } }

.hs-sub { font-size: 17px; color: var(--c-primary); margin-bottom: 14px; }
.tag-num { font-style: normal; font-size: 11.5px; color: var(--c-text-3); margin-left: 6px; }
.tag-link:hover .tag-num { color: rgba(255, 255, 255, .82); }
.hs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.hstree { display: flex; flex-direction: column; gap: 28px; }
.hstree-sec-head { margin-bottom: 12px; }
.hstree-sec-head h3 { font-size: 17px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.hstree-ch {
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius); margin-bottom: 8px;
}
.hstree-ch[open] { border-color: #cfd9e6; box-shadow: var(--shadow); }
.hstree-ch > summary {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  cursor: pointer; list-style: none; font-size: 15px;
}
.hstree-ch > summary::-webkit-details-marker { display: none; }
.hstree-ch > summary::before {
  content: '\25B8'; flex-shrink: 0; width: 16px; color: var(--c-text-3);
  font-size: 13px; transition: transform .15s;
}
.hstree-ch[open] > summary::before { content: '\25BE'; }
.hstree-ch-code {
  flex-shrink: 0; font-weight: 700; color: var(--c-primary); letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.hstree-ch-name { color: var(--c-text); font-weight: 600; }
.hstree-ch-meta { margin-left: auto; font-size: 12.5px; color: var(--c-text-3); white-space: nowrap; }
.hstree-ch-link { flex-shrink: 0; font-size: 13px; color: var(--c-blue); text-decoration: none; }
.hstree-ch-link:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .hstree-ch > summary { flex-wrap: wrap; row-gap: 6px; }
  .hstree-ch-meta { margin-left: 28px; }
}

.hstree-hd {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 10px; padding: 2px 16px 16px 44px;
}
.hstree-hd-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: #fbfcfe; border: 1px solid var(--c-line); border-radius: 8px;
  text-decoration: none; transition: background .16s, border-color .16s;
}
.hstree-hd-item:hover { background: #fffdf7; border-color: var(--c-accent); }
.hstree-hd-item b {
  flex-shrink: 0; font-size: 13.5px; color: var(--c-primary); font-variant-numeric: tabular-nums;
}
.hstree-hd-item span {
  flex: 1; min-width: 0; font-size: 13.5px; color: var(--c-text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hstree-hd-item i { flex-shrink: 0; font-style: normal; font-size: 12px; color: var(--c-text-3); }

/* --------------------- HS 编码：节点卡片 --------------------- */
.hsnode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.hsnode {
  display: flex; flex-direction: column; gap: 5px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  text-decoration: none; transition: border-color .18s, transform .18s, box-shadow .18s;
}
.hsnode:hover {
  border-color: var(--c-accent); transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 43, 74, .08);
}
.hsnode-code { font-size: 15px; font-weight: 700; color: var(--c-primary); font-variant-numeric: tabular-nums; }
.hsnode-name { font-size: 13.5px; line-height: 1.65; color: var(--c-text-2); }
.hsnode-meta { font-size: 12px; color: var(--c-text-3); }

/* --------------------- HS 编码：详情页 --------------------- */
.hstax-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 980px) { .hstax-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .hstax-grid { grid-template-columns: 1fr; } }
.hstax {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
}
.hstax-k { font-size: 13px; color: var(--c-text-3); }
.hstax-v { font-size: 1.4rem; font-weight: 700; color: var(--c-accent-d); line-height: 1.2; }

.hselem {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px;
}
.hselem li {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px;
  background: #fff; border: 1px solid var(--c-line); border-radius: 8px;
  font-size: 14.5px; color: var(--c-text-2); line-height: 1.7;
}
.hselem-no {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: #eef3f9;
  color: var(--c-primary); font-size: 12px; font-weight: 700; display: grid; place-items: center;
}

.hsbox { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 22px 24px; }
.hsbox h3 { font-size: 16px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.hscond { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.hscond li {
  display: flex; align-items: flex-start; gap: 12px; padding: 9px 12px;
  background: var(--c-bg-soft); border-radius: 8px; font-size: 14px;
}
.hscond b {
  flex-shrink: 0; min-width: 24px; text-align: center; padding: 1px 6px;
  background: var(--c-primary); color: #fff; border-radius: 4px; font-size: 12.5px;
}
.hscond span { color: var(--c-text-2); line-height: 1.65; }

.hspath { list-style: none; padding: 0; margin: 0; }
.hspath li {
  display: flex; align-items: center; gap: 12px; padding: 11px 0;
  font-size: 14.5px; color: var(--c-text-2);
}
.hspath li + li { border-top: 1px dashed var(--c-line); }
.hspath-k { flex-shrink: 0; min-width: 78px; font-size: 12px; color: var(--c-text-3); }
.hspath li a { color: var(--c-primary); font-weight: 600; text-decoration: none; }
.hspath li a:hover { text-decoration: underline; }
.hspath li.is-current { color: var(--c-text); font-weight: 600; }
.hspath-note { font-size: 12px; color: var(--c-text-3); }
.hspath li:nth-child(1) { padding-left: 0; }
.hspath li:nth-child(2) { padding-left: 16px; }
.hspath li:nth-child(3) { padding-left: 32px; }
.hspath li:nth-child(4) { padding-left: 48px; }
.hspath li:nth-child(5) { padding-left: 64px; }
.hspath li:nth-child(6) { padding-left: 80px; }
@media (max-width: 640px) {
  .hspath li { padding-left: 0 !important; flex-wrap: wrap; }
  .hspath-k { min-width: 64px; }
}

/* ============================ 新闻频道（列表 / 详情） ============================ */
.news-page { background: #f4f6f9; padding-bottom: 56px; }
.news-crumb { padding: 18px 0 12px; font-size: 13px; color: var(--c-text-3); }
.news-crumb a { color: var(--c-text-3); text-decoration: none; }
.news-crumb a:hover { color: var(--c-blue); }
.news-crumb span { margin: 0 8px; color: #c3ccd8; }

.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 322px; gap: 22px; align-items: start; }
@media (max-width: 1000px) { .news-layout { grid-template-columns: 1fr; } }

.news-block { background: #fff; border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden; }
.news-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 18px 24px; border-bottom: 1px solid var(--c-line);
}
.news-toolbar h1 { font-size: 18px; margin: 0; display: flex; align-items: center; gap: 10px; color: var(--c-text); }
.news-toolbar h1::before { content: ''; width: 4px; height: 17px; background: var(--c-blue); border-radius: 2px; }
.news-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.news-tabs a {
  font-size: 13.5px; padding: 5px 13px; border-radius: 999px;
  color: var(--c-text-2); text-decoration: none; transition: background .16s, color .16s;
}
.news-tabs a:hover { background: #eef3f9; color: var(--c-primary); }
.news-tabs a.active { background: var(--c-primary); color: #fff; }

.nlist { padding: 2px 24px 10px; }
.nitem {
  display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px;
  padding: 22px 0; border-bottom: 1px dashed var(--c-line);
}
.nlist .nitem:last-child { border-bottom: 0; }
.nitem-cover {
  display: block; width: 210px; height: 130px; border-radius: 10px;
  overflow: hidden; background: #eef2f7;
}
.nitem-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.nitem:hover .nitem-cover img { transform: scale(1.04); }
.nitem-cover-empty {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: linear-gradient(135deg, #e6eef8, #d7e4f3);
  color: var(--c-primary); font-weight: 700; font-size: 15px; letter-spacing: .06em;
}
.nitem-body { min-width: 0; }
.nitem-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: var(--c-text-3); margin-bottom: 10px;
}
.nitem-meta time { color: var(--c-text-3); }
.nread { margin-left: auto; color: var(--c-text-2); font-size: 13px; text-decoration: none; white-space: nowrap; }
.nread:hover { color: var(--c-blue); }
.nitem-title { font-size: 18px; line-height: 1.55; font-weight: 700; margin-bottom: 8px; }
.nitem-title a { color: var(--c-text); text-decoration: none; }
.nitem-title a:hover { color: var(--c-blue); }
.nitem-sum {
  font-size: 14.5px; line-height: 1.85; color: var(--c-text-2); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 640px) {
  .nitem { grid-template-columns: 1fr; gap: 12px; }
  .nitem-cover { width: 100%; height: 176px; }
  .nread { display: none; }
  .nlist, .news-toolbar { padding-left: 16px; padding-right: 16px; }
}

.ntag { display: inline-block; font-size: 12.5px; line-height: 1.7; padding: 1px 9px; border-radius: 4px; font-weight: 600; }
.ntag--blue { background: #e9f1fb; color: #1c5fa8; }
.ntag--green { background: #e9f6ee; color: #1d7a43; }
.ntag--gold { background: #fdf4e3; color: #9a6f1c; }
.ntag--purple { background: #f0ebfa; color: #5b3fa8; }
.ntag--teal { background: #e6f6f5; color: #0f6f6b; }
.ntag--grey { background: #f0f3f7; color: #5c6b7c; font-weight: 500; }

/* 右侧栏 */
.news-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header-h) + 14px); }
@media (max-width: 1000px) { .news-side { position: static; } }
.npanel { background: #fff; border: 1px solid var(--c-line); border-radius: 12px; padding: 16px 20px 6px; }
.npanel-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 15.5px; font-weight: 700; color: var(--c-primary);
  padding-bottom: 12px; border-bottom: 1px solid var(--c-line); margin-bottom: 4px;
}
.npanel-head .ico {
  width: 20px; height: 20px; border-radius: 5px; background: #eef3f9;
  display: grid; place-items: center; font-size: 11px; color: var(--c-blue);
}
.nrank { list-style: none; margin: 0; padding: 0; }
.nrank li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--c-line); }
.nrank li:last-child { border-bottom: 0; }
.nrank .no {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 4px; margin-top: 3px;
  background: #eef2f7; color: #8b98a8; font-size: 11.5px; font-weight: 700;
  display: grid; place-items: center;
}
.nrank li:nth-child(1) .no { background: #e8452c; color: #fff; }
.nrank li:nth-child(2) .no { background: #f08a24; color: #fff; }
.nrank li:nth-child(3) .no { background: #e9b32a; color: #fff; }
.nrank a {
  flex: 1; min-width: 0; font-size: 14px; line-height: 1.65; color: var(--c-text-2); text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nrank a:hover { color: var(--c-blue); }
.nrank time { flex-shrink: 0; font-size: 12px; color: var(--c-text-3); margin-top: 2px; white-space: nowrap; }
.nrank a { min-height: 0; }
.nrec { list-style: none; margin: 0; padding: 0; }
.nrec li { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--c-line); }
.nrec li:last-child { border-bottom: 0; }
.nrec img, .nrec-ph { width: 72px; height: 48px; border-radius: 6px; flex-shrink: 0; background: #eef2f7; }
.nrec img { object-fit: cover; }
.nrec-ph { background: linear-gradient(135deg, #e6eef8, #d7e4f3); }
.nrec a {
  font-size: 13.5px; line-height: 1.6; color: var(--c-text-2); text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nrec a:hover { color: var(--c-blue); }
.ncta { background: linear-gradient(135deg, #0b2b4a, #164a78); border-radius: 12px; padding: 22px 20px; }
.ncta h3 { color: #fff; font-size: 16px; margin-bottom: 8px; }
.ncta p { font-size: 13px; line-height: 1.7; color: #bdd0e3; margin-bottom: 14px; }
.ncta .btn { width: 100%; }

/* 详情 */
.ndetail-head {
  background: #fff; border: 1px solid var(--c-line); border-radius: 12px;
  padding: 30px 32px; margin-bottom: 20px;
  display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 30px; align-items: start;
}
@media (max-width: 900px) { .ndetail-head { grid-template-columns: 1fr; gap: 20px; padding: 22px; } }
.ndetail-title { font-size: 1.9rem; line-height: 1.42; font-weight: 700; color: var(--c-text); margin: 0 0 16px; }
@media (max-width: 640px) { .ndetail-title { font-size: 1.42rem; } }
.ndetail-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--c-text-3);
  padding-top: 16px; border-top: 1px solid var(--c-line);
}
.napply { background: #f5f8fc; border: 1px solid #e2eaf4; border-radius: 10px; padding: 20px; text-align: center; }
.napply b { display: block; font-size: 15px; color: var(--c-primary); margin-bottom: 14px; line-height: 1.6; }
.napply .btn { width: 100%; }

.ndetail-body {
  background: #fff; border: 1px solid var(--c-line); border-radius: 12px;
  padding: 34px 40px 38px;
}
@media (max-width: 640px) { .ndetail-body { padding: 20px 16px 24px; } }
.ndetail-lead {
  font-size: 15.5px; line-height: 1.9; color: var(--c-text-2);
  background: #f7f9fc; border-left: 3px solid var(--c-accent);
  padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 0 0 26px;
}
.ndetail-body .article-body { max-width: none; }
.ndetail-body .article-body img { max-width: 100%; height: auto; border-radius: 8px; }
.ndetail-body .article-body p { margin-bottom: 1.1em; }
.ntags { margin-top: 34px; padding-top: 20px; border-top: 1px dashed var(--c-line); display: flex; gap: 8px; flex-wrap: wrap; }
.nprevnext {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--c-line); font-size: 14px;
}
.nprevnext a { color: var(--c-primary); text-decoration: none; }
.nprevnext a:hover { text-decoration: underline; }

/* 富文本正文：早期 Quill 存量内容的对齐 / 字号 / 缩进类（编辑器已换 UEditor，仅为兼容保留） */
.article-body .ql-align-center { text-align: center; }
.article-body .ql-align-right { text-align: right; }
.article-body .ql-align-justify { text-align: justify; }
.article-body .ql-size-small { font-size: .85em; }
.article-body .ql-size-large { font-size: 1.5em; }
.article-body .ql-size-huge { font-size: 2.1em; }
.article-body .ql-indent-1 { padding-left: 2em; }
.article-body .ql-indent-2 { padding-left: 4em; }
.article-body .ql-indent-3 { padding-left: 6em; }
.article-body .ql-indent-4 { padding-left: 8em; }
.article-body blockquote {
  margin: 1.3em 0; padding: .6em 1.1em; color: var(--c-text-2);
  background: #f7f9fc; border-left: 3px solid var(--c-accent); border-radius: 0 6px 6px 0;
}
.article-body ol, .article-body ul { padding-left: 1.5em; margin-bottom: 1.1em; }
.article-body a { color: var(--c-blue); }

/* 富文本正文：UEditor 输出（表格 / 缩进列表 / 内嵌媒体） */
.article-body section { display: block; }
.article-body table {
  width: auto; max-width: 100%; border-collapse: collapse; margin: 1.3em 0;
  font-size: 15px; border-color: #dbe2ea;
}
.article-body th, .article-body td {
  border: 1px solid #dbe2ea; padding: 8px 12px; line-height: 1.7;
}
.article-body th { background: #f4f7fa; font-weight: 600; }
.article-body .list-paddingleft-1 { padding-left: 1.6em; }
.article-body .list-paddingleft-2 { padding-left: 3.2em; }
.article-body .list-paddingleft-3 { padding-left: 4.8em; }
.article-body iframe, .article-body video, .article-body embed {
  max-width: 100%; border: 0; border-radius: 8px;
}
.article-body sub, .article-body sup { font-size: .78em; }
.article-body hr { border: 0; border-top: 1px solid var(--c-line); margin: 2em 0; }

/* 富文本正文：UEditor 输出（表格 / 缩进列表 / 内嵌媒体） */
.article-body section { display: block; }
.article-body table {
  width: auto; max-width: 100%; border-collapse: collapse; margin: 1.3em 0;
  font-size: 15px; border-color: #dbe2ea;
}
.article-body th, .article-body td {
  border: 1px solid #dbe2ea; padding: 8px 12px; line-height: 1.7;
}
.article-body th { background: #f4f7fa; font-weight: 600; }
.article-body .list-paddingleft-1 { padding-left: 1.6em; }
.article-body .list-paddingleft-2 { padding-left: 3.2em; }
.article-body .list-paddingleft-3 { padding-left: 4.8em; }
.article-body iframe, .article-body video, .article-body embed {
  max-width: 100%; border: 0; border-radius: 8px;
}
.article-body sub, .article-body sup { font-size: .78em; }
.article-body hr { border: 0; border-top: 1px solid var(--c-line); margin: 2em 0; }
.article-body pre {
  background: #f6f8fb; border: 1px solid var(--c-line); border-radius: 8px;
  padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #2b3440;
  margin: 1.2em 0;
}
.article-body code { background: #f2f5f9; border-radius: 4px; padding: 1px 5px; font-size: .92em; }
.article-body pre code { background: none; padding: 0; }
.article-body pre {
  background: #f6f8fb; border: 1px solid var(--c-line); border-radius: 8px;
  padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #2b3440;
  margin: 1.2em 0;
}
.article-body code { background: #f2f5f9; border-radius: 4px; padding: 1px 5px; font-size: .92em; }
.article-body pre code { background: none; padding: 0; }
