/* ========================================
   吃瓜网热点舆情聚合与实时追踪平台 - 全站样式表
   ======================================== */

/* CSS变量定义 */
:root {
  --primary: #D32F2F;
  --secondary: #B71C1C;
  --bg: #FFFFFF;
  --card-bg: #FFEBEE;
  --accent: #F44336;
  --text: #212121;
  --text-light: #757575;
  --border: #E0E0E0;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.15);
  --radius: 8px;
  --font-title: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --font-body: 'Arial', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-number: 'Roboto', 'DIN', monospace;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

/* 全局重置 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

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

/* ========================================
   紧急推送横幅 (Breaking News Banner)
   ======================================== */
.breaking-banner {
  background: var(--secondary);
  color: #fff;
  padding: 10px 0;
  position: relative;
  display: none;
  animation: pulse 2s infinite;
}

.breaking-banner.active {
  display: block;
}

.breaking-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.breaking-banner__tag {
  background: #fff;
  color: var(--secondary);
  padding: 2px 10px;
  border-radius: 3px;
  font-weight: bold;
  font-size: 12px;
  margin-right: 12px;
  white-space: nowrap;
}

.breaking-banner__text {
  flex: 1;
  font-size: 14px;
}

.breaking-banner__close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 0 5px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.9; }
}

/* ========================================
   顶部导航
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  width: 40px;
  height: 40px;
}

.logo h1 {
  font-family: var(--font-title);
  font-size: 22px;
  color: var(--primary);
  font-weight: 900;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.search-box {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--primary);
}

.search-box input {
  border: none;
  outline: none;
  padding: 8px 16px;
  font-size: 14px;
  width: 200px;
}

.search-box button {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 8px 16px;
  cursor: pointer;
  transition: var(--transition);
}

.search-box button:hover {
  background: var(--secondary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

/* ========================================
   实时热搜滚动条 (Trending Ticker)
   ======================================== */
.trending-ticker {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  overflow: hidden;
}

.trending-ticker .container {
  display: flex;
  align-items: center;
}

.trending-ticker__label {
  background: var(--primary);
  color: #fff;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  margin-right: 16px;
}

.trending-ticker__list {
  display: flex;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
}

.trending-ticker__item {
  display: inline-flex;
  align-items: center;
  margin-right: 32px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

.trending-ticker__item:hover {
  color: var(--primary);
}

.trending-ticker__item .rank {
  font-family: var(--font-number);
  font-weight: bold;
  color: var(--primary);
  margin-right: 6px;
}

.trending-ticker__item .hot-tag {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 2px;
  margin-left: 6px;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================
   Hero区域 - 头条聚焦
   ======================================== */
.hero-section {
  padding: 24px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
}

.hero-slider__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slider__item.active {
  opacity: 1;
}

.hero-slider__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 40px 24px 24px;
  color: #fff;
}

.hero-slider__caption h2 {
  font-family: var(--font-title);
  font-size: 24px;
  margin-bottom: 8px;
}

.hero-slider__caption p {
  font-size: 14px;
  opacity: 0.9;
}

.hero-slider__dots {
  position: absolute;
  bottom: 12px;
  right: 24px;
  display: flex;
  gap: 6px;
}

.hero-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}

.hero-slider__dot.active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}

/* 24小时快讯 */
.flash-news {
  background: #f5f5f5;
  border-radius: var(--radius);
  padding: 16px;
  overflow: hidden;
}

.flash-news__title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.flash-news__title .live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.flash-news__list {
  max-height: 320px;
  overflow-y: auto;
}

.flash-news__item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.flash-news__item:last-child {
  border-bottom: none;
}

.flash-news__item .time {
  font-family: var(--font-number);
  color: var(--primary);
  font-size: 12px;
  margin-bottom: 4px;
}

.flash-news__item a {
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.flash-news__item a:hover {
  color: var(--primary);
}

/* ========================================
   热点追踪信息流
   ======================================== */
.news-section {
  padding: 32px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--primary);
  border-radius: 2px;
}

.section-more {
  font-size: 14px;
  color: var(--text-light);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* 新闻卡片 */
.news-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.news-card:hover .news-card__title {
  color: var(--primary);
}

.news-card__image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card__image img {
  transform: scale(1.05);
}

.news-card__hot {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-number);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}

.news-card__body {
  padding: 16px;
}

.news-card__title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.news-card__summary {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
}

