/* ==========================================================
   重庆蜀阳商贸 —— 站点样式（中英文共用，白 + 蓝品牌体系）
   ========================================================== */
:root {
  /* 品牌蓝（源自官网实测 #1565c0，白底安全对比度） */
  --primary: #1565c0;        /* 主色：按钮 / 链接 / 强调 */
  --primary-dark: #0d47a1;   /* 深一档：页脚 / hover / 渐变收尾 */
  --primary-soft: #42a5f5;   /* 亮一档：描边 / 箭头 / 装饰 */
  --primary-tint: #eaf3fd;   /* 浅色衬底 */
  --accent: #8fc2f5;         /* 深色底上的点缀 */

  --ink: #16263c;            /* 标题：深墨蓝，比纯黑更柔和 */
  --text: #48586d;           /* 正文 */
  --muted: #7d8ea4;          /* 次要文字 */
  --line: #e7eef8;           /* 分割线 */
  --line-strong: #d6e2f2;
  --bg: #ffffff;
  --bg-soft: #f5f9fe;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(21, 101, 192, .06);
  --shadow: 0 14px 32px -14px rgba(21, 101, 192, .28);
  --shadow-lg: 0 22px 48px -18px rgba(13, 71, 161, .34);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --container: 1200px;
}

* { box-sizing: border-box; }

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

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

a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--primary-soft); outline-offset: 2px; border-radius: 3px;
}
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 600; line-height: 1.35; color: var(--ink); }

/* 内联 SVG 图标（替代各系统字形不一的字符图标） */
.ico { width: 15px; height: 15px; flex: 0 0 auto; vertical-align: -2px; }

.container { width: var(--container); max-width: 92%; margin: 0 auto; }

