/* 禁漫天堂 - 深红平台风格 · 禁漫天堂官网 · 热门禁漫在线漫画阅读平台 | 最新漫画 */
:root {
  --bg: #1a1a1a;
  --bg-card: #242424;
  --text: #f5f5f5;
  --text-muted: #a0a0a0;
  --accent: #dc3545;
  --accent-hover: #c82333;
  --border: #3a3a3a;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; font-size: 14px; min-height: 100vh; }

header {
  background: var(--bg-card);
  border-bottom: 2px solid var(--accent);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner { max-width: 1100px; margin: 0 auto; height: 54px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 700; font-size: 1.25rem; color: var(--accent); text-decoration: none; }
.logo:hover { color: var(--accent-hover); }
.nav { list-style: none; display: flex; gap: 22px; }
.nav a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.nav a:hover { color: var(--accent); }

main { max-width: 1100px; margin: 0 auto; padding: 20px; }

/* 顶部官网横幅 - 全宽强调 */
.banner {
  background: linear-gradient(135deg, var(--accent) 0%, #a71d2a 100%);
  border-radius: var(--radius);
  margin-bottom: 20px;
  padding: 24px 28px;
  text-align: center;
  border: 1px solid rgba(220, 53, 69, 0.3);
}
.banner h1 { font-size: 1.2rem; color: #fff; margin-bottom: 6px; font-weight: 600; }
.banner p { font-size: 0.9rem; color: rgba(255,255,255,0.9); }

.intro { background: var(--bg-card); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px; border: 1px solid var(--border); }
.intro h2 { font-size: 1.05rem; color: var(--accent); margin-bottom: 12px; font-weight: 600; }
.intro p { margin-bottom: 10px; font-size: 0.95rem; color: var(--text-muted); line-height: 1.85; }

/* 热门禁漫横向滚动区 */
.section { margin-bottom: 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.section-head h2 { font-size: 1rem; color: var(--text); font-weight: 600; }
.section-head .more { color: var(--accent); text-decoration: none; font-size: 13px; }
.section-head .more:hover { text-decoration: underline; }

.hot-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--border);
}
.hot-scroll::-webkit-scrollbar { height: 6px; }
.hot-scroll::-webkit-scrollbar-track { background: var(--border); border-radius: 3px; }
.hot-scroll::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
.hot-item {
  flex-shrink: 0;
  width: 140px;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hot-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.hot-item a { text-decoration: none; color: inherit; display: block; }
.hot-item .cover { aspect-ratio: 3/4; overflow: hidden; }
.hot-item .cover img { width: 100%; height: 100%; object-fit: cover; }
.hot-item .info { padding: 10px; }
.hot-item .t { font-size: 13px; font-weight: 500; margin-bottom: 4px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-item .tag { font-size: 11px; color: var(--accent); }

/* 网格区 */
.manga-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.manga-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.manga-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.manga-card a { text-decoration: none; color: inherit; display: block; }
.manga-card .cover { aspect-ratio: 3/4; overflow: hidden; }
.manga-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.manga-card .info { padding: 10px; }
.manga-card .t { font-size: 13px; font-weight: 500; margin-bottom: 4px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manga-card .tag { font-size: 11px; color: var(--accent); }

.page-title { margin-bottom: 18px; }
.page-title h1 { font-size: 1.2rem; color: var(--text); margin-bottom: 4px; font-weight: 600; }
.page-title p { font-size: 13px; color: var(--text-muted); }

.article { max-width: 720px; margin: 0 auto; background: var(--bg-card); padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); }
.article h1 { font-size: 1.25rem; margin-bottom: 12px; color: var(--text); font-weight: 600; }
.article .meta { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.article .content p { margin-bottom: 12px; font-size: 14px; color: var(--text-muted); line-height: 1.85; }
.article .content img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; border: 1px solid var(--border); }
.article .back { display: inline-block; margin-top: 18px; color: var(--accent); text-decoration: none; font-size: 13px; }
.article .back:hover { text-decoration: underline; }

footer { max-width: 1100px; margin: 24px auto 0; padding: 18px 20px; border-top: 1px solid var(--border); text-align: center; font-size: 12px; color: var(--text-muted); }

@media (max-width: 600px) {
  .manga-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hot-item { width: 120px; }
}
