/* 91漫画 - 主流漫画平台风格（行业领先、海量高清） */
:root {
  --bg: #f5f6f8;
  --card: #fff;
  --text: #333;
  --text-muted: #666;
  --accent: #1890ff;
  --accent-hover: #40a9ff;
  --border: #e8e8e8;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --max-w: 1200px;
}

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

/* 顶栏 */
header {
  background: var(--card);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner { max-width: var(--max-w); margin: 0 auto; height: 56px; 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: 24px; }
.nav a { color: var(--text-muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--accent); }

main { max-width: var(--max-w); margin: 0 auto; padding: 20px; }

/* 轮播横幅 */
.banner {
  background: linear-gradient(135deg, #e6f4ff 0%, #f0f5ff 100%);
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow: hidden;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.banner-inner { padding: 24px; text-align: center; }
.banner h1 { font-size: 1.5rem; color: var(--text); margin-bottom: 8px; font-weight: 600; }
.banner p { color: var(--text-muted); font-size: 0.95rem; }

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

/* 区块标题 */
.section { margin-bottom: 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { font-size: 1.1rem; color: var(--text); font-weight: 600; }
.section-head .more { color: var(--accent); text-decoration: none; font-size: 14px; }
.section-head .more:hover { text-decoration: underline; }

/* 漫画卡片网格 */
.manga-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.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(-4px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.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; white-space: nowrap; }
.manga-card .m { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 页面标题 */
.page-title { margin-bottom: 20px; }
.page-title h1 { font-size: 1.25rem; color: var(--text); margin-bottom: 4px; font-weight: 600; }
.page-title p { font-size: 14px; color: var(--text-muted); }

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

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

@media (max-width: 768px) {
  .header-inner { height: auto; padding: 12px 0; flex-wrap: wrap; }
  .manga-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .banner { height: 160px; }
  .banner h1 { font-size: 1.2rem; }
}
