/* ============================================================
   歪歪韩漫 - 整站样式表
   站点：hfgj365.com
   视觉方向：公共交通风（站牌 / 线路色 / 时刻表）
   ============================================================ */

/* ============================================================
   Base：全局基础样式
   ============================================================ */
:root {
  /* 基础色板 */
  --signal-black: #1F2430;
  --station-white: #FFFFFF;
  --line-red: #E5484D;
  --line-blue: #3E63DD;
  --line-green: #30A46C;
  --line-orange: #F76B15;
  --line-teal: #12A594;
  --line-purple: #8E4EC6;
  --aux-gray: #8D98AA;
  --bg-gray: #F4F6F9;
  --border-gray: #E3E8EF;

  /* 字体 */
  --font-sans: "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;

  /* 布局 */
  --container-width: 1280px;
  --container-pad: 24px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --header-h: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--signal-black);
  background: var(--station-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--line-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--signal-black);
}

/* 通用容器 */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* 屏幕阅读器专用 */
.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;
}

/* 线路色点 */
.line-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.line-red { background: var(--line-red); }
.line-blue { background: var(--line-blue); }
.line-green { background: var(--line-green); }
.line-orange { background: var(--line-orange); }
.line-teal { background: var(--line-teal); }
.line-purple { background: var(--line-purple); }

/* ============================================================
   Layout：全站布局骨架
   ============================================================ */

/* 站点主体 */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 页头 */
.site-header {
  background: var(--signal-black);
  border-bottom: 3px solid var(--line-red);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--station-white);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-link:hover {
  text-decoration: none;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--station-white);
}

.brand-name::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 22px;
  background: var(--line-red);
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: -3px;
}

/* 主导航 */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-list a:hover {
  color: var(--station-white);
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--station-white);
  background: var(--line-red);
  font-weight: 600;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--station-white);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* 主内容 */
.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 首页主区 */
.home-main {
  width: 100%;
}

/* 内页主区 */
.inner-main {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px 0 0;
  font-size: 14px;
  color: var(--aux-gray);
}

.breadcrumb a {
  color: var(--line-blue);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--aux-gray);
  margin: 0 2px;
}

.breadcrumb-current {
  color: var(--signal-black);
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--border-gray);
  margin-bottom: 32px;
}

.page-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--signal-black);
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: #4A5568;
  max-width: 760px;
}

/* 页脚 */
.site-footer {
  background: var(--signal-black);
  color: rgba(255, 255, 255, 0.75);
  margin-top: 64px;
}

.footer-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px var(--container-pad) 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-col h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--station-white);
  margin-bottom: 12px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
}

.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--station-white);
  margin-bottom: 10px;
}

.footer-nav ul,
.footer-support ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a,
.footer-support a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-support a:hover {
  color: var(--station-white);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px var(--container-pad);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   Components：通用组件
   ============================================================ */

/* 区块标题 */
.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--signal-black);
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--line-red);
}

/* 区块导语 */
.section-intro {
  font-size: 15px;
  color: #4A5568;
  margin-bottom: 24px;
  max-width: 720px;
}

/* 通用卡片 */
.cover-card,
.special-card,
.entry-card,
.knowledge-card,
.step-card,
.tool-item,
.note-item,
.related-card,
.path-card,
.boundary-item,
.scope-item {
  background: var(--station-white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cover-card:hover,
.special-card:hover,
.entry-card:hover,
.knowledge-card:hover,
.step-card:hover,
.tool-item:hover,
.note-item:hover,
.related-card:hover,
.path-card:hover,
.boundary-item:hover,
.scope-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 36, 48, 0.08);
  border-color: var(--aux-gray);
}

/* ============================================================
   Pages：首页
   ============================================================ */

/* 首屏站牌区 */
.hero-station {
  background: var(--bg-gray);
  border-bottom: 1px solid var(--border-gray);
  padding: 48px 0;
}

.hero-station .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--line-red);
  background: rgba(229, 72, 77, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.hero-station h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-intro {
  font-size: 16px;
  color: #4A5568;
  margin-bottom: 20px;
  line-height: 1.8;
}

.reader-questions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.reader-questions li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #4A5568;
}

.question-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--signal-black);
  color: var(--station-white);
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}

.cta-primary {
  background: var(--line-red);
  color: var(--station-white);
}

.cta-primary:hover {
  background: #c93a3f;
  text-decoration: none;
}

.cta-secondary {
  background: var(--station-white);
  color: var(--signal-black);
  border: 1px solid var(--border-gray);
}

