/* 哔咔漫画 - 新粗野风格 · 免费在线漫画平台 · 最好看的漫画就在哔咔漫画 */
:root {
  --bg: #fefefe;
  --card: #fff;
  --text: #1a1a1a;
  --text-muted: #666;
  --accent: #ff6b6b;
  --accent-2: #ffd93d;
  --border: #1a1a1a;
  --radius: 4px;
  --brutal: 4px;
  --shadow: 6px 6px 0 #1a1a1a;
}

* { 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: 4px solid var(--border);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner { max-width: 1000px; margin: 0 auto; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 800; font-size: 1.3rem; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.logo:hover { color: var(--accent); }
.nav { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  display: block;
  padding: 8px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid var(--border);
  border-radius: 999px;
  transition: all 0.15s;
}
.nav a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

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

/* 粗野风格主标语 */
.hero-brutal {
  background: var(--accent-2);
  border: 4px solid var(--border);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.hero-brutal h1 { font-size: 1.35rem; font-weight: 800; line-height: 1.4; color: var(--text); margin-bottom: 6px; }
.hero-brutal p { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }

/* 简介 - 粗边框卡片 */
.intro {
  background: var(--card);
  border: 4px solid var(--border);
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.intro h2 { font-size: 1.1rem; color: var(--text); margin-bottom: 14px; font-weight: 800; }
.intro p { margin-bottom: 12px; font-size: 0.95rem; color: var(--text-muted); line-height: 1.85; }

/* Bento 网格 - 创意不规则布局 */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.bento .big {
  grid-column: span 2;
  grid-row: span 2;
}
.bento .tall { grid-row: span 2; }
.bento-card {
  background: var(--card);
  border: 4px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}
.bento-card:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--border); }
.bento-card a { text-decoration: none; color: inherit; display: block; height: 100%; }
.bento-card .cover { width: 100%; overflow: hidden; }
.bento-card.big .cover { aspect-ratio: 1; }
.bento-card:not(.big) .cover { aspect-ratio: 3/4; }
.bento-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.bento-card .info { padding: 12px; }
.bento-card .t { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bento-card .tag { font-size: 11px; color: var(--text-muted); }
@media (max-width: 700px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .big { grid-column: span 2; grid-row: span 1; }
  .bento .big .cover { aspect-ratio: 16/9; }
  .bento .tall { grid-row: span 1; }
}

/* 圆形封面区 - 创意 */
.circle-section { margin-bottom: 24px; }
.circle-section h2 { font-size: 1rem; font-weight: 800; margin-bottom: 14px; color: var(--text); }
.circle-row { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 10px; -webkit-overflow-scrolling: touch; }
.circle-row::-webkit-scrollbar { height: 8px; }
.circle-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.circle-item { flex-shrink: 0; text-align: center; }
.circle-item a { text-decoration: none; color: inherit; display: block; }
.circle-item .thumb {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--border);
  box-shadow: 4px 4px 0 var(--border);
  margin-bottom: 8px;
}
.circle-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.circle-item .t { font-size: 12px; font-weight: 600; color: var(--text); max-width: 90px; 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; font-weight: 800; color: var(--text); }
.section-head .more {
  padding: 6px 12px;
  background: var(--text);
  color: var(--card);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  transition: background 0.15s;
}
.section-head .more:hover { background: var(--accent); }

.manga-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.manga-card {
  background: var(--card);
  border: 4px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}
.manga-card:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--border); }
.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: 700; 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; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.page-title p { font-size: 13px; color: var(--text-muted); }

.article {
  max-width: 700px;
  margin: 0 auto;
  background: var(--card);
  padding: 28px;
  border: 4px solid var(--border);
  box-shadow: var(--shadow);
}
.article h1 { font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; color: var(--text); }
.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: 4px solid var(--border); margin: 16px 0; }
.article .back {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 16px;
  background: var(--text);
  color: var(--card);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
}
.article .back:hover { background: var(--accent); }

footer {
  max-width: 1000px;
  margin: 32px auto 0;
  padding: 20px;
  border-top: 4px 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; }
}
