/* ==========================================================================
   天扬物流 · 全站样式
   设计基调：薄荷青 + 橙色点缀（轻风格），大字号标题、卡片化信息块、紧凑表格
   说明：本文件同时被 Next 站点与批量静态生成器引用，改这里即全站生效
   ========================================================================== */

:root {
  --navy: #053632;
  --navy-2: #084843;
  --navy-3: #13655e;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-strong: #c2410c;  /* 承载白字用，对比度 5.18 (AA) */
  --ink: #091a19;
  --text: #1b3836;
  --muted: #587976;
  --line: #e1eaea;
  --bg: #f4f9f8;
  --card: #ffffff;
  --ok: #0f9d58;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(5, 54, 50, 0.08);
  --shadow-sm: 0 2px 10px rgba(5, 54, 50, 0.06);
  --wrap: 1200px;
}

* { box-sizing: border-box; }

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

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

a { color: var(--navy-3); text-decoration: none; }
a:hover { color: var(--orange-dark); }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: var(--navy);
  color: #d0e2e0;
  font-size: 13px;
  line-height: 40px;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar a { color: #d0e2e0; }
.topbar a:hover { color: #fff; }
.topbar .tb-left { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar .tb-right { display: flex; gap: 18px; }
.topbar strong { color: #fff; font-weight: 600; }

/* ---------- 头部导航 ---------- */
.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(5, 54, 50, 0.04);
}
.header .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }

.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 19px; letter-spacing: -0.5px;
  box-shadow: inset 0 -2px 6px rgba(0,0,0,.18);
}
.logo-text b { display: block; font-size: 20px; color: var(--navy); letter-spacing: 1px; line-height: 1.2; }
.logo-text span { display: block; font-size: 11px; color: var(--muted); letter-spacing: 2.4px; text-transform: uppercase; }

/* 菜单按钮默认隐藏，只在移动端（820px 以下）显示 */
.nav-toggle { display: none; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav > a {
  position: relative;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.nav > a:hover { background: #edf5f4; color: var(--navy); }
.nav > a.active { color: var(--orange-dark); }
.nav > a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 3px; border-radius: 3px; background: var(--orange);
}

.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.header-phone { text-align: right; line-height: 1.25; }
.header-phone small { display: block; font-size: 11px; color: var(--muted); }
.header-phone b { font-size: 19px; color: var(--navy); letter-spacing: 0.5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px;
  background: var(--orange-strong); color: #fff; font-weight: 700; font-size: 15px;
  border: 0; cursor: pointer; box-shadow: 0 6px 16px rgba(249, 115, 22, 0.28);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #9a3412; color: #fff; transform: translateY(-1px); }
.btn.ghost {
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35);
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(255,255,255,.2); }
.btn.line { background: #fff; color: var(--navy); border: 1px solid var(--line); box-shadow: none; }
.btn.line:hover { border-color: var(--navy-3); }

/* ---------- 英雄区 ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 380px at 78% -12%, rgba(19, 101, 94, .55), transparent 62%),
    linear-gradient(135deg, #032522 0%, #053632 46%, #0b4f4a 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(115deg, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(65deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px, 84px 84px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 85%);
  pointer-events: none;
}
.hero .wrap { position: relative; padding: 58px 20px 54px; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 1px; color: #94cac6;
  border: 1px solid rgba(148, 202, 198,.35); border-radius: 999px;
  padding: 5px 14px; margin-bottom: 18px;
}
.hero h1 {
  margin: 0 0 14px; font-size: 40px; line-height: 1.24; letter-spacing: -0.5px; font-weight: 800;
}
.hero h1 em { font-style: normal; color: #ffb27a; }
.hero p.sub { margin: 0 0 22px; font-size: 16px; color: #cadedd; max-width: 720px; }
.hero .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .hero-phone { color: #daeae9; font-size: 14px; }
.hero .hero-phone b { font-size: 22px; color: #fff; letter-spacing: .5px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 34px;
}
.hero-stats .hs {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: 14px 16px;
  backdrop-filter: blur(4px);
}
.hero-stats .hs b { display: block; font-size: 24px; color: #fff; line-height: 1.2; }
.hero-stats .hs span { font-size: 12.5px; color: #a8cac7; }

/* 面包屑 */
.crumb { background: #fff; border-bottom: 1px solid var(--line); font-size: 13px; }
.crumb .wrap { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 11px 20px; color: var(--muted); }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--orange-dark); }
.crumb .sep { color: #bed1cf; }

/* ---------- 版面 ---------- */
.main { padding: 34px 0 56px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.layout.single { grid-template-columns: minmax(0, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.card > h2, .sec-title {
  position: relative;
  margin: 0 0 16px;
  padding-left: 14px;
  font-size: 21px;
  line-height: 1.45;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -.2px;
}
.card > h2::before, .sec-title::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--orange), #fbbf24);
}
.card h3 { font-size: 16.5px; color: var(--navy); margin: 22px 0 8px; }
.card p { margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }
.card ul, .card ol { margin: 6px 0 12px; padding-left: 22px; }
.card li { margin: 5px 0; }

.lead {
  font-size: 16px;
  color: var(--text);
  background: linear-gradient(180deg, #f0f7f6 0%, #f8fbfb 100%);
  border: 1px solid #daeae9;
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 0 18px;
}

/* 关键数据条 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 20px; }
.stats .st {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.stats .st span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.stats .st b { font-size: 18px; color: var(--navy); font-weight: 800; letter-spacing: -.2px; }

/* 表格 */
.table-wrap { overflow-x: auto; margin: 14px 0 6px; border-radius: 10px; border: 1px solid var(--line); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
table.tbl th {
  background: #edf5f4; color: var(--navy); text-align: left;
  padding: 11px 14px; font-weight: 700; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
table.tbl td { padding: 11px 14px; border-bottom: 1px solid #eff5f4; vertical-align: top; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:nth-child(even) { background: #fcfdfd; }
table.tbl td:first-child { color: var(--ink); font-weight: 600; }
.tbl-note { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 2px 0;
}
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 15px 2px; font-weight: 700; color: var(--ink); font-size: 15.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q"; flex: none;
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 800;
  display: grid; place-items: center; margin-top: 3px;
}
.faq summary::after {
  content: "+"; margin-left: auto; color: var(--orange); font-size: 20px; font-weight: 700; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { color: var(--navy); }
.faq .faq-a { padding: 0 0 16px 34px; color: var(--text); }

/* 卡片网格 */
.grid { display: grid; gap: 12px; }
.grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tile {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, transform .15s ease;
}
.tile:hover { border-color: #bdd7d5; transform: translateY(-2px); }
.tile b { display: block; color: var(--navy); font-size: 15.5px; margin-bottom: 4px; }
.tile span { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.tile .num { font-size: 12px; color: var(--orange-dark); font-weight: 700; letter-spacing: .5px; }

/* 省-市 链接块 */
.region-block { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 12px; overflow: hidden; }
.region-block > .rb-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: #f7fafa; border-bottom: 1px solid var(--line);
}
.region-block > .rb-head b { color: var(--navy); font-size: 15px; }
.region-block > .rb-head span { color: var(--muted); font-size: 12px; }
.region-block .rb-body { padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  background: #f1f7f6; border: 1px solid #e1eeed; color: #275652; font-size: 13px;
}
.chip:hover { background: #fff3e8; border-color: #ffd0a8; color: var(--orange-dark); }

/* 线路链接列表（紧凑双列） */
.link-cols { columns: 2; column-gap: 26px; margin: 4px 0 0; }
.link-cols a {
  display: block; padding: 5px 0; font-size: 13.5px; color: #275652;
  border-bottom: 1px dashed #edf3f2; break-inside: avoid;
}
.link-cols a:hover { color: var(--orange-dark); }

/* 侧边栏 */
.aside .card { padding: 20px; }
/* 省份页 / 城市页很长，右侧让联系卡跟随滚动，避免大片留白 */
.aside-sticky { position: sticky; top: 90px; align-self: start; }
@media (max-width: 1080px) { .aside-sticky { position: static; } }
.aside .card h2, .aside .card h3 {
  margin: 0 0 12px; padding-left: 12px; font-size: 16.5px;
}
.aside .quote { text-align: center; }
.aside .quote .tel {
  display: block; font-size: 26px; font-weight: 800; color: var(--navy);
  letter-spacing: .5px; margin: 4px 0 2px;
}
.aside .quote small { color: var(--muted); font-size: 12.5px; }
.aside .quote .btn { width: 100%; margin-top: 12px; }
.aside .kv { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.aside .kv:last-child { border-bottom: 0; }
.aside .kv .k { color: var(--muted); flex: none; width: 68px; }
.aside .kv .v { color: var(--ink); }

/* 优势条 */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 20px; }
.promises .pm {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px;
  border-top: 3px solid var(--orange);
}
.promises .pm b { display: block; color: var(--navy); font-size: 15.5px; margin-bottom: 6px; }
.promises .pm span { color: var(--muted); font-size: 13px; line-height: 1.65; }

/* 流程 */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; counter-reset: step; }
.flow .fs {
  position: relative; background: #f7fafa; border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 14px 14px;
}
.flow .fs::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -10px; left: 14px;
  width: 24px; height: 24px; border-radius: 7px;
  background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 700;
  display: grid; place-items: center;
}
.flow .fs b { display: block; color: var(--navy); font-size: 14.5px; margin: 6px 0 4px; }
.flow .fs span { color: var(--muted); font-size: 12.5px; line-height: 1.6; }

/* 提示条 */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff8f1; border: 1px solid #ffe0c2; border-radius: 12px;
  padding: 14px 16px; margin: 0 0 18px; font-size: 14px; color: #7c3f11;
}
.notice b { color: var(--orange-dark); }

/* ---------- 文章正文（Markdown 渲染结果） ---------- */
.md-body { counter-reset: mdsec; font-size: 15.5px; line-height: 1.85; color: var(--text); }
.md-body > h2, .md-body .md-h2 {
  position: relative; margin: 26px 0 12px; padding-left: 38px;
  font-size: 20px; color: var(--navy); line-height: 1.45;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
  counter-increment: mdsec;
}
.md-body > h2::before, .md-body .md-h2::before {
  content: counter(mdsec); position: absolute; left: 0; top: 2px;
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--orange-strong);
  color: #fff; font-size: 13px; font-weight: 700;
  display: grid; place-items: center;
}
.md-body h3, .md-body .md-h3 {
  position: relative; margin: 18px 0 8px; padding-left: 14px;
  font-size: 16.5px; color: var(--ink);
}
.md-body h3::before, .md-body .md-h3::before {
  content: ""; position: absolute; left: 0; top: 5px; bottom: 5px;
  width: 3px; border-radius: 3px; background: var(--navy-3);
}
.md-body h4, .md-body .md-h4 { margin: 14px 0 6px; font-size: 15px; color: var(--ink); }
.md-body p, .md-body .md-p { margin: 0 0 12px; }
.md-body ul, .md-body ol { margin: 6px 0 14px; padding-left: 22px; }
.md-body li { margin: 5px 0; }
.md-body a { color: var(--navy-3); border-bottom: 1px solid #d0e2e0; }
.md-body strong { color: var(--ink); }
.md-body code {
  background: #ecf4f4; color: #b93815; padding: 1px 6px; border-radius: 5px;
  font-size: 13px; font-family: ui-monospace, Consolas, monospace;
}
.md-body .md-pre {
  background: #091a19; color: #e1e9e8; padding: 16px 18px; border-radius: 10px;
  overflow-x: auto; font-size: 13px; line-height: 1.7; margin: 0 0 16px;
}
.md-body .md-pre code { background: none; color: inherit; padding: 0; }
.md-body .md-quote {
  margin: 0 0 16px; padding: 12px 16px; border-left: 4px solid #c8d7d6;
  background: #f8fafa; color: #3b5a57; border-radius: 0 8px 8px 0;
}
/* 问答卡片：问题加粗、答案浅灰、左侧橙色竖线 */
.md-body .md-qa {
  margin: 0 0 12px; padding: 14px 16px;
  background: #fffaf5; border: 1px solid #ffe6cf; border-left: 4px solid var(--orange);
  border-radius: 0 10px 10px 0;
}
.md-body .md-qa .md-q { margin: 0 0 6px; font-weight: 700; color: var(--ink); }
.md-body .md-qa .md-a { margin: 0; color: #3b5a57; }
.md-body .md-table-wrap { overflow-x: auto; margin: 0 0 16px; border-radius: 10px; border: 1px solid var(--line); }
.md-body .md-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.md-body .md-table th, .md-body .md-table td { border-bottom: 1px solid #edf3f2; padding: 10px 13px; text-align: left; }
.md-body .md-table th { background: #f2f8f7; color: var(--navy); font-weight: 700; }
.md-body .md-hr { border: 0; border-top: 1px dashed var(--line); margin: 22px 0; }

/* ---------- 页脚上方：栏目/线路 + 客户留言墙 ---------- */
.prefooter {
  background: linear-gradient(180deg, #edf5f4 0%, #f7fafa 100%);
  border-top: 1px solid var(--line);
}
.pf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 34px;
  padding: 36px 0 34px;
}
.pf-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.pf-head h3 {
  position: relative; margin: 0; padding-left: 12px;
  font-size: 16.5px; color: var(--navy);
}
.pf-head h3::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; border-radius: 3px; background: var(--orange);
}
.pf-more { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.pf-more:hover { color: var(--orange-dark); }

/* 最新发布的线路 / 文章列表 */
.pf-list { display: flex; flex-direction: column; min-height: 42px; }
.pf-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed #ddeae9;
}
.pf-item:last-child { border-bottom: 0; }
.pf-item a {
  color: var(--ink); font-size: 13.5px; font-weight: 600; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.pf-item a:hover { color: var(--orange-dark); }
.pf-item .pf-meta { color: var(--muted); font-size: 12px; white-space: nowrap; flex: none; }
.pf-empty {
  margin: 0; padding: 14px 16px; background: #fff; border: 1px dashed #d0e2e0;
  border-radius: 10px; color: var(--muted); font-size: 12.5px; text-align: center;
}
.pf-grid.single { grid-template-columns: 1fr; }

/* 首页「最新发布」卡片（放在首屏下方） */
.home-latest {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px 12px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.hl-head {
  display: flex; align-items: baseline; gap: 10px;
  padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px dashed var(--line);
}
.hl-head h2 { margin: 0; font-size: 17px; color: var(--navy); }
.hl-head span { font-size: 12px; color: var(--muted); }
.hl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.hl-col .pf-head { margin-bottom: 4px; }

@media (max-width: 820px) {
  .hl-grid { grid-template-columns: 1fr; gap: 18px; }
  .home-latest { padding: 16px 16px 10px; }
}

.pf-right .btn { padding: 8px 14px; font-size: 13px; box-shadow: none; }
.wall {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 320px; overflow-y: auto; padding-right: 4px;
}
.wall-empty {
  background: #fff; border: 1px dashed #d0e2e0; border-radius: 10px;
  padding: 18px 16px; text-align: center;
  color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0;
}
.wall-card {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--orange);
  border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow-sm);
}
.wall-card .wc-top {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 11.5px; color: var(--muted); margin-bottom: 5px;
}
.wall-card .wc-q { font-size: 13.2px; color: var(--ink); line-height: 1.65; }
.wall-card .wc-a {
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed #edf3f2;
  font-size: 12.8px; color: #345855; line-height: 1.65;
}
.wall-card .wc-a b { color: var(--navy); }
.wall-tip { margin: 10px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.6; }

/* ---------- 页脚 ---------- */
.footer { background: #03201e; color: #8fbcb9; margin-top: 10px; font-size: 13.5px; }
.footer .f-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px; padding: 44px 0 34px; }
.footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; font-weight: 700; }
.footer a { color: #8fbcb9; display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer .f-brand .logo-text b { color: #fff; }
.footer .f-brand .logo-text span { color: #58a39d; }
.footer .f-brand p { margin: 12px 0 0; line-height: 1.85; color: #7aada9; }
.footer .f-contact div { padding: 4px 0; }
.footer .f-contact b { color: #fff; }
.footer .f-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0 22px; display: flex; flex-wrap: wrap; gap: 8px 18px;
  align-items: center; justify-content: space-between; font-size: 12.5px; color: #58a39d;
}
.footer .f-bottom a { display: inline; color: #58a39d; }
.footer .f-bottom a:hover { color: #fff; }

/* 浮动咨询 */
.float-cta { position: fixed; right: 18px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.float-cta a {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--navy); color: #fff; font-size: 11px; line-height: 1.2;
  box-shadow: 0 8px 22px rgba(5, 54, 50,.3);
}
.float-cta a.hot { background: var(--orange-strong); }
.float-cta a:hover { color: #fff; transform: translateY(-2px); }

/* 发货保障（四省） */
.gsec { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 22px; }
.gcard {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 18px 18px; box-shadow: var(--shadow-sm);
}
.gcard::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), #fbbf24);
}
.gcard .gno {
  width: 32px; height: 32px; border-radius: 9px; margin-bottom: 10px;
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  color: #fff; font-weight: 800; font-size: 15px;
  display: grid; place-items: center;
}
.gcard b { display: block; font-size: 16.5px; color: var(--navy); margin-bottom: 8px; }
.gcard ul { list-style: none; margin: 0; padding: 0; }
.gcard li {
  position: relative; padding-left: 15px;
  font-size: 13px; color: var(--muted); line-height: 1.7;
}
.gcard li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--orange);
}

/* 四大优势 */
.adv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.acard {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy-3);
  border-radius: 12px; padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.acard:nth-child(even) { border-left-color: var(--orange); }
.acard h3 { margin: 0 0 8px; font-size: 17px; color: var(--navy); }
.acard p { margin: 0 0 10px; font-size: 13.8px; color: var(--text); }
.acard ul { list-style: none; margin: 0; padding: 0; }
.acard li {
  position: relative; padding-left: 18px; margin: 5px 0;
  font-size: 13.2px; color: var(--muted); line-height: 1.65;
}
.acard li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--ok); font-weight: 700; font-size: 12px;
}

/* 二维码卡片（侧边栏 / 联系页） */
.qr-box {
  display: flex; gap: 12px; align-items: center;
  margin-top: 14px; padding: 12px;
  background: #f7fafa; border: 1px dashed #d0e2e0; border-radius: 12px;
  text-align: left;
}
.qr-box img { border-radius: 6px; background: #fff; padding: 3px; border: 1px solid var(--line); }
.qr-box .qr-text b { display: block; color: var(--navy); font-size: 14px; margin-bottom: 3px; }
.qr-box .qr-text span { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

.qr-large { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.qr-large img {
  width: 220px; height: auto; border-radius: 10px;
  border: 1px solid var(--line); padding: 6px; background: #fff;
  box-shadow: var(--shadow-sm);
}
.qr-large .qr-meta { flex: 1; min-width: 220px; }
.qr-large .qr-meta b { display: block; font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.qr-large .qr-meta p { color: var(--muted); font-size: 13.5px; margin: 0 0 8px; }

/* 联系信息卡 */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 4px 0 8px; }
.contact-item {
  background: #f7fafa; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px;
}
.contact-item span { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 5px; }
.contact-item b { color: var(--navy); font-size: 16.5px; word-break: break-all; }
.contact-item a { color: var(--navy); }

/* 关于我们：时间线 */
.timeline { border-left: 2px solid #daeae9; margin: 8px 0 4px 6px; padding-left: 20px; }
.timeline .tl { position: relative; padding: 0 0 18px; }
.timeline .tl::before {
  content: ""; position: absolute; left: -27px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--orange);
}
.timeline .tl b { display: block; color: var(--navy); font-size: 15px; margin-bottom: 2px; }
.timeline .tl span { color: var(--muted); font-size: 13.5px; }

/* 移动端 */
/* 导航 8 项时的紧凑排版 */
@media (max-width: 1240px) {
  .header .wrap { gap: 16px; }
  .nav > a { padding: 8px 9px; font-size: 14px; }
  .header-phone b { font-size: 17px; }
}

@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 32px; }
  .promises { grid-template-columns: repeat(2, 1fr); }
  .gsec { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  /* 移动端：隐藏顶部信息条 —— 挤成三行且与底部操作栏重复 */
  .topbar { display: none; }
  /* 移动端：导航收进「菜单」按钮，点开才展开，省出屏幕高度 */
  .header { position: static; }
  .header .wrap { flex-wrap: wrap; gap: 10px; padding: 12px 16px; min-height: 0; position: relative; }

  /* 汉堡按钮：只在移动端出现（PC 端由基础样式 .nav-toggle{display:none} 隐藏） */
  .nav-toggle {
    display: inline-flex !important; align-items: center; gap: 6px;
    margin-left: auto; padding: 8px 14px;
    border: 1px solid var(--line-strong, #d0e2e0); border-radius: 9px;
    background: #fff; color: var(--navy); font-size: 14px; font-weight: 600;
    cursor: pointer; font-family: inherit;
  }
  .nav-toggle i {
    display: block; width: 16px; height: 2px; background: currentColor;
    box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
  }

  /* 收起时隐藏，点开时铺满一行往下推 */
  .nav {
    display: none !important;
    order: 4; width: 100%; flex: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px; padding: 0; overflow: visible;
  }
  .nav.open { display: grid !important; }
  .nav > a {
    text-align: center; padding: 10px 4px; font-size: 13.5px; border-radius: 9px;
    background: #f4f9f8; border: 1px solid var(--line); color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .nav > a.active { background: #fff2e6; border-color: #ffd0a8; color: var(--orange-dark); }
  .nav > a.active::after { display: none; }

  .header-cta { margin-left: 0; }
  .header-cta .btn { display: none; }   /* 底部栏已经有电话，头部不再重复 */
  .header-phone { display: none; }
  .adv-grid { grid-template-columns: 1fr; }
  .hero .wrap { padding: 38px 20px 36px; }
  .hero h1 { font-size: 26px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid.g3, .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .link-cols { columns: 1; }
  .card { padding: 20px 18px; }
  .footer .f-top { grid-template-columns: 1fr 1fr; gap: 22px; padding: 30px 0 24px; }
  .pf-grid { grid-template-columns: 1fr; gap: 24px; padding: 28px 0; }
  .wall { max-height: none; }
}
  .adv-grid { grid-template-columns: 1fr; }
  .hero .wrap { padding: 38px 20px 36px; }
  .hero h1 { font-size: 26px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid.g3, .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .link-cols { columns: 1; }
  .card { padding: 20px 18px; }
  .footer .f-top { grid-template-columns: 1fr 1fr; gap: 22px; padding: 30px 0 24px; }
  .pf-grid { grid-template-columns: 1fr; gap: 24px; padding: 28px 0; }
  .wall { max-height: none; }
}
@media (max-width: 520px) {
  .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: 1fr; }
  .promises { grid-template-columns: 1fr; }
  .gsec { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .topbar .tb-right { display: none; }
  .footer .f-top { grid-template-columns: 1fr; }
}

/* ---------- 移动端底部操作栏 ---------- */
.mbar { display: none; }

/* ---------- 留言弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(3, 32, 30, .58);
  display: none;
}
.modal-mask.open { display: block; }
.lead-modal {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 91;
  background: #fff; border-radius: 18px 18px 0 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0));
  max-height: 90vh; overflow-y: auto;
  display: none;
  box-shadow: 0 -12px 40px rgba(3, 32, 30, .28);
}
.lead-modal.open { display: block; }
.lead-modal h3 { margin: 0 0 4px; font-size: 18px; color: var(--navy); }
.lead-modal .lm-sub { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); }
.lead-modal .lm-close {
  position: absolute; top: 12px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: #ecf4f4; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer;
}
.lf { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lf .fi { display: flex; flex-direction: column; gap: 4px; }
.lf .fi.full { grid-column: 1 / -1; }
.lf label { font-size: 12.5px; color: var(--muted); }
.lf input, .lf textarea, .lf select {
  width: 100%; padding: 10px 12px; border-radius: 9px;
  border: 1px solid var(--line); background: #fcfdfd; color: var(--ink);
  font-size: 14px; font-family: inherit; outline: none;
}
.lf input:focus, .lf textarea:focus, .lf select:focus { border-color: var(--navy-3); background: #fff; }
.lf textarea { resize: vertical; min-height: 68px; }
.lm-actions { display: flex; gap: 10px; margin-top: 14px; }
.lm-actions .btn { flex: 1; }
.lm-actions .btn.line { flex: 0 0 auto; }
.lm-tip { margin: 10px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
/* 蜜罐字段：移出可视区，不占位 */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.lm-result { margin-top: 12px; padding: 10px 12px; border-radius: 9px; font-size: 13px; display: none; }
.lm-result.ok { display: block; background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.lm-result.err { display: block; background: #fff4ed; color: #b93815; border: 1px solid #ffd6ae; }

/* 轻提示 */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  background: rgba(3, 32, 30, .92); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-size: 13px; z-index: 99;
  opacity: 0; transition: opacity .18s ease; pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; }

@media (max-width: 820px) {
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--navy);
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 18px rgba(3, 32, 30, .18);
  }
  .mbar a, .mbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 9px 4px 10px; border: 0; background: transparent;
    color: #fff; font-size: 12px; font-weight: 600; font-family: inherit;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .mbar .mb-icon { font-size: 17px; line-height: 1; }
  .mbar a:active, .mbar button:active { background: rgba(255, 255, 255, .14); }
  .mbar .mb-hot { background: var(--orange-strong); }
  body { padding-bottom: 62px; }
  .float-cta { display: none; }
}

@media (min-width: 821px) {
  .lead-modal {
    left: 50%; right: auto; bottom: auto; top: 50%;
    transform: translate(-50%, -50%);
    width: 540px; border-radius: 16px; padding: 26px 26px 22px;
  }
}

/* 打印时去掉浮动元素 */
@media print {
  .float-cta, .header, .topbar, .footer .f-bottom { display: none; }
}

/* ===== 紧凑线路页（COMPACT 模式）=====
   目的：把每页压到 4096 字节以内，让磁盘从 2 块降到 1 块。
   所有样式集中在这里，页面里不再写内联 style。 */
.lc{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 20px;box-shadow:var(--shadow-sm)}
.lc-h1{margin:0 0 8px;font-size:23px;line-height:1.4;color:var(--navy)}
.lc-lead{margin:0 0 12px;font-size:14.5px;line-height:1.75;color:var(--text)}
.lc-facts{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px;padding:0}
.lc-facts li{flex:1 1 130px;background:#f4f9f8;border:1px solid var(--line);border-radius:8px;padding:8px 10px}
.lc-facts span{display:block;font-size:11.5px;color:var(--muted)}
.lc-facts b{font-size:14.5px;color:var(--navy)}
.lc-intro{margin:0 0 12px;font-size:14px;line-height:1.75;color:#345855}
.lc-tbl{width:100%;border-collapse:collapse;font-size:13px;margin:0 0 12px}
.lc-tbl th{background:#edf5f4;color:var(--navy);text-align:left;padding:7px 10px;font-weight:600}
.lc-tbl td{padding:7px 10px;border-bottom:1px solid #eff5f4}
.lc-tbl tr:last-child td{border-bottom:0}
.lc-faq{border-top:1px solid var(--line);margin:0 0 12px}
.lc-faq details{border-bottom:1px solid var(--line)}
.lc-faq summary{cursor:pointer;padding:9px 0;font-weight:600;font-size:14px;color:var(--ink);list-style:none}
.lc-faq summary::-webkit-details-marker{display:none}
.lc-faq summary::before{content:"Q ";color:var(--orange);font-weight:700}
.lc-faq p{margin:0 0 9px;padding-left:16px;font-size:13.5px;line-height:1.7;color:#3b5a57}
.lc-cta{margin:0 0 6px;font-size:14.5px;font-weight:600}
.lc-cta a{color:var(--navy)}
.lc-links{margin:0;font-size:13px;color:var(--muted)}

/* 极简 Hero 色带（COMPACT 模式线路页）——纯渐变，不加载任何图片 */
.hero-mini{padding:26px 0 24px}
.hero-mini h1{margin:0 0 8px!important;font-size:26px!important;line-height:1.35}
.hero-mini p{margin:0 0 14px;font-size:14px;color:#cadedd}
.hero-mini .hero-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.hero-mini .hero-phone{font-size:13px;color:#daeae9}
/* 精简导航里电话按钮的紧凑样式 */
.cmh-tel{padding:9px 16px!important;font-size:15px!important}

/* 底部栏图标用字符，字号略大以保持可读 */
.mbar .mb-icon{font-size:18px;line-height:1;display:block;margin-bottom:2px}

/* 线路页标题色带：比导航更矮，深蓝渐变，只有标题 —— 不再有按钮，避免"两个导航栏"的错觉 */
.bar{background:linear-gradient(135deg,#032522 0%,#053632 55%,#0b4f4a 100%)!important;color:#fff!important;padding:14px 0;border-bottom:3px solid #f97316}
.bar .wrap{display:flex;align-items:center}
.bar h1{margin:0;font-size:19px;font-weight:700;line-height:1.4;color:#fff!important}
@media(max-width:820px){.bar{padding:12px 0}.bar h1{font-size:16px}}

.bar .wrap{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}
.bar-sub{font-size:13px;color:#a8cac7;font-weight:400}
@media(max-width:820px){.bar .wrap{gap:6px}.bar-sub{display:none}}

/* 精简模式的二级标题与列表 */
.h2s{margin:16px 0 8px;font-size:16px;color:var(--navy)}
.lc-list{margin:0 0 12px;padding-left:18px;font-size:13.5px;line-height:1.85;color:#345855}
.lc-list li{margin:2px 0}

/* ===== 厚线路页（59511 风格）===== */
.lp{font-size:14px;line-height:1.75;color:var(--text)}
.lp-facts{list-style:none;display:flex;flex-wrap:wrap;gap:10px;margin:0 0 18px;padding:0}
.lp-facts li{flex:1 1 140px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 14px;box-shadow:var(--shadow-sm)}
.lp-facts span{display:block;font-size:12px;color:var(--muted);margin-bottom:3px}
.lp-facts b{font-size:16px;color:var(--navy)}
.lp-sec{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px 22px;margin-bottom:16px;box-shadow:var(--shadow-sm)}
.lp-sec h2{position:relative;margin:0 0 14px;padding-left:14px;font-size:18px;color:var(--navy);line-height:1.4}
.lp-sec h2::before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:4px;border-radius:4px;background:linear-gradient(180deg,var(--orange),#fbbf24)}
.lp-sec p{margin:0 0 10px}
.lp-note{margin:8px 0 0!important;padding:8px 12px;background:#f8fafa;border-left:3px solid #c8d7d6;border-radius:0 6px 6px 0;font-size:12.5px;color:var(--muted)}
.lp-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.lp-card{display:block;background:#f7fafa;border:1px solid var(--line);border-radius:10px;padding:12px 14px}
.lp-card b{display:block;color:var(--navy);font-size:14px;margin-bottom:4px}
.lp-card span{display:block;color:var(--muted);font-size:12.5px;line-height:1.65}
.lp-tbl{width:100%;border-collapse:collapse;font-size:13px;border-radius:10px;overflow:hidden}
.lp-tbl th{background:#edf5f4;color:var(--navy);text-align:left;padding:10px 12px;font-weight:600}
.lp-tbl td{padding:9px 12px;border-bottom:1px solid #eff5f4}
.lp-tbl tr:last-child td{border-bottom:0}
.lp-cols{columns:2;column-gap:26px;margin:0;padding-left:18px;font-size:13.5px}
.lp-cols li{margin:4px 0;break-inside:avoid}
.lp-flow{list-style:none;counter-reset:fs;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.lp-flow li{counter-increment:fs;position:relative;background:#f7fafa;border:1px solid var(--line);border-radius:10px;padding:16px 12px 12px}
.lp-flow li::before{content:counter(fs);position:absolute;top:-9px;left:12px;width:22px;height:22px;border-radius:6px;background:var(--navy);color:#fff;font-size:12px;font-weight:700;display:grid;place-items:center}
.lp-flow b{display:block;color:var(--navy);font-size:13.5px;margin:4px 0}
.lp-flow span{font-size:12.5px;color:var(--muted);line-height:1.6}
.lp-nets{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.lp-nets > div{background:#f7fafa;border:1px solid var(--line);border-radius:10px;padding:14px}
.lp-nets b{display:block;color:var(--navy);margin-bottom:6px;font-size:14px}
.lp-nets p{margin:0;font-size:13px;line-height:1.75;color:#345855}
.lp-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.lp-links a{font-size:13px;color:#275652;padding:6px 0;border-bottom:1px dashed #edf3f2}
.lp-links a:hover{color:var(--orange-dark)}
.lp-more{margin:14px 0 0!important;font-size:13px;color:var(--muted)}
@media(max-width:820px){
  .lp-cards,.lp-nets{grid-template-columns:1fr}
  .lp-cols{columns:1}
  .lp-flow{grid-template-columns:repeat(2,1fr)}
  .lp-links{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lp-sec{padding:16px 16px}
}

/* ===== 紧凑页脚（替代原四栏 320px 高布局）===== */
.f-bar{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;padding:16px 0 12px;border-bottom:1px solid rgba(255,255,255,.1)}
.f-logo b{font-size:16px;color:#fff;letter-spacing:.5px;display:block}
.f-logo em{font-style:normal;font-size:11.5px;color:#58a39d;display:block;margin-top:1px}
.f-nav{display:flex;flex-wrap:wrap;gap:4px 16px;flex:1;justify-content:center}
.f-nav a{color:#8fbcb9!important;font-size:13px;padding:2px 0!important;display:inline!important}
.f-nav a:hover{color:#fff!important}
.f-tel{text-align:right;font-size:11.5px;color:#58a39d;line-height:1.5}
.f-tel a{font-size:16px!important;font-weight:700;color:#fff!important;display:block!important;padding:0!important}
.footer .f-bottom{padding:10px 0 16px!important;font-size:12px!important}
.footer .f-bottom span{line-height:1.6}

/* 页脚上方「最新+留言」也压紧：两栏 200px 高 → 约 150px */
.prefooter .pf-grid{padding:22px 0 20px!important;gap:24px!important}
.prefooter .pf-head{margin-bottom:8px!important}
.prefooter .pf-item{padding:6px 0!important}
.prefooter .wall{max-height:200px!important;gap:8px!important}
.prefooter .wall-card{padding:9px 12px!important}
.prefooter .wall-tip{margin-top:8px!important}
.prefooter .pf-empty{padding:10px 12px!important}

@media(max-width:820px){
  .f-bar{gap:10px;padding:14px 0 10px;flex-direction:column;align-items:flex-start}
  .f-nav{justify-content:flex-start;gap:4px 12px}
  .f-nav a{font-size:12.5px}
  .f-tel{text-align:left;display:flex;align-items:center;gap:10px}
  .f-tel a{font-size:15px!important;display:inline!important}
  .footer .f-bottom{flex-direction:column;align-items:flex-start;gap:4px!important}
}
