/* ==========================================================================
   邮寄侠 前台样式（移动优先，断点 ≤640 / 641-1024 / ≥1025）
   ========================================================================== */
:root {
  --brand-red: #E60012;
  --brand-red-dark: #C50010;
  --brand-red-bg: #FDE8E8;
  --cta-green: #07C160;
  --cta-green-dark: #06AD56;
  --ink: #1F2937;
  --muted: #6B7280;
  --line: #E5E7EB;
  --bg: #F3F4F6;
  --bg-soft: #F7F8FA;
  --footer-bg: #16202E;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(17, 24, 39, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 15px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
.muted { color: var(--muted); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 900px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 6px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  transition: background .2s;
}
.btn-red { background: var(--brand-red); }
.btn-red:hover { background: var(--brand-red-dark); }
.btn-green { background: var(--cta-green); }
.btn-green:hover { background: var(--cta-green-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-lg { padding: 13px 28px; font-size: 16px; border-radius: 8px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-mark {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--brand-red);
  color: #fff;
  border-radius: 7px;
  font-size: 17px;
  font-weight: 700;
}
.brand-text {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-toggle {
  margin-left: auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: none; border: 0;
  cursor: pointer;
  padding: 0;
}
.nav-toggle img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.site-nav { display: none; }
body.nav-open .site-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 10px 16px 16px;
  box-shadow: 0 12px 24px rgba(17, 24, 39, .08);
}
.nav-link { padding: 10px 12px; border-radius: 6px; font-size: 15px; color: var(--ink); }
.nav-link.active { color: var(--brand-red); background: var(--brand-red-bg); font-weight: 700; }
.nav-search { display: flex; margin-top: 6px; }
.nav-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  padding: 9px 12px;
  font-size: 14px;
  outline: none;
}
.nav-search input:focus { border-color: var(--brand-red); }
.nav-search button {
  width: 44px;
  border: 0;
  border-radius: 0 6px 6px 0;
  background: var(--brand-red);
  color: #fff;
  display: grid; place-items: center;
}
.nav-cta { margin-top: 8px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(110deg, #E60012 0%, #B01236 42%, #182A52 100%);
  color: #fff;
  padding: 56px 0 64px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
}
.hero h1 {
  margin: 18px 0 14px;
  font-size: 26px;
  line-height: 1.45;
  max-width: 640px;
}
.hero-desc { color: rgba(255, 255, 255, .86); font-size: 14px; max-width: 620px; margin-bottom: 26px; }

/* ---------- 通用区块 ---------- */
.section { padding: 44px 0; }
.section-gray { background: var(--bg-soft); }
.section-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
}
.section-more { text-align: center; margin-top: 22px; }
.more-link { color: var(--brand-red); font-size: 14px; font-weight: 600; }
.more-link:hover { text-decoration: underline; }

.grid-4, .grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }

/* 核心优势 / 服务流程卡片 */
.adv-card, .step-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 20px;
  text-align: center;
}
.adv-icon {
  width: 46px; height: 46px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  background: var(--brand-red);
  color: #fff;
  border-radius: 50%;
  font-size: 19px;
}
.adv-card h3, .step-card h3 { font-size: 16px; margin-bottom: 8px; }
.adv-card p, .step-card p { color: var(--muted); font-size: 13px; }
.step-num {
  width: 40px; height: 40px;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  background: var(--cta-green);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
}

