/* 哔咔漫画官网-picacg-好看的漫画-漫画在线观看 */
:root {
  --bg: #fffbeb;
  --bg-alt: #fef3c7;
  --card: #fff;
  --text: #1c1917;
  --text-muted: #78716c;
  --accent: #0d9488;
  --accent-2: #f59e0b;
  --border: #fde68a;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(13, 148, 136, 0.08);
}

* { 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: 3px solid var(--accent);
  padding: 0 18px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1020px;
  margin: 0 auto;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  text-decoration: none;
}
.logo .sub { font-size: 0.75rem; color: var(--text-muted); font-weight: 400; margin-left: 4px; }
.logo:hover { opacity: 0.85; }
.nav { list-style: none; display: flex; gap: 4px; }
.nav a {
  display: block;
  padding: 8px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav a:hover { color: var(--accent); background: rgba(13, 148, 136, 0.06); }

main { max-width: 1020px; margin: 0 auto; padding: 22px 18px; }

/* 标签云条 */
.tag-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 0;
  margin-bottom: 20px;
  border-bottom: 2px dashed var(--border);
}
.tag-bar a {
  display: block;
  padding: 6px 14px;
  background: var(--card);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.tag-bar a:hover { border-color: var(--accent); color: var(--accent); background: rgba(13, 148, 136, 0.05); }

/* 区块 - 交替背景 */
.block { padding: 24px 0; }
.block:nth-child(even) { background: var(--bg-alt); margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
.block-inner { max-width: 1020px; margin: 0 auto; }

.intro {
  padding: 20px 0;
}
.intro h2 { font-size: 1.05rem; color: var(--accent); margin-bottom: 12px; font-weight: 600; }
.intro p { margin-bottom: 10px; font-size: 0.94rem; color: var(--text-muted); line-height: 1.85; }

/* 主标语 */
.lead {
  text-align: center;
  padding: 24px 20px;
  margin-bottom: 20px;
}
.lead h1 { font-size: 1.4rem; color: var(--text); margin-bottom: 8px; font-weight: 700; }
.lead p { font-size: 0.9rem; color: var(--text-muted); }

/* 大图 + 双小图 组合 */
.cover-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.cover-main {
  grid-row: span 2;
  align-self: stretch;
}
.cover-main .card-inner { height: 100%; }
.cover-main .cover { aspect-ratio: 3/4; }
.cover-row .card { height: 100%; }
.cover-row .cover { aspect-ratio: 3/4; }
@media (max-width: 640px) {
  .cover-row { grid-template-columns: 1fr; }
  .cover-main { grid-row: span 1; }
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(13, 148, 136, 0.1);
  transition: transform 0.2s;
}
.card:hover { transform: translateY(-2px); }
.card a { text-decoration: none; color: inherit; display: block; }
.card .cover { overflow: hidden; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .info { padding: 12px; }
.card .t { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .tag { font-size: 11px; color: var(--text-muted); }
.card .ribbon {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent-2);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}
.card { position: relative; }

/* 网格 */
.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(--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(148px, 1fr)); gap: 16px; }
.manga-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(13, 148, 136, 0.1);
  transition: transform 0.2s;
  position: relative;
}
.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: 600; margin-bottom: 4px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manga-card .tag { font-size: 11px; color: var(--text-muted); }
.manga-card .ribbon { position: absolute; top: 6px; right: 6px; background: var(--accent-2); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 600; }

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

.article {
  max-width: 700px;
  margin: 0 auto;
  background: var(--card);
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(13, 148, 136, 0.1);
}
.article h1 { font-size: 1.2rem; 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: 10px; margin: 16px 0; }
.article .back { display: inline-block; margin-top: 18px; color: var(--accent); text-decoration: none; font-size: 13px; }
.article .back:hover { text-decoration: underline; }

footer {
  max-width: 1020px;
  margin: 28px auto 0;
  padding: 18px;
  border-top: 2px dashed 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; }
}
