/* =========================================================
   韩漫网 sihaigongying.com 整站样式
   说明：本文件覆盖全站所有页面真实 DOM，按
   base / layout / components / pages / responsive 分组。
   ========================================================= */

/* =========================================================
   base —— 变量、重置、全局字体与基础元素
   ========================================================= */
:root {
  --bg: #f6f6f3;
  --surface: #ffffff;
  --text-main: #23272f;
  --text-secondary: #6b7280;
  --primary: #3a5a8c;
  --accent: #ff6b4a;
  --tag-bg: #eef1f5;
  --tag-text: #4a5568;
  --status-ongoing: #2f9e63;
  --status-done: #3a5a8c;
  --status-paused: #8a919c;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(35, 39, 47, .07);
  --shadow-md: 0 4px 14px rgba(35, 39, 47, .08);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", Consolas, "Liberation Mono", monospace;
  --header-h: 64px;
  --header-h-scrolled: 48px;
  --container-home: 1440px;
  --container-inner: 1280px;
  --container-read: 760px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-main);
  background: var(--bg);
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: var(--accent);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-main);
}

/* =========================================================
   layout —— 全站骨架：页头、导航、页脚、容器、面包屑
   ========================================================= */

/* 站点主体容器 */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid rgba(35, 39, 47, .07);
  height: var(--header-h);
  transition: height .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
  height: var(--header-h-scrolled);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--container-home);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* 品牌 */
.brand-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: .02em;
}

.brand-tagline {
  font-size: 13px;
  color: var(--text-secondary);
}

/* 主导航 */
.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list a {
  display: block;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
}

.nav-list a:hover {
  color: var(--primary);
  background: var(--tag-bg);
}

.nav-list a.is-current {
  color: var(--primary);
  font-weight: 700;
}

.nav-list a.is-current::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* 面包屑 */
.breadcrumb {
  max-width: var(--container-inner);
  margin: 0 auto;
  padding: 20px 32px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-sep {
  color: var(--text-secondary);
  opacity: .5;
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 500;
}

/* 内页标题区 */
.page-header {
  max-width: var(--container-inner);
  margin: 0 auto;
  padding: 36px 32px 8px;
}

.page-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-main);
  position: relative;
  padding-left: 16px;
}

.page-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 4px;
  background: var(--primary);
}

.page-description {
  margin-top: 12px;
  max-width: var(--container-read);
  color: var(--text-secondary);
  font-size: 15px;
}

/* 页脚 */
.site-footer {
  margin-top: 64px;
  background: var(--surface);
  border-top: 1px solid rgba(35, 39, 47, .07);
}

.footer-inner {
  max-width: var(--container-home);
  margin: 0 auto;
  padding: 48px 32px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-col h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(35, 39, 47, .06);
  padding: 16px 32px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

/* =========================================================
   components —— 通用组件：按钮、标签、卡片、文本链接
   ========================================================= */

/* 按钮 */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: #2d4a75;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid rgba(58, 90, 140, .3);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--tag-bg);
}

/* 文本链接 */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.text-link::after {
  content: "→";
  transition: transform .2s ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  background: var(--tag-bg);
  color: var(--tag-text);
  white-space: nowrap;
}

.tag-genre {
  background: var(--tag-bg);
  color: var(--tag-text);
}

.tag-status {
  font-family: var(--font-mono);
  font-size: 11px;
}

.tag-ongoing,
.tag-serial,
.status-ongoing {
  background: rgba(47, 158, 99, .12);
  color: var(--status-ongoing);
}

.tag-finished,
.status-done {
  background: rgba(58, 90, 140, .12);
  color: var(--status-done);
}

.tag-paused,
.status-paused {
  background: rgba(138, 145, 156, .14);
  color: var(--status-paused);
}

/* 章节角标 */
.episode-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(255, 107, 74, .35);
}

/* 区块标题 */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 6px;
}

.section-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  flex-shrink: 0;
}

.section-more:hover {
  color: var(--accent);
}

/* 状态说明区 */
.status-card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.status-card {
  background: var(--surface);
  border: 1px solid rgba(35, 39, 47, .06);
  border-radius: var(--radius);
  padding: 24px;
}

