/* ==========================================================================
   每日大赛 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */
:root {
  --paper: #f6f2ea;
  --ink: #1d1b18;
  --cinnabar: #c74432;
  --cinnabar-deep: #a8371f;
  --muted: #6e675c;
  --line: #d8d0c2;
  --paper-soft: #ede7db;
  --paper-card: #fbf8f1;
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --shell: 1180px;
  --content: 1120px;
  --aside-w: 280px;
  --gap-col: 48px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--cinnabar);
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--ink);
  white-space: nowrap;
  flex: none;
}

.brand::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  vertical-align: 3px;
  background: var(--cinnabar);
  border-radius: 50%;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-item > a,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}

.nav-item > a:hover,
.nav-trigger:hover {
  color: var(--cinnabar);
}

.nav-item-current > a.is-current,
.nav-item .is-current {
  color: var(--cinnabar);
  border-bottom-color: var(--cinnabar);
}

.nav-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.18s ease;
}

.nav-has-menu:hover .nav-trigger::after,
.nav-trigger[aria-expanded="true"]::after {
  transform: translateY(1px) rotate(-135deg);
}

.nav-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 232px;
  padding: 14px 16px 16px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(29, 27, 24, 0.08);
  display: none;
}

.nav-has-menu:hover .nav-menu,
.nav-has-menu:focus-within .nav-menu,
.nav-menu.is-open {
  display: block;
}

.nav-menu-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.nav-menu ul {
  display: flex;
  flex-direction: column;
}

.nav-menu li a {
  display: block;
  padding: 9px 2px;
  font-size: 15px;
  border-bottom: 1px solid transparent;
}

.nav-menu li a:hover {
  color: var(--cinnabar);
}

.nav-menu li a.is-current {
  color: var(--cinnabar);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
}

.menu-toggle::before,
.menu-toggle::after,
.menu-toggle span {
  content: "";
}

.menu-toggle::before,
.menu-toggle::after {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle::before {
  top: 16px;
}

.menu-toggle::after {
  bottom: 16px;
}

.menu-toggle[aria-expanded="true"]::before {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  bottom: 21px;
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper-card);
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav:not([hidden]) {
  display: block;
}

.mobile-nav {
  position: static;
}

.mobile-group {
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
}

.mobile-group:last-child {
  border-bottom: 0;
}

.mobile-group-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.mobile-group-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 6px;
}

.mobile-group ul {
  display: flex;
  flex-direction: column;
}

.mobile-group li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}

.mobile-group li:last-child a {
  border-bottom: 0;
}

.mobile-group li a.is-current {
  color: var(--cinnabar);
  font-weight: 600;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 72px;
}

/* 内页统一：面包屑 + 标题区 */
.breadcrumb-bar {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 24px 0;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--cinnabar);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--line);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding: 20px 0 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.page-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--aside-w);
  gap: var(--gap-col);
  align-items: start;
  margin-top: 24px;
}

.page-content {
  min-width: 0;
}

/* 页脚 */
.site-footer {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 2.4fr);
  gap: 40px;
}

.footer-brand-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
}

.footer-brand-desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 340px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-col-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-col li a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: 14px;
  color: var(--muted);
}

.footer-col li a:hover {
  color: var(--cinnabar);
}

.footer-bottom {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px 24px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-boundary {
  flex: 1 1 460px;
  min-width: 0;
}

.footer-copy {
  flex: none;
}

/* --------------------------------------------------------------------------
   components · 通用按钮 / 链接 / 区块标题
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  font-size: 15px;
  font-family: var(--sans);
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: #fdfaf4;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--cinnabar-deep);
  border-color: var(--cinnabar-deep);
  color: #fdfaf4;
}

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--cinnabar);
  border-bottom: 1px solid transparent;
}

.text-link::after {
  content: "›";
  margin-left: 5px;
  font-size: 15px;
  line-height: 1;
}

.text-link:hover {
  color: var(--cinnabar-deep);
  border-bottom-color: currentColor;
}

.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2,
.section > h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.section-lead,
.section-intro,
.section-note {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 760px;
}

.section-note a {
  color: var(--cinnabar);
}

.source-note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.source-note a {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.source-note a:hover {
  color: var(--cinnabar);
}

.eyebrow,
.page-eyebrow,
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--cinnabar);
  margin-bottom: 12px;
}

/* 图片容器 */
.hero-figure,
.page-figure,
.page-hero-figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-soft);
}