/* 用户评价 */
.quote-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quote-card p { color: #4B5563; font-size: 13.5px; flex: 1; }
.quote-card footer { display: flex; align-items: baseline; gap: 8px; }
.quote-card footer strong { font-size: 14px; }
.quote-card footer span { color: var(--muted); font-size: 12.5px; }

/* 新闻动态（首页摘要） */
.news-mini {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.news-mini h3 { font-size: 15.5px; line-height: 1.5; margin-bottom: 8px; }
.news-mini:hover h3 { color: var(--brand-red); }
.news-mini p { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.news-mini time { color: var(--muted); font-size: 12.5px; }

/* 标签云 / 标签 pills */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag-pill {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
  padding: 5px 14px;
  transition: all .2s;
}
.tag-pill:hover { color: var(--brand-red); border-color: var(--brand-red); }

/* FAQ 折叠 */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 14px 18px;
  text-align: left;
  min-height: 44px;
}
.faq-q .qn { color: var(--cta-green); font-weight: 700; font-size: 14px; flex: none; }
.faq-q .qt { flex: 1; font-weight: 600; font-size: 14.5px; }
.faq-q .caret {
  flex: none;
  width: 9px; height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .2s;
}
.faq-item.open .caret { transform: rotate(-135deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  color: var(--muted);
  font-size: 13.5px;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-a {
  max-height: 800px;
  padding: 0 18px 16px;
}

/* 关于我们 */
.about-text p { color: #4B5563; font-size: 14px; margin-bottom: 14px; text-align: justify; }

/* ---------- 数据带 ---------- */
.stats-band { background: var(--brand-red); color: #fff; padding: 34px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; text-align: center; }
.stat strong { display: block; font-size: 26px; font-weight: 800; }
.stat span { font-size: 12.5px; color: rgba(255, 255, 255, .88); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--footer-bg); color: #D1D5DB; }
.footer-grid { display: grid; gap: 28px; padding: 44px 16px 34px; grid-template-columns: 1fr; }
.footer-col h3 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.footer-col h4 { color: #fff; font-size: 14.5px; margin-bottom: 12px; }
.footer-col p { font-size: 13px; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-qr { background: #fff; border-radius: 8px; padding: 6px; margin-top: 12px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0; text-align: center; }
.footer-bottom p { font-size: 12.5px; color: #9CA3AF; margin: 2px 0; word-break: break-all; }
.footer-bottom a { color: #9CA3AF; text-decoration: underline; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 列表页 ---------- */
.page-head { padding: 22px 0 6px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.crumbs a:hover { color: var(--brand-red); }
.crumbs em { font-style: normal; color: var(--ink); }
.page-title { font-size: 24px; font-weight: 700; position: relative; padding-bottom: 12px; }
.page-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 46px; height: 3px;
  background: var(--brand-red);
  border-radius: 2px;
}
.list-section { padding-top: 22px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.pill {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  padding: 6px 16px;
  transition: all .2s;
}
.pill:hover { color: var(--brand-red); border-color: var(--brand-red); }
.pill.active { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
.search-note { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.empty { color: var(--muted); text-align: center; padding: 60px 0; }

.news-list { display: grid; gap: 16px; }
.news-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  transition: box-shadow .2s;
}
.news-item:hover { box-shadow: 0 6px 18px rgba(17, 24, 39, .08); }
.news-thumb { flex: none; }
.news-thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.news-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.news-title { font-size: 16.5px; line-height: 1.5; font-weight: 700; }
.news-title a:hover { color: var(--brand-red); }
.news-summary {
  color: var(--muted);
  font-size: 13.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.news-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.news-foot time { color: var(--muted); font-size: 12.5px; }

/* 分页 */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 30px; }
.page-btn {
  min-width: 36px; height: 36px;
  padding: 0 8px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--ink);
}
.page-btn:hover { color: var(--brand-red); border-color: var(--brand-red); }
.page-btn.active { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
.page-btn.disabled { color: #C7CBD1; pointer-events: none; }
.page-ellipsis { display: grid; place-items: center; min-width: 24px; color: var(--muted); }

/* ---------- 详情页 ---------- */
.detail-section { padding-top: 22px; }
.detail-cover { margin: 18px 0 22px; }
.detail-cover img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 18px; color: var(--muted); font-size: 13px; }
.detail-lead { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.article-content { font-size: 15px; color: #374151; }
.article-content h2 {
  font-size: 19px;
  border-left: 4px solid var(--brand-red);
  padding-left: 10px;
  margin: 30px 0 12px;
  line-height: 1.5;
}
.article-content h3 { font-size: 16.5px; margin: 22px 0 10px; }
.article-content p { margin: 10px 0; line-height: 1.95; }
.article-content ul, .article-content ol { padding-left: 22px; margin: 10px 0; list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin: 6px 0; line-height: 1.85; }
.article-content img { margin: 14px auto; border-radius: 6px; }
.article-content blockquote {
  border-left: 4px solid var(--line);
  background: var(--bg-soft);
  padding: 10px 16px;
  margin: 14px 0;
  color: var(--muted);
  border-radius: 0 6px 6px 0;
}
.article-content a { color: var(--brand-red); }
.article-content strong { color: var(--ink); }
.article-content table { border-collapse: collapse; width: 100%; margin: 14px 0; }
.article-content td, .article-content th { border: 1px solid var(--line); padding: 8px 10px; font-size: 13.5px; }

.prev-next { display: grid; gap: 12px; margin-top: 36px; grid-template-columns: 1fr; }
.pn-box { background: var(--bg-soft); border-radius: var(--radius); padding: 14px 16px; font-size: 13.5px; }
.pn-label { color: var(--muted); }
.pn-box a { color: var(--brand-red); }
.pn-box a:hover { text-decoration: underline; }

/* ---------- 寄件服务页 ---------- */
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 34px 22px;
  text-align: center;
}
.service-qr { margin: 0 auto 20px; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fff; }
.service-card h2 { font-size: 19px; margin-bottom: 18px; }
.service-points { text-align: left; max-width: 560px; margin: 0 auto 18px; display: grid; gap: 10px; }
.service-points li { font-size: 14px; color: #4B5563; padding-left: 18px; position: relative; }
.service-points li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--cta-green); }

/* ---------- 404 ---------- */
.error-section { text-align: center; padding: 80px 0; }
.error-code { font-size: 64px; font-weight: 800; color: var(--brand-red); line-height: 1; }
.error-section h1 { font-size: 22px; margin: 14px 0 8px; }
.error-section p { margin-bottom: 18px; }

/* ==========================================================================
   平板 ≥641px
   ========================================================================== */
@media (min-width: 641px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .prev-next { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 32px; }
  .news-item { flex-direction: row; padding: 16px; }
  .news-thumb { width: 210px; }
  .news-thumb img { width: 210px; height: 140px; aspect-ratio: auto; }
}

/* ==========================================================================
   桌面 ≥1025px
   ========================================================================== */
@media (min-width: 1025px) {
  .header-inner { min-height: 64px; }
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
  }
  .nav-link { padding: 8px 14px; }
  .nav-search { margin: 0 0 0 10px; width: 220px; }
  .nav-cta { margin: 0 0 0 8px; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr; }
  .hero { padding: 84px 0 96px; }
  .hero h1 { font-size: 38px; }
  .section { padding: 60px 0; }
  .news-thumb { width: 240px; }
  .news-thumb img { width: 240px; height: 160px; }
}
