/* ============ 智速达物流 - 全站样式 ============ */
:root {
  /* 品牌色板：取自智速达 Logo（深海军蓝 → 亮海蓝） */
  --navy: #0e306e;
  --navy-2: #14458f;
  --blue: #2b6fc9;
  --blue-light: #4aa3e8;
  --accent: #4aa3e8;
  --ink: #1c2430;
  --gray: #6b7684;
  --line: #e6eaf0;
  --bg: #f7f9fc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 48, 110, .10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, 92%); margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;                 /* 完全不透明，避免透出底层深色 */
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(14, 48, 110, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { line-height: 1.2; }
.logo-text b { font-size: 17px; color: var(--navy); display: block; }
.logo-text span { font-size: 11px; color: var(--gray); letter-spacing: .5px; }
.main-nav { display: flex; align-items: center; gap: 6px; position: relative; }
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.nav-m { display: none; }              /* 仅手机端抽屉内显示的条目 */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border: none; background: transparent; border-radius: 8px; font-size: 22px; color: var(--navy); cursor: pointer; }
.nav-toggle:hover { background: var(--bg); }
.main-nav a {
  padding: 8px 16px; border-radius: 8px; font-size: 15px; color: var(--ink);
  transition: all .2s; white-space: nowrap;
}
.main-nav a:hover { color: var(--blue); background: var(--bg); }
.main-nav a.active { color: var(--blue); font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 11px 26px; border-radius: 10px; font-size: 15px; cursor: pointer;
  border: none; transition: all .2s; font-family: inherit;
}
.btn-primary { background: var(--navy); color: #fff; font-weight: 600; }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(1.08); }
.cta-band .btn-accent { box-shadow: 0 0 0 2.5px rgba(255,255,255,.9); }
.btn-sm { padding: 9px 20px; font-size: 14.5px; font-weight: 600; }
/* 页头「系统登录」：亮品牌蓝，醒目 */
.btn-sys {
  background: linear-gradient(135deg, #2b6fc9 0%, #4aa3e8 100%);
  color: #fff; font-weight: 700; letter-spacing: .5px;
  box-shadow: 0 4px 12px rgba(43, 111, 201, .35);
}
.btn-sys:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(43, 111, 201, .45); }
.user-chip { display: none; align-items: center; gap: 8px; font-size: 14px; color: var(--navy); }
.user-chip.show { display: inline-flex; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(115deg, rgba(14,48,110,.94) 0%, rgba(20,69,143,.85) 55%, rgba(43,111,201,.58) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M0 100h200M100 0v200' stroke='%23ffffff10' stroke-width='1'/%3E%3C/svg%3E"),
    radial-gradient(1200px 500px at 85% -10%, #2a6db5 0%, transparent 60%);
  color: #fff; padding: 110px 0 130px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -140px; top: -140px;
  width: 480px; height: 480px; border-radius: 50%;
  border: 60px solid rgba(255,255,255,.05);
  pointer-events: none;   /* 纯装饰圆环，禁止拦截按钮点击 */
}
.hero > .container { position: relative; z-index: 1; }
.hero-tag {
  display: inline-block; padding: 6px 16px; border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; font-size: 13px; letter-spacing: 2px; margin-bottom: 26px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.25; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { margin: 22px 0 38px; font-size: 18px; color: rgba(255,255,255,.85); max-width: 640px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 区块通用 ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .kicker {
  color: var(--blue); font-size: 14px; letter-spacing: 3px; font-weight: 600;
  text-transform: uppercase; margin-bottom: 10px; display: block;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); color: var(--navy); }
.section-head p { color: var(--gray); margin-top: 14px; }

/* ---------- 服务卡片 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px; transition: all .25s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon {
  width: 56px; height: 56px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 22px;
  background: linear-gradient(135deg, #eef4fb, #dfeafc);
}
.card .icon svg { width: 28px; height: 28px; stroke: var(--blue); }
.card h3 { font-size: 20px; color: var(--navy); margin-bottom: 12px; }
.card p { color: var(--gray); font-size: 15px; }
.card .more { display: inline-block; margin-top: 18px; color: var(--blue); font-size: 14px; font-weight: 600; }

/* ---------- 数据带 ---------- */
.stats-band { background: var(--navy); color: #fff; padding: 64px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stats-grid .num { font-size: 40px; font-weight: 700; color: var(--accent); }
.stats-grid .label { font-size: 14px; color: rgba(255,255,255,.75); margin-top: 6px; }

/* ---------- 航线 ---------- */
.routes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 900px) { .routes { grid-template-columns: repeat(2, 1fr); } }
.route-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; transition: all .25s;
}
.route-item:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.route-item .flag { font-size: 34px; }
.route-item b { display: block; margin-top: 10px; color: var(--navy); font-size: 17px; }
.route-item span { font-size: 13px; color: var(--gray); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 44px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-grid a { display: block; padding: 4px 0; font-size: 14px; color: rgba(255,255,255,.72); }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0;
  font-size: 13px; color: rgba(255,255,255,.5); text-align: center;
}
/* 备案号：可点击跳转工信部备案系统，颜色跟随页脚、悬停变亮 */
.footer-bottom .icp-link {
  color: rgba(255,255,255,.62); text-decoration: none;
  transition: color .2s;
}
.footer-bottom .icp-link:hover { color: #fff; text-decoration: underline; }

/* ---------- 内页 banner ---------- */
.page-banner {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, var(--blue) 130%);
  color: #fff; padding: 76px 0; text-align: center;
}
.page-banner h1 { font-size: 36px; }
.page-banner p { color: rgba(255,255,255,.75); margin-top: 10px; }

/* ---------- 关于我们 ---------- */
.about-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .about-wrap { grid-template-columns: 1fr; } }
.about-visual {
  border-radius: var(--radius); min-height: 340px;
  background: linear-gradient(135deg, #dfeafc 0%, #f2f6fc 100%);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.about-visual svg { width: 72%; }
.value-list { list-style: none; margin-top: 26px; }
.value-list li { display: flex; gap: 14px; padding: 10px 0; color: var(--ink); font-size: 15px; }
.value-list .dot {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: #e8f1fb;
  color: var(--blue); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; margin-top: 2px;
}
.timeline { border-left: 2px solid var(--line); padding-left: 28px; margin-top: 8px; }
.timeline li { position: relative; padding-bottom: 28px; list-style: none; }
.timeline li::before {
  content: ""; position: absolute; left: -35px; top: 8px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--blue); border: 3px solid #dce9f9;
}
.timeline b { color: var(--navy); }
.timeline span { color: var(--gray); font-size: 14px; display: block; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; outline: none; transition: border .2s; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 13px; color: var(--gray); }

/* ---------- 消息提示 ---------- */
.toast {
  position: fixed; top: 86px; left: 50%; transform: translateX(-50%) translateY(-16px);
  background: var(--navy); color: #fff; padding: 12px 24px; border-radius: 10px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .3s; z-index: 999;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: #b3372f; }

/* ---------- 实景展示带 ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 820px) { .showcase { grid-template-columns: 1fr; } }
.showcase-item {
  position: relative; height: 360px; border-radius: var(--radius);
  overflow: hidden; display: block; box-shadow: var(--shadow);
}
.showcase-item img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease;
}
.showcase-item:hover img { transform: scale(1.07); }
.showcase-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,28,60,.82) 0%, rgba(8,28,60,.25) 45%, rgba(8,28,60,.05) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px 34px; color: #fff;
}
.showcase-item .overlay .kicker {
  font-size: 12.5px; letter-spacing: 3px; color: var(--blue-light); font-weight: 700; margin-bottom: 6px;
}
.showcase-item .overlay h3 { font-size: 27px; margin-bottom: 8px; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.showcase-item .overlay p { font-size: 14.5px; color: rgba(255,255,255,.88); max-width: 420px; }
.showcase-item .overlay .go {
  margin-top: 14px; font-size: 14px; font-weight: 700; color: #fff;
  display: inline-flex; align-items: center; gap: 6px;
}
.showcase-item:hover .overlay .go { color: var(--blue-light); }

/* ---------- 文章列表 ---------- */
.article-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .article-list { grid-template-columns: 1fr; } }
.article-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .25s; display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.article-cover { height: 170px; background: linear-gradient(135deg, #14458f, #2b6fc9); position: relative; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-cover .placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85); font-size: 40px;
}
.article-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.article-body .meta { font-size: 12.5px; color: var(--gray); margin-bottom: 8px; }
.article-body h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.article-body p { font-size: 14px; color: var(--gray); flex: 1; }
.article-body .read { margin-top: 16px; color: var(--blue); font-size: 14px; font-weight: 600; }

/* ---------- 后台 ---------- */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; gap: 0; min-height: calc(100vh - 72px); }
.admin-side { background: var(--navy); padding: 28px 0; }
.admin-side .side-title { color: #fff; font-weight: 700; padding: 0 26px 20px; font-size: 16px; }
.admin-side a {
  display: block; padding: 12px 26px; color: rgba(255,255,255,.75); font-size: 14.5px;
  border-left: 3px solid transparent;
}
.admin-side a.on, .admin-side a:hover { color: #fff; background: rgba(255,255,255,.07); border-left-color: var(--accent); }
.admin-main { padding: 40px 44px; background: var(--bg); }
.admin-main h2 { color: var(--navy); margin-bottom: 24px; font-size: 24px; }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; margin-bottom: 24px;
}
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; color: var(--gray); font-weight: 600; padding: 10px 8px; border-bottom: 1.5px solid var(--line); }
table.data td { padding: 12px 8px; border-bottom: 1px solid var(--line); color: var(--ink); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.tag.on { background: #e5f4ea; color: #1e7e3e; }
.tag.off { background: #fdecea; color: #b3372f; }
.cover-preview {
  margin-top: 10px; max-height: 140px; border-radius: 10px; border: 1px solid var(--line);
  display: none;
}

/* ---------- 弹窗 / 认证页 ---------- */
.auth-wrap { min-height: calc(100vh - 72px); display: flex; align-items: center; justify-content: center; padding: 60px 0; background: var(--bg); }
.auth-card {
  width: min(430px, 92%); background: #fff; border-radius: 18px; padding: 44px 40px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.auth-card h1 { font-size: 24px; color: var(--navy); text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--gray); font-size: 14px; margin-bottom: 28px; }
.auth-tabs { display: flex; background: var(--bg); border-radius: 10px; padding: 4px; margin-bottom: 26px; }
.auth-tabs button {
  flex: 1; padding: 9px; border: none; background: transparent; border-radius: 8px;
  font-size: 14.5px; cursor: pointer; color: #3c4b5e; font-weight: 500; font-family: inherit;
}
.auth-tabs button.on { background: #fff; color: var(--navy); font-weight: 700; box-shadow: 0 2px 10px rgba(14,48,110,.14); }
.auth-card .switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--gray); }
.auth-card .switch a { color: var(--blue); font-weight: 600; cursor: pointer; }

/* ---------- 详情页 ---------- */
.detail-wrap { max-width: 780px; margin: 0 auto; }
.detail-wrap h1 { font-size: 30px; color: var(--navy); margin: 14px 0 10px; }
.detail-wrap .meta { color: var(--gray); font-size: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.detail-wrap .content { font-size: 16px; line-height: 1.9; color: var(--ink); white-space: pre-wrap; }
/* 自动发布的资讯正文（受限 HTML 排版） */
.detail-wrap .content.html { white-space: normal; }
.detail-wrap .content.html h2 {
  font-size: 21px; color: var(--navy); margin: 32px 0 12px;
  padding-left: 12px; border-left: 4px solid var(--blue); line-height: 1.4;
}
.detail-wrap .content.html h2:first-child { margin-top: 4px; }
.detail-wrap .content.html h3 { font-size: 17.5px; color: var(--navy); margin: 22px 0 8px; }
.detail-wrap .content.html p { margin: 0 0 14px; }
.detail-wrap .content.html ul, .detail-wrap .content.html ol { margin: 0 0 16px; padding-left: 24px; }
.detail-wrap .content.html li { margin-bottom: 9px; }
.detail-wrap .content.html a { color: var(--blue); text-decoration: underline; word-break: break-all; }
.detail-wrap .content.html blockquote {
  margin: 0 0 16px; padding: 10px 14px; background: var(--bg);
  border-left: 4px solid var(--line); color: var(--gray); font-size: 15px;
}
.detail-wrap .content.html hr { border: none; border-top: 1px dashed var(--line); margin: 26px 0; }
.detail-wrap .content.html strong { color: var(--navy); }
/* 正文配图（每日资讯） */
.detail-wrap .content.html img { max-width: 100%; height: auto; display: block; }
.detail-wrap .content-fig { margin: 4px 0 20px; }
.detail-wrap .content-fig img {
  width: 100%; border-radius: 12px; display: block;
  box-shadow: 0 8px 24px rgba(16, 40, 80, .12);
}
.detail-wrap .content-fig figcaption {
  margin-top: 9px; font-size: 13px; color: var(--gray); text-align: center;
}
.detail-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; background: linear-gradient(135deg, #14458f, #2b6fc9); aspect-ratio: 16 / 9; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 面包屑（文章页，可见 + 结构化数据配套） */
.crumb {
  font-size: 13px; color: var(--gray); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.crumb a { color: var(--gray); text-decoration: none; }
.crumb a:hover { color: var(--blue); }
.crumb i { font-style: normal; color: #c3ccd8; }

/* 上一篇 / 下一篇 */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin: 42px 0 8px;
}
.post-nav a {
  display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; background: #fff; transition: .18s;
}
.post-nav a:hover { border-color: var(--blue); box-shadow: 0 8px 22px rgba(16, 40, 80, .08); }
.post-nav a small { display: block; font-size: 12.5px; color: var(--gray); margin-bottom: 5px; }
.post-nav a b { display: block; font-size: 14.5px; color: var(--navy); font-weight: 600; line-height: 1.5; }
.post-nav .next { text-align: right; }

/* 相关阅读 */
.related { margin: 46px 0 0; padding-top: 30px; border-top: 1px solid var(--line); }
.related h2 { font-size: 20px; color: var(--navy); margin: 0 0 22px; }
.related .article-list { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related .article-body h3 { font-size: 15.5px; }
@media (max-width: 900px) {
  .related .article-list { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
}

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--blue)); border-radius: 20px;
  color: #fff; padding: 60px 48px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 28px; }
.cta-band p { color: rgba(255,255,255,.8); margin-top: 8px; }

/* ---------- 合作伙伴（从右向左无缝循环滚动） ---------- */
.partners { padding: 76px 0 72px; background: #fff; border-top: 1px solid var(--line); overflow: hidden; }
.partners-head { text-align: center; max-width: 660px; margin: 0 auto 42px; }
.partners-kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 3px;
  color: var(--blue); margin-bottom: 10px;
}
.partners-head h2 { font-size: clamp(24px, 3vw, 32px); color: var(--navy); }
.partners-head p { color: var(--gray); font-size: 15px; margin-top: 10px; }

.partner-marquee {
  position: relative; overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.partner-track {
  display: flex; width: max-content;
  /* --shift 为「一组卡片」的宽度（由脚本按实际渲染宽度写入），--dur 为走完一组的时长 */
  animation: partnerScroll var(--dur, 62s) linear infinite;
  will-change: transform;
}
/* 从右向左：整条内容向左平移一组卡片的宽度，首尾同构故无缝循环 */
@keyframes partnerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--shift, -50%)); }
}
@media (hover: hover) {
  .partner-marquee:hover .partner-track { animation-play-state: paused; }
}
.partner-group { display: flex; align-items: center; gap: 18px; padding-right: 18px; }
.partner-card {
  flex: 0 0 auto; width: 190px; height: 116px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.partner-card:hover {
  transform: translateY(-3px); border-color: rgba(43, 111, 201, .35);
  box-shadow: 0 12px 26px rgba(14, 48, 110, .1);
}
.partner-logo { width: 166px; height: 52px; display: flex; align-items: center; justify-content: center; }
.partner-logo img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .25s ease;
}
.partner-card:hover .partner-logo img { transform: scale(1.05); }
.partner-name {
  font-size: 12.5px; color: var(--gray); letter-spacing: .2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}

/* ---------- 移动端导航：收起为汉堡 + 全宽抽屉 ---------- */
@media (max-width: 900px) {
  /* 页头只留「Logo + 汉堡」，登录/后台按钮移入抽屉，避免横向挤压 */
  .header-inner { height: 62px; }
  .nav-toggle { display: inline-flex; flex: 0 0 auto; }
  .main-nav { gap: 4px; }
  .main-nav > .btn,
  .main-nav > .user-chip { display: none; }

  /* 收起态：隐藏链接列表 */
  .main-nav .nav-links { display: none; }

  /* 展开态：顶部留出页头高度，整屏宽抽屉 */
  .main-nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; top: 62px; left: 0; right: 0; z-index: 99;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(14, 48, 110, .16);
    padding: 4px 0 calc(14px + env(safe-area-inset-bottom));
    max-height: calc(100vh - 62px);
    max-height: calc(100dvh - 62px); overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: navDrop .18s ease-out;
  }
  @keyframes navDrop {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* 抽屉内每个条目：整行可点、高度 ≥48px 便于手指点击 */
  .main-nav .nav-links a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 22px; border-radius: 0; font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav .nav-links a:last-child { border-bottom: none; }
  .main-nav .nav-links a.active {
    color: var(--blue); font-weight: 600; background: var(--bg);
    box-shadow: inset 3px 0 0 var(--blue);
  }

  /* 抽屉底部的主按钮（系统登录 / 进入后台 / 退出登录） */
  .nav-m { display: flex; }
  .main-nav .nav-links a.nav-cta,
  .main-nav .nav-links button.nav-cta {
    display: flex; align-items: center; justify-content: center;
    margin: 14px 22px 4px; padding: 13px 20px; border: none;
    border-radius: 10px; font-size: 15.5px; font-weight: 700; line-height: 1.4;
    color: #fff; background: linear-gradient(135deg, #2b6fc9 0%, #4aa3e8 100%);
    box-shadow: 0 6px 16px rgba(43, 111, 201, .32);
    font-family: inherit; cursor: pointer; width: auto; border-bottom: none;
  }
  .main-nav .nav-links a.nav-cta + a.nav-cta,
  .main-nav .nav-links a.nav-cta + button.nav-cta { margin-top: 10px; }
  .main-nav .nav-links a.nav-cta.nav-cta-ghost,
  .main-nav .nav-links button.nav-cta.nav-cta-ghost {
    color: var(--navy); background: #fff; border: 1.5px solid var(--line);
    box-shadow: none;
  }

  /* 抽屉展开时锁住页面滚动，避免背景跟着滑 */
  body.nav-open { overflow: hidden; }
}

@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 38px; }
  .hero { padding: 64px 0 72px; }
  .hero h1 { font-size: 32px; }
  .hero p.lead { font-size: 16px; }
  .page-banner { padding: 52px 0; }
  .page-banner h1 { font-size: 28px; }
  .cta-band { padding: 36px 24px; flex-direction: column; text-align: center; }
  .cta-band h2 { font-size: 23px; }
  .partners { padding: 56px 0 50px; }
  .partners-head { margin-bottom: 30px; }
  .partner-card { width: 150px; height: 104px; gap: 8px; padding: 10px; }
  .partner-logo { width: 128px; height: 44px; }
  .partner-name { font-size: 11.5px; }
  .partner-group { gap: 14px; padding-right: 14px; }
  .partner-track { --dur: 46s; }
  .showcase-item { height: 270px; }
  .showcase-item .overlay { padding: 22px; }
  .showcase-item .overlay h3 { font-size: 22px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: flex; overflow-x: auto; padding: 0; }
  .admin-side .side-title { display: none; }
  .admin-side a { border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; }
  .admin-side a.on { border-bottom-color: var(--accent); }
  .admin-main { padding: 28px 18px; }
  .panel { padding: 20px 16px; }
  .auth-wrap { padding: 40px 0; }
}

/* 尊重「减少动效」系统偏好 */
@media (prefers-reduced-motion: reduce) {
  .partner-track { animation: none; }
  .partner-marquee { overflow-x: auto; }
}

@media (max-width: 520px) {
  .logo-text span { display: none; }
  .logo-text b { font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 27px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 0; padding-left: 12px; padding-right: 12px; min-height: 46px; }
  .section-head h2 { font-size: 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .routes { grid-template-columns: 1fr 1fr; }
}

/* ---------- 右侧浮动联系按钮（点击滑出联系面板） ---------- */
.fab-contact {
  position: fixed; right: 0; bottom: 20vh; z-index: 130;
  font-family: inherit; -webkit-tap-highlight-color: transparent;
}
.fab-mask {
  position: fixed; inset: 0; z-index: 0; background: rgba(8, 22, 46, .44);
  opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s;
}
.fab-toggle {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  width: 56px; padding: 15px 0 17px; border: none; cursor: pointer;
  border-radius: 15px 0 0 15px;
  background: linear-gradient(160deg, #3a83d8 0%, #1b4a96 55%, #0e306e 100%);
  color: #fff; box-shadow: -6px 10px 26px rgba(14, 48, 110, .26);
  transition: width .22s ease, box-shadow .22s ease, filter .22s ease;
}
.fab-toggle:hover { width: 60px; box-shadow: -8px 14px 32px rgba(14, 48, 110, .34); filter: brightness(1.06); }
.fab-toggle:active { filter: brightness(.96); }
.fab-toggle svg { width: 23px; height: 23px; }
.fab-label {
  writing-mode: vertical-rl; text-orientation: upright;
  font-size: 12.5px; font-weight: 700; letter-spacing: 3px; line-height: 1;
}
.fab-dot {
  position: absolute; top: 11px; right: 13px; width: 7px; height: 7px;
  border-radius: 50%; background: #ff5a5f;
  animation: fabPulse 2.2s ease-out infinite;
}
@keyframes fabPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 90, 95, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 90, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 95, 0); }
}

/* 面板 */
.fab-panel {
  position: absolute; z-index: 1; right: calc(100% + 12px); bottom: 0;
  width: 308px; padding: 16px 14px 12px;
  max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 50px rgba(14, 48, 110, .22);
  opacity: 0; visibility: hidden; transform: translateX(14px) scale(.97);
  transform-origin: right bottom;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.fab-contact.open .fab-panel { opacity: 1; visibility: visible; transform: none; }
.fab-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 0; }
.fab-head h4 { font-size: 16px; color: var(--navy); }
.fab-close {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 8px; background: var(--bg); color: var(--gray);
  font-size: 15px; line-height: 1; cursor: pointer; transition: background .2s, color .2s;
}
.fab-close:hover { background: #e8eef8; color: var(--navy); }
.fab-tip { font-size: 12px; color: var(--gray); padding: 5px 4px 11px; }
.fab-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 8px; border: none; border-radius: 11px; background: none;
  text-align: left; text-decoration: none; cursor: pointer; font: inherit;
  transition: background .2s;
}
.fab-row:hover { background: #f4f8fd; }
.fab-ic {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.fab-ic svg { width: 17px; height: 17px; }
.fab-ic.tel  { background: linear-gradient(140deg, #3a83d8, #1b4a96); }
.fab-ic.wx   { background: linear-gradient(140deg, #3ecf7b, #17a34a); }
.fab-ic.wa   { background: linear-gradient(140deg, #51e07f, #1eb356); }
.fab-ic.mail { background: linear-gradient(140deg, #f0995f, #dd6a33); }
.fab-txt { flex: 1; min-width: 0; }
.fab-txt small { display: block; font-size: 11.5px; color: var(--gray); line-height: 1.5; }
.fab-txt b {
  display: block; font-size: 14.5px; color: var(--navy); font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fab-go {
  flex: 0 0 auto; font-size: 11.5px; font-weight: 700; color: var(--blue);
  background: #eef4fd; border-radius: 999px; padding: 4px 9px;
}
.fab-row:hover .fab-go { background: var(--blue); color: #fff; }
.fab-foot {
  margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 11.5px; color: var(--gray); text-align: center;
}

@media (max-width: 900px) {
  .fab-contact { bottom: 26vh; }
  .fab-toggle { width: 50px; padding: 13px 0 15px; }
  .fab-toggle:hover { width: 50px; }
  .fab-label { font-size: 12px; letter-spacing: 2px; }
}

/* 手机端：面板改为底部抽屉 */
@media (max-width: 640px) {
  .fab-contact { bottom: 84px; }
  .fab-panel {
    position: fixed; left: 0; right: 0; bottom: 0; width: auto; border-radius: 18px 18px 0 0;
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
    transform: translateY(102%);
    box-shadow: 0 -12px 40px rgba(14, 48, 110, .24);
  }
  .fab-contact.open .fab-panel { transform: none; }
  .fab-contact.open .fab-mask { opacity: 1; visibility: visible; }
  .fab-row { padding: 11px 8px; }
}
body.fab-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .fab-dot { animation: none; }
  .fab-panel, .fab-toggle, .fab-mask { transition: none; }
}

/* ============ 后台：Markdown 文件导入 ============ */
.md-drop {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 18px; border: 2px dashed #c9d8ea; border-radius: 12px;
  background: var(--bg); cursor: pointer; transition: .18s;
}
.md-drop:hover, .md-drop.over { border-color: var(--blue); background: #eef6ff; }
.md-drop.over { box-shadow: inset 0 0 0 3px rgba(43, 111, 201, .08); }
.md-drop .md-ic { font-size: 26px; line-height: 1; }
.md-drop .md-txt { flex: 1 1 320px; min-width: 0; }
.md-drop .md-txt b { display: block; font-size: 14.5px; color: var(--navy); margin-bottom: 3px; }
.md-drop .md-txt span { display: block; font-size: 12.5px; color: var(--gray); line-height: 1.65; }
.md-drop .md-pick { pointer-events: none; white-space: nowrap; }
.md-status {
  margin-top: 10px; font-size: 13px; line-height: 1.7; color: #10794f;
  background: #f0fbf5; border-left: 3px solid #2bb673; border-radius: 8px; padding: 9px 12px;
}
.md-status.err { color: #9a3412; background: #fff7ed; border-left-color: #f59e0b; }
.md-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.md-preview {
  margin-top: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); max-height: 440px; overflow: auto;
}
.md-preview h2, .md-preview h3, .md-preview h4 { color: var(--navy); margin: 20px 0 10px; line-height: 1.45; }
.md-preview h2 { font-size: 19px; padding-left: 11px; border-left: 4px solid var(--blue); }
.md-preview h3 { font-size: 16.5px; }
.md-preview h4 { font-size: 15px; }
.md-preview p { margin: 0 0 12px; font-size: 14.5px; color: var(--ink); }
.md-preview ul, .md-preview ol { margin: 0 0 14px; padding-left: 22px; }
.md-preview li { margin-bottom: 7px; font-size: 14.5px; }
.md-preview a { color: var(--blue); text-decoration: underline; word-break: break-all; }
.md-preview blockquote {
  margin: 0 0 14px; padding: 9px 13px; background: var(--bg);
  border-left: 4px solid var(--line); color: var(--gray); font-size: 14px;
}
.md-preview hr { border: none; border-top: 1px dashed var(--line); margin: 20px 0; }
.md-preview code {
  background: #eef2f8; border-radius: 5px; padding: 1px 5px; font-size: 13px;
  font-family: ui-monospace, Consolas, monospace;
}
.md-preview pre {
  background: #0f1c2e; color: #e6eefb; border-radius: 10px; padding: 13px 15px;
  overflow: auto; margin: 0 0 14px;
}
.md-preview pre code { background: none; color: inherit; padding: 0; }
.md-preview img { max-width: 100%; height: auto; border-radius: 10px; }
.md-preview table, .detail-wrap .content.html table {
  width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px;
}
.md-preview th, .md-preview td,
.detail-wrap .content.html th, .detail-wrap .content.html td {
  border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top;
}
.md-preview th, .detail-wrap .content.html th { background: var(--bg); color: var(--navy); font-weight: 700; }
@media (max-width: 640px) {
  .md-preview { padding: 14px; max-height: 360px; }
  .md-drop { padding: 14px; gap: 10px; }
  .md-drop .md-pick { width: 100%; justify-content: center; }
}

/* 后台：md 里本地图片的上传提示 */
.md-imgbox {
  display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap;
  margin-top: 10px; padding: 12px 14px; border-radius: 10px;
  background: #fff7ed; border: 1px solid #fcd9a8;
}
.md-imgtip { flex: 1 1 320px; min-width: 0; font-size: 12.8px; line-height: 1.75; color: #92400e; }
.md-imgtip code {
  display: inline-block; background: #fff; border: 1px solid #f3d6a8; border-radius: 5px;
  padding: 1px 6px; margin: 2px 4px 2px 0; font-size: 12px; color: #8a4b0f;
  font-family: ui-monospace, Consolas, monospace; word-break: break-all;
}
.md-imgbox .btn { white-space: nowrap; }
/* 正文内联图片（图片与文字混排时使用） */
.detail-wrap .content.html img.content-inline-img {
  display: inline-block; vertical-align: middle; margin: 4px 2px;
}

/* ============ 运单查询（17TRACK 外链） ============ */
/* 桌面导航 */
.main-nav a.nav-ext { display: inline-flex; align-items: center; gap: 6px; }
.main-nav a.nav-ext .nav-ext-ic { width: 15px; height: auto; display: block; flex: 0 0 auto; }
.main-nav a.nav-ext::after {
  content: "↗"; font-size: 11px; color: var(--gray); line-height: 1;
  transform: translateY(-1px); transition: color .2s;
}
.main-nav a.nav-ext:hover::after { color: var(--blue); }
/* 手机端抽屉 */
@media (max-width: 900px) {
  .main-nav .nav-links a.nav-ext { justify-content: flex-start; gap: 9px; }
  .main-nav .nav-links a.nav-ext .nav-ext-ic { width: 17px; }
  .main-nav .nav-links a.nav-ext::after { margin-left: auto; font-size: 13px; }
}
/* 浮动面板右侧：独立的 17TRACK 运单查询入口（与「联系我们」并列，不放进面板） */
.fab-track {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  width: 56px; padding: 13px 0 11px; margin-bottom: 10px;
  border-radius: 15px 0 0 15px; text-decoration: none;
  background: #fff; border: 1px solid #e3e9f3; border-right: none;
  color: var(--navy);
  box-shadow: -5px 8px 22px rgba(14, 48, 110, .16);
  transition: width .22s ease, box-shadow .22s ease, background .2s ease;
}
.fab-track:hover {
  width: 60px; background: #f6faff;
  box-shadow: -7px 12px 28px rgba(14, 48, 110, .22);
}
.fab-track img { width: 26px; height: auto; display: block; }
.fab-track .fab-label { color: var(--navy); font-size: 12px; letter-spacing: 2px; }
.fab-track-arrow {
  font-size: 10px; color: var(--gray); line-height: 1;
  transition: color .2s ease, transform .2s ease;
}
.fab-track:hover .fab-track-arrow { color: var(--blue); transform: translate(1px, -1px); }
@media (max-width: 900px) {
  .fab-track { width: 50px; padding: 12px 0 10px; }
  .fab-track:hover { width: 50px; }
  .fab-track img { width: 23px; }
}
/* 中等屏幕（901–1050px）导航加了一项，收紧内边距避免换行 */
@media (max-width: 1050px) and (min-width: 901px) {
  .main-nav a { padding: 8px 10px; font-size: 14.5px; }
  .main-nav { gap: 4px; }
  .nav-links { gap: 4px; }
}
/* 手机端：查询按钮更紧凑，避免与联系我们叠得太高 */
@media (max-width: 640px) {
  .fab-track { width: 46px; padding: 10px 0 9px; gap: 6px; }
  .fab-track img { width: 21px; }
  .fab-track .fab-label { font-size: 11px; letter-spacing: 1.5px; }
  .fab-track-arrow { display: none; }
}

/* ============ 首页「全球物流轨迹查询」：17TRACK 完整 logo ============ */
.track-brand {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 11px; padding: 8px 14px;
  margin-bottom: 16px; box-shadow: 0 8px 22px rgba(4, 20, 50, .22);
}
.track-brand img { height: 20px; width: auto; display: block; }
.track-brand em {
  font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .5px;
  color: var(--blue); background: #eef5ff; border-radius: 999px; padding: 2px 8px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .track-brand { padding: 7px 11px; gap: 8px; margin-bottom: 13px; }
  .track-brand img { height: 17px; }
  .track-brand em { font-size: 10.5px; padding: 1px 7px; }
}
/* 白底卡片里复用同一枚 17TRACK 徽标（去掉白底与阴影） */
.track-brand.on-light {
  background: none; box-shadow: none; padding: 0; margin-bottom: 10px;
}

/* ============ 首页关键宣传标语（阿里巴巴国际站轨迹查询） ============ */
.promo-band {
  background: linear-gradient(96deg, #f2f8ff 0%, #ffffff 42%, #eef6ff 100%);
  border-top: 1px solid rgba(255, 255, 255, .14);
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.promo-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap; text-align: center;
}
.promo-ico {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #4aa3e8, #14458f); color: #fff;
  box-shadow: 0 5px 14px rgba(20, 69, 143, .26);
}
.promo-ico svg { width: 17px; height: 17px; }
.promo-txt { font-size: 17px; color: var(--navy-2); letter-spacing: .3px; line-height: 1.5; }
.promo-txt b { color: var(--navy); font-weight: 800; }
.promo-dot { color: #a9b9cd; margin: 0 7px; font-weight: 700; }
.promo-tag {
  flex: 0 0 auto; font-size: 12px; font-weight: 700; letter-spacing: .4px;
  color: var(--blue); background: #fff; border: 1px solid #cfe0f7;
  border-radius: 999px; padding: 3px 11px;
}
@media (max-width: 640px) {
  .promo-band { padding: 13px 0; }
  .promo-inner { gap: 9px; }
  .promo-ico { width: 27px; height: 27px; border-radius: 8px; }
  .promo-ico svg { width: 15px; height: 15px; }
  .promo-txt { font-size: 14.5px; letter-spacing: 0; }
  .promo-dot { margin: 0 5px; }
  .promo-tag { font-size: 11px; padding: 2px 9px; }
}

/* ============ 可查询平台（仅说明服务支持范围，低视觉权重） ============ */
.query-platforms { padding: 20px 0 24px; background: #fff; }
.qp-row {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap; text-align: center;
}
.qp-label {
  font-size: 12.5px; font-weight: 700; letter-spacing: 1.2px;
  color: var(--gray); text-transform: uppercase;
}
.qp-item {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px;
  background: #fbfcfe;
}
.qp-item img { height: 17px; width: auto; display: block; }
.qp-item span { font-size: 13px; font-weight: 600; color: var(--navy); }
.qp-hint { font-size: 12.5px; color: var(--gray); }
.qp-note {
  margin: 12px auto 0; max-width: 780px;
  font-size: 11.5px; line-height: 1.75; color: #9aa5b4; text-align: center;
}
@media (max-width: 640px) {
  .query-platforms { padding: 16px 0 20px; }
  .qp-row { gap: 8px; }
  .qp-item { padding: 5px 11px; }
  .qp-item img { height: 15px; }
  .qp-item span { font-size: 12px; }
  .qp-hint { flex: 1 1 100%; font-size: 12px; }
  .qp-note { font-size: 11px; margin-top: 10px; }
}
