/* ==========================================================================
   51吃瓜群众 · 全站样式表
   校园刊物风：纸张米白底 / 校刊藏蓝 / 社团橙 / 社团青 / 活动黄
   分组：base → layout → components → pages → responsive
   ========================================================================== */

/* ---------------------------------- base ---------------------------------- */

:root {
  --ink: #1a1b21;
  --ink-soft: #5c5f6b;
  --paper: #fdfbf5;
  --panel: #ffffff;
  --rule: #e3ded2;
  --navy: #1f3a7a;
  --navy-deep: #16295a;
  --orange: #f2711c;
  --teal: #17a2a2;
  --yellow: #ffc93c;
  --tint: #fff4ea;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --wrap: 1080px;
  --radius: 8px;
  --radius-sm: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt {
  margin: 0;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  color: var(--orange);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------- layout --------------------------------- */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--paper);
  font-family: var(--sans);
  color: var(--ink);
}

.site-header {
  background-color: var(--panel);
  border-bottom: 3px solid var(--navy);
}

.header-bar,
.genre-track,
.site-main,
.site-footer {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.genre-track {
  border-top: 1px solid var(--rule);
  padding-top: 6px;
  padding-bottom: 8px;
}

.genre-track-list {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.genre-track-list > li {
  flex: 0 0 auto;
}

.site-main {
  flex: 1 0 auto;
  padding-top: 28px;
  padding-bottom: 40px;
}

.inner-main {
  max-width: var(--wrap);
}

.site-footer {
  flex: 0 0 auto;
  margin-top: 16px;
  padding-top: 28px;
  padding-bottom: 18px;
  border-top: 3px solid var(--navy);
  background-color: var(--panel);
}

/* ------------------------------- components ------------------------------- */

/* 品牌字标 */
.brand {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0;
}

.brand:hover {
  color: var(--orange);
}

/* 主导航 */
.site-nav {
  flex: 1 1 auto;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.nav-link {
  display: inline-block;
  padding: 6px 2px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 3px solid transparent;
}

.nav-link:hover {
  color: var(--orange);
}

.nav-link.is-current {
  font-weight: 700;
  color: var(--navy);
  border-bottom-color: var(--orange);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background-color: var(--navy);
}

/* 题材锚点 chip */
.genre-chip {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--navy);
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 999px;
}

.genre-chip:hover {
  color: #fff;
  background-color: var(--orange);
  border-color: var(--orange);
}

/* 按钮 */
.btn {
  display: inline-block;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
}

.btn-primary {
  color: #fff;
  background-color: var(--navy);
  border-color: var(--navy);
}

.btn-primary:hover {
  color: #fff;
  background-color: var(--navy-deep);
  border-color: var(--navy-deep);
}

.btn-secondary {
  color: #fff;
  background-color: var(--teal);
  border-color: var(--teal);
}

.btn-secondary:hover {
  color: #fff;
  background-color: #128a8a;
  border-color: #128a8a;
}

.btn-ghost {
  color: var(--navy);
  background-color: transparent;
  border-color: var(--navy);
}

.btn-ghost:hover {
  color: #fff;
  background-color: var(--navy);
}

.btn-outline {
  color: var(--orange);
  background-color: transparent;
  border-color: var(--orange);
}

.btn-outline:hover {
  color: #fff;
  background-color: var(--orange);
}

/* 区块标题与说明 */
.section-title,
.section-intro,
.section-note,
.section-lead {
  margin-bottom: 10px;
}

.section-title {
  font-size: 22px;
}

.section-intro,
.section-note,
.section-lead {
  font-size: 15px;
  color: var(--ink-soft);
}

.section-note a,
.section-lead a {
  color: var(--orange);
  text-decoration: underline;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--orange);
}

.breadcrumb-sep {
  color: var(--rule);
}

.breadcrumb-current {
  color: var(--navy);
  font-weight: 600;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 16px;
}

.page-title {
  font-size: 30px;
  line-height: 1.35;
  color: var(--navy);
}

.page-head {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.page-lead,
.page-intro {
  font-size: 16px;
  color: var(--ink-soft);
}

.page-intro + .page-intro {
  margin-top: 10px;
}

.page-figure,
.page-head-media,
.page-head-figure {
  margin: 18px 0 0;
}

.page-figure img,
.page-head-media img,
.page-head-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.page-figure figcaption,
.page-head-media figcaption,
.page-head-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* 延伸入口条 */
.next-links {
  margin-top: 36px;
  padding: 22px 24px;
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.next-links-actions,
.next-links-row,
.next-links-buttons,
.next-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

/* 相关内容条 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--rule);
  font-size: 14px;
}

.related-links-label {
  color: var(--ink-soft);
}

.related-links-item {
  color: var(--navy);
  text-decoration: underline;
}

/* 批次状态标记 */
.batch-tag,
.batch-status {
  display: inline-block;
  padding: 2px 10px;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 999px;
}

.batch-tag {
  color: var(--navy);
  background-color: var(--yellow);
}

.batch-status-new {
  color: #fff;
  background-color: var(--orange);
}

.batch-status-next {
  color: var(--navy);
  background-color: var(--yellow);
}

.batch-status-hold {
  color: var(--ink-soft);
  background-color: #efece4;
}

.status-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 999px;
}

.status-regular {
  color: #fff;
  background-color: var(--teal);
}

.status-boost {
  color: #fff;
  background-color: var(--orange);
}

.status-pause {
  color: var(--ink-soft);
  background-color: #efece4;
}

/* 内容边界说明框 */
.boundary-box,
.scope-boundary {
  padding: 16px 18px;
  background-color: var(--tint);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
}

.boundary-list {
  display: grid;
  gap: 8px;
}

.boundary-list > li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  color: var(--ink);
}

.boundary-list > li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--orange);
  border-radius: 50%;
}

