/* 哔咔漫画 - 专业漫画阅读平台 · 海量正版漫画在线观看 */
:root {
  --bg: #fefdfb;
  --bg-alt: #f8f6f3;
  --card: #fff;
  --text: #1c1917;
  --text-muted: #78716c;
  --accent: #b45309;
  --accent-hover: #92400e;
  --brand: #334155;
  --border: #e7e5e4;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; font-size: 14px; min-height: 100vh; }

header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner { max-width: 1100px; margin: 0 auto; height: 58px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 700; font-size: 1.25rem; color: var(--brand); text-decoration: none; letter-spacing: 0.02em; }
.logo:hover { color: var(--accent); }
.logo span { color: var(--accent); }
.nav { list-style: none; display: flex; gap: 24px; }
.nav a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.nav a:hover { color: var(--accent); }

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

/* 左右分栏 Hero - 左文案右大图 */
.hero {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 24px;
  align-items: center;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 24px;
}
.hero-text h1 { font-size: 1.4rem; color: var(--brand); margin-bottom: 8px; font-weight: 600; line-height: 1.4; }
.hero-text .tagline { font-size: 0.95rem; color: var(--accent); margin-bottom: 6px; font-weight: 500; }
.hero-text p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.hero-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; max-height: 240px; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; }
  .hero-img { max-height: 180px; justify-self: center; max-width: 140px; }
}

.intro { background: var(--card); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.intro h2 { font-size: 1.05rem; color: var(--brand); margin-bottom: 14px; font-weight: 600; }
.intro p { margin-bottom: 12px; font-size: 0.95rem; color: var(--text-muted); line-height: 1.85; }

/* 编辑精选 - 横向大卡片 */
.picks { margin-bottom: 24px; }
.picks h2 { font-size: 1rem; color: var(--brand); margin-bottom: 14px; font-weight: 600; }
.picks-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.picks-row::-webkit-scrollbar { height: 6px; }
.picks-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.pick-card {
  flex: 0 0 140px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s;
}
.pick-card:hover { transform: translateY(-3px); }
.pick-card a { text-decoration: none; color: inherit; display: block; }
.pick-card .cover { aspect-ratio: 3/4; overflow: hidden; }
.pick-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.pick-card .info { padding: 10px; }
.pick-card .t { font-size: 13px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 标准网格 */
.section { margin-bottom: 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.section-head h2 { font-size: 1rem; color: var(--brand); 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(150px, 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;
}
.manga-card:hover { transform: translateY(-2px); }
.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 .tag { font-size: 11px; color: var(--text-muted); }

.page-title { margin-bottom: 20px; }
.page-title h1 { font-size: 1.25rem; color: var(--brand); margin-bottom: 6px; font-weight: 600; }
.page-title p { font-size: 13px; color: var(--text-muted); }

.article { max-width: 720px; margin: 0 auto; background: var(--card); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); 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: 16px; }
.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; }
.article .back { display: inline-block; margin-top: 20px; color: var(--accent); text-decoration: none; font-size: 13px; }
.article .back:hover { text-decoration: underline; }

footer { max-width: 1100px; margin: 32px auto 0; padding: 20px; 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: 12px; }
}