.hero-figure img,
.page-figure img,
.page-hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-figure,
.page-figure,
.page-hero-figure {
  padding: 0;
}

.hero-figure figcaption,
.page-figure figcaption,
.page-hero-figure figcaption {
  padding: 10px 16px 12px;
  margin-top: 0;
  background: var(--paper-card);
  border-top: 1px solid var(--line);
}

/* 表格 */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-card);
}

.data-table {
  min-width: 560px;
  font-size: 15px;
}

.data-table caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}

.data-table thead th {
  background: var(--paper-soft);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody th {
  font-family: var(--serif);
  font-weight: 600;
  white-space: nowrap;
}

/* 状态标签 */
.status-tag,
.stage-col-badge,
.stage-status,
.work-status,
.status-serial,
.status-done,
.status-revise,
.status-open,
.status-pending {
  display: inline-block;
  padding: 2px 10px;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 3px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper-soft);
  white-space: nowrap;
}

.stage-col-badge-live,
.status-open,
.status-serial {
  color: var(--cinnabar);
  border-color: rgba(199, 68, 50, 0.4);
  background: rgba(199, 68, 50, 0.08);
}

.status-done {
  color: #4a6b4f;
  border-color: #c2d2c3;
  background: #eef3ec;
}

.status-revise,
.status-pending {
  color: #8a6320;
  border-color: #ddc9a3;
  background: #f6efdf;
}

/* FAQ 原生折叠 */
.faq-item {
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.faq-item:first-of-type {
  border-top: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 12px 4px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1;
  color: var(--cinnabar);
  transition: transform 0.18s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--cinnabar);
}

.faq-item > p,
.faq-item .faq-body {
  padding: 0 4px 16px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.faq-body p {
  margin-bottom: 8px;
}

.faq-body p:last-child {
  margin-bottom: 0;
}

.faq-link {
  color: var(--cinnabar);
}

/* 侧栏 */
.page-aside {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-card);
  position: sticky;
  top: 96px;
}

.aside-title {
  font-size: 17px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aside-item a,
.aside-link {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.aside-item p,
.aside-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.aside-block {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.aside-block:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.aside-block h3 {
  font-size: 15px;
  margin-bottom: 10px;
}

.aside-block .aside-list {
  gap: 10px;
}

.aside-block .aside-item a {
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.hero {
  padding: 44px 0 0;
}

.hero-inner {
  max-width: 780px;
  margin-bottom: 32px;
}

.hero-inner h1,
.hero-inner #hero-title {
  font-size: clamp(2rem, 4.4vw, 2.75rem);
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-figure {
  margin-bottom: 0;
}

.stage-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  background: var(--paper-card);
}

.stage-bar-item {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stage-bar-item:last-child {
  border-right: 0;
}

.stage-bar-name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.stage-bar-state {
  font-size: 13px;
  color: var(--muted);
}

.stage-bar-current {
  background: var(--paper-soft);
}

.stage-bar-current .stage-bar-name,
.stage-bar-current .stage-bar-state {
  color: var(--cinnabar);
}

/* 首页 赛程状态总览 */
.stage-overview .stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.stage-col {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.stage-col-name {
  font-size: 18px;
}

.stage-col-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.stage-conclusion {
  font-size: 16px;
  line-height: 1.85;
  padding-left: 16px;
  border-left: 3px solid var(--cinnabar);
  max-width: 820px;
}

/* 首页 专题策展 */
.feature-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.feature-media figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-soft);
}

.feature-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-media figcaption {
  padding: 10px 16px 12px;
  margin-top: 0;
  background: var(--paper-card);
  border-top: 1px solid var(--line);
}

.feature-body h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.feature-lead {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 20px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
}

.feature-item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.feature-item:last-child {
  border-bottom: 1px solid var(--line);
}

.feature-item-name {
  font-size: 17px;
  margin-bottom: 4px;
}

.feature-item-scope {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 4px;
}

/* 首页 作品目录速览 */
.genre-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.genre-strip li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-card);
}

.genre-strip li a:hover {
  border-color: var(--cinnabar);
  color: var(--cinnabar);
}

.work-index {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin-bottom: 26px;
}

.work-index-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.work-index-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.work-index-genre,
.work-index-state {
  font-size: 14px;
  color: var(--muted);
}

/* 首页 推荐榜摘要 */
.ranking-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.ranking-note h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.ranking-lead {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 16px;
}

.ranking-dimensions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.ranking-dimensions li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}