.cta-secondary:hover {
  background: var(--bg-gray);
  text-decoration: none;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-figure {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-gray);
  background: var(--station-white);
}

.hero-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* 题材线路标签 */
.genre-lines {
  padding: 48px 0 8px;
}

.genre-tag-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.genre-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--station-white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.genre-tag:hover {
  border-color: var(--signal-black);
  box-shadow: 0 2px 8px rgba(31, 36, 48, 0.06);
  text-decoration: none;
}

.tag-note {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.5;
}

/* 最近更新时刻表 */
.recent-updates {
  padding: 40px 0 8px;
}

.update-timetable {
  background: var(--station-white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.update-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-gray);
  transition: background 0.2s ease;
}

.update-row:last-child {
  border-bottom: none;
}

.update-row:hover {
  background: var(--bg-gray);
}

.update-row .line-badge {
  display: inline-block;
  width: 4px;
  height: 28px;
  border-radius: 2px;
  flex-shrink: 0;
}

.line-romance { background: var(--line-red); }
.line-action { background: var(--line-blue); }
.line-fantasy { background: var(--line-green); }
.line-mystery { background: var(--line-orange); }
.line-daily { background: var(--line-teal); }
.line-thriller { background: var(--line-purple); }

.update-name {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--signal-black);
}

.update-status {
  font-size: 13px;
  color: var(--line-green);
  background: rgba(48, 164, 108, 0.1);
  padding: 2px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.update-time {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--aux-gray);
  white-space: nowrap;
}

.timetable-footnote {
  font-size: 13px;
  color: var(--aux-gray);
  margin-top: 10px;
}

/* 热门榜单节选 */
.rank-preview {
  padding: 40px 0 8px;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--station-white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  border-color: var(--signal-black);
  box-shadow: 0 2px 8px rgba(31, 36, 48, 0.06);
}

.rank-number {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--line-red);
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.rank-item img {
  width: 56px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--signal-black);
  margin-bottom: 2px;
}

.rank-genre {
  display: inline-block;
  font-size: 12px;
  color: var(--line-blue);
  background: rgba(62, 99, 221, 0.08);
  padding: 1px 8px;
  border-radius: 10px;
  margin-bottom: 4px;
}

.rank-reason {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.5;
}

.rank-more-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--line-blue);
}

/* 专题展览预览 */
.special-preview {
  padding: 40px 0 8px;
}

.special-card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.special-card {
  overflow: hidden;
}

.special-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.special-card-body {
  padding: 16px 18px;
}

.special-card-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.special-card-body h3 a {
  color: var(--signal-black);
}

.special-card-body h3 a:hover {
  color: var(--line-blue);
  text-decoration: none;
}

.special-route {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--line-red);
  background: rgba(229, 72, 77, 0.08);
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.special-card-body p {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.6;
}

/* 浏览路径引导 */
.path-guide {
  padding: 40px 0 8px;
}

.path-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--station-white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.step-item:hover {
  border-color: var(--signal-black);
  box-shadow: 0 2px 8px rgba(31, 36, 48, 0.06);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--signal-black);
  color: var(--station-white);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.step-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-item p {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.6;
}

.step-item p a {
  font-weight: 600;
}

/* 站点说明与帮助反馈入口 */
.site-help-entry {
  padding: 40px 0 8px;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.entry-card {
  padding: 24px;
}

.entry-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.entry-card h3 a {
  color: var(--signal-black);
}

.entry-card h3 a:hover {
  color: var(--line-blue);
  text-decoration: none;
}

.entry-card p {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.6;
}

/* ============================================================
   Pages：作品馆藏（wwhm/works.html）
   ============================================================ */

/* 题材筛选条 */
.genre-filter {
  margin-bottom: 32px;
}

.filter-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--station-white);
  border: 1px solid var(--border-gray);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--signal-black);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--signal-black);
  background: var(--bg-gray);
  text-decoration: none;
}

/* 分组封面墙 */
.collection-wall {
  padding-bottom: 40px;
}

.genre-group {
  margin-bottom: 40px;
}

.genre-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-gray);
}

.genre-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.genre-desc {
  font-size: 14px;
  color: #4A5568;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cover-card {
  overflow: hidden;
}

.cover-figure {
  margin: 0;
  overflow: hidden;
  background: var(--bg-gray);
}

.cover-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cover-card:hover .cover-img {
  transform: scale(1.03);
}

.cover-title {
  padding: 12px 14px 4px;
  font-size: 15px;
  font-weight: 600;
}

.cover-tag {
  padding: 0 14px 6px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
}

