/* 禁漫天堂 - 深色墨绿护眼阅读风格 · 免费高清漫画在线阅读平台 */
:root {
  --bg: #1a2f2a;
  --bg-card: #223d36;
  --bg-side: #1e3630;
  --text: #e8ebe0;
  --text-muted: #9eb5ad;
  --accent: #4ade80;
  --accent-hover: #22c55e;
  --border: #2d4a42;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
}

* { 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: 1px solid var(--border);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner { max-width: 1200px; margin: 0 auto; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 700; font-size: 1.2rem; color: var(--accent); text-decoration: none; }
.logo:hover { color: var(--accent-hover); }
.nav { list-style: none; display: flex; gap: 20px; }
.nav a { color: var(--text-muted); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--accent); }

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

/* 顶部横幅 */
.banner {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-side) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  padding: 28px 32px;
  text-align: center;
}
.banner h1 { font-size: 1.35rem; color: var(--text); margin-bottom: 8px; font-weight: 600; }
.banner p { font-size: 0.95rem; color: var(--text-muted); }

/* 双栏：左主右侧 */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }
@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
  .aside { order: -1; }
}

.main-col { min-width: 0; }

.intro { background: var(--bg-card); border-radius: var(--radius); padding: 22px 26px; 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: 20px; }
.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; }

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

.aside { background: var(--bg-side); border-radius: var(--radius); padding: 18px; border: 1px solid var(--border); }
.aside h3 { font-size: 0.95rem; color: var(--accent); margin-bottom: 12px; font-weight: 600; }
.daily-list { list-style: none; }
.daily-list li { border-bottom: 1px solid var(--border); padding: 10px 0; }
.daily-list li:last-child { border-bottom: none; }
.daily-list a { text-decoration: none; color: var(--text-muted); font-size: 13px; display: block; }
.daily-list a:hover { color: var(--accent); }
.daily-list .date { font-size: 11px; color: var(--accent); margin-bottom: 2px; }

.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: 26px; 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: 1200px; 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) {
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .book-card .info { padding: 8px; }
  .book-card .t { font-size: 12px; }
}
