/* 吃瓜网 - 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: #1f2937;
  background: #fffbeb;
  line-height: 1.65;
}

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

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

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

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

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

/* ========== 顶栏 ========== */
.bar {
  background: #fff;
  border-bottom: 2px solid #fcd34d;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(180, 83, 9, 0.08);
}

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

.bar .brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: #78350f;
}

.bar .brand:hover {
  color: #b45309;
  text-decoration: none;
}

.bar .tagline {
  font-size: 0.7rem;
  color: #78716c;
  margin-left: 6px;
  font-weight: 400;
}

.bar .nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.bar .nav a {
  padding: 8px 14px;
  color: #57534e;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
}

.bar .nav a:hover,
.bar .nav a.current {
  background: #fef3c7;
  color: #b45309;
  text-decoration: none;
}

.bar .menu-btn {
  display: none;
  padding: 8px 12px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 6px;
  color: #78350f;
  font-size: 0.875rem;
  cursor: pointer;
}

/* ========== 50/50 Hero ========== */
.hero-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 340px;
  align-items: center;
  background: linear-gradient(to right, #fef3c7 0%, #fffbeb 45%);
}

.hero-half .l {
  padding: 40px 32px 40px 20px;
}

.hero-half .l .badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b45309;
  margin-bottom: 10px;
}

.hero-half .l h1 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #78350f;
  line-height: 1.28;
  margin-bottom: 12px;
}

.hero-half .l p {
  font-size: 0.9rem;
  color: #57534e;
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 400px;
}

.hero-half .l .btn {
  display: inline-block;
  padding: 10px 20px;
  background: #b45309;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
}

.hero-half .l .btn:hover {
  background: #92400e;
  text-decoration: none;
  color: #fff;
}

.hero-half .r {
  min-height: 340px;
  background: #fde68a;
}

.hero-half .r img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

/* ========== 区块 ========== */
.sec {
  padding: 40px 0;
}

.sec.light {
  background: #fff;
  border-top: 1px solid #fde68a;
}

.sec .hd {
  font-size: 1.1rem;
  font-weight: 700;
  color: #78350f;
  margin-bottom: 8px;
}

.sec .hd::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 0.9em;
  background: #b45309;
  margin-left: 8px;
  vertical-align: -0.1em;
}

.sec .sub {
  font-size: 0.85rem;
  color: #78716c;
  margin-bottom: 18px;
}

/* ========== 六格入口（2x3） ========== */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.entry-grid a {
  display: block;
  padding: 18px 16px;
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 10px;
  color: #78350f;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.entry-grid a:hover {
  background: #fef3c7;
  border-color: #fcd34d;
  text-decoration: none;
  color: #92400e;
}

/* ========== 紧凑列表（小图+标题+时间） ========== */
.compact-list {
  list-style: none;
}

.compact-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #fde68a;
  align-items: center;
}

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

.compact-list .icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: #fef3c7;
  flex-shrink: 0;
}

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

.compact-list .cnt h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.38;
}

.compact-list .cnt h3 a {
  color: inherit;
}

.compact-list .cnt h3 a:hover {
  color: #b45309;
  text-decoration: none;
}

.compact-list .cnt .t {
  font-size: 0.75rem;
  color: #78716c;
  margin-top: 4px;
}

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

.post .path {
  font-size: 0.8rem;
  color: #78716c;
  margin-bottom: 14px;
}

.post .path a {
  color: #78716c;
}

.post .path a:hover {
  color: #b45309;
}

.post .post-h h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #78350f;
  margin-bottom: 8px;
  line-height: 1.35;
}

.post .post-h .meta {
  font-size: 0.875rem;
  color: #78716c;
}

.post .post-img {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid #fde68a;
}

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

.post .post-b {
  max-width: 680px;
}

.post .post-b p {
  font-size: 1rem;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 14px;
}

.post .post-b h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #78350f;
  margin: 22px 0 10px;
}

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

.post .post-b .tag-row {
  margin-top: 22px;
}

.post .post-b .tag-row span {
  display: inline-block;
  padding: 4px 12px;
  margin-right: 8px;
  margin-bottom: 8px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.8rem;
  border-radius: 6px;
}

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

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

.list-pg .path {
  font-size: 0.8rem;
  color: #78716c;
  margin-bottom: 14px;
}

.list-pg .path a {
  color: #78716c;
}

.list-pg .path a:hover {
  color: #b45309;
}

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

.list-pg .list-h p {
  font-size: 0.9rem;
  color: #78716c;
}

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

/* ========== 页脚 ========== */
.foot {
  margin-top: auto;
  background: #78350f;
  color: #fef3c7;
  padding: 22px 20px 18px;
  font-size: 0.875rem;
}

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

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

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

.foot .links a {
  color: #fef3c7;
}

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

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

  .hero-half .r {
    min-height: 260px;
  }

  .hero-half .r img {
    min-height: 260px;
  }

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

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

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

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

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

  .hero-half .l h1 {
    font-size: 1.4rem;
  }

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

  .compact-list .icon {
    width: 44px;
    height: 44px;
  }
}