.tag-romance { background: rgba(229, 72, 77, 0.1); color: var(--line-red); }
.tag-action { background: rgba(62, 99, 221, 0.1); color: var(--line-blue); }
.tag-fantasy { background: rgba(48, 164, 108, 0.1); color: var(--line-green); }
.tag-thriller { background: rgba(247, 107, 21, 0.1); color: var(--line-orange); }
.tag-slice { background: rgba(18, 165, 148, 0.1); color: var(--line-teal); }
.tag-drama { background: rgba(142, 78, 198, 0.1); color: var(--line-purple); }

.cover-tip {
  padding: 0 14px 14px;
  font-size: 13px;
  color: var(--aux-gray);
  line-height: 1.5;
}

/* 馆藏浏览说明 */
.collection-note {
  padding: 32px 0;
  border-top: 1px solid var(--border-gray);
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.note-item {
  padding: 20px;
}

.note-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.note-item p {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.6;
}

.note-item a {
  font-weight: 600;
}

/* ============================================================
   Pages：专题展览（wwhm/specials.html）
   ============================================================ */

/* 专题横卡列表 */
.special-list {
  margin-bottom: 48px;
}

.special-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.special-cards .special-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
}

.special-card-media {
  background: var(--bg-gray);
}

.special-card-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.special-cards .special-card-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.special-cards .special-card-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.special-cards .special-card-body h3 a {
  color: var(--signal-black);
}

.special-cards .special-card-body h3 a:hover {
  color: var(--line-blue);
  text-decoration: none;
}

.special-cards .special-card-body p {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.7;
  margin-bottom: 12px;
}

.special-cards .special-card-body a {
  font-weight: 600;
}

/* 重点专题正文区 */
.featured-article {
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 48px;
  border: 1px solid var(--border-gray);
}

.featured-article-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-gray);
}

.featured-article-header h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 8px 0;
}

.featured-summary {
  font-size: 15px;
  color: #4A5568;
  line-height: 1.7;
}

.featured-article-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 10px;
}

.featured-article-body p {
  font-size: 15px;
  color: #4A5568;
  line-height: 1.8;
  margin-bottom: 12px;
}

.featured-list {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 12px;
}

.featured-list li {
  font-size: 15px;
  color: #4A5568;
  line-height: 1.7;
  margin-bottom: 6px;
}

.featured-article-body a {
  font-weight: 600;
}

.featured-source {
  font-size: 13px;
  color: var(--aux-gray);
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--border-gray);
}

/* 延伸阅读 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-item {
  display: block;
  padding: 20px;
  background: var(--station-white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.related-item:hover {
  border-color: var(--signal-black);
  box-shadow: 0 2px 8px rgba(31, 36, 48, 0.06);
  text-decoration: none;
}

.related-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--signal-black);
  margin-bottom: 6px;
}

.related-item p {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.6;
}

/* ============================================================
   Pages：阅读指南（wwhm/guide.html）
   ============================================================ */

/* 浏览路径总览 */
.path-steps .steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.step-card {
  padding: 24px 20px;
  position: relative;
}

.step-card .step-number {
  position: absolute;
  top: -14px;
  left: 20px;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-top: 12px;
}

.step-card p {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.7;
}

.step-card p a {
  font-weight: 600;
}

/* 阅读页面工具说明 */
.reading-tools {
  margin-top: 48px;
}

.reading-figure {
  margin: 0 0 24px;
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gray);
  overflow: hidden;
}

.reading-figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.reading-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--aux-gray);
  background: var(--station-white);
}

.tools-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tool-item {
  padding: 20px;
}

.tool-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.tool-item p {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.7;
}

/* 操作问答 */
.operation-faq {
  margin-top: 48px;
}

.faq-item {
  background: var(--station-white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--aux-gray);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 14px;
  color: #4A5568;
  line-height: 1.7;
}

.faq-item p a {
  font-weight: 600;
}

/* 延伸阅读 */
.related-links {
  margin-top: 48px;
}

