/* ============================================================
   集航物流 · 官网样式（参考融辉物流的视觉语言）
   主色：品牌红 #C8102E ／ 墨黑 #0D1521 ／ 浅灰底 #F6F7F9
   ============================================================ */

:root {
  --red: #c8102e;
  --red-d: #a10c24;
  --red-l: #e4393c;
  --ink: #0d1521;
  --ink-2: #182233;
  --ink-3: #2b3648;
  --gray: #6b7280;
  --gray-l: #9aa3af;
  --line: #e6e8ec;
  --bg: #f6f7f9;
  --white: #fff;
  --shadow: 0 12px 32px rgba(13, 21, 33, .08);
  --shadow-h: 0 18px 46px rgba(13, 21, 33, .14);
  --r: 14px;
  --max: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
li { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

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

/* ---------- 顶部工具条 ---------- */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  height: 38px;
  display: flex;
  align-items: center;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; }
.topbar-links { display: flex; gap: 22px; }
.topbar-links a { transition: color .2s; }
.topbar-links a:hover { color: #fff; }
.topbar-hot { color: #fff; font-weight: 600; letter-spacing: .5px; }
.topbar-hot span { color: var(--red-l); }

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; height: 76px; gap: 40px; }

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--red-l), var(--red-d));
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(200, 16, 46, .28);
}
.logo-mark svg { width: 23px; height: 23px; }
.logo-txt strong {
  display: block; font-size: 19px; font-weight: 800; letter-spacing: 2px;
  line-height: 1.15;
}
.logo-txt small {
  display: block; font-size: 9px; letter-spacing: 2.4px;
  color: var(--gray-l); text-transform: uppercase; font-weight: 600;
}

.menu { display: flex; gap: 4px; margin-left: auto; }
.menu > li > a {
  display: block; padding: 10px 14px; font-size: 15px; font-weight: 500;
  color: var(--ink-3); border-radius: 8px; position: relative; transition: .2s;
}
.menu > li > a::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 2px;
  background: var(--red); transition: .25s; transform: translateX(-50%);
}
.menu > li > a:hover { color: var(--red); }
.menu > li > a:hover::after,
.menu > li > a.on::after { width: 18px; }
.menu > li > a.on { color: var(--red); font-weight: 600; }

.nav-cta {
  display: flex; gap: 10px; align-items: center; flex-shrink: 0;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 42px; padding: 0 20px; border-radius: 999px; font-size: 14px;
  font-weight: 600; border: 1px solid transparent; cursor: pointer;
  transition: .22s; white-space: nowrap;
}
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(200, 16, 46, .26); }
.btn-red:hover { background: var(--red-d); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink-2); background: #fff; }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-lg { height: 52px; padding: 0 30px; font-size: 16px; }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: #f3f4f6; }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink);
  margin: 3px auto; transition: .2s; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(900px 480px at 78% 18%, rgba(200, 16, 46, .38), transparent 62%),
    radial-gradient(700px 420px at 12% 82%, rgba(28, 78, 156, .34), transparent 60%),
    linear-gradient(160deg, #0b1220 0%, #131e30 46%, #0b1220 100%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(720px 520px at 30% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(720px 520px at 30% 40%, #000 20%, transparent 78%);
}
.hero-road {
  position: absolute; right: -4%; bottom: -6%; width: 62%; opacity: .5;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 40px; }
.hero-inner { max-width: 720px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  font-size: 12.5px; letter-spacing: 1px; color: rgba(255, 255, 255, .84);
  background: rgba(255, 255, 255, .06); margin-bottom: 26px;
}
.hero-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--red-l);
  box-shadow: 0 0 0 4px rgba(228, 57, 60, .22); }

