/* ============================================================
   韩漫网 qiankunedaovip.com · 全站样式表
   视觉方向：金融研究风 × 漫画内容站
   ============================================================ */

/* ============================================================
   Base · 基础变量、重置、排版
   ============================================================ */

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #1f2430;
  --muted: #667085;
  --line: #e4e0d6;
  --accent: #2a5c8a;
  --accent-soft: #e9eff5;
  --live: #3d8b5f;
  --end: #7a8b9b;
  --pause: #c98a3d;

  --header-h: 56px;
  --content-w: 1200px;
  --radius: 8px;
  --gap: 48px;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1a3f61;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 15px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Layout · 全站骨架：页头、导航、主体容器、页脚
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: var(--content-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.5px;
}

.brand-tagline {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  border-radius: 1px;
}

.site-nav {
  height: 100%;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}

.nav-list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-list a.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.site-main {
  min-height: 60vh;
}

.home-main {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.inner-main {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 24px 20px 64px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

/* 内页标题区 */
.page-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ink);
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-description {
  font-size: 14px;
  color: var(--muted);
  max-width: 720px;
}

/* 页脚 */
.site-footer {
  background-color: var(--surface);
  border-top: 1px solid var(--line);
  margin-top: 48px;
}

.footer-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 40px 20px 24px;
}

.footer-brand {
  margin-bottom: 24px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--muted);
  max-width: 560px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-link-group {
  min-width: 140px;
}

.footer-group-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-link-group ul li {
  margin-bottom: 4px;
}

.footer-link-group a {
  font-size: 13px;
  color: var(--muted);
  display: inline-block;
  padding: 4px 0;
}

.footer-link-group a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   Components · 通用组件：注释、状态标签、封面卡、表格
   ============================================================ */

/* 模块注释小字 */
.section-note,
.module-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.section-head,
.section-heading {
  margin-bottom: 20px;
}

.section-head h2,
.section-heading h2,
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

/* 状态标签：圆点 + 文字 */
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  line-height: 1.4;
}

.status-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.live {
  color: var(--live);
  background-color: rgba(61, 139, 95, 0.1);
}

.status-dot.live::before {
  background-color: var(--live);
}

.status-dot.end {
  color: var(--end);
  background-color: rgba(122, 139, 155, 0.12);
}

.status-dot.end::before {
  background-color: var(--end);
}

.status-dot.pause {
  color: var(--pause);
  background-color: rgba(201, 138, 61, 0.12);
}

.status-dot.pause::before {
  background-color: var(--pause);
}

/* 热度状态标签（榜单页） */
.heat-state,
.status-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  line-height: 1.4;
}

.status-hot {
  color: var(--live);
  background-color: rgba(61, 139, 95, 0.1);
}

.status-steady {
  color: var(--accent);
  background-color: var(--accent-soft);
}

.status-down {
  color: var(--pause);
  background-color: rgba(201, 138, 61, 0.12);
}

/* 题材标签 */
.genre-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  background-color: var(--accent-soft);
  padding: 2px 10px;
  border-radius: 4px;
  line-height: 1.5;
}

/* 作品封面卡 */
.work-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(42, 92, 138, 0.08);
}

.work-card a {
  display: block;
  color: var(--ink);
}

.work-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--accent-soft);
}

.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.work-card:hover .work-cover img {
  transform: translateY(-4px);
}

.work-info {
  padding: 12px 14px 14px;
  position: relative;
}

.work-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.work-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.work-progress {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.work-info .status-dot {
  position: absolute;
  top: -12px;
  right: 12px;
}

/* 表格容器 */
.table-wrap {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-x: auto;
}

/* ============================================================
   Pages · 首页
   ============================================================ */

/* ---- 首屏卡片流 ---- */
.hero-cards {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  margin-bottom: var(--gap);
}

.hero-card-main {
  grid-row: span 2;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-figure {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--accent-soft);
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  flex: 1;
}

.hero-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 6px;
  background-color: var(--accent);
  color: #fff;
}

.hero-link:hover {
  background-color: #1a3f61;
  color: #fff;
}

.hero-link.secondary {
  background-color: var(--accent-soft);
  color: var(--accent);
}

.hero-link.secondary:hover {
  background-color: #dbe6f0;
  color: #1a3f61;
}

