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

a {
  color: #0891b2;
  text-decoration: none;
}

a:hover {
  color: #0e7490;
  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: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== 顶栏 ========== */
.top {
  background: #fff;
  border-bottom: 1px solid #ccfbf1;
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.top .name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #134e4a;
}

.top .name:hover {
  color: #0891b2;
  text-decoration: none;
}

.top .slogan {
  font-size: 0.7rem;
  color: #64748b;
  margin-left: 6px;
  font-weight: 400;
}

.top .links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.top .links a {
  padding: 8px 14px;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
}

.top .links a:hover,
.top .links a.on {
  background: #ccfbf1;
  color: #0f766e;
  text-decoration: none;
}

.top .menu-btn {
  display: none;
  padding: 8px 12px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  color: #475569;
  font-size: 0.875rem;
  cursor: pointer;
}

/* ========== 居中 Hero（无图） ========== */
.hero-center {
  text-align: center;
  padding: 44px 20px 40px;
  background: linear-gradient(180deg, #fff 0%, #f0fdfa 100%);
}

.hero-center .box {
  max-width: 640px;
}

.hero-center .hero-t {
  font-size: 1.6rem;
  font-weight: 800;
  color: #134e4a;
  margin-bottom: 10px;
  line-height: 1.3;
}

.hero-center .hero-st {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-center .hero-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-center .hero-btns .pri {
  display: inline-block;
  padding: 12px 24px;
  background: #0891b2;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
}

.hero-center .hero-btns .pri:hover {
  background: #0e7490;
  text-decoration: none;
  color: #fff;
}

.hero-center .hero-btns .sec {
  display: inline-block;
  padding: 12px 24px;
  background: #fff;
  color: #0891b2;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 2px solid #0891b2;
}

.hero-center .hero-btns .sec:hover {
  background: #ccfbf1;
  text-decoration: none;
  color: #0e7490;
}

/* ========== 双栏：往期入口 + 最新爆料 ========== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  padding: 36px 20px;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.block h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #134e4a;
  margin-bottom: 6px;
}

.block h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1em;
  background: #0891b2;
  margin-right: 8px;
  vertical-align: -0.15em;
}

.block .sub {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 16px;
}

/* 往期入口：链接列表 */
.entry-list {
  list-style: none;
}

.entry-list li {
  margin-bottom: 10px;
}

.entry-list a {
  display: block;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #ccfbf1;
  border-radius: 8px;
  color: #134e4a;
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}

.entry-list a:hover {
  background: #ccfbf1;
  border-color: #5eead4;
  text-decoration: none;
  color: #0f766e;
}

/* 最新爆料：大缩略图列表 */
.news-list {
  list-style: none;
}

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

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

.news-list .thumb {
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  background: #99f6e4;
}

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

.news-list .txt h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #134e4a;
  line-height: 1.4;
  margin-bottom: 4px;
}

.news-list .txt h3 a {
  color: inherit;
}

.news-list .txt h3 a:hover {
  color: #0891b2;
  text-decoration: none;
}

.news-list .txt .when {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ========== 底部说明区 ========== */
.intro-block {
  padding: 32px 0 40px;
  background: #fff;
  border-top: 1px solid #ccfbf1;
}

.intro-block .box {
  max-width: 720px;
}

.intro-block p {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.85;
}

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

.article .path {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 14px;
}

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

.article .path a:hover {
  color: #0891b2;
}

.article .art-h h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #134e4a;
  margin-bottom: 8px;
  line-height: 1.35;
}

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

.article .art-img {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid #ccfbf1;
}

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

.article .art-b {
  max-width: 680px;
}

.article .art-b p {
  font-size: 1rem;
  color: #334155;
  line-height: 1.85;
  margin-bottom: 14px;
}

.article .art-b h2 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #134e4a;
  margin: 22px 0 10px;
}

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

.article .art-b .tags {
  margin-top: 22px;
}

.article .art-b .tags span {
  display: inline-block;
  padding: 4px 12px;
  margin-right: 8px;
  margin-bottom: 8px;
  background: #ccfbf1;
  color: #0f766e;
  font-size: 0.8rem;
  border-radius: 6px;
}

.article .art-b .go-back {
  display: inline-block;
  margin-top: 18px;
  font-weight: 600;
}

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

.list .path {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 14px;
}

.list .path a {
  color: #64748b;
}

.list .path a:hover {
  color: #0891b2;
}

.list .list-h h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #134e4a;
  margin-bottom: 6px;
}

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

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

/* ========== 页脚 ========== */
.foot {
  margin-top: auto;
  background: #134e4a;
  color: #99f6e4;
  padding: 22px 20px 18px;
  font-size: 0.875rem;
}

.foot .box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.foot .copy {
  font-size: 0.8rem;
  color: #99f6e4;
}

.foot .foot-a {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.foot .foot-a a {
  color: #99f6e4;
}

.foot .foot-a a:hover {
  color: #ccfbf1;
  text-decoration: none;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }

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

  .top .links {
    display: none;
  }

  .top .links.open {
    display: flex;
    width: 100%;
    flex-direction: column;
  }

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

  .hero-center .hero-t {
    font-size: 1.35rem;
  }
}

@media (max-width: 480px) {
  .news-list li {
    grid-template-columns: 80px 1fr;
  }
}