.related-links h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-list li {
  background: var(--station-white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.related-list li:hover {
  border-color: var(--signal-black);
  box-shadow: 0 2px 8px rgba(31, 36, 48, 0.06);
}

.related-list a {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--signal-black);
  margin-bottom: 6px;
}

.related-list a:hover {
  color: var(--line-blue);
  text-decoration: none;
}

.related-list p {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.6;
}

/* ============================================================
   Pages：韩漫知识（wwhm/knowledge.html）
   ============================================================ */

/* 题材知识卡 */
.knowledge-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.knowledge-card {
  padding: 24px 20px;
  border-top-width: 4px;
}

.knowledge-line-red { border-top-color: var(--line-red); }
.knowledge-line-blue { border-top-color: var(--line-blue); }
.knowledge-line-green { border-top-color: var(--line-green); }
.knowledge-line-orange { border-top-color: var(--line-orange); }
.knowledge-line-gray { border-top-color: var(--aux-gray); }
.knowledge-line-purple { border-top-color: var(--line-purple); }

.knowledge-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-def {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.7;
  margin-bottom: 10px;
}

.card-style {
  font-size: 13px;
  color: var(--aux-gray);
  line-height: 1.6;
}

/* 常见术语表 */
.glossary {
  margin-top: 48px;
}

.glossary-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.glossary-item {
  background: var(--station-white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.glossary-item:hover {
  border-color: var(--signal-black);
  box-shadow: 0 2px 8px rgba(31, 36, 48, 0.06);
}

.glossary-item dt {
  font-size: 16px;
  font-weight: 700;
  color: var(--line-red);
  margin-bottom: 6px;
}

.glossary-item dd {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.7;
}

/* 阅读常识提示 */
.reading-tips {
  margin-top: 48px;
}

.tips-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
  margin-top: 16px;
}

.tips-figure {
  margin: 0;
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gray);
  overflow: hidden;
}

.tips-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.tips-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--aux-gray);
  background: var(--station-white);
}

.tips-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tip-item {
  background: var(--station-white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: 20px;
}

.tip-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.tip-item p {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.7;
}

/* ============================================================
   Pages：帮助反馈（wwhm/help.html）
   ============================================================ */

/* 排查路径 */
.troubleshoot-paths {
  margin-bottom: 48px;
}

.path-card {
  padding: 24px;
  margin-bottom: 20px;
}

.path-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-gray);
}

.cause-list {
  margin-bottom: 16px;
}

.cause-list dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--signal-black);
  margin-bottom: 4px;
}

.cause-list dd {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.7;
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
}

.cause-list dd::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--aux-gray);
}

.process-list {
  counter-reset: process;
}

.process-list li {
  counter-increment: process;
  font-size: 14px;
  color: #4A5568;
  line-height: 1.7;
  padding-left: 32px;
  position: relative;
  margin-bottom: 8px;
}

.process-list li::before {
  content: counter(process);
  position: absolute;
  left: 0;
  top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--signal-black);
  color: var(--station-white);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
}

/* 反馈处理流程 */
.feedback-process {
  margin-bottom: 48px;
}

.process-figure {
  margin: 0 0 24px;
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gray);
  overflow: hidden;
}

.process-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.process-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--aux-gray);
  background: var(--station-white);
}

.feedback-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feedback-steps li {
  background: var(--station-white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: 20px;
}

.feedback-steps li h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.feedback-steps li p {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.7;
}

/* 侧栏 */
.inner-aside {
  background: var(--bg-gray);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
}

.inner-aside h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.inner-aside > p {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.7;
  margin-bottom: 16px;
}

.inner-aside .related-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.inner-aside .related-links li a {
  display: block;
  padding: 10px 14px;
  background: var(--station-white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--signal-black);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.inner-aside .related-links li a:hover {
  border-color: var(--signal-black);
  color: var(--line-blue);
  text-decoration: none;
}

/* ============================================================
   Pages：站点说明（wwhm/about.html）
   ============================================================ */

/* 区块通用 */
.section-block {
  margin-bottom: 48px;
}

.section-heading h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--line-red);
}

/* 定位说明 */
.position-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  background: var(--station-white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: 28px;
}

.position-text p {
  font-size: 15px;
  color: #4A5568;
  line-height: 1.8;
  margin-bottom: 12px;
}

.position-text p:last-child {
  margin-bottom: 0;
}

.position-audience {
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  padding: 20px;
}

.position-audience h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.position-audience ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.position-audience li {
  font-size: 14px;
  color: #4A5568;
  padding-left: 16px;
  position: relative;
}

.position-audience li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--line-red);
  border-radius: 50%;
}

/* 栏目分工 */
.scope-figure {
  margin: 0 0 24px;
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gray);
  overflow: hidden;
}

.scope-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.scope-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--aux-gray);
  background: var(--station-white);
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.scope-item {
  padding: 20px;
}

.scope-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.scope-item p {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.7;
}