.hero h1 {
  font-size: 58px; line-height: 1.16; font-weight: 800; letter-spacing: 2px;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: #ff5a5f; }
.hero .sub {
  font-size: 17px; color: rgba(255, 255, 255, .74); max-width: 560px;
  margin-bottom: 34px; letter-spacing: .4px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

/* 运单查询卡 */
.query-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px; padding: 20px 22px;
  backdrop-filter: blur(10px);
  max-width: 640px;
}
.query-card .qc-title {
  font-size: 13px; letter-spacing: 2px; color: rgba(255, 255, 255, .62);
  margin-bottom: 12px;
}
.query-row { display: flex; gap: 10px; }
.query-row input {
  flex: 1; height: 50px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .96); padding: 0 16px; font-size: 15px; color: var(--ink);
  outline: none; transition: .2s;
}
.query-row input:focus { border-color: var(--red-l); box-shadow: 0 0 0 3px rgba(228, 57, 60, .18); }
.query-row button { height: 50px; padding: 0 26px; border-radius: 12px; }
.query-hint { font-size: 12.5px; color: rgba(255, 255, 255, .5); margin-top: 10px; }
/* 首屏内的查询结果面板（深底上的白卡） */
#trackResult {
  display: none; margin-top: 18px; background: #fff; color: var(--ink);
  border-radius: 14px; padding: 22px 24px; text-align: left;
}
#trackResult .result-empty { background: #f6f7f9; }
.query-hint a { color: rgba(255, 255, 255, .78); border-bottom: 1px dashed rgba(255,255,255,.35); }

/* 首屏三个快捷入口 */
.quick {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(255, 255, 255, .14); border-radius: 14px; overflow: hidden;
  margin-top: 34px; max-width: 640px;
}
.quick a {
  background: rgba(13, 21, 33, .55); padding: 18px 20px; display: flex; gap: 12px;
  align-items: center; transition: .22s;
}
.quick a:hover { background: rgba(200, 16, 46, .9); }
.quick svg { width: 26px; height: 26px; flex-shrink: 0; opacity: .92; }
.quick b { display: block; font-size: 14.5px; font-weight: 600; }
.quick span { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .6); }
.quick a:hover span { color: rgba(255, 255, 255, .85); }