.ranking-dimensions li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--cinnabar);
  border-radius: 50%;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.ranking-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.ranking-item-name {
  font-size: 17px;
  margin-bottom: 6px;
}

.ranking-item-reason {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* 首页 阅读路径 */
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.path-col {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.path-col-name {
  font-size: 18px;
}

.path-col-text,
.path-col-result {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.path-col-result {
  color: var(--ink);
}

/* 首页 更新摘要 */
.update-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin-bottom: 26px;
}

.update-row {
  display: grid;
  grid-template-columns: 96px 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.update-row-batch {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.update-row-date {
  font-size: 13px;
  color: var(--muted);
}

.update-row-desc {
  font-size: 15px;
  line-height: 1.75;
}

.issue-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.issue-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cinnabar);
  border-radius: 0 4px 4px 0;
  background: var(--paper-card);
}

.issue-label {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--cinnabar);
  flex: none;
}

.issue-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  flex: 1 1 320px;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   pages · 内页通用标题区
   -------------------------------------------------------------------------- */
.page-head,
.page-hero {
  margin-bottom: 40px;
}

.page-head .eyebrow {
  margin-bottom: 8px;
}

.page-lede,
.page-lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 22px;
}

.page-hero-text .page-lead {
  margin-bottom: 20px;
}

.page-hero .page-figure {
  margin-top: 4px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.page-hero-text {
  margin-bottom: 20px;
}

.page-title-block {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 24px 24px 0;
}

.page-title-block .page-lead {
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   pages · 赛程
   -------------------------------------------------------------------------- */
.stage-overview {
  margin-bottom: 48px;
}

.stage-overview h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.stage-overview .section-intro {
  margin-bottom: 24px;
}

.stage-overview .stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.stage-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.stage-card h3 {
  font-size: 17px;
}

.stage-status {
  margin-top: -2px;
}

.stage-impact {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.stage-table-section,
.change-section,
.history-section {
  margin-bottom: 48px;
}

.stage-table-section h2,
.change-section h2,
.history-section h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.stage-table-section .section-intro,
.change-section .section-intro,
.history-section .section-intro {
  margin-bottom: 20px;
}

.change-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.change-item {
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}

.change-meta {
  font-size: 13px;
  color: var(--cinnabar);
  margin-bottom: 6px;
}

.change-item h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.change-item > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.change-action {
  margin-top: 8px;
  color: var(--ink) !important;
}

.change-action a {
  color: var(--cinnabar);
}

/* --------------------------------------------------------------------------
   pages · 作品目录
   -------------------------------------------------------------------------- */
.works-cats,
.works-list,
.works-marks {
  margin-bottom: 48px;
}

.works-cats h2,
.works-list h2,
.works-marks h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.works-cats .section-note,
.works-list .section-note,
.works-marks .section-note {
  margin-bottom: 20px;
}

.cat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-item {
  flex: 0 1 auto;
}

.cat-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-card);
}

.cat-link:hover {
  border-color: var(--cinnabar);
}

.cat-name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.cat-scope {
  font-size: 13px;
  color: var(--muted);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.work-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.work-name {
  font-size: 18px;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.work-cat {
  color: var(--muted);
}

.work-scope {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.work-entry {
  font-size: 14px;
  margin-top: 2px;
}

.work-entry a {
  color: var(--cinnabar);
}

.mark-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.mark-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.mark-row dt {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.mark-row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   pages · 专题策展
   -------------------------------------------------------------------------- */
.feature-intro,
.feature-list,
.feature-order {
  margin-bottom: 44px;
}

.feature-intro h2,
.feature-list h2,
.feature-order h2 {
  font-size: 24px;
  margin-bottom: 14px;
}

.feature-intro-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 780px;
}

.feature-intro-body p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.feature-list .section-note {
  margin-bottom: 18px;
}

.feature-entry {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.feature-entry:last-of-type {
  border-bottom: 1px solid var(--line);
}

.feature-entry h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.feature-entry-meta {
  font-size: 13px;
  color: var(--cinnabar);
  margin-bottom: 8px;
}

.feature-entry > p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 8px;
}

.entry-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--cinnabar);
}

.entry-link:hover {
  color: var(--cinnabar-deep);
}

.feature-order .section-note {
  margin-bottom: 18px;
}

.order-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.order-step {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-card);
}

.order-index {
  display: inline-block;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--cinnabar);
  margin-bottom: 6px;
}