.boundary-more {
  margin-top: 12px;
  font-size: 14px;
}

.boundary-more a {
  color: var(--orange);
  text-decoration: underline;
}

/* 页脚 */
.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--navy);
}

.footer-col p {
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-col p + p {
  margin-top: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 14px;
}

.footer-links a {
  color: var(--navy);
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--ink-soft);
}

/* --------------------------------- pages ---------------------------------- */

/* 首页：头版首屏 */
.home-main {
  padding-top: 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 12px;
  font-size: 13px;
  color: var(--navy);
  background-color: var(--yellow);
  border-radius: 999px;
}

.hero-copy h1 {
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 16px;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--rule);
}

.hero-stat {
  min-width: 0;
}

.hero-stat dt {
  font-size: 13px;
  color: var(--ink-soft);
}

.hero-stat dd {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.hero-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* 首页：题材跳转条 */
.genre-strip {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

.genre-strip-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.genre-card {
  display: block;
  height: 100%;
  padding: 14px 12px;
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.genre-card:hover {
  transform: translateY(-2px);
  border-top-color: var(--orange);
}

.genre-card-name {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

.genre-card-desc {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* 首页：今日推荐 */
.daily-picks {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 16px;
}

.pick-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.pick-card:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
}

.pick-cover {
  margin: 0;
}

.pick-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pick-body {
  flex: 1 1 auto;
  padding: 16px 18px 18px;
}

.pick-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.pick-desc {
  font-size: 15px;
  color: var(--ink-soft);
}

.pick-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

/* 首页：更新批次 */
.update-batch {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

.batch-group-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.batch-group {
  min-width: 0;
  padding: 16px 18px;
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.batch-group-title {
  padding-bottom: 10px;
  margin-bottom: 6px;
  font-size: 18px;
  border-bottom: 2px solid var(--yellow);
}

.batch-rows {
  display: grid;
  gap: 2px;
}

.batch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
}

.batch-row:last-child {
  border-bottom: 0;
}

.batch-genre {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

.batch-tip {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--ink-soft);
}

/* 首页：专题策划精选 */
.topic-picks {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 16px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 22px;
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.topic-card:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  border-left-color: var(--orange);
}

.topic-no {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--teal);
}

.topic-title {
  margin: 6px 0 8px;
  font-size: 17px;
}

.topic-lead {
  font-size: 15px;
  color: var(--ink-soft);
}

.topic-meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

.topic-link {
  margin-top: auto;
  padding-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--orange);
}

/* 首页：阅读边界与站内入口 */
.scope-note {
  padding: 28px 0 4px;
}

.scope-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 26px;
  margin-top: 16px;
}

.scope-links {
  min-width: 0;
}

.scope-subtitle {
  margin-bottom: 12px;
  font-size: 18px;
}

.scope-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.scope-link {
  display: block;
  height: 100%;
  padding: 14px 16px;
  font-size: 15px;
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}

.scope-link:hover {
  border-color: var(--orange);
}

.scope-boundary {
  min-width: 0;
}

/* 题材目录页 */
.genre-index {
  margin-bottom: 36px;
}

.genre-index-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.genre-index-card {
  min-width: 0;
  padding: 14px 12px;
  background-color: var(--panel);
  border: 1px solid var(--teal);
  border-radius: var(--radius-sm);
}

.genre-index-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.genre-index-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.genre-blocks {
  margin-bottom: 36px;
}

.genre-block {
  padding: 20px 22px;
  margin-bottom: 18px;
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.genre-block h3 {
  padding-bottom: 8px;
  margin-bottom: 10px;
  font-size: 20px;
  border-bottom: 2px solid var(--yellow);
}

.genre-desc {
  font-size: 15px;
  color: var(--ink-soft);
}

.genre-direction-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.genre-direction-list > li {
  padding: 12px 14px;
  font-size: 15px;
  background-color: var(--paper);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-sm);
}

.genre-direction-list strong {
  display: block;
  font-family: var(--serif);
  color: var(--navy);
}

.reading-tips {
  margin-bottom: 8px;
}

.tip-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.tip-item {
  min-width: 0;
  padding: 16px 18px;
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius-sm);
}

.tip-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.tip-item p {
  font-size: 15px;
  color: var(--ink-soft);
}

/* 更新日历页 */
.weekly-table {
  margin-bottom: 36px;
}

.schedule-table {
  margin-top: 16px;
  font-size: 15px;
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.schedule-caption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: left;
  background-color: var(--tint);
}

.schedule-table th,
.schedule-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

.schedule-table thead th {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--navy);
  background-color: #f4f1e8;
}

