/* ============================================================
   外贸百宝箱官网 V2 草稿 —— 三产品 Tab 头部 + 单证蓝主题 + 资源导航
   依赖 ../homepage-concepts/styles.css（基础组件库）
   ============================================================ */

/* ---------- 每个产品页的主题色（覆盖基础库的 --green 系 token） ---------- */
body.theme-danzheng {
  --green: #1f3f8f;        /* 单证蓝：主按钮 / 强调 */
  --green-deep: #162e6b;
  --green-soft: #e8edf9;
  --ink: #101a30;
  --surface-soft: #f4f6fb;
  --surface-tint: #eef2fa;
  --surface-dark: #16244a;
  --line: #dbe1ee;
}

body.theme-danzheng {
  background:
    radial-gradient(circle at top left, rgba(31, 63, 143, 0.08), transparent 24%),
    linear-gradient(180deg, #f7f9fc 0%, #edf1f8 100%);
}

body.theme-ziyuan {
  --green: #c2610b;        /* 资源导航：暖琥珀 */
  --green-deep: #9a4d08;
  --green-soft: #fdf0e3;
  --ink: #26180a;
  --surface-soft: #faf7f2;
  --surface-tint: #f8f2ea;
  --line: #ecdfd0;
  background:
    radial-gradient(circle at top left, rgba(194, 97, 11, 0.07), transparent 24%),
    linear-gradient(180deg, #fcfaf6 0%, #f6f1e9 100%);
}

body.theme-danzheng .window-rail {
  background: #16244a;
}

/* 基础库里写死的绿色 rgba，单证页统一换成单证蓝 */
body.theme-danzheng .cta-inner {
  background: linear-gradient(180deg, #f8fafd 0%, #edf1f8 100%);
}

body.theme-danzheng .section.muted {
  background: rgba(238, 242, 250, 0.76);
  border-top: 1px solid rgba(219, 225, 238, 0.72);
  border-bottom: 1px solid rgba(219, 225, 238, 0.72);
}

body.theme-danzheng .demo-section {
  border-top: 1px solid rgba(219, 225, 238, 0.9);
  background:
    radial-gradient(circle at 88% 18%, rgba(31, 63, 143, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 246, 251, 0.96) 100%);
}

body.theme-danzheng .ghost-button {
  border-color: rgba(31, 63, 143, 0.28);
  background: rgba(232, 237, 249, 0.78);
}

body.theme-danzheng .qr-purchase-button:hover,
body.theme-danzheng .qr-purchase-button:focus-visible {
  border-color: rgba(31, 63, 143, 0.58);
}

body.theme-danzheng .qr-purchase-popover,
body.theme-danzheng .qr-purchase-popover::after {
  border-color: rgba(31, 63, 143, 0.24);
}

body.theme-danzheng .secondary-button:focus-visible,
body.theme-danzheng .qr-purchase-button:focus-visible,
body.theme-danzheng .main-nav a:focus-visible,
body.theme-danzheng .footer-links a:focus-visible {
  outline-color: rgba(31, 63, 143, 0.24);
}

body.theme-danzheng .demo-points li::before {
  box-shadow: 0 0 0 6px rgba(31, 63, 143, 0.12);
}

body.theme-danzheng .demo-live-dot {
  box-shadow: 0 0 0 5px rgba(31, 63, 143, 0.12);
}

/* ---------- V2 头部：品牌 + 产品 Tab + CTA ---------- */
.site-header.v2 {
  view-transition-name: site-header;
}

.site-header.v2 .header-inner {
  gap: 18px;
}

.site-header.v2 .brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: block;
  flex: none;
}

.product-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.product-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.product-tabs a:hover {
  color: var(--ink);
}

.product-tabs a .tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.product-tabs a[data-color="blue"] .tab-dot { background: #1f3f8f; }
.product-tabs a[data-color="green"] .tab-dot { background: #07c160; }
.product-tabs a[data-color="amber"] .tab-dot { background: #c2610b; }

.product-tabs a.active {
  color: #fff;
  view-transition-name: active-tab;
}

.product-tabs a.active[data-color="blue"] { background: #1f3f8f; }
.product-tabs a.active[data-color="green"] { background: #07c160; }
.product-tabs a.active[data-color="amber"] { background: #c2610b; }

.product-tabs a.active .tab-dot { background: rgba(255, 255, 255, 0.85); }

/* 头部第二行：当前页的锚点子导航 */
.subnav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 9px 0 11px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}

.subnav a {
  color: var(--muted);
}

.subnav a:hover {
  color: var(--green);
}

.subnav .subnav-label {
  font-weight: 600;
  color: var(--green);
}

@media (max-width: 960px) {
  .site-header.v2 .header-inner {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .site-header.v2 .brand {
    order: 1;
  }
  .site-header.v2 .header-cta-block {
    order: 2;
    margin-left: auto;
  }
  .product-tabs {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .product-tabs::-webkit-scrollbar {
    display: none;
  }
  .product-tabs a {
    padding: 8px 12px;
    font-size: 13.5px;
  }
  .subnav {
    display: none;
  }
}

/* ---------- 跨页滑动切换（View Transitions，支持的浏览器生效） ---------- */
@view-transition {
  navigation: auto;
}

main {
  view-transition-name: page-main;
}

.site-footer {
  view-transition-name: site-footer;
}

::view-transition-group(active-tab) {
  animation-duration: 0.38s;
  animation-timing-function: cubic-bezier(0.3, 0.8, 0.3, 1);
}

/* 整页横向滑动：目标 Tab 在右 → 新页从右侧滑入；在左 → 从左侧滑入 */
@keyframes vt-out-left {
  to { transform: translateX(-100%); }
}
@keyframes vt-in-right {
  from { transform: translateX(100%); }
}
@keyframes vt-out-right {
  to { transform: translateX(100%); }
}
@keyframes vt-in-left {
  from { transform: translateX(-100%); }
}

html.nav-fwd::view-transition-old(page-main) {
  animation: vt-out-left 0.42s cubic-bezier(0.35, 0.8, 0.3, 1) both;
}
html.nav-fwd::view-transition-new(page-main) {
  animation: vt-in-right 0.42s cubic-bezier(0.35, 0.8, 0.3, 1) both;
}
html.nav-back::view-transition-old(page-main) {
  animation: vt-out-right 0.42s cubic-bezier(0.35, 0.8, 0.3, 1) both;
}
html.nav-back::view-transition-new(page-main) {
  animation: vt-in-left 0.42s cubic-bezier(0.35, 0.8, 0.3, 1) both;
}

/* ---------- 单证助手页专用 ---------- */

/* 英雄区：五证联动示意窗口 */
.dz-window .window-toolbar strong { color: var(--ink); }

.doc-tab-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.doc-tab-strip span {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--surface-soft);
  color: var(--muted);
  border: 1px solid var(--line);
}

.doc-tab-strip span.on {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.doc-preview-sheet {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 26, 48, 0.07);
  font-size: 12px;
}

.doc-preview-sheet .sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--green);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.doc-preview-sheet .sheet-head strong {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--green);
}

.doc-preview-sheet .sheet-head span { color: var(--muted); }

.doc-preview-sheet table {
  width: 100%;
  border-collapse: collapse;
}

.doc-preview-sheet th,
.doc-preview-sheet td {
  border: 1px solid var(--line);
  padding: 5px 7px;
  text-align: left;
  color: var(--text);
}

.doc-preview-sheet th {
  background: var(--surface-tint);
  font-weight: 600;
  color: var(--ink);
}

.doc-preview-sheet .sheet-say {
  margin-top: 10px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* ---------- 「Mac 版即将上线」不可点击按钮 ---------- */
.coming-soon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1f3f8f, #2c55b8);
  color: #fff;
  font-weight: 700;
  cursor: default;
  user-select: none;
  box-shadow: 0 14px 30px rgba(31, 63, 143, 0.24);
}

.coming-soon-button::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7fd0ff;
  box-shadow: 0 0 0 4px rgba(127, 208, 255, 0.25);
}

.coming-soon-button.hero {
  min-width: 240px;
  min-height: 80px;
  padding: 0 46px;
  font-size: 26px;
}

.coming-soon-button.small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  border-radius: 12px;
}

/* ---------- 五证典型样式画廊 ---------- */
.doc-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(198px, 1fr));
  gap: 18px;
}

.doc-thumb {
  margin: 0;
  cursor: zoom-in;
}

.doc-thumb-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 794 / 1123;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(16, 26, 48, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.doc-thumb:hover .doc-thumb-frame {
  transform: translateY(-3px);
  border-color: var(--green);
  box-shadow: 0 16px 36px rgba(16, 26, 48, 0.14);
}

.doc-thumb-frame .doc-a4 {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
}

@media (max-width: 700px) {
  .doc-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.doc-thumb figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.doc-thumb figcaption span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.doc-zoom-hint {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   A4 单证版式：严格对齐软件 PDF 输出
   依据 PDFRenderKit/TradeDocumentPDFRenderer.swift：
     itemTable = VStack(spacing:0) + overlay(stroke(gray 0.3, 0.5pt))
     → 表格无竖线、无行分隔线，只有表头色带和一圈极淡外框
   --doc-c 为主题色，取值来自软件 themeOptions 的 9 种真实配色
   ============================================================ */
.doc-a4 {
  --doc-c: #1f3f8f;              /* 经典蓝 */
  --doc-line: #dddddf;           /* 表格外框实测值 */
  --doc-line-soft: #e5e5e6;      /* 浅灰带描边 */
  --doc-band: #f7f7f7;           /* 中性浅灰带 */
  --doc-ink: #272727;            /* 表格正文 */
  --doc-gray: #909398;           /* 次级文字 / 页脚 */
  --doc-gray-2: #808080;         /* 合计行 */
  --doc-slate: #212630;          /* 公司名 / 条款带文字 */
  width: 794px;
  height: 1123px;
  box-sizing: border-box;
  padding: 46px 48px 34px;
  background: #fff;
  color: #2b2f38;
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", sans-serif;
  font-size: 10.5px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

/* 单证配色主题：与软件内 9 种配色一一对应 */
.doc-a4.doc-emerald { --doc-c: #246b5b; }   /* 墨绿 */
.doc-a4.doc-burgundy { --doc-c: #8c3a4a; }  /* 酒红 */
.doc-a4.doc-graphite { --doc-c: #4b5563; }  /* 石墨 */
.doc-a4.doc-navy { --doc-c: #17365d; }      /* 海军蓝 */
.doc-a4.doc-teal { --doc-c: #0f766e; }      /* 青绿 */
.doc-a4.doc-violet { --doc-c: #6d28d9; }    /* 紫罗兰 */
.doc-a4.doc-amber { --doc-c: #b45309; }     /* 琥珀 */
.doc-a4.doc-black { --doc-c: #111827; }     /* 纯黑 */

/* 抬头：左公司信息，右单证标题与编号 */
.doc-a4 .d-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.doc-a4 .d-company strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--doc-slate);
}

.doc-a4 .d-company span {
  display: block;
  font-size: 9.5px;
  color: var(--doc-gray);
}

.doc-a4 .d-titlewrap {
  text-align: right;
  flex: none;
}

.doc-a4 .d-title {
  margin: 0 0 5px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--doc-c);
  white-space: nowrap;
}

.doc-a4 .d-meta {
  margin: 0;
  font-size: 10px;
  color: #2b2f38;
  white-space: nowrap;
}

.doc-a4 .d-meta span {
  color: #8b9099;
  margin-right: 4px;
}

.doc-a4 .d-rule {
  height: 2.7px;
  background: var(--doc-c);
  margin: 11px 0 13px;
}

/* 买卖双方 */
.doc-a4 .d-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 13px;
}

.doc-a4 .d-label {
  margin: 0 0 3px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--doc-c);
}

.doc-a4 .d-val {
  margin: 0;
  font-size: 10px;
  color: var(--doc-gray);
  line-height: 1.55;
}

.doc-a4 .d-val b {
  color: var(--doc-slate);
  font-weight: 600;
}

/* 贸易条款浅灰带 */
.doc-a4 .d-band {
  background: var(--doc-band);
  padding: 9px 12px;
  margin-bottom: 12px;
  font-size: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--doc-slate);
  border: 1px solid var(--doc-line-soft);
}

.doc-a4 .d-band.summary {
  display: block;
  margin-top: 13px;
}

.doc-a4 .d-band.summary p {
  margin: 0;
  color: var(--doc-gray);
}

.doc-a4 .d-band.summary .d-label {
  margin-bottom: 2px;
}

/* 销售合同前言 */
.doc-a4 .d-preamble {
  margin: 0 0 13px;
  font-size: 10px;
  color: var(--doc-slate);
  line-height: 1.55;
}

/* 商品表格：无竖线、无行线，仅表头色带 + 极淡外框 */
.doc-a4 table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--doc-line);
  table-layout: auto;
}

.doc-a4 table th {
  background: var(--doc-c);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0 7px;
  height: 31px;
  border: 0;
  white-space: nowrap;
}

.doc-a4 table td {
  background: #fff;
  border: 0;
  padding: 8px 7px;
  font-size: 10px;
  color: var(--doc-ink);
  vertical-align: middle;
}

/* DESCRIPTION 为弹性列，形成 PDF 上那段刻意的留白 */
.doc-a4 table th:nth-child(2),
.doc-a4 table td:nth-child(2) {
  width: 100%;
}

.doc-a4 table .al { text-align: left; }
.doc-a4 table .ar { text-align: right; white-space: nowrap; }

/* 合计：表格之外，右对齐 */
.doc-a4 .d-totals {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: 10.5px;
}

.doc-a4 .d-totals > div {
  display: flex;
  justify-content: flex-end;
  gap: 34px;
  min-width: 300px;
  color: var(--doc-gray-2);
}

.doc-a4 .d-totals > div span {
  letter-spacing: 0.05em;
}

.doc-a4 .d-totals > div b {
  min-width: 106px;
  text-align: right;
  font-weight: 400;
  color: var(--doc-gray-2);
}

.doc-a4 .d-totals .grand {
  margin-top: 3px;
  font-size: 13.3px;
  color: var(--doc-c);
}

.doc-a4 .d-totals .grand span,
.doc-a4 .d-totals .grand b {
  font-weight: 700;
  color: var(--doc-c);
}

.doc-a4 .d-say {
  margin: 11px 0 0;
  font-size: 10px;
  font-style: italic;
  color: var(--doc-gray);
  letter-spacing: 0.01em;
}

/* 条款等文字区块 */
.doc-a4 .d-section {
  margin-top: 13px;
  font-size: 10px;
}

.doc-a4 .d-section p:not(.d-label) {
  margin: 0 0 2px;
  color: var(--doc-gray);
}

.doc-a4 .d-section p b {
  color: var(--doc-slate);
  font-weight: 700;
}

.doc-a4 .d-section.tight {
  font-size: 9.5px;
  line-height: 1.45;
}

.doc-a4 .d-section.boxed p:not(.d-label) {
  border: 1px solid var(--doc-line-soft);
  padding: 8px 10px;
  margin: 4px 0 13px;
}

/* 签署区 */
.doc-a4 .d-sign {
  margin-top: auto;
  padding-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
}

.doc-a4 .d-sign.one {
  grid-template-columns: 1fr;
  justify-items: end;
}

.doc-a4 .d-sign.one .d-signbox {
  width: 46%;
}

.doc-a4 .d-signbox {
  position: relative;
}

.doc-a4 .d-signline {
  margin-top: 40px;
  padding-top: 4px;
  max-width: 200px;
  border-top: 1px solid var(--doc-gray);
  font-size: 9.5px;
  color: var(--doc-gray);
}

.doc-a4 .d-stamp {
  position: absolute;
  right: 8%;
  top: 6px;
  width: 66px;
  height: 66px;
  border: 2px solid var(--doc-c);
  border-radius: 50%;
  color: var(--doc-c);
  opacity: 0.45;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.09em;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-12deg);
}

/* 页脚 */
.doc-a4 .d-foot {
  margin-top: 14px;
  font-size: 9px;
  color: var(--doc-gray);
}

/* 缩略图标题上的配色圆点 */
.doc-thumb figcaption i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: 1px;
}

/* 灯箱：点击放大，再点关闭 */
.doc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(13, 20, 38, 0.72);
  cursor: zoom-out;
  padding: 20px;
}

.doc-lightbox.open {
  display: flex;
}

.doc-lightbox .doc-stage {
  position: relative;
}

.doc-lightbox .doc-a4 {
  transform-origin: center center;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.doc-lightbox .doc-close-hint {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  white-space: nowrap;
}

/* ---------- 专业功能：联合国标准高亮卡 + 配色圆点 ---------- */
.feature-grid .feature-highlight {
  background: linear-gradient(135deg, #1f3f8f, #2c55b8);
  border-color: #1f3f8f;
}

.feature-grid .feature-highlight h3 {
  color: #fff;
}

.feature-grid .feature-highlight p {
  color: rgba(255, 255, 255, 0.88);
}

.pdf-color-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.pdf-color-dots i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(16, 26, 48, 0.25);
}

/* 演示视频占位框 */
.demo-placeholder {
  aspect-ratio: 9 / 16;
  max-height: 460px;
  margin: 0 auto;
  width: 100%;
  max-width: 270px;
  border-radius: 16px;
  border: 2px dashed var(--line);
  background: var(--surface-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
  padding: 20px;
}

.demo-placeholder .play-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* 截图占位框 */
.shot-placeholder {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  border: 2px dashed var(--line);
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(31, 63, 143, 0.04) 14px 28px),
    var(--surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

/* 二维码占位 */
.qr-placeholder {
  width: 132px;
  height: 132px;
  border-radius: 12px;
  border: 2px dashed var(--line);
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 10px;
}

/* 语言徽章 */
.lang-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.lang-badges span {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- 资源导航页专用 ---------- */
.ziyuan-hero {
  padding: 56px 0 12px;
}

.ziyuan-hero h1 {
  font-size: clamp(26px, 4vw, 38px);
  color: var(--ink);
  margin: 10px 0 12px;
}

.ziyuan-hero p {
  color: var(--muted);
  max-width: 640px;
}

.res-section {
  padding: 26px 0;
}

.res-cat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.res-cat-head .cat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--green-soft);
}

.res-cat-head h2 {
  font-size: 19px;
  color: var(--ink);
}

.res-cat-head span {
  font-size: 13px;
  color: var(--muted);
}

.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.res-card {
  display: block;
  padding: 15px 17px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.res-card:hover {
  border-color: var(--green);
  box-shadow: 0 10px 26px rgba(38, 24, 10, 0.08);
  transform: translateY(-2px);
}

.res-card strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}

.res-card em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 8px;
  min-height: 2.4em;
}

.res-card span {
  font-size: 12px;
  color: var(--green);
  word-break: break-all;
}

/* 资源页里自家产品的横条 */
.res-own-strip {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.res-own-strip a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  color: #fff;
}

.res-own-strip a.own-danzheng { background: linear-gradient(120deg, #1f3f8f, #2c55b8); }
.res-own-strip a.own-tongchuan { background: linear-gradient(120deg, #058a45, #07c160); }

.res-own-strip strong { font-size: 16px; display: block; }
.res-own-strip span { font-size: 13px; opacity: 0.85; }

@media (max-width: 760px) {
  .res-own-strip { grid-template-columns: 1fr; }
}

/* ============================================================
   外贸报价助手（/baojia/）—— 主题蓝 #1877F2，第四条产品线
   ============================================================ */
body.theme-baojia {
  --green: #1877f2;        /* 报价蓝：主按钮 / 强调 */
  --green-deep: #1465d8;
  --green-soft: #e8f1fe;
  --ink: #0e2547;
  --surface-soft: #f3f7fd;
  --surface-tint: #edf3fc;
  --surface-dark: #0e4c9a;
  --line: #d9e4f4;
  background:
    radial-gradient(circle at top left, rgba(24, 119, 242, 0.08), transparent 24%),
    linear-gradient(180deg, #f6f9fe 0%, #ecf2fb 100%);
}

body.theme-baojia .section.muted {
  background: rgba(237, 243, 252, 0.76);
  border-top: 1px solid rgba(217, 228, 244, 0.72);
  border-bottom: 1px solid rgba(217, 228, 244, 0.72);
}

body.theme-baojia .cta-inner {
  background: linear-gradient(180deg, #f7fafe 0%, #ecf2fb 100%);
}

body.theme-baojia .window-rail {
  background: #12315c;
}

body.theme-baojia .coming-soon-button {
  background: linear-gradient(135deg, #1877f2, #1465d8);
  box-shadow: 0 14px 30px rgba(24, 119, 242, 0.26);
}

.product-tabs a[data-color="baojia"] .tab-dot { background: #1877f2; }
.product-tabs a.active[data-color="baojia"] { background: #1877f2; }

/* ---------- 报价页英雄区：结论卡 + 六档 + 成本条 ---------- */
.bj-quote-card {
  border-radius: 12px;
  background: linear-gradient(135deg, #1877f2, #3b8ef5);
  color: #fff;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.bj-quote-card .bj-quote-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  opacity: 0.92;
}

.bj-quote-card .bj-port {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 600;
}

.bj-quote-card .bj-price {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 4px 0 2px;
}

.bj-quote-card .bj-price small {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.85;
}

.bj-quote-card .bj-sub {
  font-size: 11.5px;
  opacity: 0.85;
}

.bj-terms {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 12px;
}

.bj-terms .bj-terms-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

.bj-terms .bj-term-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  border-radius: 7px;
  color: var(--text);
}

.bj-terms .bj-term-row strong { width: 42px; }
.bj-terms .bj-term-row span:last-child { color: var(--muted); }

.bj-terms .bj-term-row.on {
  background: var(--green-soft);
  color: var(--green-deep);
  font-weight: 700;
}

.bj-terms .bj-term-row.on span:last-child { color: var(--green-deep); }

.bj-cost {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  font-size: 11.5px;
}

.bj-cost .bj-cost-head {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.bj-cost .bj-cost-head em {
  font-style: normal;
  color: var(--green);
}

.bj-cost-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.bj-cost-bar i { display: block; height: 100%; }

.bj-cost-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--muted);
}

.bj-cost-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 5px;
}

/* 成本结构五段色（与客户端一致） */
.bj-c-purchase { background: #f2453d; }
.bj-c-domestic { background: #f7ce46; }
.bj-c-freight  { background: #4d96f5; }
.bj-c-dest     { background: #f7941d; }
.bj-c-profit   { background: #31c859; }

/* 报价页英雄区图标行 */
.bj-hero-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.bj-hero-brand img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

body.theme-baojia .demo-section {
  border-top: 1px solid rgba(217, 228, 244, 0.9);
  background:
    radial-gradient(circle at 88% 18%, rgba(24, 119, 242, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(243, 247, 253, 0.96) 100%);
}

body.theme-baojia .demo-points li::before {
  box-shadow: 0 0 0 6px rgba(24, 119, 242, 0.12);
}

body.theme-baojia .demo-live-dot {
  box-shadow: 0 0 0 5px rgba(24, 119, 242, 0.12);
}

/* 报价页英雄区两张信息卡横向并列 */
body.theme-baojia .hero-facts > div {
  flex: 1 1 0;
  min-width: 0;
}

.res-own-strip a.own-baojia { background: linear-gradient(120deg, #1465d8, #1877f2); }
