/* 51漫画 - 横列列表风格（SEO优化） */
:root {
  --bg: #f5f3f0;
  --card: #fff;
  --violet: #7c3aed;
  --violet-dim: #6d28d9;
  --text: #292524;
  --text-dim: #57534e;
  --border: #e7e5e4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* 顶栏 */
header[role="banner"] {
  background: var(--card);
  border-bottom: 2px solid var(--violet);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.site-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--violet);
}

nav[role="navigation"] {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}

nav[role="navigation"] a {
  padding: 10px 14px;
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.2s, background 0.2s;
}

nav[role="navigation"] a:hover {
  color: var(--violet);
  background: rgba(124,58,237,0.06);
}

/* 主内容 */
main[role="main"] {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* 无焦点大图，直接标题+介绍 */
.top-intro {
  background: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, transparent 60%);
  padding: 24px 28px;
  margin-bottom: 28px;
  border-radius: 0 0 12px 12px;
  border-left: 4px solid var(--violet);
}

.top-intro h1 {
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 12px;
}

.top-intro p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.75;
}

/* 介绍区块 */
.intro-sect {
  background: var(--card);
  padding: 26px 28px;
  margin-bottom: 28px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.intro-sect h2 {
  font-size: 1.1rem;
  color: var(--violet);
  margin-bottom: 16px;
}

.intro-sect p {
  color: var(--text-dim);
  margin-bottom: 12px;
  line-height: 1.78;
}

.intro-sect p:last-of-type { margin-bottom: 0; }

/* 横列列表 - 左图右文 */
.manga-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.manga-row {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--card);
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}

.manga-row:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateX(4px);
}

.manga-row .thumb {
  flex: 0 0 88px;
  width: 88px;
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
}

.manga-row .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manga-row .body {
  flex: 1;
  min-width: 0;
}

.manga-row .body h3 {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.manga-row .body h3:hover { color: var(--violet); }

.manga-row .body .desc {
  font-size: 13px;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.manga-row .body .tag {
  font-size: 12px;
  color: var(--violet);
  margin-top: 8px;
}

/* 区块标题 */
.sect-head {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.sect-head span { color: var(--violet); font-weight: 600; }

/* 内容页 */
.breadcrumb {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--violet); }
.breadcrumb a:hover { text-decoration: underline; }

article {
  background: var(--card);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

article h1 {
  font-size: 1.45rem;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-meta {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

article h2 {
  font-size: 1.05rem;
  color: var(--violet);
  margin: 20px 0 10px;
}

article p {
  margin-bottom: 11px;
  color: var(--text-dim);
  line-height: 1.78;
}

article .intro {
  font-size: 1.03rem;
  color: var(--text);
}

.article-img {
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
}

.article-img img { width: 100%; }

/* 列表页 */
.list-hero {
  height: 200px;
  position: relative;
  margin-bottom: 22px;
  border-radius: 10px;
  overflow: hidden;
}

.list-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.list-hero-caption h1 { font-size: 1.25rem; color: #fff; margin-bottom: 4px; }
.list-hero-caption p { font-size: 12px; color: rgba(255,255,255,0.88); }

/* 页脚 */
footer[role="contentinfo"] {
  background: var(--card);
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  padding: 22px 20px;
  margin-top: 36px;
  text-align: center;
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

footer nav a { color: var(--text-dim); font-size: 13px; }
footer nav a:hover { color: var(--violet); }
footer p { font-size: 12px; }

/* 响应式 */
@media (max-width: 600px) {
  .header-inner { flex-direction: column; align-items: stretch; padding: 12px 0; }
  nav[role="navigation"] { justify-content: center; }
  .manga-row { flex-direction: column; align-items: stretch; }
  .manga-row .thumb { flex: none; width: 100%; max-width: 140px; margin: 0 auto; }
  main[role="main"] { padding: 20px 16px; }
  .intro-sect { padding: 20px; }
  article { padding: 22px; }
  .list-hero { height: 160px; }
}