.schedule-table tbody th {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--navy);
  white-space: nowrap;
}

.schedule-table tbody tr:last-child th,
.schedule-table tbody tr:last-child td {
  border-bottom: 0;
}

.follow-order {
  margin-bottom: 36px;
}

.order-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.order-item {
  min-width: 0;
  padding: 16px 18px;
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}

.order-name {
  margin-bottom: 8px;
  font-size: 17px;
}

.order-item p {
  font-size: 15px;
  color: var(--ink-soft);
}

.adjustment-notes {
  margin-bottom: 8px;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.note-card {
  min-width: 0;
  padding: 16px 18px;
  background-color: var(--tint);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
}

.note-name {
  margin-bottom: 8px;
  font-size: 17px;
}

.note-card p {
  font-size: 15px;
  color: var(--ink-soft);
}

/* 专题策划页 */
.topic-head {
  border-bottom: 1px solid var(--rule);
}

.topic-index {
  margin-bottom: 36px;
}

.topic-index-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.topic-index-card {
  min-width: 0;
  padding: 16px 18px;
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius-sm);
}

.topic-index-no {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--teal);
}

.topic-index-card h3 {
  margin: 6px 0 8px;
  font-size: 17px;
}

.topic-index-meta {
  font-size: 14px;
  color: var(--ink-soft);
}

.topic-index-count {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.topic-series {
  margin-bottom: 36px;
}

.topic-block {
  padding: 22px 24px;
  margin-top: 18px;
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.topic-block-head {
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--yellow);
}

.topic-block-no {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--teal);
}

.topic-block-head h3 {
  margin: 6px 0 8px;
  font-size: 20px;
}

