/* 千帆外贸导航 —— 完整复刻 TT123 视觉体系
   头部白底 52px 阴影 / 页面浅灰底 / 白色分区容器 / 圆形 60px logo 卡 /
   标题 20px 粗体 #323233 / 简介 14px #999 两行完整显示 / 悬停 #f1f7fc */
:root {
  --blue: #0f47f1;
  --blue-dark: #0d3ed4;
  --orange: #ff6a00;
  --orange-soft: #fff1e6;
  --ink: #111827;
  --ink-2: #444;
  --ink-3: #999;
  --line: #e8ecf1;
  --bg: #f4f6fa;
  --card: #ffffff;
  --hover: #f1f7fc;
  --radius: 12px;
  --shadow: 0 1px 8px rgba(0, 0, 0, .04);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hiragino Sans GB", "Microsoft Yahei", "PingFang SC", "Noto Sans SC", -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15.5px;
  overflow-x: hidden;
}
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ===== 头部：白底 52px（TT123 同款） ===== */
.tb-header { background: #fff; box-shadow: 0 1px 8px rgba(0, 0, 0, .10); position: sticky; top: 0; z-index: 50; }
.tb-header-inner { display: flex; align-items: center; gap: 30px; height: 56px; }
.tb-brand { color: var(--ink); font-size: 21px; font-weight: 900; letter-spacing: 1px; flex-shrink: 0; display: flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, #ff8a3c, #ff5400);
  color: #fff; font-size: 17px; font-weight: 800; letter-spacing: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 100, 0, .35);
}
.tb-nav { display: flex; align-items: center; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.tb-nav::-webkit-scrollbar { display: none; }
.tb-nav a { color: var(--ink); font-size: 14.5px; font-weight: 400; white-space: nowrap; }
.tb-nav a:hover, .tb-nav a.on { color: var(--orange); font-weight: 600; }

/* ===== 首页头区：TT123 三栏（大 logo / 搜索 / 热门） ===== */
.tb-hero {
  background: linear-gradient(180deg, #fdfefe 0%, #eef4fb 100%);
  border-bottom: 1px solid var(--line);
}
.tb-hero .container { display: grid; grid-template-columns: 280px 1fr 250px; gap: 30px; align-items: center; padding-top: 30px; padding-bottom: 26px; }
.hero-logo { font-size: 44px; font-weight: 900; letter-spacing: 2px; color: var(--ink); margin: 0; line-height: 1.15; }
.hero-sub { font-size: 15px; color: var(--ink-3); margin-top: 8px; letter-spacing: 2px; }
.hero-search-wrap { position: relative; max-width: 560px; margin: 0 auto; width: 100%; }
.hero-search {
  width: 100%; padding: 13px 100px 13px 20px; border: 2px solid var(--blue);
  border-radius: 10px; font-size: 16px; background: #fff; color: var(--ink); outline: none;
}
.hero-search:focus { box-shadow: 0 0 0 3px rgba(15, 71, 241, .12); }
.hero-search-btn {
  position: absolute; right: 5px; top: 5px; bottom: 5px; width: 88px;
  border: 0; border-radius: 8px; background: var(--blue); color: #fff; cursor: pointer;
  font-size: 15.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.hero-search-btn:hover { background: var(--blue-dark); }
.hero-search-btn svg { width: 17px; height: 17px; }
.hero-search-btn em { font-style: normal; }
.hero-hot-kw { margin-top: 10px; font-size: 13px; color: var(--ink-3); display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-hot-kw a { color: var(--ink-3); }
.hero-hot-kw a:hover { color: var(--blue); }
.hero-panel { background: #fff; border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.hero-panel h3 { margin: 0 0 8px; font-size: 14.5px; color: var(--ink); font-weight: 700; }
.hero-panel h3::before { content: ""; display: inline-block; width: 4px; height: 13px; background: var(--orange); border-radius: 2px; margin-right: 7px; vertical-align: -1px; }
.hero-panel a { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--ink-2); padding: 4.5px 0; }
.hero-panel a:hover { color: var(--blue); }

/* ===== 左侧锚点导航 ===== */
.tb-layout { display: grid; grid-template-columns: 200px 1fr; gap: 18px; padding: 16px 0 40px; align-items: start; }
.side-nav { position: sticky; top: 72px; max-height: calc(100vh - 96px); overflow-y: auto; scrollbar-width: none; }
.side-nav::-webkit-scrollbar { display: none; }
.grp-label { font-size: 12.5px; font-weight: 700; color: var(--ink-3); padding: 12px 10px 6px; letter-spacing: .5px; }
.grp-label i { font-style: normal; float: right; font-weight: 500; }
.side-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: 8px;
  color: var(--ink-2); font-size: 14px; font-weight: 400;
}
.side-nav a:hover { color: var(--blue); background: var(--hover); }
.side-nav a.on { color: var(--orange); font-weight: 700; background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,.06); }
.side-nav a .n { font-size: 11.5px; color: var(--ink-3); font-weight: 400; }
.flow-col { min-width: 0; }
.flow-divider {
  display: flex; align-items: center; gap: 14px; margin: 30px 0 14px;
  font-size: 17px; font-weight: 700; color: var(--ink);
}
.flow-divider::before, .flow-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.flow-divider span { white-space: nowrap; }
.sec-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.sec-title::before { content: ""; width: 4px; height: 15px; background: var(--orange); border-radius: 2px; }
.sec-title i { font-style: normal; font-size: 12px; color: var(--ink-3); font-weight: 400; }
.tool-group, .site-group { background: var(--card); border-radius: var(--radius); padding: 18px 16px 8px; margin-bottom: 14px; box-shadow: var(--shadow); }
.site-group .sec-title, .tool-group .sec-title { padding: 0 4px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 6px; }

/* ===== 卡片：TT123 圆形 logo + 名称 + 两行完整简介 ===== */
.tool-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0;
  border-radius: 8px; padding: 14px 8px 14px; color: var(--ink);
  transition: background .15s, box-shadow .15s;
}
.tool-card:hover { background: var(--hover); box-shadow: 0 1px 12px rgba(1, 28, 67, .10); }
.tool-ico { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; transition: transform .4s; }
.tool-card:hover .tool-ico { transform: scale(1.06); }
.tool-ico svg { width: 30px; height: 30px; }
.tool-ico.c-wa { background: var(--c-wa-bg); color: var(--c-wa); }
.tool-ico.c-doc { background: var(--c-doc-bg); color: var(--c-doc); }
.tool-ico.c-pay { background: var(--c-pay-bg); color: var(--c-pay); }
.tool-ico.c-log { background: var(--c-log-bg); color: var(--c-log); }
.tool-ico.c-mk { background: var(--c-mk-bg); color: var(--c-mk); }
.tool-card .tt { min-width: 0; display: contents; }
.tool-card b { display: block; font-size: 16px; line-height: 22px; font-weight: 700; color: #323233; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tool-card .d { display: block; font-size: 13px; line-height: 21px; color: var(--ink-3); margin-top: 6px; height: 42px; overflow: hidden; }
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 6px; }
.site-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0;
  border-radius: 8px; padding: 14px 8px 14px; color: var(--ink);
  transition: background .15s, box-shadow .15s;
}
.site-card:hover { background: var(--hover); box-shadow: 0 1px 12px rgba(1, 28, 67, .10); }
.site-ico { width: 60px; height: 60px; border-radius: 50%; background: #f5f7fa; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 12px; transition: transform .4s; }
.site-card:hover .site-ico { transform: scale(1.06); }
.site-ico img { width: 54px; height: 54px; object-fit: contain; }
.site-card b { font-size: 16px; line-height: 22px; font-weight: 700; color: #323233; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.site-card .sd { font-size: 13px; line-height: 21px; color: var(--ink-3); margin-top: 6px; height: 42px; overflow: hidden; }
.tb-empty { display: none; text-align: center; color: var(--ink-3); padding: 40px 0; }

/* ===== 分类色（工具圆形图标用） ===== */
:root { --c-wa: #1fb954; --c-wa-bg: #e6f8ee; --c-doc: #2459ec; --c-doc-bg: #e9effd; --c-pay: #ff6a00; --c-pay-bg: #fff0e5; --c-log: #7a5af8; --c-log-bg: #f0ecfe; --c-mk: #0ea5b7; --c-mk-bg: #e4f7fa; }

/* ===== 工具内页：TT123 布局（左栏 + 面包屑 + 大白卡） ===== */
.page-grid { display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding: 16px 0 40px; align-items: start; }
.page-side { position: sticky; top: 72px; background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.page-side .side-label { font-size: 12.5px; font-weight: 700; color: var(--ink-3); padding: 6px 8px; }
.page-side a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.page-side a:hover { background: var(--hover); color: var(--blue); }
.page-side a.side-back { color: var(--orange); font-weight: 700; background: var(--orange-soft); margin-bottom: 6px; }
.page-side a.side-back:hover { color: var(--orange); filter: brightness(.97); }
.page-main { min-width: 0; }
.tb-page { padding: 0; max-width: none; margin: 0; }
.page-crumbs { font-size: 13.5px; color: var(--ink-3); margin-bottom: 12px; }
.page-crumbs a { color: var(--ink-3); }
.page-crumbs a:hover { color: var(--blue); }
.tb-page h1 { font-size: 28px; margin: 0 0 10px; color: var(--ink); }
.tb-intro { color: var(--ink-2); font-size: 15px; margin: 0 0 20px; }
.tb-panel { background: var(--card); border-radius: var(--radius); padding: 32px 36px; box-shadow: var(--shadow); }
.tb-note { margin-top: 16px; padding: 15px 18px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }
.tb-note b { color: var(--orange); }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-row { margin-bottom: 14px; }
.f-row label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.f-row input, .f-row select, .f-row textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #dcdfe6; border-radius: 8px;
  font-size: 15px; color: var(--ink); background: #fff; font-family: inherit;
}
.f-row input:focus, .f-row select:focus, .f-row textarea:focus { outline: none; border-color: var(--blue); }
.f-row textarea { resize: vertical; min-height: 68px; }
.btn { display: inline-block; padding: 11px 26px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font-size: 15.5px; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; color: var(--blue); border: 1px solid var(--blue); font-weight: 500; }
.btn-ghost:hover { background: var(--hover); color: var(--blue); }
.btn-sm { padding: 6px 14px; font-size: 13.5px; border-radius: 6px; }
.sec-line { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.sec-line::before { content: ""; width: 4px; height: 15px; background: var(--orange); border-radius: 2px; }
.sec-line i { font-style: normal; font-size: 12.5px; color: var(--ink-3); font-weight: 400; margin-left: auto; }

/* 结果 */
.verdict { margin-top: 18px; padding: 16px 18px; border-radius: 10px; font-size: 15px; display: none; }
.verdict.ok { display: block; background: #e6f8ee; border: 1px solid #bce8cf; color: #12814a; }
.verdict.bad { display: block; background: #fdefec; border: 1px solid #f6cdc3; color: #c2492f; }
.verdict b { display: block; font-size: 16px; margin-bottom: 4px; }
.copyable { display: flex; align-items: center; gap: 10px; margin-top: 12px; background: #f7f9fc; border: 1px solid var(--line); border-radius: 8px; padding: 10px 13px; }
.copyable code { flex: 1; font-size: 14px; word-break: break-all; color: var(--blue-dark); font-family: Consolas, monospace; }

/* 自绘下拉 */
.tb-select { position: relative; width: 100%; }
.tb-select-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 13px; border: 1px solid #dcdfe6; border-radius: 8px;
  background: #fff; color: var(--ink); font-size: 15px; cursor: pointer; text-align: left;
}
.tb-select-btn:hover { border-color: var(--blue); }
.tb-select.open .tb-select-btn { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(15, 71, 241, .10); }
.tb-select-btn svg { width: 16px; height: 16px; color: var(--ink-3); flex-shrink: 0; transition: transform .15s; }
.tb-select.open .tb-select-btn svg { transform: rotate(180deg); }
.tb-select-list {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 80;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 40px rgba(20, 30, 50, .16);
  max-height: 280px; overflow-y: auto; padding: 6px;
}
.tb-select.open .tb-select-list { display: block; }
.tb-select-list > div { padding: 10px 12px; border-radius: 7px; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.tb-select-list > div:hover { background: var(--hover); color: var(--blue); }
.tb-select-list > div.on { background: var(--orange-soft); color: var(--orange); font-weight: 700; }

/* 模板库 */
.tpl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tpl-tab { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; }
.tpl-tab.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.tpl-item { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; background: #fff; }
.tpl-item h3 { margin: 0 0 8px; font-size: 15.5px; }
.tpl-item pre { margin: 0 0 12px; white-space: pre-wrap; font-family: inherit; font-size: 14px; color: var(--ink-2); background: #f7f9fc; border-radius: 8px; padding: 12px 14px; line-height: 1.7; }

/* 汇率大界面 */
.fx-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 26px; align-items: start; }
.fx-board { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 0; }
.fx-row { display: grid; grid-template-columns: 56px 1fr 150px minmax(200px, 1.2fr); gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px dashed var(--line); }
.fx-row:last-child { border-bottom: 0; }
.fx-code { font-family: Consolas, monospace; font-weight: 800; font-size: 15px; color: #fff; background: linear-gradient(135deg, #4d7bff, var(--blue)); border-radius: 8px; text-align: center; padding: 5px 0; }
.fx-name { font-size: 14.5px; color: var(--ink); font-weight: 600; }
.fx-rate { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fx-input { display: flex; align-items: center; gap: 10px; }
.fx-input input { width: 96px; padding: 9px 10px; border: 1px solid #dcdfe6; border-radius: 8px; font-size: 15px; background: #fff; }
.fx-input input:focus { outline: none; border-color: var(--blue); }
.fx-res { font-size: 16px; font-weight: 800; color: var(--blue-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
.qk-list { display: flex; flex-direction: column; gap: 7px; }
.qk-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 15px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.qk-row:hover { border-color: var(--blue); color: var(--blue); }
.qk-row b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.big-result { text-align: center; margin-top: 20px; padding: 20px; border-radius: 12px; background: #eef2fd; border: 1px solid #d9e2fb; }
.big-result .num { font-size: 30px; font-weight: 800; color: var(--blue-dark); }
.big-result .sub { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* 运费对比表 */
.ft-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.fx-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.fx-table th, .fx-table td { padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.fx-table th { background: #f7f9fc; font-weight: 700; color: var(--ink); white-space: nowrap; }
.fx-table tr:last-child td { border-bottom: 0; }
.fx-table td { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.fx-table .ft-name { font-weight: 700; color: var(--ink); text-align: left; white-space: nowrap; }

/* HS */
.hs-result { margin-top: 16px; }
.hs-item { display: flex; gap: 14px; align-items: baseline; padding: 11px 4px; border-bottom: 1px dashed var(--line); }
.hs-item:last-child { border-bottom: 0; }
.hs-code { font-family: Consolas, monospace; font-weight: 700; color: var(--blue-dark); font-size: 15px; flex-shrink: 0; }
.hs-zh { font-size: 14.5px; }
.hs-en { font-size: 12.5px; color: var(--ink-3); }

/* 时差 */
.tz-bars { margin-top: 18px; display: none; }
.tz-bar-row { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: center; margin-bottom: 10px; }
.tz-bar-row .lbl { font-size: 13px; color: var(--ink-2); text-align: right; }
.tz-track { position: relative; height: 26px; background: #eef0f3; border-radius: 8px; overflow: hidden; }
.tz-seg { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.tz-seg.work { background: linear-gradient(135deg, #4d7bff, var(--blue)); }
.tz-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: -4px; padding-left: 102px; }
.tz-now { font-size: 22px; font-weight: 800; color: var(--blue-dark); }

/* 报价单/PI 预览 */
.sheet { display: none; background: #fff; }
.sheet-doc { border: 1px solid #e4e7eb; border-radius: 8px; padding: 34px 38px; margin-top: 24px; }
.sheet-doc h2 { text-align: center; letter-spacing: 4px; font-size: 20px; margin: 0 0 2px; }
.sheet-doc .sheet-sub { text-align: center; font-size: 12.5px; color: var(--ink-3); margin-bottom: 18px; }
.sheet-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 26px; font-size: 13px; margin-bottom: 14px; }
.sheet-meta div b { color: var(--ink-3); font-weight: 600; margin-right: 6px; }
.sheet-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 10px 0; }
.sheet-table th, .sheet-table td { border: 1px solid #dbe0e6; padding: 7px 9px; text-align: left; }
.sheet-table th { background: #f7f9fc; font-weight: 600; }
.sheet-table .num { text-align: right; }
.sheet-total { text-align: right; font-size: 14px; margin: 8px 0 14px; }
.sheet-total b { color: var(--blue-dark); font-size: 16px; }
.sheet-foot { font-size: 12.5px; color: var(--ink-2); line-height: 1.8; border-top: 1px dashed #dbe0e6; padding-top: 12px; }

/* wa-link 结果 */
.wl-out { margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 22px; }
.wl-qr-row { display: flex; gap: 26px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.wl-qr { width: 190px; height: 190px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.wl-qr svg, .wl-qr img { width: 100%; height: 100%; }
.wl-qr-side { flex: 1; min-width: 220px; }
.wl-qr-side .btn { margin-bottom: 12px; }
.wl-tip { font-size: 13px; color: var(--ink-3); line-height: 1.8; margin: 0; }

/* 第三方工具合集 */
.ext-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ext-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px 26px; }
.ext-card:hover { box-shadow: 0 1px 12px rgba(1, 28, 67, .12); }
.ext-card h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink); }
.ext-card p { margin: 0 0 16px; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.ext-no { position: absolute; top: 16px; right: 16px; font-size: 12px; font-weight: 700; color: var(--orange); background: var(--orange-soft); border: 1px solid #ffd9bd; border-radius: 999px; padding: 3px 12px; }
.tk-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.tk-step { display: flex; align-items: center; gap: 12px; background: #f7f9fc; border-radius: 10px; padding: 14px 16px; }
.tk-step b { width: 30px; height: 30px; border-radius: 999px; background: linear-gradient(135deg, #4d7bff, var(--blue)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14.5px; flex-shrink: 0; }
.tk-step span { font-size: 13px; color: var(--ink-2); line-height: 1.5; }

/* 相关工具 */
.rel-sec { margin-top: 26px; }
.rel-sec h2 { font-size: 17px; margin: 0 0 12px; color: var(--ink); }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rel-card { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; color: var(--ink); }
.rel-card:hover { background: var(--hover); }
.rel-card .tool-ico { width: 40px; height: 40px; margin-bottom: 0; }
.rel-card .tool-ico svg { width: 20px; height: 20px; }
.rel-card b { font-size: 14px; display: block; line-height: 1.3; }
.rel-card span { font-size: 12px; color: var(--ink-3); }

/* ===== 页脚（浅色，TT123 同风格） ===== */
.tb-footer { background: #fff; border-top: 1px solid var(--line); color: var(--ink-2); margin-top: 20px; }
.tb-footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 34px 0 24px; }
.tb-footer h4 { font-size: 15px; margin: 0 0 12px; color: var(--ink); }
.tb-footer a { display: block; font-size: 13.5px; color: var(--ink-2); padding: 3.5px 0; }
.tb-footer a:hover { color: var(--blue); }
.tb-footer p { font-size: 13px; color: var(--ink-3); margin: 6px 0 0; line-height: 1.8; }
.tb-footer-base { border-top: 1px solid var(--line); padding: 15px 0 18px; font-size: 12.5px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ===== 世界时钟条 ===== */
.clock-strip { background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, #e8f1fb 100%); border-bottom: 1px solid var(--line); }
.clock-strip .container { display: flex; gap: 26px; flex-wrap: wrap; padding-top: 9px; padding-bottom: 9px; font-size: 13.5px; color: #4a6076; font-variant-numeric: tabular-nums; }
.clock-strip i { font-style: normal; font-weight: 700; color: var(--ink); }

/* ===== 大白容器（TT123 主区） ===== */
.big-panel { background: #fff; border-radius: 14px; padding: 20px 20px 12px; margin-bottom: 14px; box-shadow: var(--shadow); }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; padding: 2px 2px 16px; }
.pill-tab {
  padding: 8px 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: #f1f4f8; color: #333; font-size: 15px; font-weight: 500;
}
.pill-tab:hover { color: var(--blue); }
.pill-tab.on { background: var(--blue); color: #fff; font-weight: 600; }

/* 站点项：圆形 logo + 名称（TT123 密集网格） */
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 4px 6px; }
.site-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0;
  border-radius: 8px; padding: 14px 6px 10px; color: var(--ink);
  transition: background .15s, box-shadow .15s;
}
.site-item:hover { background: var(--hover); box-shadow: 0 1px 12px rgba(1, 28, 67, .10); }
.site-logo { width: 58px; height: 58px; border-radius: 14px; background: #fff; border: 1px solid #edf0f4; box-shadow: 0 1px 4px rgba(20,30,50,.05); display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 10px; transition: transform .4s; }
.site-item:hover .site-logo { transform: scale(1.06); }
.site-logo img { width: 58px; height: 58px; object-fit: contain; padding: 6px; box-sizing: border-box; }
.site-logo img.lo { width: 34px; height: 34px; padding: 0; }
.site-item b { font-size: 14px; line-height: 20px; font-weight: 600; color: #323233; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-item .sd { font-size: 12px; line-height: 18px; color: var(--ink-3); margin-top: 3px; height: 36px; overflow: hidden; }

/* 倒计时条 */
.count-strip {
  display: flex; gap: 30px; flex-wrap: wrap; justify-content: center;
  border-top: 1px dashed var(--line); margin-top: 14px; padding: 12px 4px 8px;
  font-size: 14px; color: #666; font-variant-numeric: tabular-nums;
}
.count-strip b { color: var(--blue); font-weight: 700; padding: 0 2px; }

/* ===== 常用工具：多列文字链 ===== */
.tools-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.tools-head .sec-title { margin: 0; }
.promo { font-size: 13px; color: #e02020; font-weight: 600; }
.tlink-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px 14px; }
.tlink {
  display: flex; align-items: center; gap: 8px; padding: 8px 8px; border-radius: 8px;
  color: var(--ink-2); font-size: 14px;
}
.tlink:hover { background: var(--hover); color: var(--blue); }
.tlink-ico { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tlink-ico svg { width: 12px; height: 12px; }
.tlink-ico.c-wa { background: var(--c-wa-bg); color: var(--c-wa); }
.tlink-ico.c-doc { background: var(--c-doc-bg); color: var(--c-doc); }
.tlink-ico.c-pay { background: var(--c-pay-bg); color: var(--c-pay); }
.tlink-ico.c-log { background: var(--c-log-bg); color: var(--c-log); }
.tlink-ico.c-mk { background: var(--c-mk-bg); color: var(--c-mk); }
.tlink b { font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 实时汇率条 ===== */
.fx-strip { background: #eceef1; border-top: 1px solid var(--line); margin-top: 6px; }
.fx-strip .container { display: flex; gap: 30px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; font-size: 13.5px; color: #555; font-variant-numeric: tabular-nums; }
.fx-strip b { color: var(--ink); font-weight: 700; }

/* 侧栏（TT123 纯文字样式） */
.side-h { font-size: 14.5px; font-weight: 700; color: var(--orange); padding: 10px 10px 6px; position: relative; }
.side-h::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--orange); border-radius: 2px; margin-right: 8px; vertical-align: 1px; }
.side-nav a { padding: 7px 10px 7px 24px; border-radius: 8px; font-size: 14.5px; color: var(--ink-2); }
.side-nav a:hover { color: var(--orange); background: none; font-weight: 600; }

/* toast */
.tb-toast { position: fixed; top: 70px; left: 50%; transform: translateX(-50%) translateY(-8px); background: var(--ink); color: #fff; padding: 9px 20px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 99; }
.tb-toast.show { opacity: .95; transform: translateX(-50%) translateY(0); }

/* ===== 移动端 ===== */
@media (max-width: 900px) {
  .tb-hero .container { grid-template-columns: 1fr; gap: 16px; text-align: center; padding-top: 24px; padding-bottom: 20px; }
  .hero-logo { font-size: 30px; }
  .hero-hot-kw { justify-content: center; }
  .hero-panel { display: none; }
}
@media (max-width: 760px) {
  .tb-layout, .page-grid { grid-template-columns: 1fr; gap: 12px; padding-top: 12px; }
  .side-nav {
    position: static; max-height: none; overflow-x: auto; overflow-y: hidden;
    display: flex; gap: 8px; padding-bottom: 6px; scrollbar-width: none;
  }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-h { display: none; }
  .side-nav a { flex-shrink: 0; padding: 7px 14px; border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: 13px; white-space: nowrap; line-height: 20px; }
  .side-nav a.on { border-color: var(--orange); box-shadow: none; }
  .side-nav a .n { display: none; }
  .flow-divider { margin: 24px 0 12px; font-size: 15.5px; }
  .site-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .tool-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .site-ico, .tool-ico { width: 48px; height: 48px; }
  .site-ico img { width: 48px; height: 48px; }
  .tool-ico svg { width: 24px; height: 24px; }
  .site-card, .tool-card { padding: 10px 4px 10px; }
  .site-card b, .tool-card b { font-size: 13px; }
  .site-card .sd, .tool-card .d { font-size: 11px; line-height: 17px; height: 34px; margin-top: 4px; }
  .tool-group, .site-group { padding: 14px 10px 6px; }
  .page-side { position: static; }
  .page-side .side-label { display: none; }
  .tb-panel { padding: 20px 16px; }
  .tb-page h1 { font-size: 23px; }
  .f-grid { grid-template-columns: 1fr; }
  .rel-grid { grid-template-columns: 1fr; }
  .tb-footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .sheet-meta { grid-template-columns: 1fr; }
  .sheet-doc { padding: 22px 16px; }
  .fx-grid { grid-template-columns: 1fr; }
  .fx-row { grid-template-columns: 46px 1fr 110px; }
  .fx-rate { display: none; }
  .fx-input { flex-direction: column; align-items: stretch; }
  .fx-input input { width: 100%; }
  .ext-grid { grid-template-columns: 1fr; }
  .tk-steps { grid-template-columns: 1fr; }
  .tz-bar-row { grid-template-columns: 64px 1fr; }
  .tz-scale { padding-left: 74px; }
  .big-result .num { font-size: 24px; }
}

/* 打印（报价单/PI 导出） */
@media print {
  body { background: #fff; }
  .tb-header, .tb-footer, .page-grid > .page-side, .page-crumbs, .no-print, .rel-sec, .tb-toast { display: none !important; }
  .page-grid { display: block; padding: 0; }
  .tb-page h1, .tb-intro { display: none; }
  .tb-panel { box-shadow: none; border: 0; padding: 0; }
  .sheet { display: block !important; }
}