.order-step h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.order-step p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-soft);
}

.related-links-label {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.related-links-item {
  font-size: 14px;
  color: var(--cinnabar);
  border-bottom: 1px solid transparent;
}

.related-links-item:hover {
  border-bottom-color: currentColor;
}

/* --------------------------------------------------------------------------
   pages · 推荐榜
   -------------------------------------------------------------------------- */
.rank-basis,
.rank-picks,
.rank-shift,
.rank-cross {
  margin-bottom: 44px;
}

.rank-basis h2,
.rank-picks h2,
.rank-shift h2,
.rank-cross h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.rank-basis .section-note,
.rank-picks .section-note,
.rank-shift .section-note,
.rank-cross .section-note {
  margin-bottom: 20px;
}

.basis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.basis-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-card);
}

.basis-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.basis-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.pick-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.pick-item {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto;
  grid-template-areas:
    "name meta link"
    "reason reason reason";
  gap: 6px 20px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}

.pick-name {
  grid-area: name;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.pick-meta {
  grid-area: meta;
  font-size: 13px;
  color: var(--cinnabar);
  align-self: center;
}

.pick-reason {
  grid-area: reason;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.pick-link {
  grid-area: link;
  align-self: center;
  font-size: 14px;
  color: var(--cinnabar);
  white-space: nowrap;
}

.pick-link:hover {
  color: var(--cinnabar-deep);
}

.shift-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.shift-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-card);
}

.shift-batch {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.shift-focus {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 6px;
}

.shift-stage {
  font-size: 13px;
  color: var(--cinnabar);
}

.cross-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cross-links li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-card);
}

.cross-links li a:hover {
  border-color: var(--cinnabar);
  color: var(--cinnabar);
}

/* --------------------------------------------------------------------------
   pages · 阅读指南
   -------------------------------------------------------------------------- */
.guide-steps,
.guide-markers,
.guide-faq,
.guide-settings {
  margin-bottom: 44px;
}

.guide-steps h2,
.guide-markers h2,
.guide-faq h2,
.guide-settings h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.guide-steps .section-intro,
.guide-markers .section-intro,
.guide-faq .section-intro,
.guide-settings .section-intro {
  margin-bottom: 20px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-card);
}

.step-index {
  display: inline-block;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--cinnabar);
  margin-bottom: 6px;
}

.step-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-action,
.step-result {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.step-result {
  margin-top: 6px;
  color: var(--ink);
}

.marker-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.marker-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.marker-item dt {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.marker-item dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.settings-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.settings-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-card);
}

.settings-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.settings-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   pages · 更新记录
   -------------------------------------------------------------------------- */
.updates-overview,
.updates-detail,
.errata-status,
.history-index {
  margin-bottom: 44px;
}

.updates-overview h2,
.updates-detail h2,
.errata-status h2,
.history-index h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.updates-overview .section-intro,
.updates-detail .section-intro,
.errata-status .section-intro,
.history-index .section-intro {
  margin-bottom: 20px;
}

.batch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.batch-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-card);
}

.batch-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.batch-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.batch-type {
  font-size: 13px;
  color: var(--cinnabar);
  margin-bottom: 6px;
}