.news-card__time {
  font-family: var(--font-number);
}

/* 信源标注标签 */
.source-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
}

.source-badge--official {
  background: #E8F5E9;
  color: #2E7D32;
}

.source-badge--media {
  background: #E3F2FD;
  color: #1565C0;
}

.source-badge--user {
  background: #FFF3E0;
  color: #E65100;
}

.source-badge--exclusive {
  background: #FCE4EC;
  color: #C62828;
}

/* ========================================
   侧边栏 - 舆情风向标
   ======================================== */
.main-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  padding: 32px 0;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: #f9f9f9;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}

.sidebar-widget__title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

/* 舆情温度计 */
.sentiment-meter {
  margin-bottom: 16px;
}

.sentiment-meter__event {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
}

.sentiment-bar {
  height: 24px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  margin-bottom: 8px;
}

.sentiment-bar__negative {
  background: #D32F2F;
  transition: width 0.5s ease;
}

.sentiment-bar__neutral {
  background: #FFC107;
  transition: width 0.5s ease;
}

.sentiment-bar__positive {
  background: #4CAF50;
  transition: width 0.5s ease;
}

.sentiment-legend {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-light);
}

.sentiment-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sentiment-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* 热门标签云 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud__item {
  display: inline-block;
  padding: 4px 12px;
  background: var(--card-bg);
  border-radius: 15px;
  font-size: 12px;
  color: var(--text);
  transition: var(--transition);
}

.tag-cloud__item:hover {
  background: var(--primary);
  color: #fff;
}

/* 24小时阅读榜 */
.reading-rank__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.reading-rank__item:last-child {
  border-bottom: none;
}

.reading-rank__num {
  font-family: var(--font-number);
  font-size: 16px;
  font-weight: bold;
  color: var(--text-light);
  min-width: 24px;
}

.reading-rank__item:nth-child(-n+3) .reading-rank__num {
  color: var(--primary);
}

.reading-rank__text {
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   深度专题推荐
   ======================================== */
.topic-section {
  padding: 32px 0;
  background: #f5f5f5;
}

.topic-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.topic-scroll::-webkit-scrollbar {
  height: 4px;
}

.topic-scroll::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 2px;
}

.topic-card {
  min-width: 300px;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  transition: var(--transition);
}

.topic-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.topic-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.topic-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-card__body {
  padding: 16px;
}

.topic-card__title {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 8px;
}

.topic-card__desc {
  font-size: 13px;
  color: var(--text-light);
}

/* ========================================
   辟谣与真相区块
   ======================================== */
.rumor-section {
  padding: 32px 0;
}

.rumor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.rumor-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.rumor-card::before {
  content: '假';
  position: absolute;
  top: 10px;
  right: -20px;
  background: var(--accent);
  color: #fff;
  padding: 4px 30px;
  font-size: 12px;
  font-weight: bold;
  transform: rotate(45deg);
}

.rumor-card__claim {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text);
  text-decoration: line-through;
  text-decoration-color: var(--accent);
}

.rumor-card__truth {
  font-size: 13px;
  color: #2E7D32;
  padding: 10px;
  background: #E8F5E9;
  border-radius: 4px;
}

.rumor-card__truth::before {
  content: '真相：';
  font-weight: bold;
}

/* ========================================
   事件发展时间线
   ======================================== */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary);
}

.timeline__item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 24px;
}

.timeline__dot {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--card-bg);
}

.timeline__time {
  font-family: var(--font-number);
  font-size: 12px;
  color: var(--primary);
  margin-bottom: 4px;
}

.timeline__content {
  background: #f9f9f9;
  padding: 12px 16px;
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}

.timeline__title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 6px;
}

.timeline__desc {
  font-size: 13px;
  color: var(--text-light);
}

/* ========================================
   底部区域
   ======================================== */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-about h3 {
  color: #fff;
  font-family: var(--font-title);
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-about p {
  font-size: 13px;
  line-height: 1.8;
}

.footer-links h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-links a {
  display: block;
  color: #999;
  font-size: 13px;
  padding: 4px 0;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #777;
}

.footer-compliance a {
  color: #999;
  margin-left: 16px;
}

.footer-compliance a:hover {
  color: var(--primary);
}

/* ========================================
   面包屑导航
   ======================================== */
.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb span {
  margin: 0 6px;
  color: var(--text-light);
}

/* ========================================
   栏目页通用样式
   ======================================== */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 48px 0;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-title);
  font-size: 32px;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 15px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.page-content {
  padding: 32px 0;
}