/* ---------- 数据条 ---------- */
.stats { background: var(--ink-2); color: #fff; padding: 42px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { display: block; font-size: 40px; font-weight: 800; letter-spacing: 1px; line-height: 1.2; }
.stat b i { font-style: normal; color: var(--red-l); font-size: 26px; margin-left: 2px; }
.stat span { font-size: 13.5px; color: rgba(255, 255, 255, .6); letter-spacing: 2px; }

/* ---------- 通用区块 ---------- */
.section { padding: 92px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 4px;
  color: var(--red); text-transform: uppercase; margin-bottom: 14px;
}
.section-head h2 {
  font-size: 38px; font-weight: 800; letter-spacing: 6px; line-height: 1.3;
}
.section-head p {
  margin-top: 14px; color: var(--gray); font-size: 15.5px; max-width: 720px;
  margin-left: auto; margin-right: auto;
}
.section-head.left { text-align: left; }
.section-head.left h2 { letter-spacing: 3px; }

/* ---------- 主营产品 ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 26px 28px; overflow: hidden; transition: .28s;
}
.prod::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-l));
  transform: scaleX(0); transform-origin: left; transition: .3s;
}
.prod:hover { transform: translateY(-5px); box-shadow: var(--shadow-h); border-color: transparent; }
.prod:hover::after { transform: scaleX(1); }
.prod-ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(200, 16, 46, .07); color: var(--red); margin-bottom: 18px;
}
.prod-ico svg { width: 26px; height: 26px; }
.prod h3 { font-size: 20px; font-weight: 700; letter-spacing: .6px; margin-bottom: 6px; }
.prod .tag {
  display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--red);
  background: rgba(200, 16, 46, .07); padding: 2px 9px; border-radius: 999px; margin-bottom: 12px;
}
.prod p { font-size: 14px; color: var(--gray); line-height: 1.75; }
.prod .more {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 16px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-3);
}
.prod:hover .more { color: var(--red); }

/* ---------- 服务优势 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.adv {
  display: flex; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px 24px; transition: .26s;
}
.adv:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.adv-ico {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; display: grid;
  place-items: center; background: var(--ink); color: #fff;
}
.adv-ico svg { width: 23px; height: 23px; }
.adv h4 { font-size: 16.5px; font-weight: 700; margin-bottom: 5px; }
.adv p { font-size: 13.5px; color: var(--gray); line-height: 1.7; }

/* ---------- 增值服务（8 项） ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 18px; transition: .22s;
}
.value:hover { border-color: rgba(200, 16, 46, .35); background: #fffafa; }
.value b { display: block; font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.value span { font-size: 13px; color: var(--gray); line-height: 1.65; display: block; }

/* ---------- 线路时效表 ---------- */
.line-table { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.line-table table { width: 100%; border-collapse: collapse; }
.line-table th, .line-table td { padding: 16px 20px; text-align: left; font-size: 14.5px; }
.line-table thead th {
  background: var(--ink); color: rgba(255, 255, 255, .9); font-weight: 600;
  font-size: 13.5px; letter-spacing: 1.5px;
}
.line-table tbody tr { border-top: 1px solid var(--line); transition: .18s; }
.line-table tbody tr:hover { background: #fbfbfc; }
.line-table td b { font-weight: 700; }
.line-table .hot { color: var(--red); font-weight: 700; }
.line-table .badge {
  display: inline-block; font-size: 11.5px; padding: 1px 8px; border-radius: 999px;
  background: rgba(16, 185, 129, .1); color: #0f9d6a; font-weight: 600;
}

/* ---------- 资讯 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: .28s; display: flex; flex-direction: column;
}
.news:hover { transform: translateY(-5px); box-shadow: var(--shadow-h); }
.news-thumb {
  height: 190px; position: relative; display: grid; place-items: center;
  background: linear-gradient(135deg, #1a2436, #0d1521); color: rgba(255,255,255,.28);
}
.news-thumb::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(115deg, transparent 42%, rgba(200, 16, 46, .45) 100%);
}
.news-thumb svg { width: 46px; height: 46px; position: relative; z-index: 1; }
.news-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.news-date { font-size: 12.5px; color: var(--gray-l); letter-spacing: 1px; margin-bottom: 8px; }
.news h4 { font-size: 16.5px; font-weight: 700; line-height: 1.55; margin-bottom: 8px; }
.news p { font-size: 13.5px; color: var(--gray); flex: 1; }

/* ---------- 加盟 CTA ---------- */
.cta {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, var(--red-d) 0%, var(--red) 55%, #e04a2f 100%);
}
.cta::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 420px; height: 420px;
  border: 60px solid rgba(255, 255, 255, .07); border-radius: 50%;
}
.cta .wrap { position: relative; z-index: 1; padding: 66px 24px; display: flex;
  align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta h3 { font-size: 32px; font-weight: 800; letter-spacing: 3px; margin-bottom: 10px; }
.cta p { color: rgba(255, 255, 255, .82); font-size: 15px; max-width: 620px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .62); padding: 62px 0 0; font-size: 13.5px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 46px; }
.foot-brand .logo-txt strong { color: #fff; }
.foot-brand p { margin-top: 18px; line-height: 1.85; max-width: 320px; }
.foot-brand .hot { color: #fff; font-size: 22px; font-weight: 800; letter-spacing: 1px; margin-top: 20px; }
.foot-brand .hot small { font-size: 12px; font-weight: 400; color: rgba(255,255,255,.5); letter-spacing: 2px; display: block; }
.footer h5 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 18px; letter-spacing: 1px; }
.footer li { margin-bottom: 11px; }
.footer li a:hover { color: #fff; }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0 26px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255, 255, 255, .42);
}

/* ---------- 子页：内页头图 ---------- */
.page-head {
  background: linear-gradient(150deg, #0b1220, #16223a 70%, #0b1220);
  color: #fff; padding: 74px 0 66px; position: relative; overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--red), transparent 70%);
}
.page-head h1 { font-size: 40px; font-weight: 800; letter-spacing: 5px; }
.page-head p { color: rgba(255, 255, 255, .6); margin-top: 12px; font-size: 15px; letter-spacing: .5px; }
.crumb { font-size: 12.5px; color: rgba(255, 255, 255, .45); margin-bottom: 16px; letter-spacing: 1px; }
.crumb a:hover { color: #fff; }

/* ---------- 网点/时效 查询页 ---------- */
.tool-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px; box-shadow: var(--shadow); margin-top: -44px; position: relative; z-index: 2;
}
.tool-tabs { display: flex; gap: 8px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.tool-tabs button {
  background: none; border: 0; padding: 10px 18px; font-size: 15px; font-weight: 600;
  color: var(--gray); cursor: pointer; position: relative;
}
.tool-tabs button.on { color: var(--red); }
.tool-tabs button.on::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--red);
}
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 14px; align-items: end; }
.field label { display: block; font-size: 13px; color: var(--gray); margin-bottom: 7px; }
.field input, .field select {
  width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 14px; outline: none; background: #fff; transition: .2s;
}
.field input:focus, .field select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,.09); }

