/* 韩漫之家 - 深色顶栏+琥珀背景+ bento 网格+缩略图列表，与 28/32/33 完全不同 */
* { box-sizing: border-box; }
body { margin: 0; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; background: #fffbeb; color: #1c1917; line-height: 1.65; }

/* 顶栏：深石板单行，logo 左 nav 右 */
.hd { background: #0f172a; color: #fff; position: sticky; top: 0; z-index: 10; }
.hd .inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 56px; }
.hd .logo { font-size: 1.35rem; font-weight: 700; letter-spacing: 0.02em; }
.hd .logo a { color: #fef3c7; text-decoration: none; }
.hd .logo a:hover { color: #fde68a; }
.hd .nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.hd .nav a { padding: 8px 14px; color: #94a3b8; text-decoration: none; font-size: 0.9rem; border-radius: 8px; }
.hd .nav a:hover { color: #fef3c7; background: rgba(254,243,199,0.1); }
.hd .nav a.on { color: #fef3c7; background: rgba(254,243,199,0.15); }
@media (max-width: 640px) {
  .hd .inner { height: auto; min-height: 52px; padding: 10px 16px; }
  .hd .nav a { padding: 6px 10px; font-size: 0.85rem; }
}

/* 首屏：全宽图 + 底部渐变 + 居中标题 + 一颗主按钮 */
.hero { position: relative; min-height: 42vh; max-height: 380px; background: #1e293b; display: flex; align-items: flex-end; justify-content: center; }
.hero .bg { position: absolute; inset: 0; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.hero .mask { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,0.95) 0%, transparent 55%); }
.hero .cap { position: relative; width: 100%; max-width: 900px; margin: 0 auto; padding: 36px 20px 32px; text-align: center; }
.hero .cap h1 { margin: 0; font-size: clamp(1.25rem, 4vw, 1.75rem); font-weight: 700; color: #fef3c7; line-height: 1.35; }
.hero .cap p { margin: 10px 0 18px; font-size: 0.9rem; color: #cbd5e1; }
.hero .cap .btn { display: inline-block; padding: 10px 24px; background: #ea580c; color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9rem; border-radius: 999px; }
.hero .cap .btn:hover { background: #c2410c; }

/* 区块通用 */
.sec { padding: 32px 0 40px; }
.sec .mw { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.sec .tt { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin: 0 0 20px; padding-bottom: 10px; border-bottom: 3px solid #ea580c; display: inline-block; }

/* Bento 网格：一大卡 + 四小卡（或 2x2 小卡） */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bento .main { grid-row: span 2; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 4px 20px rgba(15,23,42,0.08); }
.bento .main a { display: block; text-decoration: none; color: inherit; }
.bento .main .img { aspect-ratio: 4/5; overflow: hidden; }
.bento .main .img img { width: 100%; height: 100%; object-fit: cover; }
.bento .main .cap { padding: 18px; }
.bento .main .cap .t { font-weight: 700; font-size: 1.05rem; color: #0f172a; margin-bottom: 6px; }
.bento .main .cap .d { font-size: 0.85rem; color: #64748b; line-height: 1.5; }
.bento .card { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 4px 16px rgba(15,23,42,0.06); }
.bento .card a { display: flex; text-decoration: none; color: inherit; gap: 12px; padding: 12px; }
.bento .card .img { width: 72px; height: 96px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.bento .card .img img { width: 100%; height: 100%; object-fit: cover; }
.bento .card .txt { flex: 1; min-width: 0; }
.bento .card .txt .t { font-weight: 600; font-size: 0.9rem; color: #0f172a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bento .card .txt .tag { font-size: 0.75rem; color: #ea580c; margin-top: 4px; }
@media (max-width: 700px) {
  .bento { grid-template-columns: 1fr; }
  .bento .main { grid-row: span 1; }
}

/* 缩略图列表：每行 小图左 + 标题 + 摘要 */
.thumb-list { list-style: none; padding: 0; margin: 0; }
.thumb-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid #fde68a; }
.thumb-list li:last-child { border-bottom: none; }
.thumb-list .thumb { width: 88px; height: 118px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: #fef3c7; }
.thumb-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-list .body { flex: 1; min-width: 0; }
.thumb-list .body a { text-decoration: none; color: #0f172a; font-weight: 600; font-size: 0.98rem; }
.thumb-list .body a:hover { color: #ea580c; }
.thumb-list .body .d { font-size: 0.85rem; color: #64748b; margin-top: 6px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thumb-list .body .more { font-size: 0.8rem; color: #ea580c; margin-top: 8px; display: inline-block; }
@media (max-width: 600px) {
  .thumb-list .thumb { width: 70px; height: 94px; }
}

/* 首页长文案 */
.prose { max-width: 700px; margin: 0 auto; padding: 36px 20px 60px; }
.prose p { font-size: 0.9375rem; color: #44403c; margin-bottom: 1.1em; }

/* 列表页 */
.list-pg { padding: 28px 0 50px; }
.list-pg .mw { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.list-pg .path { font-size: 0.8rem; color: #78716c; margin-bottom: 14px; }
.list-pg .path a { color: #ea580c; text-decoration: none; }
.list-pg h1 { font-size: 1.35rem; color: #0f172a; margin: 0 0 8px; }
.list-pg .lead { font-size: 0.9rem; color: #64748b; margin: 0 0 24px; }
.list-pg .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.list-pg .grid .c { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(15,23,42,0.06); }
.list-pg .grid .c a { display: block; text-decoration: none; color: inherit; }
.list-pg .grid .c .img { aspect-ratio: 3/4; overflow: hidden; }
.list-pg .grid .c .img img { width: 100%; height: 100%; object-fit: cover; }
.list-pg .grid .c .t { padding: 12px; font-size: 0.88rem; font-weight: 600; color: #0f172a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-pg .back { display: inline-block; margin-top: 28px; color: #ea580c; text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.list-pg .back:hover { text-decoration: underline; }

/* 内容页： contained 顶图 + 单栏正文 */
.article { padding: 0 0 50px; }
.article .top-img { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.article .top-img .inner { border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; background: #1e293b; }
.article .top-img .inner img { width: 100%; height: 100%; object-fit: cover; }
.article .cnt { max-width: 640px; margin: 0 auto; padding: 28px 20px 0; }
.article .path { font-size: 0.8rem; color: #78716c; margin-bottom: 12px; }
.article .path a { color: #ea580c; text-decoration: none; }
.article h1 { font-size: 1.28rem; color: #0f172a; margin: 0 0 10px; line-height: 1.4; }
.article .meta { font-size: 0.82rem; color: #64748b; margin: 0 0 22px; }
.article .body p { font-size: 0.9375rem; color: #44403c; margin-bottom: 1em; }
.article .body h2 { font-size: 1.05rem; margin: 1.6em 0 0.5em; color: #0f172a; }
.article .tags { margin-top: 24px; }
.article .tags span { display: inline-block; margin: 0 8px 8px 0; padding: 5px 12px; background: #fff7ed; color: #c2410c; border-radius: 20px; font-size: 0.8rem; }
.article .related { margin-top: 36px; padding-top: 24px; border-top: 1px solid #fde68a; }
.article .related .tt { font-size: 0.95rem; font-weight: 700; color: #0f172a; margin-bottom: 14px; }
.article .related .bx { display: flex; gap: 12px; flex-wrap: wrap; }
.article .related .bx a { width: 100px; font-size: 0.85rem; color: #ea580c; text-decoration: none; }
.article .related .bx a:hover { text-decoration: underline; }
.article .back { display: inline-block; margin-top: 22px; color: #ea580c; text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.article .back:hover { text-decoration: underline; }

/* 页脚 */
.ft { background: #0f172a; color: #94a3b8; padding: 28px 20px; }
.ft .mw { max-width: 1100px; margin: 0 auto; }
.ft .copy { font-size: 0.85rem; margin: 0 0 12px; }
.ft .links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.ft .links a { color: #cbd5e1; text-decoration: none; font-size: 0.85rem; }
.ft .links a:hover { color: #fef3c7; }
