/* 91漫画网 - 薄荷绿阅读平台风格 · 免费漫画弹窗入口 */
:root {
  --bg: #e8f5e9;
  --card: #fff;
  --text: #1b5e20;
  --text-muted: #2e7d32;
  --accent: #43a047;
  --accent-hover: #2e7d32;
  --border: #c8e6c9;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(67, 160, 71, 0.12);
  --max-w: 1120px;
}

* { 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.65; font-size: 14px; min-height: 100vh; }

header {
  background: var(--card);
  box-shadow: 0 1px 5px rgba(0,0,0,0.06);
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--border);
}
.header-inner { max-width: var(--max-w); margin: 0 auto; height: 50px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 700; font-size: 1.15rem; color: var(--accent); text-decoration: none; }
.logo:hover { color: var(--accent-hover); }
.nav { list-style: none; display: flex; gap: 18px; }
.nav a { color: var(--text-muted); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--accent); }

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

/* 入口区 */
.entry-banner {
  background: linear-gradient(135deg, #c8e6c9 0%, #fff 100%);
  border-radius: var(--radius);
  margin-bottom: 18px;
  padding: 20px 24px;
  border: 1px solid var(--border);
}
.entry-banner h1 { font-size: 1.2rem; color: var(--text); margin-bottom: 8px; font-weight: 600; }
.entry-banner p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; }
.entry-btn { display: inline-block; background: var(--accent); color: #fff; padding: 10px 20px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 500; }
.entry-btn:hover { background: var(--accent-hover); }

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

.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; }

/* 漫画卡片 - 带入口按钮 */
.manga-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 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 18px rgba(67, 160, 71, 0.15); }
.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 .m { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manga-card .ent { font-size: 11px; color: var(--accent); font-weight: 500; }
.manga-card .ent::before { content: "进入阅读 "; }

.page-title { margin-bottom: 14px; }
.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: 660px; margin: 0 auto; background: var(--card); padding: 20px 24px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.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: 14px; }
.article .content p { margin-bottom: 10px; font-size: 14px; color: var(--text-muted); line-height: 1.75; }
.article .content img { max-width: 100%; height: auto; border-radius: 8px; 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: var(--max-w); margin: 24px auto 0; padding: 14px; 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; }
  .manga-card .info { padding: 8px; }
  .manga-card .t { font-size: 12px; }
}