.batch-scope {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.errata-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.errata-item {
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.errata-desc {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 6px;
}

.errata-action {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 6px;
}

.errata-flag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 13px;
  border-radius: 3px;
  border: 1px solid #c2d2c3;
  background: #eef3ec;
  color: #4a6b4f;
}

.history-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.history-row {
  display: grid;
  grid-template-columns: 96px 140px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.history-batch {
  font-family: var(--serif);
  font-weight: 600;
}

.history-type {
  color: var(--muted);
}

.history-page {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 24px 72px;
}

.error-panel {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.error-code {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  font-weight: 600;
  color: var(--cinnabar);
  margin-bottom: 12px;
}

.error-panel h1 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  margin-bottom: 14px;
}

.error-lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-paths h2 {
  font-size: 22px;
  margin-bottom: 18px;
}

.error-path-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.error-path-item {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-card);
}

.error-path-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.error-path-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 8px;
}

.error-path-item a {
  font-size: 14px;
  color: var(--cinnabar);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .stage-overview .stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .basis-grid,
  .shift-list,
  .settings-list,
  .steps-grid,
  .path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid > :last-child,
  .path-grid > :last-child,
  .basis-grid > :last-child,
  .shift-list > :last-child,
  .settings-list > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .header-inner {
    height: 64px;
    gap: 16px;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .mobile-nav:not([hidden]) {
    display: block;
  }

  .site-header {
    position: sticky;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .page-aside {
    position: static;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 36px;
  }

  .footer-brand-desc {
    max-width: none;
  }

  .hero {
    padding-top: 32px;
  }

  .stage-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-radius: 0 0 8px 8px;
  }

  .stage-bar-item {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .stage-bar-item:nth-child(2n) {
    border-right: 0;
  }

  .stage-bar-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .stage-overview .stage-grid,
  .stage-overview .stage-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-block,
  .ranking-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .works-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-path-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .pick-item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name link"
      "meta meta"
      "reason reason";
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .brand {
    font-size: 19px;
  }

  .home-main,
  .inner-main,
  .breadcrumb-bar,
  .page-title-block,
  .footer-inner,
  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-title {
    font-size: clamp(1.65rem, 6.4vw, 2rem);
  }

  .section {
    padding: 40px 0;
  }

  .section-head h2,
  .section > h2,
  .stage-overview h2,
  .stage-table-section h2,
  .change-section h2,
  .history-section h2,
  .works-cats h2,
  .works-list h2,
  .works-marks h2,
  .feature-intro h2,
  .feature-list h2,
  .feature-order h2,
  .rank-basis h2,
  .rank-picks h2,
  .rank-shift h2,
  .rank-cross h2,
  .guide-steps h2,
  .guide-markers h2,
  .guide-faq h2,
  .guide-settings h2,
  .updates-overview h2,
  .updates-detail h2,
  .errata-status h2,
  .history-index h2 {
    font-size: 21px;
  }

  .hero-inner {
    margin-bottom: 24px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .stage-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage-bar-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stage-bar-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .stage-bar-item:last-child {
    border-bottom: 0;
  }

  .stage-grid,
  .basis-grid,
  .shift-list,
  .settings-list,
  .steps-grid,
  .path-grid,
  .batch-grid,
  .mark-row,
  .marker-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps-grid > :last-child,
  .path-grid > :last-child,
  .basis-grid > :last-child,
  .shift-list > :last-child,
  .settings-list > :last-child {
    grid-column: auto;
  }

  .mark-row,
  .marker-item {
    gap: 4px;
  }

  .work-index-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 12px;
  }

  .work-index-name {
    grid-column: 1 / -1;
  }

  .work-index-row .text-link {
    grid-column: 1 / -1;
  }

  .update-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
  }

  .update-row-desc {
    grid-column: 1 / -1;
  }

  .update-row .text-link {
    grid-column: 1 / -1;
  }

  .history-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
  }

  .history-page {
    grid-column: 1 / -1;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    padding-bottom: 24px;
  }

  .footer-boundary {
    flex: 0 1 auto;
  }

  .error-main {
    padding: 44px 16px 56px;
  }

  .error-code {
    font-size: 52px;
  }

  .data-table {
    font-size: 14px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 12px;
  }

  .cat-strip {
    gap: 8px;
  }

  .cat-link {
    padding: 8px 12px;
  }

  .pick-item {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "name"
      "meta"
      "reason"
      "link";
  }

  .pick-link {
    justify-self: start;
  }

  .issue-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .issue-text {
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
