/* 91漫画 - 暖橙琥珀风格 · 免费好看最新最全 */
:root {
  --bg: #fffaf5;
  --card: #fff;
  --text: #2c1810;
  --text-muted: #6b5344;
  --accent: #e67e22;
  --accent-hover: #d35400;
  --accent-soft: #fdebd0;
  --border: #f5e6d3;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(230, 126, 34, 0.1);
  --max-w: 1160px;
}

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

header {
  background: var(--card);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner { max-width: var(--max-w); margin: 0 auto; height: 52px; 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: var(--max-w); margin: 0 auto; padding: 20px; }

/* 焦点区 */
.hero {
  background: linear-gradient(135deg, var(--accent-soft) 0%, #fff 100%);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.hero-inner { display: flex; align-items: center; gap: 24px; padding: 20px 24px; flex-wrap: wrap; }
.hero-img { flex-shrink: 0; width: 140px; height: 186px; border-radius: 8px; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-text { flex: 1; min-width: 200px; }
.hero h1 { font-size: 1.25rem; color: var(--text); margin-bottom: 8px; font-weight: 600; }
.hero p { font-size: 0.9rem; color: var(--text-muted); }

/* 简介区 */
.intro { background: var(--card); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 20px; 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.7; }

/* Tab 标签区 */
.tabs { display: flex; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs a {
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--card);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.tabs a:hover, .tabs a.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.section { margin-bottom: 22px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.section-head h2 { font-size: 1.05rem; 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(130px, 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 20px rgba(230, 126, 34, 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: 3px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manga-card .m { font-size: 11px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.page-title { margin-bottom: 16px; }
.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: 680px; margin: 0 auto; background: var(--card); padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.article h1 { font-size: 1.25rem; 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: 28px auto 0; padding: 16px; border-top: 1px solid var(--border); text-align: center; font-size: 12px; color: var(--text-muted); }

@media (max-width: 600px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-img { width: 120px; height: 160px; margin: 0 auto; }
  .manga-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .manga-card .info { padding: 8px; }
  .manga-card .t { font-size: 12px; }
}
