/* 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: #292524;
  background: #fafaf9;
  line-height: 1.65;
}

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

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

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

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

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

/* ========== 顶栏：深色 ========== */
.top-header {
  background: #1c1917;
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid #ea580c;
}

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

.site-brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.site-brand span {
  color: #ea580c;
}

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

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

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.top-nav a {
  padding: 8px 14px;
  color: #d6d3d1;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 6px;
}

.top-nav a:hover,
.top-nav a.active {
  background: #ea580c;
  color: #fff;
  text-decoration: none;
}

.mob-menu {
  display: none;
  padding: 8px 12px;
  background: #44403c;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 0.875rem;
  cursor: pointer;
}

/* ========== 今日吃瓜 · 大头条 ========== */
.today-hero {
  background: #fff;
  margin-bottom: 28px;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid #e7e5e4;
  border-top: none;
}

.today-hero a {
  display: block;
  color: inherit;
}

.today-hero a:hover {
  text-decoration: none;
  color: inherit;
}

.today-hero .hero-pic {
  aspect-ratio: 21/9;
  background: #e7e5e4;
}

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

.today-hero .hero-cap {
  padding: 22px 26px;
}

.today-hero .hero-label {
  display: inline-block;
  padding: 4px 12px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  margin-bottom: 12px;
}

.today-hero .hero-cap h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1c1917;
  margin-bottom: 10px;
  line-height: 1.3;
}

.today-hero .hero-cap p {
  font-size: 0.9375rem;
  color: #57534e;
  line-height: 1.6;
}

/* ========== 区块标题 ========== */
.sec-head {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.sec-head h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1c1917;
  border-left: 4px solid #ea580c;
  padding-left: 12px;
}

.sec-head .link-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: #c2410c;
}

/* ========== 三列卡片 ========== */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e7e5e4;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: #fed7aa;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.08);
}

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

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

.card .c-pic {
  aspect-ratio: 16/10;
  background: #e7e5e4;
}

.card .c-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card .c-body {
  padding: 16px;
}

.card .c-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1c1917;
  margin-bottom: 8px;
  line-height: 1.4;
}

.card .c-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.75rem;
  border-radius: 4px;
  margin-bottom: 8px;
}

.card .c-body .c-sum {
  font-size: 0.875rem;
  color: #57534e;
  line-height: 1.5;
}

/* ========== 两列横条（图左文右） ========== */
.strip-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.strip-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #e7e5e4;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.strip-item:hover {
  background: #fff7ed;
  text-decoration: none;
  color: inherit;
}

.strip-item:last-child {
  border-bottom: none;
}

.strip-item .s-pic {
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  background: #e7e5e4;
}

.strip-item .s-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.strip-item .s-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1c1917;
  margin-bottom: 6px;
  line-height: 1.4;
}

.strip-item .s-body .s-sum {
  font-size: 0.875rem;
  color: #57534e;
  line-height: 1.5;
}

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

.bread {
  font-size: 0.8125rem;
  color: #78716c;
  margin-bottom: 20px;
}

.bread a {
  color: #78716c;
}

.bread a:hover {
  color: #ea580c;
}

.content-title {
  margin-bottom: 22px;
}

.content-title h1 {
  font-size: 1.625rem;
  font-weight: 800;
  color: #1c1917;
  margin-bottom: 10px;
  line-height: 1.35;
}

.content-title .date {
  font-size: 0.875rem;
  color: #78716c;
}

.content-img {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 26px;
  border: 1px solid #e7e5e4;
}

.content-img img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.article {
  max-width: 700px;
}

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

.article h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1c1917;
  margin: 26px 0 12px;
}

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

.article .tag-list {
  margin-top: 24px;
}

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

.article .back {
  display: inline-block;
  margin-top: 28px;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ========== 页脚 ========== */
.footer {
  margin-top: auto;
  background: #1c1917;
  color: #a8a29e;
  padding: 32px 20px 22px;
  font-size: 0.875rem;
}

.footer .box {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 22px;
}

.footer h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #e7e5e4;
  margin-bottom: 12px;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 8px;
}

.footer a {
  color: #a8a29e;
}

.footer a:hover {
  color: #ea580c;
}

.footer-copy {
  padding-top: 18px;
  border-top: 1px solid #44403c;
  text-align: center;
  color: #78716c;
  font-size: 0.8125rem;
}

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

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

  .top-nav.open {
    display: flex;
    width: 100%;
    flex-direction: column;
    margin-top: 8px;
  }

  .mob-menu {
    display: block;
  }

  .three-col {
    grid-template-columns: 1fr;
  }

  .strip-item {
    grid-template-columns: 1fr;
  }

  .strip-item .s-pic {
    max-height: 200px;
    aspect-ratio: 16/9;
  }

  .today-hero .hero-pic {
    aspect-ratio: 16/9;
  }

  .footer .box {
    grid-template-columns: 1fr;
  }
}
