/* 91漫画网 - 浅色+红强调、双行顶栏、方形封面网格、紧凑列表，与28-31区分 */
* { box-sizing: border-box; }
body { margin: 0; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; background: #fff9f7; color: #1a1a1a; line-height: 1.6; }

/* 双行顶栏：第一行 logo 居中，第二行 下划线式 tab 导航 */
.header { background: #fff; border-bottom: 2px solid #1a1a1a; }
.header .top { padding: 16px 20px; text-align: center; }
.header .logo { font-size: 1.35rem; font-weight: 800; }
.header .logo a { color: #1a1a1a; text-decoration: none; letter-spacing: 0.02em; }
.header .logo a:hover { color: #c41e3a; }
.header .tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; padding: 0 20px 0; border-top: 1px solid #f0e6e0; }
.header .tabs a { padding: 14px 20px; color: #4a4a4a; text-decoration: none; font-size: 0.9rem; font-weight: 500; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.header .tabs a:hover { color: #c41e3a; }
.header .tabs a.on { color: #c41e3a; border-bottom-color: #c41e3a; }
.header .ham { display: none; background: none; border: 2px solid #1a1a1a; color: #1a1a1a; padding: 8px 14px; font-size: 0.875rem; cursor: pointer; margin: 12px 20px; }
@media (max-width: 768px) {
  .header .tabs { display: none; padding: 12px 20px; flex-direction: column; align-items: stretch; }
  .header .tabs.open { display: flex; }
  .header .tabs a { border-bottom: none; margin-bottom: 0; border-left: 3px solid transparent; padding-left: 16px; }
  .header .tabs a.on { border-left-color: #c41e3a; }
  .header .ham { display: block; }
  .header .top { display: flex; justify-content: space-between; align-items: center; }
  .header .logo { text-align: left; }
}

/* 首屏：无图、标题+副标题+分类芯片 */
.hero { padding: 48px 20px 40px; text-align: center; background: linear-gradient(180deg, #fff 0%, #fff9f7 100%); }
.hero h1 { margin: 0; font-size: clamp(1.2rem, 3.2vw, 1.6rem); font-weight: 700; color: #1a1a1a; }
.hero p { margin: 10px 0 0; font-size: 0.9rem; color: #6b5b55; }
.hero .chips { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero .chips a { display: inline-block; padding: 10px 18px; background: #1a1a1a; color: #fff; text-decoration: none; font-size: 0.85rem; font-weight: 500; border-radius: 6px; }
.hero .chips a:hover { background: #c41e3a; }

/* 区块 */
.sect { max-width: 1100px; margin: 0 auto; padding: 36px 20px; }
.sect h2 { font-size: 1.1rem; margin: 0 0 6px; color: #1a1a1a; }
.sect .sub { font-size: 0.85rem; color: #6b5b55; margin: 0 0 20px; }

/* 方形封面网格 1:1（与 31 的 2:3 区分） */
.square-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.square-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(26,26,26,0.06); }
.square-card a { text-decoration: none; color: inherit; display: block; }
.square-card .cov { aspect-ratio: 1; overflow: hidden; }
.square-card .cov img { width: 100%; height: 100%; object-fit: cover; }
.square-card .tit { padding: 12px; font-size: 0.9rem; font-weight: 600; color: #1a1a1a; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.square-card .meta { padding: 0 12px 12px; font-size: 0.75rem; color: #8a7a74; }
@media (max-width: 700px) { .square-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* 紧凑列表：左方小图 + 标题 + 右侧「更新至xx话」 */
.compact-list { list-style: none; padding: 0; margin: 0; }
.compact-list li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid #f0e6e0; }
.compact-list li:last-child { border-bottom: none; }
.compact-list .thumb { flex-shrink: 0; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; }
.compact-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.compact-list .txt { flex: 1; min-width: 0; }
.compact-list .txt a { color: #1a1a1a; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.compact-list .txt a:hover { color: #c41e3a; }
.compact-list .badge { flex-shrink: 0; font-size: 0.75rem; color: #c41e3a; font-weight: 500; }
@media (max-width: 600px) {
  .compact-list .thumb { width: 48px; height: 48px; }
  .compact-list .badge { font-size: 0.7rem; }
}

/* 首页长文案 */
.prose { max-width: 680px; margin: 0 auto; padding: 32px 20px 56px; }
.prose p { font-size: 0.9375rem; color: #3d3530; margin-bottom: 1em; }

/* 列表页：纯方形网格 */
.list-page { max-width: 1100px; margin: 0 auto; padding: 32px 20px 48px; }
.list-page .path { font-size: 0.8rem; color: #6b5b55; margin-bottom: 16px; }
.list-page .path a { color: #c41e3a; text-decoration: none; }
.list-page h1 { font-size: 1.3rem; margin: 0 0 8px; color: #1a1a1a; }
.list-page .lead { font-size: 0.875rem; color: #6b5b55; margin: 0 0 24px; }
.list-page .back { display: inline-block; margin-top: 24px; color: #c41e3a; text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.list-page .back:hover { text-decoration: underline; }

/* 内容页：顶部居中方形封面 + 标题 + 正文（无左右分栏） */
.article { max-width: 720px; margin: 0 auto; padding: 32px 20px 48px; }
.article .path { font-size: 0.8rem; color: #6b5b55; margin-bottom: 20px; }
.article .path a { color: #c41e3a; text-decoration: none; }
.article .cover-wrap { width: 180px; margin: 0 auto 24px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.article .cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
.article h1 { font-size: 1.25rem; margin: 0 0 10px; color: #1a1a1a; line-height: 1.4; text-align: center; }
.article .meta { font-size: 0.8rem; color: #6b5b55; margin: 0 0 24px; text-align: center; }
.article .body p { font-size: 0.9375rem; color: #3d3530; margin-bottom: 1em; }
.article .body h2 { font-size: 1.05rem; margin: 1.5em 0 0.5em; color: #1a1a1a; }
.article .tags { margin-top: 24px; text-align: center; }
.article .tags span { display: inline-block; margin: 0 6px 8px 0; padding: 4px 12px; background: #f0e6e0; color: #c41e3a; border-radius: 6px; font-size: 0.8rem; }
.article .back { display: inline-block; margin-top: 24px; color: #c41e3a; text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.article .back:hover { text-decoration: underline; }

/* 页脚 */
.foot { background: #1a1a1a; color: #b8b0a8; padding: 24px 20px; }
.foot .inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot .copy { font-size: 0.8rem; margin: 0; }
.foot .links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot .links a { color: #b8b0a8; text-decoration: none; font-size: 0.8rem; }
.foot .links a:hover { color: #fff; }
