/* ============================================================
   辣报 SPICY NEWS — Modern Redesign 2026
   Upload to: /assets/css/style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Noto+Sans+SC:wght@400;500;700&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  background: #f7f7f5;
  color: #1a1a1a;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── VARIABLES ── */
:root {
  --red: #e8190c;
  --red-dark: #c0130a;
  --red-light: #fff3f3;
  --black: #1a1a1a;
  --gray-1: #f7f7f5;
  --gray-2: #f0f0ee;
  --gray-3: #e5e5e3;
  --gray-4: #aaaaaa;
  --gray-5: #666666;
  --white: #ffffff;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
  --max-width: 1100px;
}

/* ── TOP BAR ── */
.topbar {
  background: var(--black);
  color: #aaa;
  font-size: 12px;
  padding: 6px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: #aaa; margin-left: 16px; transition: color .15s; }
.topbar a:hover { color: #fff; }

/* ── HEADER ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-3);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 20px;
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 28px; line-height: 1; }
.logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
}
.logo-text .la { color: var(--red); }
.logo-text .bao { color: var(--black); }
.logo-tagline { font-size: 10px; color: var(--gray-4); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 1px; }

/* Navigation */
.site-nav { display: flex; gap: 2px; align-items: center; }
.nav-link {
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-5);
  border-radius: 20px;
  transition: all .15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--red); background: var(--red-light); }
.nav-link.active { background: var(--red); color: var(--white); }

/* Search */
.header-search { display: flex; align-items: center; gap: 8px; }
.search-input {
  border: 1.5px solid var(--gray-3);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  width: 200px;
  font-family: inherit;
  transition: border-color .15s;
  background: var(--gray-1);
}
.search-input:focus { outline: none; border-color: var(--red); background: var(--white); }
.search-btn {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: background .15s;
}
.search-btn:hover { background: var(--red-dark); }

/* ── TICKER ── */
.ticker-bar {
  background: var(--red);
  color: var(--white);
  padding: 8px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker-label {
  background: rgba(0,0,0,0.2);
  padding: 3px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  margin-right: 16px;
  flex-shrink: 0;
  margin-left: 20px;
  border-radius: 10px;
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-content {
  white-space: nowrap;
  font-size: 13px;
  animation: ticker-scroll 35s linear infinite;
  display: inline-block;
}
.ticker-content:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── CONTAINER ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ── HERO SECTION ── */
.hero-section { padding: 24px 0 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  align-items: start;
}
.hero-main {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s;
}
.hero-main:hover { transform: scale(1.005); }
.hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #2a2a3e, #555);
}
.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 22px 22px;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
}
.hero-cat-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  letter-spacing: .5px;
}
.hero-title {
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 8px;
}
.hero-meta { color: rgba(255,255,255,0.55); font-size: 12px; }

/* Hero side stack */
.hero-side { display: flex; flex-direction: column; gap: 10px; }
.side-card {
  display: flex;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--gray-3);
  transition: box-shadow .15s, transform .15s;
}
.side-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.side-thumb {
  width: 90px;
  height: 76px;
  flex-shrink: 0;
  object-fit: cover;
}
.side-thumb-placeholder {
  width: 90px;
  height: 76px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: var(--gray-2);
}
.side-info { padding: 10px 12px; flex: 1; overflow: hidden; }
.side-cat { font-size: 10px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.side-title { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--black); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-date { font-size: 11px; color: var(--gray-4); margin-top: 5px; }

/* ── SECTION HEADER ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-3);
}
.section-dot { width: 4px; height: 22px; background: var(--red); border-radius: 2px; flex-shrink: 0; }
.section-title { font-family: 'Syne', sans-serif; font-size: 19px; font-weight: 800; color: var(--black); }
.section-count { font-size: 12px; color: var(--gray-4); margin-left: auto; }
.section-link { font-size: 13px; color: var(--red); font-weight: 600; }

/* ── NEWS GRID ── */
.news-section { padding-bottom: 32px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* News card */
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--gray-3);
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  display: block;
  background: var(--gray-2);
}
.card-img-placeholder {
  width: 100%;
  height: 165px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: var(--gray-2);
}
.card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.card-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 7px;
}
.card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--black);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-summary {
  font-size: 12px;
  color: var(--gray-5);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--gray-2);
}
.card-date { font-size: 11px; color: var(--gray-4); }
.hot-badge {
  background: var(--red-light);
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

/* ── TWO COL LAYOUT (article page) ── */
.two-col { display: grid; grid-template-columns: 1fr 300px; gap: 28px; padding: 28px 0; }
.main-col {}
.side-col {}

/* ── ARTICLE ── */
.article-header { margin-bottom: 22px; }
.article-cat-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: .5px;
}
.article-title {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--black);
  margin-bottom: 14px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-4);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-3);
}
.article-featured-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 20px 0;
}
.article-body {
  font-size: 16px;
  line-height: 1.85;
  color: #2a2a2a;
}
.article-body p { margin-bottom: 18px; }

/* Ad slot */
.ad-slot { margin: 20px 0; text-align: center; min-height: 90px; background: var(--gray-2); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--gray-4); font-size: 12px; }

/* Sidebar widgets */
.widget { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-3); padding: 16px; margin-bottom: 16px; }
.widget-title { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 800; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--gray-3); display: flex; align-items: center; gap: 6px; }
.hot-list-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--gray-2); align-items: flex-start; }
.hot-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.hot-num { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 800; color: var(--gray-3); width: 24px; flex-shrink: 0; line-height: 1.3; }
.hot-num.top { color: var(--red); }
.hot-item-title { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--black); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-item-title:hover { color: var(--red); }

/* Archive */
.archive-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--gray-2); font-size: 13px; }
.archive-item:last-child { border-bottom: none; }
.archive-item a:hover { color: var(--red); }
.archive-count { background: var(--gray-2); color: var(--gray-5); font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 24px 0; }
.page-btn {
  padding: 8px 14px;
  border: 1.5px solid var(--gray-3);
  border-radius: 8px;
  font-size: 14px;
  color: var(--black);
  cursor: pointer;
  transition: all .15s;
  background: var(--white);
  font-family: inherit;
}
.page-btn:hover, .page-btn.active { background: var(--red); border-color: var(--red); color: var(--white); }

/* ── FOOTER ── */
.site-footer {
  background: var(--black);
  color: #aaa;
  padding: 36px 20px 20px;
  margin-top: 24px;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; gap: 32px; }
.footer-brand .logo-text { font-size: 28px; }
.footer-brand .logo-text .la { color: var(--red); }
.footer-brand .logo-text .bao { color: var(--white); }
.footer-tagline { color: #666; font-size: 12px; margin-top: 6px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #888; font-size: 13px; transition: color .15s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid #2a2a2a; padding-top: 16px; font-size: 12px; color: #555; text-align: center; }

/* ── CATEGORY PILLS (filter bar) ── */
.cat-filter { background: var(--white); border-bottom: 1px solid var(--gray-3); padding: 10px 20px; }
.cat-filter-inner { max-width: var(--max-width); margin: 0 auto; display: flex; gap: 6px; overflow-x: auto; }
.cat-pill { padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; color: var(--gray-5); border: 1.5px solid var(--gray-3); white-space: nowrap; cursor: pointer; transition: all .15s; background: var(--white); text-decoration: none; display: inline-block; }
.cat-pill:hover { color: var(--red); border-color: var(--red); }
.cat-pill.active { background: var(--red); color: var(--white); border-color: var(--red); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .side-col { display: none; }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .header-search { display: none; }
  .hero-title { font-size: 18px; }
  .article-title { font-size: 22px; }
}
