/* ============ 锐闻速递 全站样式 ============ */
:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --text: #222831;
  --text-2: #5c6470;
  --text-3: #98a0ab;
  --bg: #f5f6f8;
  --card: #ffffff;
  --border: #e8eaee;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(20, 30, 40, .06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol, li { list-style: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- 顶部 ---------- */
.site-header { background: var(--card); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-badge {
  width: 38px; height: 38px; border-radius: 9px; background: var(--primary);
  color: #fff; font-size: 22px; font-weight: 700; display: flex;
  align-items: center; justify-content: center; font-family: serif;
}
.logo-text { font-size: 21px; font-weight: 700; letter-spacing: 1px; display: flex; flex-direction: column; line-height: 1.15; }
.logo-text small { font-size: 11px; color: var(--text-3); font-weight: 400; letter-spacing: 2px; }
.header-date { color: var(--text-2); font-size: 14px; }
.back-home {
  color: var(--primary); font-size: 14px; border: 1px solid var(--primary);
  padding: 5px 14px; border-radius: 20px; transition: .2s;
}
.back-home:hover { background: var(--primary); color: #fff; }

/* ---------- 分类导航 ---------- */
.cat-nav { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.cat-list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.cat-list::-webkit-scrollbar { display: none; }
.cat-list li {
  padding: 12px 15px; cursor: pointer; color: var(--text-2); font-size: 15px;
  white-space: nowrap; border-bottom: 3px solid transparent; transition: .15s;
}
.cat-list li:hover { color: var(--primary); }
.cat-list li.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }

/* ---------- 主布局 ---------- */
.main-layout { display: flex; gap: 24px; padding-top: 20px; padding-bottom: 30px; }
.content-col { flex: 1; min-width: 0; }
.sidebar { width: 300px; flex-shrink: 0; }

/* ---------- 头条区 ---------- */
.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-bottom: 20px; }
.hero-main {
  display: grid; grid-template-rows: 240px auto; background: var(--card);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.hero-img-wrap { height: 240px; overflow: hidden; background: #eef0f3; }
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.hero-main:hover .hero-img-wrap img { transform: scale(1.04); }
.hero-body { padding: 14px 18px 16px; }
.hero-body h2 { font-size: 19px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-main:hover h2 { color: var(--primary); }
.hero-body p { color: var(--text-2); font-size: 13px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-meta { margin-top: 10px; font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 10px; }
.hero-side { display: flex; flex-direction: column; gap: 14px; }
.hero-item {
  flex: 1; display: flex; gap: 12px; background: var(--card); border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow); align-items: center;
}
.hero-item img { width: 110px; height: 74px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.hero-item h3 { font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-item:hover h3 { color: var(--primary); }
.hero-item .m { font-size: 11px; color: var(--text-3); margin-top: 6px; }

/* ---------- 新闻列表 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: .25s; display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(20, 30, 40, .1); }
.card-cover { height: 158px; overflow: hidden; background: #eef0f3; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 13px 15px 14px; display: flex; flex-direction: column; flex: 1; }
.card-title {
  font-size: 15.5px; font-weight: 600; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card:hover .card-title { color: var(--primary); }
.card-summary {
  color: var(--text-2); font-size: 13px; margin-top: 7px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { margin-top: auto; padding-top: 11px; font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.tag {
  background: #fdecee; color: var(--primary); font-size: 11px;
  padding: 2px 8px; border-radius: 3px; flex-shrink: 0;
}
.card-foot .src { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.end-tip { text-align: center; color: var(--text-3); font-size: 13px; padding: 26px 0 6px; }

/* ---------- 侧栏 ---------- */
.side-box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; }
.side-title { font-size: 16px; padding-left: 10px; border-left: 4px solid var(--primary); line-height: 1.3; margin-bottom: 14px; }
.hot-list { counter-reset: hot; }
.hot-list li { counter-increment: hot; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.hot-list li:last-child { border-bottom: none; }
.hot-list a { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; }
.hot-list a::before {
  content: counter(hot); font-style: italic; font-weight: 700; color: #c8ccd3;
  font-size: 16px; min-width: 20px; font-family: Georgia, serif;
}
.hot-list li:nth-child(-n+3) a::before { color: var(--primary); }
.hot-list a:hover { color: var(--primary); }
.hot-list .h-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-info p { font-size: 13px; color: var(--text-2); }

/* ---------- 详情页 ---------- */
.article-layout { padding-top: 24px; }
.article-box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 34px; }
.art-cate { display: inline-block; background: #fdecee; color: var(--primary); font-size: 13px; padding: 3px 12px; border-radius: 4px; margin-bottom: 12px; }
.art-title { font-size: 26px; line-height: 1.4; font-weight: 700; }
.art-meta { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 13px; margin: 14px 0 6px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.art-meta i { width: 1px; height: 12px; background: var(--border); }
.art-content { padding-top: 20px; font-size: 16.5px; line-height: 1.9; color: #2b3138; word-break: break-word; }
.art-content p { margin-bottom: 18px; text-indent: 0; }
.art-content img { margin: 6px auto 20px; border-radius: 6px; }
.art-disclaimer { margin-top: 26px; padding-top: 16px; border-top: 1px dashed var(--border); color: var(--text-3); font-size: 12.5px; }
.related { margin-top: 20px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 26px; }
.related-list li { border-bottom: 1px dashed var(--border); }
.related-list li:last-child { border-bottom: none; }
.related-list a { display: flex; align-items: center; gap: 14px; padding: 13px 0; }
.related-list img { width: 120px; height: 78px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.related-list .r-t { font-size: 15px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-list a:hover .r-t { color: var(--primary); }
.related-list .m { font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #2b3138; color: #aeb4bd; padding: 26px 0 30px; text-align: center; font-size: 14px; }
.site-footer .tip { font-size: 12px; color: #6d757f; margin-top: 6px; }

/* ---------- 占位图 ---------- */
.img-fallback { background: linear-gradient(135deg, #eceef2, #dfe3e9) !important; }
.img-fallback::after { content: "锐闻速递"; color: #b6bcc5; font-size: 13px; display: flex; align-items: center; justify-content: center; height: 100%; letter-spacing: 2px; }

/* ================= 移动端适配 ================= */
@media (max-width: 960px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .header-inner { height: 54px; }
  .logo-badge { width: 32px; height: 32px; font-size: 19px; border-radius: 8px; }
  .logo-text { font-size: 18px; }
  .logo-text small { display: none; }
  .header-date { display: none; }
  .cat-list li { padding: 10px 13px; font-size: 14px; }

  /* 头条区改单列 */
  .hero { grid-template-columns: 1fr; gap: 10px; }
  .hero-main { grid-template-rows: 190px auto; }
  .hero-img-wrap { height: 190px; }
  .hero-body h2 { font-size: 17px; }
  .hero-side { flex-direction: row; overflow-x: auto; gap: 10px; scrollbar-width: none; }
  .hero-side::-webkit-scrollbar { display: none; }
  .hero-item { flex: 0 0 78%; display: flex; }

  /* 列表改横向卡片（右图） */
  .news-grid { grid-template-columns: 1fr; gap: 10px; }
  .news-card { flex-direction: row-reverse; align-items: center; padding: 10px; gap: 12px; }
  .card-cover { width: 112px; height: 82px; border-radius: 6px; flex-shrink: 0; }
  .card-body { padding: 0; }
  .card-title { font-size: 15px; -webkit-line-clamp: 2; }
  .card-summary { display: none; }
  .card-foot { padding-top: 6px; }
  .end-tip { padding: 18px 0 2px; }

  /* 详情页 */
  .article-box { padding: 20px 16px 24px; }
  .art-title { font-size: 21px; }
  .art-content { font-size: 16px; }
  .related { padding: 16px; }
  .related-list img { width: 96px; height: 64px; }
}
