/* jmcomic漫画官网 - 奶油米黄Feed流风格 · jmcomic2mic网页版 */
:root {
  --bg: #faf6f0;
  --card: #fffef9;
  --text: #3d3529;
  --text-muted: #6b5d4d;
  --accent: #b8860b;
  --accent-hover: #8b6914;
  --border: #e8e0d4;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(61, 53, 41, 0.06);
  --max-w: 900px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "PingFang SC", "Microsoft YaHei", Georgia, serif; background: var(--bg); color: var(--text); line-height: 1.7; font-size: 14px; min-height: 100vh; }

header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 18px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner { max-width: var(--max-w); margin: 0 auto; height: 52px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 700; font-size: 1.15rem; color: var(--accent); text-decoration: none; }
.logo:hover { color: var(--accent-hover); }
.nav { list-style: none; display: flex; gap: 18px; }
.nav a { color: var(--text-muted); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--accent); }

main { max-width: var(--max-w); margin: 0 auto; padding: 18px; }

/* 顶部区 */
.top-area {
  background: linear-gradient(135deg, #fffef9 0%, #f5f0e6 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  padding: 24px 28px;
  text-align: center;
}
.top-area h1 { font-size: 1.25rem; color: var(--text); margin-bottom: 8px; font-weight: 600; }
.top-area p { font-size: 0.95rem; color: var(--text-muted); }

/* 简介区 */
.intro { background: var(--card); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.intro h2 { font-size: 1.05rem; color: var(--accent); margin-bottom: 12px; font-weight: 600; }
.intro p { margin-bottom: 10px; font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; }

/* Feed流：左图右文横排 */
.feed { display: flex; flex-direction: column; gap: 12px; }
.feed-item {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feed-item:hover { box-shadow: 0 4px 20px rgba(61, 53, 41, 0.1); transform: translateX(4px); }
.feed-item a { display: flex; align-items: stretch; text-decoration: none; color: inherit; gap: 0; }
.feed-item .thumb { width: 100px; min-height: 133px; flex-shrink: 0; overflow: hidden; }
.feed-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.feed-item .body { flex: 1; padding: 14px 18px; min-width: 0; }
.feed-item .t { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; color: var(--text); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.feed-item .m { font-size: 0.82rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.section { margin-bottom: 20px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; 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(140px, 1fr)); gap: 14px; }
.manga-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.manga-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(61, 53, 41, 0.1); }
.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 .m { font-size: 11px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

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

.article { max-width: 680px; margin: 0 auto; background: var(--card); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.article h1 { font-size: 1.25rem; margin-bottom: 12px; 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.8; }
.article .content img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; border: 1px solid var(--border); }
.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: var(--max-w); margin: 28px auto 0; padding: 18px; border-top: 1px solid var(--border); text-align: center; font-size: 12px; color: var(--text-muted); }

@media (max-width: 600px) {
  .feed-item a { flex-direction: column; }
  .feed-item .thumb { width: 100%; min-height: 140px; aspect-ratio: 3/4; }
  .manga-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .manga-card .info { padding: 8px; }
  .manga-card .t { font-size: 12px; }
}
