/* 51吃瓜网 - 资讯热搜风格（差异化设计） */
:root {
  --hot: #ff3b30;
  --hot-bg: #fff1f0;
  --accent: #ff6b6b;
  --text-main: #1a1a1a;
  --text-sub: #555;
  --text-muted: #999;
  --bg: #f5f5f5;
  --bg-card: #fff;
  --border: #eee;
  --rank-hot: #ff3b30;
  --rank-new: #34c759;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 14px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* 极简顶部 */
.header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--hot);
  letter-spacing: -0.5px;
}

.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  padding: 6px 14px;
  color: var(--text-sub);
  font-size: 13px;
  border-radius: 4px;
  transition: all 0.2s;
}

.nav a:hover {
  background: var(--hot-bg);
  color: var(--hot);
}

/* 主体 - 左右分栏 */
.main-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
}

.main {
  min-width: 0;
}

/* 今日热点 - 热搜列表样式 */
.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--hot);
}

.section-label h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.hot-badge {
  background: var(--hot);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* 新闻列表项 - 横向布局 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.news-item:hover {
  background: var(--bg-card);
  margin: 0 -12px;
  padding: 16px 12px;
}

.news-item:first-child { padding-top: 0; }

.news-thumb {
  width: 120px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-body h3:hover { color: var(--hot); }

.news-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.news-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--text-muted);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  margin-right: 8px;
}

.news-rank.top { background: var(--hot); }
.news-rank.new { background: var(--rank-new); }

/* 介绍区 - 无卡片边框 */
.intro-block {
  margin-bottom: 28px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: 0;
  border-left: 4px solid var(--hot);
}

.intro-block h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.intro-block p {
  color: var(--text-sub);
  margin-bottom: 12px;
  text-align: justify;
  font-size: 14px;
}

.intro-block p:last-child { margin-bottom: 0; }

/* 侧边栏 */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-box {
  background: var(--bg-card);
  padding: 16px;
  border: 1px solid var(--border);
}

.side-box h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--hot);
  color: var(--text-main);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list a {
  padding: 4px 12px;
  background: var(--bg);
  color: var(--text-sub);
  font-size: 12px;
  border-radius: 20px;
  transition: all 0.2s;
}

.tag-list a:hover {
  background: var(--hot-bg);
  color: var(--hot);
}

.link-list a {
  display: block;
  padding: 8px 0;
  color: var(--text-sub);
  font-size: 13px;
  border-bottom: 1px dashed var(--border);
}

.link-list a:last-child { border-bottom: none; }
.link-list a:hover { color: var(--hot); }

/* 页脚 */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 20px 16px;
  margin-top: 32px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 12px;
}

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

.footer p { color: var(--text-muted); font-size: 12px; }

/* 内容页 */
.breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--hot); }
.breadcrumb a:hover { text-decoration: underline; }

.article-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.article-content {
  background: var(--bg-card);
  padding: 28px;
  border: 1px solid var(--border);
}

.article-content h2 {
  font-size: 1.15rem;
  margin: 24px 0 12px;
  color: var(--hot);
}

.article-content p {
  margin-bottom: 14px;
  color: var(--text-sub);
  text-align: justify;
}

.article-content .intro {
  font-size: 1rem;
  color: var(--text-main);
}

.article-img {
  margin: 20px 0;
  border-radius: 6px;
  overflow: hidden;
}

.article-img img { width: 100%; }

/* 列表页 */
.list-hero {
  height: 200px;
  position: relative;
  margin-bottom: 20px;
  border-radius: 0;
  overflow: hidden;
}

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

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

.list-hero-overlay h1 { font-size: 1.3rem; margin-bottom: 4px; }
.list-hero-overlay p { font-size: 13px; opacity: 0.9; }

/* 响应式 */
@media (max-width: 900px) {
  .main-wrap { grid-template-columns: 1fr; }
  .sidebar { order: -1; flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .side-box { flex: 1; min-width: 200px; }
}

@media (max-width: 600px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .news-thumb {
    width: 100%;
    height: 160px;
  }
  .news-item:hover {
    margin: 0;
    padding: 16px 0;
  }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .nav { width: 100%; }
  .article-content { padding: 20px; }
}