.topic-block-genres {
  font-size: 13px;
  color: var(--ink-soft);
}

.topic-segment + .topic-segment {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--rule);
}

.topic-segment h4 {
  margin-bottom: 8px;
  font-size: 17px;
}

.topic-segment p {
  font-size: 15px;
  color: var(--ink-soft);
}

.topic-sequence-list {
  display: grid;
  gap: 10px;
  counter-reset: seq;
}

.topic-sequence-list > li {
  position: relative;
  padding: 10px 14px 10px 46px;
  font-size: 15px;
  background-color: var(--paper);
  border-radius: var(--radius-sm);
  counter-increment: seq;
}

.topic-sequence-list > li::before {
  content: counter(seq, decimal-leading-zero);
  position: absolute;
  top: 10px;
  left: 14px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--teal);
}

.seq-genre {
  font-weight: 600;
  color: var(--navy);
}

.topic-extend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-extend-list a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 14px;
  background-color: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
}

.topic-extend-list a:hover {
  color: #fff;
  background-color: var(--orange);
  border-color: var(--orange);
}

.order-notes {
  margin-bottom: 8px;
}

.order-notes-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.order-notes-list > li {
  min-width: 0;
  padding: 16px 18px;
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-sm);
}

.order-notes-list h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.order-notes-list p {
  font-size: 15px;
  color: var(--ink-soft);
}

/* 阅读帮助页 */
.steps {
  margin-bottom: 36px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.step-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 20px;
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.step-no {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 10px;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 13px;
  color: #fff;
  background-color: var(--navy);
  border-radius: 999px;
}

.step-name {
  margin-bottom: 8px;
  font-size: 17px;
}

.step-desc {
  font-size: 15px;
  color: var(--ink-soft);
}

.step-link {
  margin-top: auto;
  padding-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--orange);
}

.faq {
  margin-bottom: 36px;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.faq-item {
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}

.faq-question {
  padding: 14px 44px 14px 18px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  position: relative;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--orange);
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-answer {
  padding: 0 18px 16px;
  border-top: 1px dashed var(--rule);
}

.faq-answer p {
  padding-top: 12px;
  font-size: 15px;
  color: var(--ink-soft);
}

.label-notes {
  margin-bottom: 8px;
}

.label-list {
  margin-top: 16px;
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.label-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
}

.label-row:last-child {
  border-bottom: 0;
}

.label-term {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.label-desc {
  font-size: 15px;
  color: var(--ink-soft);
}

.next-link {
  display: inline-block;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  background-color: var(--paper);
  border: 1px solid var(--navy);
  border-radius: var(--radius-sm);
}

.next-link:hover {
  color: #fff;
  background-color: var(--navy);
}

/* 站点说明页 */
.duty-table {
  margin-bottom: 36px;
}

.duty-grid {
  margin-top: 16px;
  font-size: 15px;
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.duty-grid th,
.duty-grid td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

.duty-grid thead th {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--navy);
  background-color: #f4f1e8;
}

.duty-grid tbody th {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--navy);
  white-space: nowrap;
}

.duty-grid td:last-child a {
  color: var(--orange);
  text-decoration: underline;
}

.duty-grid tbody tr:last-child th,
.duty-grid tbody tr:last-child td {
  border-bottom: 0;
}

.boundary {
  margin-bottom: 36px;
}

.organization {
  margin-bottom: 36px;
}

.organization-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.organization-item {
  min-width: 0;
  padding: 16px 18px;
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius-sm);
}

.organization-item h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.organization-item p {
  font-size: 15px;
  color: var(--ink-soft);
}

.feedback-path {
  margin-bottom: 8px;
}

.feedback-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.feedback-step {
  min-width: 0;
  padding: 16px 18px;
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
}

.feedback-step h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.feedback-step p {
  font-size: 15px;
  color: var(--ink-soft);
}

.feedback-step a {
  color: var(--orange);
  text-decoration: underline;
}

/* 404 页 */
.error-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 48px;
}

.error-panel {
  max-width: 640px;
  padding: 28px 30px;
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
}

