/* 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: #1e293b;
  background: #fff;
  line-height: 1.65;
}

a {
  color: #2563eb;
  text-decoration: none;
}

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

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

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

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== 顶栏：细蓝线 + 单行 ========== */
.header {
  background: #fff;
  border-bottom: 2px solid #2563eb;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(37, 99, 235, 0.1);
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.header .logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
}

.header .logo em {
  color: #2563eb;
  font-style: normal;
}

.header .logo:hover {
  color: #2563eb;
  text-decoration: none;
}

.header .logo:hover em {
  color: #1e293b;
}

.header .nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.header .nav a {
  padding: 8px 16px;
  color: #475569;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 6px;
}

.header .nav a:hover,
.header .nav a.active {
  background: #eff6ff;
  color: #2563eb;
  text-decoration: none;
}

.header .btn-menu {
  display: none;
  padding: 8px 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #475569;
  font-size: 0.875rem;
  cursor: pointer;
}

/* ========== 首屏：50/50 分屏 ========== */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 380px;
  align-items: center;
  background: linear-gradient(to right, #f8fafc 0%, #fff 50%);
}

.hero-split .left {
  padding: 48px 40px 48px 24px;
}

.hero-split .left .label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2563eb;
  margin-bottom: 12px;
}

.hero-split .left h1 {
  font-size: 1.875rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-split .left p {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 420px;
}

.hero-split .left .cta {
  display: inline-block;
  padding: 12px 24px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 8px;
}

.hero-split .left .cta:hover {
  background: #1d4ed8;
  text-decoration: none;
  color: #fff;
}

.hero-split .right {
  min-height: 380px;
  background: #e2e8f0;
}

.hero-split .right img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

/* ========== 三列等分卡片 ========== */
.sec {
  padding: 48px 0;
}

.sec.alt {
  background: #f8fafc;
}

.sec .tt {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.sec .st {
  font-size: 0.9375rem;
  color: #64748b;
  margin-bottom: 24px;
}

.sec .st a {
  font-weight: 600;
}

.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

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

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

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

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

.card .cap {
  padding: 18px;
}

.card .cap h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.4;
}

.card .cap p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

/* ========== 四格横条 ========== */
.four-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 32px 0;
}

.four-strip .item {
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.four-strip .item .i {
  font-size: 1.5rem;
  font-weight: 800;
  color: #2563eb;
  margin-bottom: 10px;
  line-height: 1;
}

.four-strip .item h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.four-strip .item p {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
}

/* ========== 极简列表（无图，标题+日期） ========== */
.plain-list {
  list-style: none;
}

.plain-list li {
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
}

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

.plain-list a {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.plain-list a:hover {
  color: #2563eb;
  text-decoration: none;
}

.plain-list .date {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-top: 4px;
}

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

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

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

.article-page .bread a:hover {
  color: #2563eb;
}

.article-page .tit {
  margin-bottom: 24px;
}

.article-page .tit h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.35;
}

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

.article-page .lead-img {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid #e2e8f0;
}

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

.article-page .prose {
  max-width: 700px;
}

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

.article-page .prose h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 28px 0 12px;
}

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

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

.article-page .prose .tag-wrap span {
  display: inline-block;
  padding: 4px 12px;
  margin-right: 8px;
  margin-bottom: 8px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.8125rem;
  border-radius: 6px;
}

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

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

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

.list-page .tit {
  margin-bottom: 28px;
}

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

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

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

/* ========== 页脚 ========== */
.footer {
  margin-top: auto;
  background: #0f172a;
  color: #94a3b8;
  padding: 28px 24px 20px;
  font-size: 0.875rem;
}

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

.footer .copy {
  color: #94a3b8;
  font-size: 0.8125rem;
}

.footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer .links a {
  color: #94a3b8;
}

.footer .links a:hover {
  color: #93c5fd;
  text-decoration: none;
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-split .right {
    min-height: 260px;
  }

  .hero-split .right img {
    min-height: 260px;
  }

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

  .four-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

  .header .btn-menu {
    display: block;
  }

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

  .hero-split .left {
    padding: 32px 24px;
  }

  .hero-split .left h1 {
    font-size: 1.5rem;
  }

  .footer .wrap {
    flex-direction: column;
    text-align: center;
  }
}
