/* 哔咔漫画 - 深色夜间阅读风格 · 专业漫画阅读平台 · 海量正版漫画在线观看 */
:root {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-elevated: #334155;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #22d3ee;
  --accent-hover: #67e8f9;
  --border: #334155;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
}

* { 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(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner { max-width: 980px; margin: 0 auto; height: 52px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.logo:hover { color: var(--accent); }
.nav { list-style: none; display: flex; gap: 20px; }
.nav a { color: var(--text-muted); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.nav a:hover { color: var(--accent); }

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

/* 居中横幅条 */
.strip {
  background: linear-gradient(90deg, transparent 0%, var(--bg-elevated) 20%, var(--bg-elevated) 80%, transparent 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 24px;
  text-align: center;
}
.strip h1 { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.strip p { font-size: 0.88rem; color: var(--accent); }

/* 居中窄幅简介 */
.intro-wrap { display: flex; justify-content: center; margin-bottom: 24px; }
.intro {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  max-width: 640px;
}
.intro h2 { font-size: 1rem; color: var(--accent); margin-bottom: 12px; font-weight: 600; }
.intro p { margin-bottom: 10px; font-size: 0.92rem; color: var(--text-muted); line-height: 1.85; }

/* 本周焦点 - 单张大图 */
.spotlight { margin-bottom: 24px; }
.spotlight h2 { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 12px; font-weight: 600; }
.spotlight-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: opacity 0.2s;
}
.spotlight-card:hover { opacity: 0.95; }
.spotlight-card a { text-decoration: none; color: inherit; display: block; }
.spotlight-card .cover { aspect-ratio: 21/9; overflow: hidden; }
.spotlight-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.spotlight-card .info { padding: 12px 16px; }
.spotlight-card .t { font-size: 1rem; font-weight: 500; color: var(--text); }
.spotlight-card .tag { font-size: 12px; color: var(--accent); margin-top: 4px; }

/* 人气作品 - 列表式 Feed */
.feed { margin-bottom: 24px; }
.feed h2 { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 12px; font-weight: 600; }
.feed-list { display: flex; flex-direction: column; gap: 0; }
.feed-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.feed-item:last-child { border-bottom: none; }
.feed-item:hover { background: var(--bg-card); }
.feed-item a { text-decoration: none; color: inherit; display: flex; align-items: center; gap: 14px; flex: 1; }
.feed-item .thumb { width: 72px; flex-shrink: 0; aspect-ratio: 3/4; border-radius: 6px; overflow: hidden; }
.feed-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.feed-item .txt { flex: 1; min-width: 0; }
.feed-item .t { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-item .tag { font-size: 11px; color: var(--text-muted); }

/* 网格区 */
.section { margin-bottom: 24px; }
.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.95rem; color: var(--text-muted); font-weight: 600; }
.section-head .more { color: var(--accent); text-decoration: none; font-size: 12px; }
.section-head .more:hover { text-decoration: underline; }

.manga-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.manga-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
}
.manga-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.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: 18px; }
.page-title h1 { font-size: 1.15rem; color: var(--text); margin-bottom: 4px; font-weight: 600; }
.page-title p { font-size: 12px; color: var(--text-muted); }

.article { max-width: 680px; margin: 0 auto; background: var(--bg-card); padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); }
.article h1 { font-size: 1.15rem; 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: 12px; font-size: 14px; color: var(--text-muted); line-height: 1.85; }
.article .content img { max-width: 100%; height: auto; border-radius: 6px; margin: 14px 0; }
.article .back { display: inline-block; margin-top: 16px; color: var(--accent); text-decoration: none; font-size: 12px; }
.article .back:hover { text-decoration: underline; }

footer { max-width: 980px; 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) {
  .feed-item .thumb { width: 56px; }
  .manga-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