.error-panel h1 {
  font-size: 30px;
  margin-bottom: 12px;
}

.error-lead {
  font-size: 16px;
  color: var(--ink-soft);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.error-routes {
  margin-top: 32px;
}

.error-routes h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.error-route-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.error-route {
  min-width: 0;
  padding: 14px 16px;
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}

.error-route h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.error-route p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* 滚动出现增强：默认完全可见，仅做位移淡入 */
.reveal {
  animation: reveal-rise 0.5s ease both;
}

@keyframes reveal-rise {
  from {
    transform: translateY(12px);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
  }

  .genre-card,
  .pick-card,
  .topic-card {
    transition: none;
  }
}

/* ------------------------------- responsive ------------------------------- */

@media (max-width: 1024px) {
  .genre-strip-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .genre-index-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .batch-group-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tip-list,
  .order-list,
  .order-notes-list,
  .step-list,
  .organization-list,
  .feedback-steps,
  .topic-index-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .error-route-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-bar,
  .genre-track,
  .site-main,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* 移动导航：按钮可见，列表默认收起，仅 .nav-list.is-open 展开 */
  .nav-toggle {
    display: block;
    order: 2;
  }

  .brand {
    order: 1;
  }

  .site-nav {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 10px;
    padding: 6px 0;
    border-top: 1px solid var(--rule);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list > li {
    width: 100%;
  }

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--rule);
    border-left: 3px solid transparent;
  }

  .nav-link.is-current {
    border-bottom-color: var(--rule);
    border-left-color: var(--orange);
    padding-left: 10px;
  }

  .page-title {
    font-size: 24px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .genre-strip-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pick-grid,
  .topic-grid,
  .batch-group-list,
  .scope-layout,
  .note-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-index-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tip-list,
  .order-list,
  .order-notes-list,
  .step-list,
  .organization-list,
  .feedback-steps,
  .topic-index-list,
  .error-route-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .schedule-table,
  .schedule-table thead,
  .schedule-table tbody,
  .schedule-table tr,
  .schedule-table th,
  .schedule-table td {
    display: block;
    width: 100%;
  }

  .schedule-table thead {
    display: none;
  }

  .schedule-table tbody tr {
    padding: 12px 16px;
    border-bottom: 1px solid var(--rule);
  }

  .schedule-table tbody tr:last-child {
    border-bottom: 0;
  }

  .schedule-table tbody th,
  .schedule-table tbody td {
    padding: 4px 0;
    border-bottom: 0;
    white-space: normal;
  }

  .duty-grid,
  .duty-grid thead,
  .duty-grid tbody,
  .duty-grid tr,
  .duty-grid th,
  .duty-grid td {
    display: block;
    width: 100%;
  }

  .duty-grid thead {
    display: none;
  }

  .duty-grid tbody tr {
    padding: 12px 16px;
    border-bottom: 1px solid var(--rule);
  }

  .duty-grid tbody tr:last-child {
    border-bottom: 0;
  }

  .duty-grid tbody th,
  .duty-grid tbody td {
    padding: 4px 0;
    border-bottom: 0;
    white-space: normal;
  }

  .label-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .next-links-actions,
  .next-links-row,
  .next-links-buttons,
  .next-link-row {
    flex-direction: column;
  }

  .next-links-actions .btn,
  .next-links-row .btn,
  .next-links-buttons .btn,
  .next-link-row .next-link {
    width: 100%;
  }

  .footer-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero-copy h1 {
    font-size: 24px;
  }

  .page-title,
  .error-panel h1 {
    font-size: 24px;
  }

  .section-title,
  .error-routes h2 {
    font-size: 20px;
  }

  .hero-stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .genre-strip-list,
  .genre-index-list,
  .scope-link-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .pick-body,
  .topic-card,
  .genre-block,
  .topic-block,
  .error-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topic-sequence-list > li {
    padding-left: 40px;
  }

  .topic-sequence-list > li::before {
    left: 12px;
  }
}
/* 移动端导航展开态由脚本在 .nav-list 上添加 .is-open 控制 */
