/* 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: #0f172a;
  background: #f8fafc;
  line-height: 1.65;
}

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

a:hover {
  color: #047857;
  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: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== 顶栏：双行 ========== */
.site-head {
  background: #0f172a;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 2px solid #10b981;
}

.site-head .top-row {
  padding: 16px 24px 0;
  text-align: center;
}

.site-head .logo {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.site-head .logo .num {
  color: #10b981;
}

.site-head .slogan {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.site-head .nav-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 14px;
  padding: 0 16px 14px;
}

.site-head .nav-row a {
  padding: 10px 20px;
  color: #cbd5e1;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 8px;
}

.site-head .nav-row a:hover,
.site-head .nav-row a.active {
  background: #10b981;
  color: #fff;
  text-decoration: none;
}

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

/* ========== Bento 首屏 ========== */
.bento-wrap {
  padding: 32px 24px 40px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.bento .featured {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 280px;
}

.bento .cell {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bento .cell:hover {
  border-color: #6ee7b7;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
}

.bento .cell a {
  display: block;
  height: 100%;
  color: inherit;
}

.bento .cell a:hover {
  text-decoration: none;
  color: inherit;
}

.bento .cell .pic {
  background: #e2e8f0;
  position: relative;
}

.bento .featured .pic {
  aspect-ratio: 16/10;
}

.bento .featured .pic .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: #10b981;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
}

.bento .cell .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento .small .pic {
  aspect-ratio: 16/10;
}

.bento .cell .cap {
  padding: 14px 16px;
}

.bento .featured .cap {
  padding: 18px 20px;
}

.bento .cell .cap h2,
.bento .cell .cap h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.35;
}

.bento .featured .cap h2 {
  font-size: 1.25rem;
}

.bento .cell .cap p {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
}

/* ========== 全宽色块 ========== */
.band {
  padding: 48px 24px;
  width: 100%;
}

.band.dark {
  background: #0f172a;
  color: #e2e8f0;
}

.band.dark h2 {
  color: #fff;
}

.band.dark p,
.band.dark .item p {
  color: #94a3b8;
}

.band.dark a {
  color: #34d399;
}

.band.dark a:hover {
  color: #6ee7b7;
}

.band.light {
  background: #f0fdf4;
  border-top: 1px solid #bbf7d0;
  border-bottom: 1px solid #bbf7d0;
}

.band h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  text-align: center;
}

.band .sub {
  text-align: center;
  font-size: 0.9375rem;
  color: #64748b;
  margin-bottom: 28px;
}

.band.dark .sub {
  color: #94a3b8;
}

/* 三列图标/数字块 */
.band .triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.band .item {
  text-align: center;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.band.light .item {
  background: #fff;
  border: 1px solid #bbf7d0;
}

.band .item .icon {
  font-size: 2rem;
  font-weight: 800;
  color: #10b981;
  margin-bottom: 12px;
  line-height: 1;
}

.band .item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.band.dark .item h3 {
  color: #fff;
}

.band .item p {
  font-size: 0.875rem;
  line-height: 1.55;
}

/* 编号列表（非缩略图） */
.num-list {
  max-width: 720px;
  margin: 0 auto;
  list-style: none;
}

.num-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #e2e8f0;
}

.band.dark .num-list li {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.num-list .n {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #10b981;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.num-list a {
  flex: 1;
  font-weight: 600;
  color: #0f172a;
}

.band.dark .num-list a {
  color: #e2e8f0;
}

.num-list a:hover {
  color: #059669;
  text-decoration: none;
}

.band.dark .num-list a:hover {
  color: #34d399;
}

.num-list .sum {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 4px;
  font-weight: 400;
}

.band.dark .num-list .sum {
  color: #94a3b8;
}

/* ========== 内容页 ========== */
.article-wrap {
  padding: 32px 24px 48px;
}

.article-wrap .bread {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 20px;
}

.article-wrap .bread a {
  color: #64748b;
}

.article-wrap .bread a:hover {
  color: #059669;
}

.article-wrap .title-block h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.article-wrap .lead-img {
  border-radius: 12px;
  overflow: hidden;
  margin: 24px 0 28px;
  border: 1px solid #e2e8f0;
}

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

.article-wrap .body {
  max-width: 680px;
}

.article-wrap .body p {
  font-size: 1rem;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 16px;
}

.article-wrap .body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 28px 0 12px;
}

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

.article-wrap .body .tag-wrap {
  margin-top: 28px;
}

.article-wrap .body .tag-wrap span {
  display: inline-block;
  padding: 4px 12px;
  margin-right: 8px;
  margin-bottom: 8px;
  background: #ecfdf5;
  color: #059669;
  font-size: 0.8125rem;
  border-radius: 6px;
}

.article-wrap .body .back {
  display: inline-block;
  margin-top: 24px;
  font-weight: 600;
}

/* ========== 列表页：编号列表 ========== */
.list-wrap {
  padding: 32px 24px 48px;
}

.list-wrap .bread {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 20px;
}

.list-wrap .title-block {
  margin-bottom: 28px;
}

.list-wrap .title-block h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.list-wrap .title-block p {
  font-size: 0.9375rem;
  color: #64748b;
}

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

/* ========== 页脚：单行链接 ========== */
.site-foot {
  margin-top: auto;
  background: #0f172a;
  color: #94a3b8;
  padding: 28px 24px 20px;
  font-size: 0.875rem;
}

.site-foot .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 16px;
}

.site-foot .links a {
  color: #94a3b8;
}

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

.site-foot .copy {
  text-align: center;
  color: #64748b;
  font-size: 0.8125rem;
}

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

  .bento .featured {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 0;
  }

  .bento .featured .pic {
    aspect-ratio: 16/10;
  }

  .band .triple {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-head .nav-row {
    display: none;
  }

  .site-head .nav-row.open {
    display: flex;
  }

  .head-toggle {
    display: block;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento .featured {
    grid-column: span 1;
  }

  .bento-wrap {
    padding: 24px 16px 32px;
  }

  .band {
    padding: 36px 16px;
  }
}
