/* 51吃瓜网 - 每日吃瓜|吃瓜51|网红事件|黑料网曝|网络热门事件 - 深色琥珀风 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: #e2e8f0;
  background: #0f172a;
  line-height: 1.65;
}

a {
  color: #fbbf24;
  text-decoration: none;
}

a:hover {
  color: #fcd34d;
  text-decoration: underline;
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== 顶栏：深色 + 琥珀 ========== */
.site-header {
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.site-header .brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fafc;
}

.site-header .brand span {
  color: #f59e0b;
}

.site-header .brand:hover {
  color: #f59e0b;
  text-decoration: none;
}

.site-header .brand:hover span {
  color: #f8fafc;
}

.site-header .menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.site-header .menu a {
  padding: 8px 14px;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
}

.site-header .menu a:hover,
.site-header .menu a.active {
  background: #1e293b;
  color: #f59e0b;
  text-decoration: none;
}

.site-header .toggle {
  display: none;
  padding: 8px 12px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 0.875rem;
  cursor: pointer;
}

/* ========== 全宽 Hero 大图 + 遮罩 ========== */
.hero-cover {
  position: relative;
  width: 100%;
  min-height: 320px;
  background: #1e293b;
  overflow: hidden;
}

.hero-cover .bg {
  position: absolute;
  inset: 0;
}

.hero-cover .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.hero-cover .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 60%, transparent);
  display: flex;
  align-items: flex-end;
  padding: 0 20px 36px;
}

.hero-cover .overlay .inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-cover .overlay .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f59e0b;
  margin-bottom: 8px;
}

.hero-cover .overlay h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.3;
  margin-bottom: 8px;
}

.hero-cover .overlay p {
  font-size: 0.9rem;
  color: #94a3b8;
  max-width: 520px;
}

/* ========== 区块标题 ========== */
.section {
  padding: 40px 0;
}

.section.alt {
  background: #0f172a;
}

.section .head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.section .head h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f8fafc;
}

.section .head h2::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1em;
  background: #f59e0b;
  margin-left: 10px;
  vertical-align: -0.2em;
}

.section .head .more {
  font-size: 0.8125rem;
  color: #64748b;
}

.section .head .more:hover {
  color: #f59e0b;
  text-decoration: none;
}

/* ========== 左线卡片（4 列） ========== */
.card-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card-line {
  background: #1e293b;
  border-radius: 8px;
  border-left: 4px solid #f59e0b;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}

.card-line:hover {
  background: #334155;
  border-left-color: #fbbf24;
}

.card-line a {
  display: block;
  color: inherit;
}

.card-line a:hover {
  text-decoration: none;
  color: inherit;
}

.card-line .thumb {
  aspect-ratio: 16/10;
  background: #334155;
}

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

.card-line .body {
  padding: 14px;
}

.card-line .body .cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f59e0b;
  margin-bottom: 6px;
}

.card-line .body h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.4;
}

.card-line .body .time {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 6px;
}

/* ========== 缩略图列表（左图右文） ========== */
.thumb-list {
  list-style: none;
}

.thumb-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #1e293b;
  align-items: center;
}

.thumb-list li:last-child {
  border-bottom: none;
}

.thumb-list .thumb {
  aspect-ratio: 16/10;
  border-radius: 6px;
  overflow: hidden;
  background: #334155;
}

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

.thumb-list .info h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.4;
  margin-bottom: 4px;
}

.thumb-list .info h3 a {
  color: inherit;
}

.thumb-list .info h3 a:hover {
  color: #f59e0b;
  text-decoration: none;
}

.thumb-list .info .time {
  font-size: 0.75rem;
  color: #64748b;
}

/* ========== 内容页 ========== */
.article {
  padding: 28px 0 44px;
}

.article .crumb {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 18px;
}

.article .crumb a {
  color: #64748b;
}

.article .crumb a:hover {
  color: #f59e0b;
}

.article .article-head h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 10px;
  line-height: 1.35;
}

.article .article-head .meta {
  font-size: 0.875rem;
  color: #64748b;
}

.article .figure {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid #1e293b;
}

.article .figure img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}

.article .text {
  max-width: 680px;
}

.article .text p {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.85;
  margin-bottom: 16px;
}

.article .text h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 26px 0 12px;
}

.article .text h2:first-of-type {
  margin-top: 0;
}

.article .text .tags {
  margin-top: 24px;
}

.article .text .tags span {
  display: inline-block;
  padding: 4px 12px;
  margin-right: 8px;
  margin-bottom: 8px;
  background: #1e293b;
  color: #f59e0b;
  font-size: 0.8125rem;
  border-radius: 6px;
}

.article .text .back {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
}

/* ========== 列表页 ========== */
.list-page {
  padding: 28px 0 44px;
}

.list-page .crumb {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 18px;
}

.list-page .crumb a {
  color: #64748b;
}

.list-page .crumb a:hover {
  color: #f59e0b;
}

.list-page .list-head h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 8px;
}

.list-page .list-head p {
  font-size: 0.9rem;
  color: #64748b;
}

.list-page .back {
  display: inline-block;
  margin-top: 22px;
  font-weight: 600;
}

/* ========== 页脚 ========== */
.site-footer {
  margin-top: auto;
  background: #020617;
  color: #64748b;
  padding: 24px 20px 18px;
  font-size: 0.875rem;
  border-top: 1px solid #1e293b;
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.site-footer .copy {
  font-size: 0.8125rem;
  color: #64748b;
}

.site-footer .foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-footer .foot-links a {
  color: #64748b;
}

.site-footer .foot-links a:hover {
  color: #f59e0b;
  text-decoration: none;
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .card-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .thumb-list li {
    grid-template-columns: 100px 1fr;
    gap: 12px;
  }

  .hero-cover {
    min-height: 260px;
  }

  .hero-cover .overlay h1 {
    font-size: 1.4rem;
  }
}

@media (max-width: 600px) {
  .site-header .menu {
    display: none;
  }

  .site-header .menu.open {
    display: flex;
    width: 100%;
    flex-direction: column;
  }

  .site-header .toggle {
    display: block;
  }

  .card-row {
    grid-template-columns: 1fr;
  }

  .thumb-list li {
    grid-template-columns: 80px 1fr;
    gap: 10px;
  }

  .thumb-list .info h3 {
    font-size: 0.875rem;
  }
}
