/* 妖精漫画官网 - 极简编辑风：留白+单色强调 */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=Noto+Sans+SC:wght@300;400;500;600&display=swap');

:root {
  --bg: #f8f8f6;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --ink-light: #5c5c5c;
  --accent: #2d6a6a;
  --accent-soft: #e8f0f0;
  --rule: #e0e0e0;
}

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

body {
  font-family: 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.75;
}

/* 顶栏 */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.logo {
  font-family: 'Source Serif 4', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-menu a {
  color: var(--ink-light);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--accent);
}

/* 主区 */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

/* 首屏大标题 */
.hero {
  text-align: center;
  padding: 3rem 1rem 2.5rem;
}

.hero img {
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
  border-radius: 4px;
}

.hero h1 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-size: 0.95rem;
  color: var(--ink-light);
}

/* 文案块 - 左线强调 */
.prose {
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.prose h2 {
  font-family: 'Source Serif 4', serif;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 1.8rem 0 0.8rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

.prose p {
  color: var(--ink-light);
  margin-bottom: 1rem;
}

/* Bento 网格 - 不规则块 */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
  margin: 2rem 0;
}

.bento .cell {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bento .cell:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(45, 106, 106, 0.08);
}

.bento .cell:nth-child(1) { grid-column: span 2; }
.bento .cell:nth-child(2) { grid-column: span 2; }
.bento .cell:nth-child(3) { grid-column: span 2; }
.bento .cell:nth-child(4) { grid-column: span 2; }

.bento .cell img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.bento .cell h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.bento .cell h3 a {
  color: var(--ink);
  text-decoration: none;
}

.bento .cell h3 a:hover {
  color: var(--accent);
}

.bento .cell p {
  font-size: 0.85rem;
  color: var(--ink-light);
  margin: 0;
}

/* 列表页 */
.section-head {
  margin-bottom: 1.5rem;
}

.section-head h1 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.section-head p {
  font-size: 0.95rem;
  color: var(--ink-light);
}

/* 列表项 - 横条式 */
.list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.list-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  transition: border-color 0.2s;
}

.list-item:hover {
  border-color: var(--accent);
}

.list-item img {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.list-item .body {
  flex: 1;
  min-width: 0;
}

.list-item .body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.list-item .body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.list-item .body h3 a:hover {
  color: var(--accent);
}

.list-item .body p {
  font-size: 0.88rem;
  color: var(--ink-light);
  margin: 0;
}

/* 内容页 */
.article {
  max-width: 680px;
  margin: 0 auto;
}

.article .head {
  margin-bottom: 1.5rem;
}

.article .head h1 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.article .meta {
  font-size: 0.85rem;
  color: var(--ink-light);
}

.article .content {
  background: var(--paper);
  padding: 2rem;
  border-radius: 6px;
  border: 1px solid var(--rule);
}

.article .content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1.25rem 0;
}

.article .content h2 {
  font-family: 'Source Serif 4', serif;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 1.5rem 0 0.6rem;
}

.article .content h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}

.article .content p {
  color: var(--ink-light);
  margin-bottom: 1rem;
}

.article .content ul, .article .content ol {
  margin: 0.75rem 0 1rem 1.5rem;
  color: var(--ink-light);
}

/* 链接条 */
.links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.links a {
  padding: 0.5rem 1rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.links a:hover {
  background: var(--accent);
  color: var(--paper);
}

/* 页脚 */
.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 1.25rem;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  text-align: center;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.site-footer p {
  font-size: 0.88rem;
  color: var(--ink-light);
  margin-bottom: 0.35rem;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

/* 响应式 */
@media (max-width: 768px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .bento .cell:nth-child(1),
  .bento .cell:nth-child(2),
  .bento .cell:nth-child(3),
  .bento .cell:nth-child(4) {
    grid-column: span 1;
  }

  .list-item {
    flex-direction: column;
  }

  .list-item img {
    width: 100%;
    height: 160px;
  }
}

@media (max-width: 480px) {
  main {
    padding: 1.25rem 1rem;
  }

  .article .content {
    padding: 1.5rem;
  }
}