.hero-card-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-card-update,
.hero-card-hot {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.hero-card-update {
  flex: 1;
}

.update-mini-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.update-mini-list li:last-child {
  border-bottom: none;
}

.update-mini-list a {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-mini-list a:hover {
  color: var(--accent);
}

.update-date {
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.hot-mini-list {
  counter-reset: hot;
}

.hot-mini-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
}

.hot-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background-color: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.hot-mini-list a {
  color: var(--ink);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-mini-list a:hover {
  color: var(--accent);
}

.content-media {
  margin-top: 20px;
}

.content-media-primary img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

.content-media figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

/* ---- 更新记录表 ---- */
.update-table-section {
  margin-bottom: var(--gap);
}

.update-table {
  font-size: 14px;
}

.update-table thead th {
  background-color: var(--accent-soft);
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  padding: 10px 16px;
  font-size: 13px;
  white-space: nowrap;
}

.update-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.update-table tbody tr:last-child td {
  border-bottom: none;
}

.update-table tbody tr:hover td {
  background-color: rgba(42, 92, 138, 0.03);
}

.update-table td:nth-child(4),
.update-table td:nth-child(5) {
  font-variant-numeric: tabular-nums;
}

.update-table td.date-cell {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.table-footer-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  text-align: right;
}

.table-footer-note a {
  font-weight: 500;
}

/* ---- 题材导航组 ---- */
.genre-guide-section {
  margin-bottom: var(--gap);
}

.genre-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.genre-guide-item {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.genre-guide-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.genre-fit {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.genre-rep-list li {
  font-size: 13px;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.genre-rep-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--accent);
  flex-shrink: 0;
}

.genre-rep-list a {
  color: var(--ink);
}

.genre-rep-list a:hover {
  color: var(--accent);
}

.genre-more-link {
  margin-top: 16px;
  font-size: 14px;
}

/* ---- 热度榜预览 ---- */
.hot-preview-section {
  margin-bottom: var(--gap);
}

.hot-preview-list {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 20px;
}

.hot-preview-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.hot-preview-list li:last-child {
  border-bottom: none;
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background-color: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.hot-work-name {
  color: var(--ink);
  font-weight: 500;
  flex: 1;
  min-width: 140px;
}

.hot-work-name:hover {
  color: var(--accent);
}

.heat-state {
  flex-shrink: 0;
}

.hot-more-link {
  margin-top: 16px;
  font-size: 14px;
  text-align: right;
}

/* ---- 新手指引预告 ---- */
.steps-section {
  margin-bottom: var(--gap);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-item {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 0.2s ease;
}

.step-item:hover {
  border-color: var(--accent);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background-color: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.step-item h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.step-item p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.step-item a {
  font-size: 13px;
  font-weight: 500;
}

.steps-more-link {
  margin-top: 16px;
  font-size: 14px;
}

/* ---- 版权与反馈说明 ---- */
.rights-note-section {
  margin-bottom: var(--gap);
}

.rights-note-inner {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.rights-note-inner h2 {
  font-size: 16px;
  margin-bottom: 10px;
}

.rights-note-inner p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
  max-width: 720px;
}

.rights-note-inner p:last-child {
  margin-bottom: 0;
}

.rights-note-inner a {
  font-weight: 500;
}

/* ============================================================
   Pages · 作品索引 hmw/works.html
   ============================================================ */

.works-section {
  margin-bottom: var(--gap);
}

.section-note {
  margin-bottom: 16px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.live-section .works-grid .work-card .status-dot.live-dot {
  background-color: var(--live);
  color: #fff;
}

.finished-section .works-grid .work-card .status-dot.end-dot {
  background-color: var(--end);
  color: #fff;
}

.works-guide {
  margin-top: 48px;
}

.guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.guide-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 6px;
  background-color: var(--accent-soft);
  color: var(--accent);
}

.guide-link:hover {
  background-color: #dbe6f0;
  color: #1a3f61;
}

/* 相关链接 */
.related-links {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-right: 8px;
}

.related-links-item {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 4px;
}

.related-links-item:hover {
  color: var(--accent);
  background-color: var(--accent-soft);
}

/* ============================================================
   Pages · 题材导航 hmw/genres.html
   ============================================================ */

.tag-index {
  margin-bottom: var(--gap);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list li a {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  transition: all 0.2s ease;
}

.tag-list li a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: var(--accent-soft);
}

.genre-cards {
  margin-bottom: var(--gap);
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.genre-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 140px 1fr;
  transition: border-color 0.2s ease;
}

.genre-card:hover {
  border-color: var(--accent);
}

.genre-card-media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--accent-soft);
}

.genre-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.genre-card-body {
  padding: 16px 18px;
}

.genre-name {
  font-size: 16px;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.genre-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.genre-audience,
.genre-example {
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 6px;
}

.genre-audience strong,
.genre-example strong {
  color: var(--accent);
  font-weight: 600;
  margin-right: 4px;
}

/* 提示与底部注释 */
.genre-tips {
  margin-top: 32px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tip-item {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.tip-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.tip-text {
  font-size: 13px;
  color: var(--muted);
}

.section-note-bottom {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   Pages · 热度榜单 hmw/ranking.html
   ============================================================ */

.container {
  max-width: var(--content-w);
  margin: 0 auto;
}

.week-table-section {
  margin-bottom: var(--gap);
}

.rank-table {
  font-size: 14px;
}

.rank-table thead th {
  background-color: var(--accent-soft);
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  padding: 10px 16px;
  font-size: 13px;
  white-space: nowrap;
}

.rank-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.rank-table tbody tr:last-child td {
  border-bottom: none;
}

.rank-table tbody tr:hover td {
  background-color: rgba(42, 92, 138, 0.03);
}

.rank-table td:first-child {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--accent);
  width: 60px;
}

.rank-table .status-tag {
  white-space: nowrap;
}

/* 长期热门榜 */
.long-list-section {
  margin-bottom: var(--gap);
}

.long-rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.long-rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  transition: border-color 0.2s ease;
}

.long-rank-item:hover {
  border-color: var(--accent);
}

.long-rank-item img {
  width: 56px;
  height: 74px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background-color: var(--accent-soft);
}

.rank-item-info {
  flex: 1;
  min-width: 0;
}

.rank-item-info h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.rank-item-info h3 a {
  color: var(--ink);
}

.rank-item-info h3 a:hover {
  color: var(--accent);
}

.item-tags {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* 榜单注释 */
.rank-note {
  background-color: var(--accent-soft);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: var(--gap);
}

.rank-note h2 {
  font-size: 15px;
  margin-bottom: 8px;
}

.rank-note p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.rank-note p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Pages · 更新动态 hmw/update.html
   ============================================================ */

.update-section {
  margin-bottom: var(--gap);
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  transition: border-color 0.2s ease;
}

.update-item:hover {
  border-color: var(--accent);
}

.update-thumb {
  width: 56px;
  height: 74px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background-color: var(--accent-soft);
}

.update-info {
  flex: 1;
  min-width: 0;
}

.update-name {
  font-size: 15px;
  margin-bottom: 4px;
}

.update-name a {
  color: var(--ink);
}

.update-name a:hover {
  color: var(--accent);
}

.update-info .genre-tag {
  margin-right: 8px;
}

.update-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--muted);
}

.chapter-label {
  color: var(--muted);
}

.chapter-num {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.update-time {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--muted);
}

/* 近期更新分组 */
.recent-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.date-group {
  background-color: transparent;
}

.date-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  padding: 8px 12px;
  background-color: var(--accent-soft);
  border-radius: 6px 6px 0 0;
  display: inline-block;
  margin-bottom: 0;
}

.update-list.compact {
  gap: 8px;
}

.update-list.compact .update-item {
  padding: 10px 16px;
}

.update-list.compact .update-thumb {
  width: 44px;
  height: 58px;
}

/* 状态图例 */
.status-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* 相关链接区 */
.related-links .related-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.related-desc a {
  font-weight: 500;
  margin-right: 12px;
}

/* ============================================================
   Pages · 新手指引 hmw/guide.html
   ============================================================ */

.guide-section {
  margin-bottom: var(--gap);
}

.guide-media {
  margin: 16px 0 24px;
}

.guide-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: var(--accent-soft);
}

.guide-media figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-step-item {
  display: flex;
  gap: 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.2s ease;
}

.guide-step-item:hover {
  border-color: var(--accent);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-content h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.step-content a {
  font-size: 13px;
  font-weight: 500;
}

/* 追更读者要点 */
.follower-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.follower-point {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.2s ease;
}

.follower-point:hover {
  border-color: var(--accent);
}

.follower-point h3 {
  font-size: 15px;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.follower-point p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.follower-point a {
  font-size: 13px;
  font-weight: 500;
}

/* 反馈路径 */
.feedback-path-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-path-item {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: border-color 0.2s ease;
}

.feedback-path-item:hover {
  border-color: var(--accent);
}

.feedback-path-item h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.feedback-path-item p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.feedback-path-item a {
  font-size: 13px;
  font-weight: 500;
}

/* ============================================================
   Pages · 版权说明 hmw/rights.html
   ============================================================ */

.boundary-section {
  margin-bottom: var(--gap);
}

.boundary-section h2,
.feedback-path-section h2 {
  font-size: 18px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}

.boundary-item {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: border-color 0.2s ease;
}

.boundary-item:hover {
  border-color: var(--accent);
}

.boundary-item h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.boundary-item p {
  font-size: 13px;
  color: var(--muted);
}

.boundary-figure {
  margin: 24px 0;
}

.boundary-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: var(--accent-soft);
}

.boundary-figure figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.feedback-path-section {
  margin-bottom: var(--gap);
}

.feedback-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.feedback-step {
  display: flex;
  gap: 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: border-color 0.2s ease;
}

.feedback-step:hover {
  border-color: var(--accent);
}

.feedback-step .step-num {
  width: 28px;
  height: 28px;
  font-size: 14px;
}

.feedback-step .step-content h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.feedback-step .step-content p {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   Pages · 404
   ============================================================ */

.error-main {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-panel {
  text-align: center;
  max-width: 480px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 32px;
}

.error-code {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.error-panel h1 {
  font-size: 20px;
  margin-bottom: 8px;
}

.error-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-home,
.btn-works {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 6px;
  background-color: var(--accent);
  color: #fff;
}

.btn-home:hover,
.btn-works:hover {
  background-color: #1a3f61;
  color: #fff;
}

.btn-works {
  background-color: var(--accent-soft);
  color: var(--accent);
}

.btn-works:hover {
  background-color: #dbe6f0;
  color: #1a3f61;
}

/* ============================================================
   Responsive · 响应式断点
   ============================================================ */

/* ---- 平板：≤1024px ---- */
@media (max-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .genre-grid {
    grid-template-columns: 1fr;
  }

  .hero-cards {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .hero-card-main {
    grid-row: auto;
  }

  .hero-card-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- 手机：≤768px ---- */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .brand-tagline {
    display: none;
  }

  /* 汉堡菜单 */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background-color: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 12px rgba(31, 36, 48, 0.08);
    height: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.is-open {
    max-height: 480px;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    height: auto;
  }

  .nav-list a {
    display: block;
    height: auto;
    padding: 14px 20px;
    border-bottom: none;
    border-left: 3px solid transparent;
    font-size: 15px;
  }

  .nav-list a.is-current {
    border-left-color: var(--accent);
    background-color: var(--accent-soft);
  }

  /* 首页首屏 */
  .home-main {
    padding: 20px 16px 48px;
  }

  .hero-card-side {
    display: flex;
    flex-direction: column;
  }

  .hero-card-body {
    padding: 16px 18px;
  }

  .hero-title {
    font-size: 20px;
  }

  .hero-links {
    flex-direction: column;
    gap: 8px;
  }

  .hero-link {
    text-align: center;
  }

  /* 更新表转纵向卡片 */
  .table-wrap {
    overflow-x: auto;
  }

  .update-table {
    min-width: 560px;
  }

  /* 网格降为单列或双列 */
  .genre-guide-grid,
  .steps-grid,
  .follower-points {
    grid-template-columns: 1fr;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .genre-card {
    grid-template-columns: 100px 1fr;
  }

  .genre-card-body {
    padding: 12px 14px;
  }

  /* 更新条目 */
  .update-item {
    flex-wrap: wrap;
    gap: 10px;
  }

  .update-meta {
    width: 100%;
    padding-left: 72px;
  }

  .update-list.compact .update-meta {
    padding-left: 60px;
  }

  /* 长列表条目 */
  .hot-preview-list li {
    flex-wrap: wrap;
    gap: 8px;
  }

  .hot-work-name {
    min-width: 0;
    flex: 1 1 100%;
    order: 2;
  }

  .rank-num {
    order: 1;
  }

  .heat-state {
    order: 3;
  }

  /* 页脚 */
  .footer-inner {
    padding: 32px 16px 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 20px;
  }

  /* 内页 */
  .inner-main {
    padding: 16px 16px 48px;
  }

  .page-header {
    margin-bottom: 28px;
  }

  .page-title {
    font-size: 22px;
  }

  /* 题材标签索引横向滚动 */
  .tag-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .tag-list li a {
    white-space: nowrap;
  }

  /* 榜单 */
  .long-rank-item {
    padding: 10px 12px;
  }

  .long-rank-item img {
    width: 44px;
    height: 58px;
  }

  /* 指南步骤 */
  .guide-step-item,
  .feedback-step {
    flex-direction: column;
    gap: 10px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  /* 404 */
  .error-main {
    padding: 48px 16px;
  }

  .error-panel {
    padding: 32px 20px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-home,
  .btn-works {
    text-align: center;
  }
}

/* ---- 小屏手机：≤390px ---- */
@media (max-width: 390px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .work-info {
    padding: 10px 10px 12px;
  }

  .work-name {
    font-size: 13px;
  }

  .work-meta,
  .work-progress {
    font-size: 11px;
  }

  .genre-card {
    grid-template-columns: 80px 1fr;
  }

  .genre-card-body {
    padding: 10px 12px;
  }

  .genre-name {
    font-size: 14px;
  }

  .genre-desc,
  .genre-audience,
  .genre-example {
    font-size: 12px;
  }

  .update-thumb {
    width: 44px;
    height: 58px;
  }

  .update-meta {
    padding-left: 60px;
  }

  .update-list.compact .update-thumb {
    width: 36px;
    height: 48px;
  }

  .update-list.compact .update-meta {
    padding-left: 52px;
  }
}