/* ---------- 跳到主要内容（键盘无障碍；也让爬虫明确主体区块起点） ---------- */
.skip-link {
  position: absolute; left: 50%; top: -64px; transform: translateX(-50%);
  z-index: 200; background: #fff; color: var(--primary-dark);
  padding: 10px 22px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 14px; border: 1px solid var(--line); border-top: 0;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 40px;
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.topbar-contact { display: flex; flex-wrap: wrap; align-items: center; }
.tb-item { display: inline-flex; align-items: center; gap: 7px; margin-right: 22px; }
.tb-item:last-child { margin-right: 0; }
.topbar .ico { color: var(--primary); vertical-align: -3px; }

/* ---------- 头部 ---------- */
.site-header { background: #fff; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 24px 0;
}
.logo { display: flex; align-items: center; gap: 14px; min-width: 0; }
.logo-img { width: 50px; height: 50px; object-fit: contain; }
.logo-mark {
  width: 50px; height: 50px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background-color: var(--primary);
  color: #fff; font-size: 18px; font-weight: 700; letter-spacing: 2px;
  border-radius: var(--radius);
}
.logo-text { min-width: 0; }
.logo-text strong {
  display: block; font-size: 20px; font-weight: 700;
  color: var(--primary-dark); letter-spacing: .4px; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.logo-text em { display: block; font-style: normal; font-size: 12px; color: var(--muted); letter-spacing: .3px; margin-top: 3px; }

.search-box { display: flex; height: 42px; flex: 0 0 auto; }
.search-box input {
  width: 260px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-right: none;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  outline: none; font-size: 14px; background: var(--bg-soft); color: var(--text);
  transition: .2s var(--ease);
}
.search-box input::placeholder { color: var(--muted); }
.search-box input:focus { border-color: var(--primary-soft); background: #fff; }
.search-box button {
  padding: 0 26px; border: none; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 500;
  white-space: nowrap;                    /* 防止「搜索」二字在窄屏竖排 */
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  transition: background .2s var(--ease);
}
.search-box button:hover { background: var(--primary-dark); }

/* 导航：白底 + 蓝字 + 蓝色下划线 */
.main-nav { background: #fff; border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; flex-wrap: wrap; gap: 4px; }
.nav-inner a {
  padding: 0 26px; line-height: 58px;
  color: var(--text); font-size: 15px; font-weight: 500; letter-spacing: .3px;
  position: relative; transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-inner a::after {
  content: ''; position: absolute; left: 26px; right: 26px; bottom: 0;
  height: 3px; border-radius: 3px 3px 0 0; background: var(--primary);
  transform: scaleX(0); transform-origin: center; transition: transform .25s var(--ease);
}
.nav-inner a:hover { color: var(--primary); }
.nav-inner a.active { color: var(--primary); font-weight: 600; }
.nav-inner a.active::after { transform: scaleX(1); }

/* ---------- Hero / Banner（紧凑纯色条，无渐变与图形装饰） ---------- */
.hero {
  position: relative;
  background-color: var(--primary-dark);   /* 纯色 */
  background-size: cover;
  background-position: center;
  color: #fff;
}
/* 仅在后台配置了 Banner 图时才叠一层纯色遮罩，保证文字可读 */
.hero--image .hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: rgba(9, 44, 92, .82);
}
/* 左栏文案 + 右栏企业精神：两栏对齐，避免内容全挤左侧显得失衡 */
.hero-content {
  position: relative; z-index: 1;
  /* 不再 width:100% 撑满——交回 .container 的 1200px 宽度约束，
     否则 banner 文案会比页面其它区块更宽、贴到视口边缘 */
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 288px);
  gap: 48px; align-items: center;
  padding: 40px 0 44px;
  color: #fff;
}
/* 宽屏再从两侧各收一点，让文案整体向中间聚拢 */
@media (min-width: 900px) {
  .hero-content { padding-left: 34px; padding-right: 34px; }
}
.hero-main { min-width: 0; }
.hero-title {
  font-size: clamp(23px, 2.4vw, 33px); font-weight: 700; letter-spacing: .3px; color: #fff;
  margin: 0 0 12px; line-height: 1.32; max-width: 900px;
  text-wrap: balance;                      /* 自动均衡换行，避免末行孤字 */
}
.hero-subtitle {
  font-size: 15px; color: rgba(255, 255, 255, .88); margin: 0 0 22px;
  /* 限宽并允许收缩：flex 容器下若只给词组 nowrap，长英文副标题会按 max-content 撑开导致溢出 */
  max-width: min(820px, 100%); line-height: 1.75;
}
/* 副标题按词组排布：词组内不断行；词组之间的空格即换行点 */
.hero-subtitle .hs-pt { white-space: nowrap; }
/* “·”紧贴其后词组，靠右边距制造间距——这样分隔符不会单独悬挂在行尾 */
.hero-subtitle .hs-sep { margin: 0 .4em 0 0; opacity: .55; }

/* 右栏：企业精神列表，用竖线与左栏区隔，撑起右侧版面 */
.hero-side { border-left: 1px solid rgba(255, 255, 255, .2); padding-left: 30px; }
.hero-side-title {
  font-size: 12px; font-weight: 600; letter-spacing: 3px;
  color: rgba(255, 255, 255, .55); margin: 0 0 16px;
}
.hero-spirit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.spirit-line { display: flex; align-items: baseline; gap: 10px; }
.spirit-idx {
  flex: 0 0 auto;
  font-style: normal; font-family: Georgia, "Times New Roman", serif;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  color: rgba(255, 255, 255, .5);
}
.spirit-text {
  font-size: 15px; font-weight: 400; letter-spacing: .3px;
  line-height: 1.55; color: rgba(255, 255, 255, .96);
}

/* 英文文案更长：字号略收，保证两栏比例协调 */
html[lang="en"] .hero-title { font-size: clamp(20px, 1.95vw, 28px); max-width: 620px; }
html[lang="en"] .hero-subtitle { font-size: 14px; margin-bottom: 20px; }
html[lang="en"] .spirit-text { font-size: 14px; }

/* ---------- 按钮 ---------- */
.btn-primary, .hero-btn, .cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 28px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; letter-spacing: .3px; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }

.hero-btn { height: 42px; padding: 0 26px; background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.hero-btn:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-btn-solid { background: #fff; border-color: #fff; color: var(--primary-dark); }
.hero-btn-solid:hover { background: rgba(255, 255, 255, .88); border-color: #fff; color: var(--primary-dark); }

/* ---------- 服务承诺条 ---------- */
.trust-strip { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 26px 0; }
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-icon {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); color: var(--primary);
}
.trust-icon .ico { width: 21px; height: 21px; }
.trust-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.trust-body strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.trust-body em { font-style: normal; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ---------- 区块 ---------- */
.section { padding: 62px 0; }
.section-alt { background: var(--bg-soft); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  margin-bottom: 24px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 { font-size: 22px; color: var(--ink); margin: 0; letter-spacing: .3px; }
.section-more { font-size: 13px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.section-more:hover { color: var(--primary); }
/* 区块引导段落：补充可被抓取的文字内容 */
.section-lead { color: var(--muted); font-size: 14px; line-height: 1.9; margin: 0 0 22px; max-width: 880px; }

/* ---------- 分类链接网格（纯文字链接，高密度内链，利于抓取） ---------- */
/* 用 minmax(0,1fr) 而非 1fr：否则长英文分类名会把轨道按 min-content 撑开，造成横向溢出 */
.link-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.link-grid a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 14px; color: var(--text);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.link-grid a:hover { border-color: var(--primary); color: var(--primary); }
.link-grid .name { min-width: 0; overflow-wrap: break-word; }
.link-grid .count { flex: 0 0 auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- 分类链接网格（纯文字，见 .link-grid） ---------- */

/* ---------- 产品卡片（扁平：去阴影、弱化动效） ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; position: relative;
  transition: border-color .2s var(--ease);
}
.product-card:hover { border-color: var(--primary-soft); }
.pc-media {
  height: 180px; background: var(--bg-soft); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  position: relative;
}
.pc-media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.pc-noimg {
  width: 62px; height: 62px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line);
  color: #9cb6d6; display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 600;
}
.pc-noimg.big { width: 120px; height: 120px; font-size: 44px; }
.pc-body { padding: 14px 16px 12px; flex: 1; }
.pc-title {
  font-size: 14px; margin: 0 0 8px; color: var(--ink); line-height: 1.5; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 42px;
}
.pc-model, .pc-brand { font-size: 12px; color: var(--muted); margin: 0 0 4px; }
.pc-summary {
  font-size: 13px; color: var(--muted); margin: 8px 0 0; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-more {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--primary); background: #fff;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.product-card:hover .pc-more { background: var(--primary-tint); }

/* ---------- 两列（关于 + 新闻） ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.about-text { color: var(--text); }
.about-text .rich-text p { margin: 0 0 14px; }
/* 整幅「关于我们」正文：限宽便于阅读，同时保留足量可抓取文字 */
.about-body { max-width: 900px; font-size: 15px; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { border-bottom: 1px dashed var(--line); }
.news-list li:last-child { border-bottom: none; }
.news-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 14px 4px; transition: .2s var(--ease); }
.news-list a:hover { color: var(--primary); padding-left: 10px; }
.nl-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-date { color: var(--muted); font-size: 13px; flex: 0 0 auto; font-variant-numeric: tabular-nums; }

/* ---------- 询盘 CTA（纯色） ---------- */
.cta-band { background-color: var(--primary-dark); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 44px 0; }
.cta-text h2 { font-size: 23px; margin: 0 0 8px; letter-spacing: .3px; color: #fff; }
.cta-text p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 14px; max-width: 560px; line-height: 1.75; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; flex: 0 0 auto; }
.cta-btn { background: #fff; color: var(--primary-dark); font-weight: 500; }
.cta-btn:hover { background: rgba(255, 255, 255, .88); }
.cta-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.cta-contact li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .88); }
.cta-contact .ico { width: 16px; height: 16px; color: rgba(255, 255, 255, .7); }

/* ---------- 内页横幅（纯色紧凑） ---------- */
.page-banner { background-color: var(--primary-dark); color: #fff; padding: 28px 0 24px; }
.page-banner h1 { font-size: clamp(20px, 1.8vw, 26px); margin: 0 0 8px; letter-spacing: .4px; color: #fff; }
.crumb { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .72); }
.crumb a { color: rgba(255, 255, 255, .72); }
.crumb a:hover { color: #fff; }
.crumb span { color: #fff; }

/* ---------- 侧栏布局 ---------- */
.with-sidebar { display: grid; grid-template-columns: 240px 1fr; gap: 34px; padding: 48px 0 24px; align-items: start; }
.sidebar { position: sticky; top: 20px; }
.sidebar-title {
  font-size: 15px; background: var(--primary); color: #fff; letter-spacing: .5px;
  padding: 14px 18px; margin: 0; border-radius: var(--radius) var(--radius) 0 0;
}
.cat-menu { list-style: none; margin: 0 0 24px; padding: 0; border: 1px solid var(--line); border-top: none; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; background: #fff; }
.cat-menu li { border-bottom: 1px solid var(--line); }
.cat-menu li:last-child { border-bottom: none; }
.cat-menu a { display: block; padding: 12px 18px; transition: .2s var(--ease); font-size: 14px; }
.cat-menu a:hover { background: var(--bg-soft); color: var(--primary); padding-left: 24px; }
.cat-menu li.active a { background: var(--primary-tint); color: var(--primary); font-weight: 600; border-left: 3px solid var(--primary); padding-left: 15px; }
.sidebar-contact { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg-soft); }
.sidebar-contact h3 { font-size: 15px; color: var(--primary-dark); border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 14px; }
.sidebar-contact p { margin: 0 0 10px; font-size: 13px; }
.sidebar-contact p:last-child { margin-bottom: 0; }
.sidebar-contact p span { display: block; color: var(--muted); font-size: 12px; }
.cat-intro { background: var(--bg-soft); padding: 18px 22px; border-radius: var(--radius); margin-bottom: 24px; color: var(--text); border: 1px solid var(--line); }
.search-tip { color: var(--muted); }
.search-tip strong { color: var(--primary); }
.empty { color: var(--muted); }
.empty.big { text-align: center; padding: 90px 0; font-size: 15px; }

/* ---------- 产品详情 ---------- */
.product-detail { display: grid; grid-template-columns: 460px 1fr; gap: 48px; padding: 48px 0 24px; align-items: start; }
.pd-main-image {
  height: 420px; border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); overflow: hidden;
}
.pd-main-image img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pd-thumbs img {
  width: 76px; height: 76px; object-fit: cover; cursor: pointer;
  border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .2s var(--ease);
}
.pd-thumbs img:hover { border-color: var(--primary-soft); }
.pd-thumbs img.is-active { border-color: var(--primary); }
.pd-table { width: 100%; border-collapse: collapse; margin: 0 0 20px; }
.pd-table th, .pd-table td { border: 1px solid var(--line); padding: 12px 15px; text-align: left; font-size: 14px; }
.pd-table th { background: var(--bg-soft); width: 118px; color: var(--muted); font-weight: 500; }
.pd-summary { color: var(--text); border-top: 1px dashed var(--line); padding-top: 16px; }
.pd-contact { margin-top: 26px; background-color: var(--primary-dark); color: #fff; padding: 20px 24px; border-radius: var(--radius); }
.pd-contact h4 { color: var(--accent); font-size: 15px; margin: 0 0 14px; letter-spacing: .5px; }
.pd-contact p { margin: 0 0 8px; font-size: 14px; }
.pd-contact p:last-child { margin-bottom: 0; }
.pd-contact p span { display: inline-block; width: 76px; color: #cfe2f7; }
.pd-contact a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.product-body { padding: 16px 0 48px; }
.tab-head { border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tab-head h3 { font-size: 18px; color: var(--primary-dark); padding-bottom: 12px; margin: 0; display: inline-block; position: relative; }
.tab-head h3::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 100%; height: 3px; border-radius: 3px; background: var(--primary); }

/* ---------- 富文本 ---------- */
.rich-text { line-height: 1.9; color: var(--text); }
.rich-text img { margin: 16px 0; border-radius: var(--radius); height: auto; }
.rich-text p { margin: 0 0 15px; }
.rich-text h2, .rich-text h3 { color: var(--ink); margin: 22px 0 12px; }
.rich-text ul, .rich-text ol { padding-left: 22px; margin: 0 0 15px; }
.rich-text a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.rich-text table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.rich-text td, .rich-text th { border: 1px solid var(--line); padding: 10px 13px; }

/* ---------- 新闻列表 ---------- */
.article-list { list-style: none; margin: 0; padding: 44px 0 8px; }
.article-item { display: flex; gap: 26px; padding: 26px 0; border-bottom: 1px dashed var(--line); }
.article-item:first-child { padding-top: 8px; }
.ai-media { flex: 0 0 220px; height: 148px; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); }
.ai-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.article-item:hover .ai-media img { transform: scale(1.05); }
.ai-body { flex: 1; min-width: 0; }
.ai-body h3 { font-size: 17px; margin: 0 0 8px; color: var(--ink); }
.ai-body h3 a:hover { color: var(--primary); }
.ai-date { color: var(--muted); font-size: 13px; margin: 0 0 10px; font-variant-numeric: tabular-nums; }
.ai-summary { color: var(--muted); margin: 0 0 12px; line-height: 1.7; }
.ai-more { color: var(--primary); font-size: 13px; font-weight: 500; }
.ai-more:hover { text-decoration: underline; text-underline-offset: 3px; }

.article-detail { padding: 40px 0 32px; }
.ad-meta { text-align: center; color: var(--muted); font-size: 13px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin: 0 0 26px; font-variant-numeric: tabular-nums; }
.ad-image { margin: 0 auto 24px; border-radius: var(--radius); }
.ad-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; }
.ad-nav a { color: var(--primary); max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.single-page { padding: 48px 0 32px; }
.narrow { max-width: 920px; }

/* ---------- 分页 ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; padding: 44px 0 20px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--text);
  background: #fff; transition: all .2s var(--ease); font-size: 14px;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.pagination .dots { border: none; background: transparent; color: var(--muted); }

/* ---------- 错误页 ---------- */
.error-page { text-align: center; padding: 96px 0; }
.error-page h1 { font-size: 78px; color: var(--line-strong); margin: 0 0 12px; font-weight: 700; letter-spacing: 2px; }
.error-page p { color: var(--muted); }
.error-page .btn-primary { margin-top: 26px; }
.err-detail {
  display: inline-block; text-align: left; background: var(--bg-soft);
  padding: 14px 18px; border-radius: var(--radius); color: #a33; font-size: 13px; margin-top: 16px;
  max-width: 100%; overflow: auto; border: 1px solid var(--line);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background-color: #0b2f5c;      /* 纯色，与 CTA 色带形成层次 */
  color: #cfe0f3;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr .9fr; gap: 48px; padding: 48px 0 30px; }
.footer-col h4 {
  color: #fff; font-size: 15px; letter-spacing: .3px; padding-bottom: 12px; margin: 0 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.footer-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.footer-list li { padding: 7px 0; display: flex; align-items: baseline; gap: 10px; }
.footer-list li span { flex: 0 0 72px; color: #9dbde0; }
.footer-list.links a { display: block; color: #cfe0f3; transition: .2s var(--ease); }
.footer-list.links a:hover { color: var(--accent); padding-left: 5px; }
.copyright {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 20px 0; font-size: 13px; color: #9dbde0; text-align: center;
}
.copyright a { color: #cfe0f3; }
.copyright a:hover { color: var(--accent); }
.copyright .gongan { display: inline-flex; align-items: center; gap: 4px; vertical-align: -2px; }
.copyright .gongan .ico { width: 13px; height: 13px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-detail { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .logo { justify-content: center; }
  .logo-text { text-align: center; }
  .search-box, .search-box input { width: 100%; }
  .nav-inner { justify-content: center; }
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 40px; }
}
@media (max-width: 820px) {
  /* 窄屏改为单列：企业精神移到文案下方，横向 2 列排布，保持紧凑不显失衡 */
  .hero-content { grid-template-columns: 1fr; gap: 22px; padding: 26px 0 28px; }
  .hero-side { border-left: 0; padding-left: 0; }
  .hero-side-title { margin-bottom: 12px; letter-spacing: 2px; }
  .hero-spirit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
  .spirit-text { font-size: 13.5px; }
  .hero-title { font-size: clamp(21px, 5.6vw, 27px); margin-bottom: 8px; }
  html[lang="en"] .hero-title { font-size: clamp(19px, 5.2vw, 25px); }
  .hero-subtitle { margin-bottom: 16px; }
  .section { padding: 46px 0; }
  .trust-grid { grid-template-columns: 1fr; gap: 16px; padding: 22px 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 22px; padding: 36px 0; }
  .cta-actions { align-items: flex-start; width: 100%; }
  .cta-text h2 { font-size: 20px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  /* 分类链接网格保持两列：21 个分类在窄屏单列会拉出过长页面，两列更紧凑也便于浏览 */
  .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-item { flex-direction: column; gap: 16px; }
  .ai-media { flex: none; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 620px) {
  /* 导航保持单行；收窄内边距让其尽量放得下，放不下时可横向滑动 */
  .nav-inner { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav-inner::-webkit-scrollbar { display: none; }
  .nav-inner a { white-space: nowrap; padding: 0 16px; font-size: 14px; }
  .nav-inner a::after { left: 16px; right: 16px; }
}
@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
  /* 分类保持两列；数量在窄屏隐藏，保证分类名（关键词）完整不被截断 */
  .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .link-grid a { padding: 10px 12px; font-size: 13px; }
  .link-grid .count { display: none; }
  .nav-inner { gap: 0; }
  .nav-inner a { padding: 0 11px; font-size: 13px; }
  .nav-inner a::after { left: 11px; right: 11px; }
  .topbar-contact .tb-item:nth-child(n+2) { display: none; }
  .tb-item { margin-right: 12px; font-size: 12px; }
  .logo-text strong { font-size: 18px; }
  .logo-img, .logo-mark { width: 44px; height: 44px; }
  .hero-title { font-size: clamp(20px, 6.4vw, 24px); }
  html[lang="en"] .hero-title { font-size: clamp(18px, 5.8vw, 22px); }
  .hero-spirit { gap: 5px 14px; }
  .spirit-text { font-size: 13px; letter-spacing: .2px; }
  .hero-actions { width: 100%; }
  .hero-actions .hero-btn { flex: 1; padding: 0 18px; }
  .cta-btn { width: 100%; padding: 0 24px; }
  .section { padding: 40px 0; }
  .section-head h2 { font-size: 19px; }
}