:root {
  --primary: #2f6fed;
  --primary-dark: #1f4fc0;
  --accent: #ff7a18;
  --accent-dark: #e85f00;
  --bg: #f5f8ff;
  --white: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(47, 111, 237, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px; border-radius: 999px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.28); }

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent; transition: all .25s;
}
.site-header.scrolled { border-bottom: 1px solid var(--border); box-shadow: 0 4px 20px rgba(0,0,0,.05); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--primary); }
.brand-logo { font-size: 24px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text); font-weight: 500; position: relative; padding: 6px 0; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  background: var(--primary); border-radius: 3px;
}
.nav-cta { padding: 9px 18px; font-size: 14px; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #2f6fed 0%, #1f4fc0 60%, #15409e 100%);
  color: #fff; padding: 70px 0 90px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,122,24,.35), transparent 70%); border-radius: 50%;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero-text h1 { font-size: 42px; line-height: 1.25; margin-bottom: 18px; font-weight: 800; }
.hero-sub { font-size: 18px; opacity: .92; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* 查询卡片 */
.track-card {
  background: #fff; color: var(--text); border-radius: 18px; padding: 26px;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.track-card h3 { font-size: 19px; margin-bottom: 6px; }
.track-tip { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.track-form { display: flex; gap: 10px; }
.track-form input {
  flex: 1; padding: 13px 16px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; outline: none;
}
.track-form input:focus { border-color: var(--primary); }
.track-form .btn { padding: 13px 22px; }
.track-msg { margin-top: 12px; font-size: 14px; min-height: 20px; }
.track-msg.ok { color: #16a34a; }
.track-msg.err { color: #dc2626; }

/* Hero 增强 */
.hero-badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4);
  font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.hero-points { list-style: none; display: grid; gap: 10px; margin-top: 26px; }
.hero-points li { font-size: 15px; opacity: .95; }

/* 快速入口卡片（替代原首页搜索框） */
.quick-card {
  background: #fff; color: var(--text); border-radius: 18px; padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.18); display: grid; gap: 12px;
}
.quick-card h3 { font-size: 18px; margin-bottom: 4px; }
.quick-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 12px; transition: all .2s; background: #fff;
}
.quick-item:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(47,111,237,.12); }
.quick-item .qi-icon { font-size: 26px; }
.quick-item b { display: block; font-size: 15px; color: var(--text); }
.quick-item i { font-style: normal; font-size: 12px; color: var(--muted); }

/* 产品介绍预览 */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod-card {
  background: #fff; border-radius: 16px; padding: 28px 22px; text-align: center;
  box-shadow: var(--shadow); transition: all .25s; border: 1px solid transparent;
}
.prod-card:hover { transform: translateY(-6px); border-color: #cfe0ff; }
.prod-icon { font-size: 40px; margin-bottom: 12px; }
.prod-card h4 { font-size: 18px; margin-bottom: 8px; }
.prod-card p { color: var(--muted); font-size: 14px; min-height: 66px; }
.center-cta { text-align: center; margin-top: 36px; }

/* 查询结果 */
.track-result {
  margin-top: 16px; padding: 16px; background: #f3f6ff; border-radius: 12px; border: 1px solid #dfe7ff;
}
.track-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: 14px; margin-bottom: 14px; }
.track-empty { color: var(--muted); font-size: 14px; }
.track-waiting { margin-top: 6px; padding: 12px 14px; background: #eef6ff; border: 1px solid #cfe3ff; border-radius: 8px; color: #2563eb; font-weight: 600; font-size: 15px; }
.status-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.status-tag.tag-completed { color: #16a34a; background: #dcfce7; }
.status-tag.tag-delivering { color: #d97706; background: #fef3c7; }
.status-tag.tag-pickedup { color: #2563eb; background: #dbeafe; }
.status-tag.tag-transit { color: #7c3aed; background: #ede9fe; }
.status-tag.tag-notfound { color: #6b7280; background: #f3f4f6; }
.status-tag.tag-default { color: #374151; background: #f3f4f6; }
.cache-tag { display: inline-block; margin-left: 6px; padding: 0 3px; font-size: 10px; color: #409eff; background: #ecf5ff; border: 1px solid #d9ecff; border-radius: 2px; line-height: 14px; vertical-align: top; }
.track-legend { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
.legend-dot.internal { background: #67c23a; }
.legend-dot.external { background: #409eff; }
.timeline { list-style: none; position: relative; padding-left: 18px; }
.timeline li.internal::before { background: #67c23a; box-shadow: 0 0 0 3px #e1f3d8; }
.timeline li.external::before { background: #409eff; box-shadow: 0 0 0 3px #d9ecff; }
.t-source { display: inline-block; margin-left: 6px; padding: 0 4px; font-size: 10px; border-radius: 2px; line-height: 14px; }
.t-source.internal { color: #67c23a; background: #f0f9eb; border: 1px solid #e1f3d8; }
.t-source.external { color: #409eff; background: #ecf5ff; border: 1px solid #d9ecff; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding: 0 0 16px 14px; }
.timeline li::before {
  content: ""; position: absolute; left: -15px; top: 5px; width: 10px; height: 10px;
  background: var(--primary); border-radius: 50%; box-shadow: 0 0 0 3px #dbe6ff;
}
.timeline .t-time { font-size: 12px; color: var(--muted); }
.timeline .t-desc { font-weight: 600; }

/* ===== 通用 section ===== */
.section { padding: 72px 0; }
.section-alt { background: #eef3ff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* 服务卡片 */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  background: #fff; border-radius: 16px; padding: 28px 22px; text-align: center;
  box-shadow: var(--shadow); transition: all .25s; border: 1px solid transparent;
}
.service-card:hover { transform: translateY(-6px); border-color: #cfe0ff; }
.service-icon { font-size: 40px; margin-bottom: 12px; }
.service-card h4 { font-size: 18px; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 14px; min-height: 44px; }
.card-more { display: inline-block; margin-top: 12px; color: var(--primary); font-size: 14px; font-weight: 600; }

/* 优势 */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  background: #fff; border-radius: 16px; padding: 28px 22px; text-align: center; box-shadow: var(--shadow);
}
.feature-icon { font-size: 38px; margin-bottom: 12px; }
.feature h4 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14px; }

/* ===== 页脚 ===== */
.site-footer { background: #0f1f47; color: #cdd7f0; padding: 48px 0 0; margin-top: 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; }
.site-footer .brand { color: #fff; }
.footer-slogan { margin-top: 10px; font-size: 14px; color: #9fb0d8; }
.footer-contact { min-width: 240px; }
.footer-contact h4 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.footer-contact p { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: #cdd7f0; margin-bottom: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.footer-links a { color: #cdd7f0; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: 13px; color: #8a9bc4; }

/* ===== 子页面通用 ===== */
.page-hero {
  background: linear-gradient(135deg, #2f6fed 0%, #1f4fc0 100%); color: #fff;
  padding: 56px 0; text-align: center;
}
.page-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.page-hero p { font-size: 17px; opacity: .9; }
.page-section { padding: 64px 0; }
.page-section.alt { background: #eef3ff; }

/* 服务详情 */
.svc-detail { display: grid; grid-template-columns: 80px 1fr; gap: 24px; align-items: start;
  background: #fff; border-radius: 16px; padding: 30px; margin-bottom: 22px; box-shadow: var(--shadow); }
.svc-detail .svc-big { font-size: 56px; line-height: 1; }
.svc-detail h3 { font-size: 22px; margin-bottom: 10px; }
.svc-detail p { color: var(--muted); margin-bottom: 12px; }
.svc-detail ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.svc-detail li { background: #eef3ff; color: var(--primary); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }

/* 关于页 */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-grid img { width: 100%; border-radius: 16px; box-shadow: var(--shadow); }
.about-text h2 { font-size: 28px; margin-bottom: 16px; }
.about-text p { color: var(--muted); margin-bottom: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.stat { background: #fff; border-radius: 14px; padding: 24px; text-align: center; box-shadow: var(--shadow); }
.stat .num { font-size: 34px; font-weight: 800; color: var(--primary); }
.stat .lbl { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* 联系页 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info h2 { font-size: 28px; margin-bottom: 14px; }
.contact-info p { color: var(--muted); margin-bottom: 18px; }
.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.6; color: var(--text); }
.contact-list li > span:first-child { font-size: 22px; line-height: 1.2; flex-shrink: 0; }
.contact-list li > span:last-child { flex: 1; word-break: break-word; }
.contact-form { background: #fff; border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; outline: none; font-family: inherit; margin-bottom: 14px;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); }
.contact-form .btn { width: 100%; }

/* 面包屑 */
.crumb { background: #eef3ff; padding: 14px 0; font-size: 14px; color: var(--muted); }
.crumb a { color: var(--primary); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .services-grid, .features-grid, .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .hero-text h1 { font-size: 32px; }
}
@media (max-width: 560px) {
  .services-grid, .features-grid, .stat-grid, .prod-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .track-form { flex-direction: column; }
  .track-form .btn { width: 100%; }
  .track-summary { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