.result { margin-top: 26px; }
.result-empty { color: var(--gray); font-size: 14px; padding: 26px; text-align: center;
  background: var(--bg); border-radius: 12px; }

.timeline { border-left: 2px solid var(--line); margin-left: 8px; padding-left: 26px; }
.tl-item { position: relative; padding-bottom: 24px; }
.tl-item::before {
  content: ""; position: absolute; left: -34px; top: 5px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 2px solid var(--line);
}
.tl-item:first-child::before { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 4px rgba(200,16,46,.12); }
.tl-item b { font-size: 14.5px; }
.tl-item span { display: block; font-size: 13px; color: var(--gray); }
.tl-item .t { font-size: 12.5px; color: var(--gray-l); letter-spacing: .5px; }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-text h2 { font-size: 34px; font-weight: 800; letter-spacing: 3px; margin-bottom: 20px; }
.about-text p { color: #4b5563; font-size: 15.5px; margin-bottom: 16px; line-height: 1.9; }
.about-nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.about-num {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px;
}
.about-num b { display: block; font-size: 30px; font-weight: 800; color: var(--red); }
.about-num span { font-size: 13px; color: var(--gray); }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.contact-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.contact-card p { color: var(--gray); font-size: 14px; }
.contact-card b { color: var(--ink); font-size: 18px; letter-spacing: .5px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero h1 { font-size: 44px; }
  .menu { display: none; }
  .burger { display: block; margin-left: auto; }
  .nav .wrap { gap: 16px; }
  .nav.mobile-open .menu {
    display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px 18px; gap: 2px;
  }
  .nav.mobile-open .menu > li > a { padding: 12px 10px; }
}
@media (max-width: 720px) {
  .topbar { display: none; }
  .hero { min-height: auto; padding: 44px 0; }
  .hero h1 { font-size: 32px; letter-spacing: 1px; }
  .hero .sub { font-size: 14.5px; }
  .hero-actions { margin-bottom: 30px; }
  .query-row { flex-direction: column; }
  .quick { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .stat b { font-size: 30px; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 26px; letter-spacing: 3px; }
  .prod-grid, .adv-grid, .value-grid, .news-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta .wrap { padding: 48px 24px; }
  .cta h3 { font-size: 24px; }
  .page-head h1 { font-size: 28px; letter-spacing: 3px; }
  .line-table { overflow-x: auto; }
  .line-table table { min-width: 640px; }
  .nav-cta .btn-ghost { display: none; }
}

/* 入场动画 */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