.status-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-ongoing {
  background: var(--status-ongoing);
}

.dot-done {
  background: var(--status-done);
}

.dot-paused {
  background: var(--status-paused);
}

.status-card-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.status-card-text a {
  font-weight: 600;
}

/* 相关链接条 */
.related-links {
  max-width: var(--container-inner);
  margin: 48px auto 0;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  border-top: 1px solid rgba(35, 39, 47, .07);
}

.related-links-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-right: 4px;
}

.related-links-item {
  font-size: 14px;
  color: var(--primary);
  padding: 4px 8px;
  border-radius: 4px;
}

.related-links-item:hover {
  background: var(--tag-bg);
  color: var(--primary);
}

/* =========================================================
   pages —— 首页
   ========================================================= */

.home-main {
  overflow: visible;
}

/* 首屏 hero */
.hero-section {
  background: linear-gradient(to bottom, #e8edf3, var(--bg));
  border-bottom: 1px solid rgba(35, 39, 47, .05);
}

.hero-layout {
  max-width: var(--container-home);
  margin: 0 auto;
  padding: 64px 32px 48px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: 40px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* 首屏题材面板 */
.hero-panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.panel-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.panel-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.genre-card {
  display: block;
  background: var(--tag-bg);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: background .2s ease, transform .2s ease;
}

.genre-card:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.genre-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
  transition: color .2s ease;
}

.genre-keywords {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  transition: color .2s ease;
}

.genre-card:hover .genre-name,
.genre-card:hover .genre-keywords {
  color: #fff;
}

/* 最近更新封面墙 */
.latest-section {
  max-width: var(--container-home);
  margin: 0 auto;
  padding: 56px 32px 0;
}

.cover-wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.cover-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(35, 39, 47, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.cover-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cover-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.cover-card:hover .cover-wrap img {
  transform: scale(1.04);
}

.cover-title {
  font-size: 15px;
  font-weight: 600;
  padding: 12px 14px 4px;
  line-height: 1.4;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px 14px;
  flex-wrap: wrap;
}

/* 作品精选区 */
.featured-section {
  max-width: var(--container-home);
  margin: 0 auto;
  padding: 56px 32px 0;
}

.featured-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.featured-group h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 16px;
}

.featured-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.featured-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(35, 39, 47, .05);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.featured-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.featured-card a {
  display: flex;
  gap: 12px;
  padding: 10px;
}

.featured-card img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.featured-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.featured-info h3 {
  font-size: 14px;
  font-weight: 600;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 阅读体验预览 */
.reading-preview-section {
  background: var(--surface);
  border-top: 1px solid rgba(35, 39, 47, .05);
  border-bottom: 1px solid rgba(35, 39, 47, .05);
  margin-top: 56px;
  padding: 56px 0;
}

.preview-layout {
  max-width: var(--container-home);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.preview-media figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.preview-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.preview-media figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--tag-bg);
}

.preview-points h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.point-list {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.point-list li {
  padding: 16px 20px;
  background: var(--bg);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}

.point-list h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.point-list p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 人气榜单 */
.ranking-section {
  max-width: var(--container-home);
  margin: 0 auto;
  padding: 56px 32px 0;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px 16px;
  border: 1px solid rgba(35, 39, 47, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ranking-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.rank-number {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.ranking-item:nth-child(1) .rank-number {
  color: var(--accent);
}

.ranking-item img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.rank-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.rank-info h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* 新读者三步指南 */
.guide-section {
  max-width: var(--container-home);
  margin: 0 auto;
  padding: 56px 32px 0;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.guide-step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid rgba(35, 39, 47, .05);
  position: relative;
}

.guide-step .step-number {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.guide-step h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.guide-step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* 更新摘要与 FAQ 双栏 */
.digest-section {
  max-width: var(--container-home);
  margin: 0 auto;
  padding: 56px 32px 0;
}

.digest-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.digest-updates,
.digest-faq {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(35, 39, 47, .05);
}

.digest-updates h2,
.digest-faq h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.digest-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.digest-list li {
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius);
  transition: background .2s ease;
}

.digest-list li:hover {
  background: var(--tag-bg);
}

.digest-list a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.digest-list a:hover {
  color: var(--primary);
}

.digest-episode {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}

.digest-date {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.faq-digest-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.faq-digest-list li {
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius);
}

.faq-digest-list h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.faq-digest-list p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

/* 版权与反馈提示条 */
.notice-section {
  max-width: var(--container-home);
  margin: 56px auto 0;
  padding: 24px 32px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.notice-section p {
  color: rgba(255, 255, 255, .92);
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
  min-width: 240px;
}

.notice-links {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.notice-section .text-link {
  color: #fff;
}

.notice-section .text-link:hover {
  color: #ffd9cf;
}

/* =========================================================
   pages —— 作品库 hmw/zuopin.html
   ========================================================= */

.filter-toolbar {
  max-width: var(--container-inner);
  margin: 0 auto;
  padding: 24px 32px 0;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}

.filter-group {
  margin-bottom: 16px;
}

.filter-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: var(--surface);
  color: var(--tag-text);
  border: 1px solid rgba(35, 39, 47, .1);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.tag-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tag-btn.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* 作品网格 */
.work-grid-section {
  max-width: var(--container-inner);
  margin: 0 auto;
  padding: 24px 32px 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.work-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(35, 39, 47, .05);
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.work-cover-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.work-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.work-card:hover .work-cover-wrap img {
  transform: scale(1.04);
}

.work-status {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
}

.work-title {
  font-size: 15px;
  font-weight: 600;
  padding: 12px 14px 4px;
  line-height: 1.4;
}

.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 14px 14px;
}

.work-tag {
  font-size: 12px;
  color: var(--tag-text);
  background: var(--tag-bg);
  padding: 2px 10px;
  border-radius: 20px;
}

.work-episode {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

/* 状态说明区 */
.status-guide {
  max-width: var(--container-inner);
  margin: 0 auto;
  padding: 40px 32px 0;
}

/* =========================================================
   pages —— 题材频道 hmw/ticai.html
   ========================================================= */

.genre-index-section,
.genre-detail-section {
  max-width: var(--container-inner);
  margin: 0 auto;
  padding: 32px 32px 0;
}

.genre-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.genre-index-card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(35, 39, 47, .05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.genre-index-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.genre-index-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.genre-index-card .genre-keywords {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.genre-index-card .genre-examples {
  font-size: 13px;
  color: var(--tag-text);
  line-height: 1.6;
}

/* 题材详情 */
.genre-block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(35, 39, 47, .05);
  margin-bottom: 24px;
}

.genre-block-header {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.genre-block-header h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.genre-style-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.genre-work-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.genre-work-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--bg);
  transition: background .2s ease;
}

.genre-work-item:hover {
  background: var(--tag-bg);
}

.genre-work-item img {
  width: 56px;
  height: 76px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.genre-work-info {
  min-width: 0;
}

.genre-work-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.genre-tags {
  font-size: 12px;
  color: var(--tag-text);
  margin-bottom: 2px;
}

.genre-latest {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

/* 相关链接 */
.related-links-section {
  max-width: var(--container-inner);
  margin: 0 auto;
  padding: 16px 32px 0;
}

.related-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-link-list a {
  padding: 8px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid rgba(35, 39, 47, .08);
}

.related-link-list a:hover {
  border-color: var(--primary);
  background: var(--tag-bg);
}

/* =========================================================
   pages —— 阅读指南 hmw/yuedu.html
   ========================================================= */

.guide-steps-section,
.reader-guide-section,
.faq-entry-section {
  max-width: var(--container-inner);
  margin: 0 auto;
  padding: 32px 32px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid rgba(35, 39, 47, .05);
  position: relative;
}

.step-card .step-number {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* 阅读界面说明 */
.reader-guide-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.reader-preview figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.reader-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.reader-preview figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--tag-bg);
}

.reader-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reader-point {
  padding: 16px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}

.reader-point h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.reader-point p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 常见问题入口 */
.faq-entry-section p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.faq-entry-section p a {
  font-weight: 600;
}

/* =========================================================
   pages —— 更新日志 hmw/gengxin.html
   ========================================================= */

.update-notice {
  max-width: var(--container-inner);
  margin: 0 auto;
  padding: 16px 32px 0;
}

.update-notice p {
  background: var(--tag-bg);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.update-timeline {
  max-width: var(--container-inner);
  margin: 0 auto;
  padding: 32px 32px 0;
}

.timeline-date {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin: 28px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

.timeline-date:first-of-type {
  margin-top: 0;
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 10px 16px;
  border: 1px solid rgba(35, 39, 47, .05);
  transition: background .2s ease;
}

.update-item:hover {
  background: var(--tag-bg);
}

.update-thumb {
  width: 44px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.update-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.update-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.update-title:hover {
  color: var(--primary);
}

.update-chapter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

/* 底部汇总 */
.update-summary {
  max-width: var(--container-inner);
  margin: 0 auto;
  padding: 32px 32px 0;
}

.update-summary h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.update-summary p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  max-width: var(--container-read);
}

.update-summary a {
  font-weight: 600;
}

/* =========================================================
   pages —— 常见问题 hmw/faq.html
   ========================================================= */

.faq-visual,
.faq-list,
.faq-feedback {
  max-width: var(--container-inner);
  margin: 0 auto;
  padding: 24px 32px 0;
}

.faq-visual-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}

.faq-visual-figure img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.faq-visual-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--tag-bg);
}

.faq-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(35, 39, 47, .06);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-card summary {
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card summary::before {
  content: "Q";
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: var(--tag-bg);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-card summary::after {
  content: "+";
  margin-left: auto;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: transform .2s ease;
  flex-shrink: 0;
}

.faq-card[open] summary::after {
  transform: rotate(45deg);
}

.faq-card-body {
  padding: 0 24px 24px 64px;
}

.faq-cause,
.faq-steps {
  margin-bottom: 16px;
}

.faq-cause h3,
.faq-steps h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.faq-cause ul,
.faq-steps ol {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 20px;
}

.faq-cause ul {
  list-style: disc;
}

.faq-steps ol {
  list-style: decimal;
}

.faq-cause li,
.faq-steps li {
  margin-bottom: 4px;
}

/* 反馈路径 */
.faq-feedback {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 32px;
  border: 1px solid rgba(35, 39, 47, .05);
  margin-top: 8px;
}

.faq-feedback p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.faq-feedback p a {
  font-weight: 600;
}

.feedback-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  transition: background .2s ease;
}

.link-btn:hover {
  background: #2d4a75;
  color: #fff;
}

.link-btn.link-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(58, 90, 140, .3);
}

.link-btn.link-secondary:hover {
  background: var(--tag-bg);
  color: var(--primary);
}

/* =========================================================
   pages —— 版权说明 hmw/banquan.html
   ========================================================= */

.card-demo-section,
.copyright-source-section,
.feedback-process-section,
.content-boundary-section {
  max-width: var(--container-inner);
  margin: 0 auto;
  padding: 24px 32px 0;
}

.section-heading h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.section-heading p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.card-demo-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}

.card-demo-figure img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.card-demo-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--tag-bg);
}

.source-copy p,
.boundary-copy p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: var(--container-read);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.process-step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(35, 39, 47, .05);
  position: relative;
}

.process-step .step-number {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.process-step h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.process-step p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =========================================================
   pages —— 404 页面
   ========================================================= */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 32px;
}

.error-panel {
  max-width: 560px;
  text-align: center;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 72px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 8px;
}

.error-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.error-btn-primary,
.error-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
}

.error-btn-primary {
  background: var(--primary);
  color: #fff;
}

.error-btn-primary:hover {
  background: #2d4a75;
  color: #fff;
}

.error-btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid rgba(58, 90, 140, .3);
}

.error-btn-secondary:hover {
  border-color: var(--primary);
  background: var(--tag-bg);
}

.error-links {
  display: flex;
  justify-content: center;
  gap: 8px 20px;
  flex-wrap: wrap;
}

.error-links a {
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
}

.error-links a:hover {
  color: var(--accent);
}

/* =========================================================
   responsive —— 全站响应式断点
   ========================================================= */

/* ≤1024px 平板 */
@media (max-width: 1024px) {
  .header-inner {
    padding: 0 24px;
  }

  .brand-tagline {
    display: none;
  }

  .hero-layout {
    grid-template-columns: 1fr 400px;
    padding: 48px 24px 40px;
    gap: 32px;
  }

  .cover-wall {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .featured-groups {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .featured-group:last-child {
    grid-column: 1 / -1;
  }

  .featured-group:last-child .featured-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .preview-layout {
    gap: 32px;
  }

  .guide-steps {
    gap: 16px;
  }

  .work-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .genre-index-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

/* ≤768px 手机横屏与小平板 */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid rgba(35, 39, 47, .07);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    margin-left: 0;
  }

  .site-header.is-scrolled .site-nav {
    top: var(--header-h-scrolled);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .site-nav.is-open {
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav-list a {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: var(--radius);
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav-list a.is-current::after {
    display: none;
  }

  .nav-list a.is-current {
    background: var(--tag-bg);
  }

  /* 首页 hero */
  .hero-layout {
    grid-template-columns: 1fr;
    padding: 40px 16px 32px;
    gap: 24px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .hero-panel {
    padding: 20px;
  }

  .genre-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .genre-card {
    padding: 10px 12px;
  }

  /* 封面墙横向滑动 */
  .cover-wall {
    display: grid;
    grid-template-columns: repeat(5, 200px);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .cover-card {
    scroll-snap-align: start;
  }

  .featured-groups {
    grid-template-columns: 1fr;
  }

  .featured-group:last-child {
    grid-column: auto;
  }

  .featured-group:last-child .featured-list {
    grid-template-columns: 1fr;
  }

  .preview-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .digest-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .notice-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .guide-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .status-card-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .genre-index-grid {
    grid-template-columns: 1fr;
  }

  .genre-work-list {
    grid-template-columns: 1fr;
  }

  .reader-guide-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 16px;
  }

  .footer-about {
    grid-column: auto;
  }

  .breadcrumb {
    padding: 16px 16px 0;
  }

  .page-header {
    padding: 24px 16px 8px;
  }

  .page-title {
    font-size: 26px;
  }

  .filter-toolbar,
  .work-grid-section,
  .status-guide,
  .genre-index-section,
  .genre-detail-section,
  .related-links-section,
  .guide-steps-section,
  .reader-guide-section,
  .faq-entry-section,
  .update-notice,
  .update-timeline,
  .update-summary,
  .faq-visual,
  .faq-list,
  .faq-feedback,
  .card-demo-section,
  .copyright-source-section,
  .feedback-process-section,
  .content-boundary-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .faq-card-body {
    padding: 0 16px 20px 20px;
  }

  .faq-card summary {
    padding: 16px;
    font-size: 15px;
  }

  .related-links {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ≤480px 手机竖屏 */
@media (max-width: 480px) {
  .brand-name {
    font-size: 18px;
  }

  .genre-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cover-wall {
    grid-template-columns: repeat(5, 160px);
  }

  .featured-card a {
    padding: 8px;
  }

  .featured-card img {
    width: 56px;
    height: 76px;
  }

  .ranking-item {
    gap: 10px;
    padding: 10px 12px;
  }

  .rank-number {
    width: 30px;
    font-size: 18px;
  }

  .ranking-item img {
    width: 40px;
    height: 54px;
  }

  .rank-info {
    flex-wrap: wrap;
    gap: 6px;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .work-title {
    font-size: 14px;
    padding: 10px 10px 2px;
  }

  .work-meta {
    padding: 2px 10px 10px;
  }

  .genre-work-item {
    padding: 8px;
  }

  .genre-work-item img {
    width: 48px;
    height: 64px;
  }

  .update-item {
    gap: 10px;
    padding: 8px 12px;
  }

  .update-thumb {
    width: 36px;
    height: 50px;
  }

  .error-code {
    font-size: 56px;
  }

  .error-main {
    padding: 40px 16px;
  }

  .notice-section {
    padding: 20px 16px;
  }
}