/* 内容边界 */
.boundaries-intro {
  font-size: 15px;
  color: #4A5568;
  margin-bottom: 20px;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.boundary-item {
  padding: 20px;
  border-left-width: 4px;
  border-left-color: var(--aux-gray);
}

.boundary-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.boundary-item p {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.7;
}

/* 延伸卡片 */
.related-links .related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  display: block;
  padding: 20px;
  background: var(--station-white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  border-color: var(--signal-black);
  box-shadow: 0 2px 8px rgba(31, 36, 48, 0.06);
  text-decoration: none;
}

.related-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--signal-black);
  margin-bottom: 6px;
}

.related-card p {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.6;
}

/* ============================================================
   Pages：404 页面
   ============================================================ */

.error-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.error-section {
  text-align: center;
  max-width: 560px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 80px;
  font-weight: 800;
  color: var(--line-red);
  line-height: 1;
  margin-bottom: 16px;
}

.error-section h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: #4A5568;
  line-height: 1.7;
  margin-bottom: 24px;
}

.error-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  background: var(--signal-black);
  color: var(--station-white);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.error-home-btn:hover {
  background: var(--line-red);
  text-decoration: none;
}

/* ============================================================
   Responsive：响应式断点
   ============================================================ */

/* 大屏 1280px */
@media (min-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 中屏 1024px */
@media (max-width: 1024px) {
  .hero-station .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-figure {
    max-width: 100%;
  }

  .hero-figure img {
    height: 280px;
  }

  .genre-tag-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .special-card-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .knowledge-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tips-layout {
    grid-template-columns: 1fr;
  }

  .position-card {
    grid-template-columns: 1fr;
  }

  .footer-shell {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

/* 平板 768px */
@media (max-width: 768px) {
  :root {
    --container-pad: 16px;
  }

  .header-shell {
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--signal-black);
    border-bottom: 3px solid var(--line-red);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 4px;
  }

  .nav-list a {
    padding: 12px 14px;
    font-size: 16px;
  }

  /* 菜单展开状态 */
  .nav-list.is-open {
    display: flex;
  }

  .site-nav:has(.nav-list.is-open) {
    max-height: 480px;
  }

  /* 无 :has 支持时回退 */
  @supports not (selector(:has(*))) {
    .site-nav {
      display: none;
    }
    .site-nav:not(:has(.nav-list)) {
      display: block;
    }
  }

  .hero-station {
    padding: 32px 0;
  }

  .hero-station h1 {
    font-size: 30px;
  }

  .hero-figure img {
    height: 220px;
  }

  .genre-tag-list {
    grid-template-columns: 1fr;
  }

  .special-card-list {
    grid-template-columns: 1fr;
  }

  .entry-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .note-grid {
    grid-template-columns: 1fr;
  }

  .special-cards .special-card {
    grid-template-columns: 1fr;
  }

  .special-card-media img {
    height: 180px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .tools-list {
    grid-template-columns: 1fr;
  }

  .related-list {
    grid-template-columns: 1fr;
  }

  .knowledge-card-grid {
    grid-template-columns: 1fr;
  }

  .glossary-list {
    grid-template-columns: 1fr;
  }

  .feedback-steps {
    grid-template-columns: 1fr;
  }

  .scope-list {
    grid-template-columns: 1fr;
  }

  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-about {
    grid-column: auto;
  }

  .page-title {
    font-size: 24px;
  }

  .page-header {
    padding: 20px 0 16px;
    margin-bottom: 24px;
  }

  .breadcrumb {
    padding-top: 12px;
  }

  .section-title {
    font-size: 19px;
  }
}

/* 手机 480px */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .brand-name {
    font-size: 17px;
  }

  .hero-station h1 {
    font-size: 26px;
  }

  .hero-intro {
    font-size: 15px;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
  }

  .hero-figure img {
    height: 180px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .cover-img {
    height: 220px;
  }

  .update-row {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
  }

  .update-name {
    flex: 1 1 calc(100% - 40px);
  }

  .update-status {
    order: 3;
  }

  .update-time {
    order: 4;
    width: 100%;
    padding-left: 20px;
  }

  .rank-item {
    flex-wrap: wrap;
  }

  .rank-info {
    flex: 1 1 calc(100% - 80px);
  }

  .rank-reason {
    width: 100%;
  }

  .special-card-body {
    padding: 14px;
  }

  .step-item {
    padding: 16px;
  }

  .featured-article {
    padding: 20px;
  }

  .position-card {
    padding: 20px;
  }

  .path-card {
    padding: 18px;
  }

  .error-code {
    font-size: 56px;
  }
}

/* 手机端菜单展开辅助 */
@media (max-width: 768px) {
  .nav-list {
    display: none;
  }

  .nav-list.is-open {
    display: flex;
  }
}

/* 桌面端菜单始终显示 */
@media (min-width: 769px) {
  .nav-list {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}