/* ========================================
   搜索页
   ======================================== */
.search-page__input {
  max-width: 600px;
  margin: 32px auto;
  display: flex;
  border: 2px solid var(--primary);
  border-radius: 25px;
  overflow: hidden;
}

.search-page__input input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 24px;
  font-size: 16px;
}

.search-page__input button {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 14px 32px;
  font-size: 16px;
  cursor: pointer;
}

.search-highlight {
  background: #FFEB3B;
  padding: 0 2px;
  border-radius: 2px;
}

/* ========================================
   APP下载页
   ======================================== */
.app-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0;
}

.app-hero__content h2 {
  font-family: var(--font-title);
  font-size: 36px;
  margin-bottom: 16px;
}

.app-hero__content p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.app-buttons {
  display: flex;
  gap: 16px;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.app-btn--primary {
  background: var(--primary);
  color: #fff;
}

.app-btn--primary:hover {
  background: var(--secondary);
  color: #fff;
}

.app-btn--outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.app-btn--outline:hover {
  background: var(--primary);
  color: #fff;
}

.app-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  padding: 48px 0;
}

.app-feature-card {
  text-align: center;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card-bg);
}

.app-feature-card__icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.app-feature-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.app-feature-card p {
  font-size: 13px;
  color: var(--text-light);
}

/* ========================================
   合规页面
   ======================================== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 20px;
}

.legal-content h1 {
  font-family: var(--font-title);
  font-size: 28px;
  margin-bottom: 24px;
  text-align: center;
}

.legal-content h2 {
  font-size: 20px;
  margin: 24px 0 12px;
  color: var(--primary);
}

.legal-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-content ul li {
  list-style: disc;
  margin-bottom: 8px;
  line-height: 1.8;
}

/* 表单样式 */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background: var(--secondary);
}

/* ========================================
   404页面
   ======================================== */
.error-page {
  text-align: center;
  padding: 80px 20px;
}

.error-page img {
  max-width: 400px;
  margin: 0 auto 32px;
}

.error-page h1 {
  font-family: var(--font-title);
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 12px;
}

.error-page p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.error-page .btn-home {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 16px;
}

.error-page .btn-home:hover {
  background: var(--secondary);
  color: #fff;
}

/* ========================================
   骨架屏加载
   ======================================== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========================================
   热搜榜单页
   ======================================== */
.rank-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.rank-tab {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.rank-tab.active,
.rank-tab:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.rank-list__item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.rank-list__item:hover {
  background: var(--card-bg);
}

.rank-list__num {
  font-family: var(--font-number);
  font-size: 20px;
  font-weight: bold;
  min-width: 40px;
  color: var(--text-light);
}

.rank-list__item:nth-child(1) .rank-list__num,
.rank-list__item:nth-child(2) .rank-list__num,
.rank-list__item:nth-child(3) .rank-list__num {
  color: var(--primary);
}

.rank-list__content {
  flex: 1;
}

.rank-list__title {
  font-size: 15px;
  font-weight: 500;
}

.rank-list__heat {
  font-family: var(--font-number);
  font-size: 13px;
  color: var(--accent);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .app-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .header-main {
    flex-wrap: wrap;
  }
  
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 16px 0;
    gap: 12px;
  }
  
  .main-nav.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .search-box {
    width: 100%;
    margin-top: 12px;
  }
  
  .search-box input {
    width: 100%;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .rumor-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .page-header h1 {
    font-size: 24px;
  }
  
  .hero-slider__caption h2 {
    font-size: 18px;
  }
  
  .section-title {
    font-size: 18px;
  }
  
  .app-hero__content h2 {
    font-size: 24px;
  }
  
  .app-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 18px;
  }
  
  .trending-ticker__item {
    font-size: 12px;
    margin-right: 20px;
  }
  
  .topic-card {
    min-width: 260px;
  }
}

/* ========================================
   PWA安装提示
   ======================================== */
.pwa-install-prompt {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  display: none;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-hover);
  z-index: 9999;
}

.pwa-install-prompt.show {
  display: flex;
}

.pwa-install-prompt button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
}

/* ========================================
   无限滚动加载指示器
   ======================================== */
.load-more {
  text-align: center;
  padding: 24px;
}

.load-more__spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
