/* 禁漫天堂 - 移动优先浅蓝风格 · 手机漫画 · 好看的漫画 · 最新最全的免费漫画 */
:root {
  --bg: #e8f4fc;
  --card: #fff;
  --text: #1a3a52;
  --text-muted: #5a7a92;
  --accent: #0288d1;
  --accent-hover: #0277bd;
  --border: #b3d9f2;
  --radius: 14px;
  --shadow: 0 2px 16px rgba(2, 136, 209, 0.1);
}

* { 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; padding-bottom: 72px; }

header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner { max-width: 640px; margin: 0 auto; height: 52px; display: flex; align-items: center; justify-content: center; }
.logo { font-weight: 700; font-size: 1.15rem; color: var(--accent); text-decoration: none; }
.logo:hover { color: var(--accent-hover); }

main { max-width: 640px; margin: 0 auto; padding: 16px; }

/* 顶部区域 - 移动端大标题 */
.lead {
  background: linear-gradient(135deg, var(--card) 0%, #f0f9ff 100%);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  text-align: center;
}
.lead h1 { font-size: 1.15rem; color: var(--text); margin-bottom: 6px; font-weight: 600; line-height: 1.5; }
.lead p { font-size: 0.9rem; color: var(--text-muted); }

/* 简介区 */
.intro { background: var(--card); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.intro h2 { font-size: 1rem; color: var(--accent); margin-bottom: 10px; font-weight: 600; }
.intro p { margin-bottom: 10px; font-size: 0.92rem; color: var(--text-muted); line-height: 1.85; }

/* 底部Tab导航 - 移动端风格 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 12px;
  z-index: 100;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 -2px 12px rgba(2, 136, 209, 0.08);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--text-muted); font-size: 11px; gap: 4px; padding: 4px 12px; border-radius: 10px; transition: color 0.2s, background 0.2s; }
.bottom-nav a:hover, .bottom-nav a.active { color: var(--accent); background: rgba(2, 136, 209, 0.08); }
.bottom-nav .icon { font-size: 1.25rem; }

.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: 0.98rem; 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; }

/* 大卡片网格 - 手机漫画风格，触摸友好 */
.manga-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.manga-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.manga-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(2, 136, 209, 0.15); }
.manga-card:active { transform: scale(0.98); }
.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: 12px; }
.manga-card .t { font-size: 14px; font-weight: 500; margin-bottom: 4px; color: var(--text); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
.manga-card .tag { font-size: 11px; color: var(--accent); }

/* 桌面端：3列 */
@media (min-width: 480px) {
  .manga-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .manga-card .t { -webkit-line-clamp: 2; }
}

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

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

footer { max-width: 640px; margin: 20px auto 0; padding: 16px; text-align: center; font-size: 12px; color: var(--text-muted); }

/* 内容页/列表页无底部导航时 */
body.no-bottom-nav { padding-bottom: 0; }
