:root {
  --bg: #0c0e12;
  --panel: #151922;
  --panel-hover: #1f2530;
  --text: #f2f4f7;
  --text-sub: #9aa3af;
  --accent: #ff4d5a;
  --ok: #3ddc97;
  --line: #2a303c;
  --radius: 6px;
  --shell: 1120px;
  --home-shell: 1180px;
  --font: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* ============ base ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============ layout / shell ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 14, 18, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: var(--home-shell);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--accent);
  color: #0c0e12;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark::before {
  content: "美";
}

.brand-tag {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.primary-nav.site-nav {
  display: flex;
  align-items: center;
}

.primary-nav.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 11px;
  font-size: 14px;
  color: var(--text-sub);
  border-radius: 4px;
  white-space: nowrap;
}

.primary-nav.site-nav a:hover {
  color: var(--text);
  background: var(--panel-hover);
}

.primary-nav.site-nav a.is-current {
  color: var(--text);
  background: var(--panel-hover);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.nav-toggle:hover {
  background: var(--panel-hover);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.site-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px;
}

.home-main {
  max-width: 100%;
  padding: 0;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 24px 20px 56px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-sub);
  padding: 16px 0 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--line);
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--text);
}

.page-header {
  padding: 14px 0 4px;
}

.page-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.page-title-inner {
  max-width: var(--home-shell);
  margin: 0 auto;
  padding: 0 20px;
}

.page-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.eyebrow,
.page-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-brand-heading {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.page-lead {
  margin: 12px 0 0;
  max-width: 780px;
  font-size: 16px;
  color: var(--text-sub);
}

/* ============ components ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0c0e12;
}

.btn-primary:hover {
  background: #ff6a75;
  color: #0c0e12;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.btn-link:hover {
  color: #ff8b93;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.inline-link:hover {
  color: #ff8b93;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-sub);
}

.status-dot-on {
  background: var(--ok);
}

.status-dot-warn {
  background: var(--accent);
}

.status-done {
  background: var(--ok);
}

.status-pending {
  background: var(--accent);
}

.field-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-sub);
  text-transform: uppercase;
  min-width: 64px;
}

.duration-tag {
  display: inline-block;
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ok);
  background: rgba(61, 220, 151, 0.1);
  border: 1px solid rgba(61, 220, 151, 0.35);
  border-radius: 4px;
}

.entry-index {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-sub);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 26px;
}

.section-sub {
  font-size: 14px;
  color: var(--text-sub);
}

.section-lead {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--text-sub);
  max-width: 780px;
}

.section-note {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-sub);
}

/* ============ footer ============ */
.site-footer {
  background: #0a0c10;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--home-shell);
  margin: 0 auto;
  padding: 44px 20px 28px;
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 13px;
  color: var(--text-sub);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 20px;
  max-width: var(--home-shell);
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-sub);
}

/* ============ index ============ */
.hero {
  position: relative;
  background: #10141b;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--home-shell);
  margin: 0 auto;
  padding: 56px 20px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-copy h1 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 26px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-figure {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.hero-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text);
  background: rgba(12, 14, 18, 0.78);
}

.hero-status {
  max-width: var(--home-shell);
  margin: 0 auto;
  padding: 0 20px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--text-sub);
}

.status-sep {
  width: 1px;
  height: 12px;
  background: var(--line);
}

.status-text {
  color: var(--text-sub);
}

.channel-strip {
  max-width: var(--home-shell);
  margin: 0 auto;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.channel-strip ul {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.channel-strip li {
  border-right: 1px solid var(--line);
}

.channel-strip li:first-child {
  border-left: 1px solid var(--line);
}

.channel-strip a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  padding: 8px 12px;
}

.channel-strip a:hover {
  background: var(--panel-hover);
}

.strip-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.strip-desc {
  font-size: 11px;
  color: var(--text-sub);
  line-height: 1.4;
}

.lead-grid {
  max-width: var(--home-shell);
  margin: 0 auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 32px;
}

.lead-story {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.lead-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--panel-hover);
}

.lead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead-label {
  padding: 16px 20px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.lead-story h2 {
  padding: 6px 20px 0;
  font-size: 26px;
}

.lead-story h2 a:hover {
  color: var(--accent);
}

.lead-summary {
  padding: 10px 20px 0;
  font-size: 15px;
  color: var(--text-sub);
}

.lead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 16px 20px 20px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.lead-meta li a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 13px;
  color: var(--text-sub);
}

.lead-meta li a:hover {
  color: var(--accent);
}

.bulletin {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.bulletin-title {
  font-size: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.bulletin-list {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bulletin-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.bulletin-list a {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--text);
}

.bulletin-list a:hover {
  color: var(--accent);
}

.bulletin-time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-sub);
  flex-shrink: 0;
}

.bulletin-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.bulletin-more:hover {
  color: #ff8b93;
}

.channel-board {
  max-width: var(--home-shell);
  margin: 0 auto;
  padding: 16px 20px 40px;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.channel-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.channel-card:hover {
  border-color: var(--accent);
  background: var(--panel-hover);
}

.channel-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--panel-hover);
}

.channel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-card h3 {
  padding: 14px 16px 0;
  font-size: 17px;
}

.channel-card > p {
  padding: 6px 16px 0;
  font-size: 13px;
  color: var(--text-sub);
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 8px;
}

.card-link:hover {
  color: #ff8b93;
}

.collection-rail {
  max-width: var(--home-shell);
  margin: 0 auto;
  padding: 0 20px 40px;
}

.rail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.collection-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.collection-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--panel-hover);
}

.collection-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-card h3 {
  padding: 14px 16px 0;
  font-size: 17px;
}

.collection-card > p {
  padding: 6px 16px 0;
  font-size: 13px;
  color: var(--text-sub);
  flex: 1;
}

.collection-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 14px 16px 16px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.collection-fields li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-sub);
}

.guide-terms {
  max-width: var(--home-shell);
  margin: 0 auto;
  padding: 0 20px 40px;
}

.guide-terms > h2 {
  font-size: 26px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.guide-terms-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

.guide-steps,
.term-quick {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  min-width: 0;
}

.guide-steps h3,
.term-quick h3 {
  font-size: 17px;
  margin-bottom: 14px;
}

.guide-steps ol {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guide-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.step-body {
  min-width: 0;
}

.step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.step-body p {
  font-size: 14px;
  color: var(--text-sub);
}

.term-quick ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.term-quick li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.term-quick li a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.term-quick li a:hover {
  color: var(--accent);
}

.term-quick li span {
  font-size: 12px;
  color: var(--text-sub);
  text-align: right;
}

.term-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.term-more:hover {
  color: #ff8b93;
}

.update-log {
  max-width: var(--home-shell);
  margin: 0 auto;
  padding: 0 20px 40px;
}

.update-list {
  border-top: 1px solid var(--line);
}

.update-row {
  display: grid;
  grid-template-columns: auto 100px minmax(0, 1fr) 90px auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.update-type {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.update-scope {
  font-size: 14px;
  color: var(--text-sub);
}

.update-state {
  font-size: 12px;
  color: var(--ok);
  font-family: var(--mono);
}

.update-row a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 40px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.update-row a:hover {
  color: #ff8b93;
}

.feedback-strip {
  max-width: var(--home-shell);
  margin: 0 auto;
  padding: 0 20px 56px;
}

.feedback-strip > h2 {
  font-size: 26px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feedback-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feedback-block h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.feedback-block p {
  font-size: 14px;
  color: var(--text-sub);
  flex: 1;
}

.feedback-block a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.feedback-block a:hover {
  color: #ff8b93;
}

/* ============ inner page shell ============ */
.page-layout {
  display: grid;
  gap: 32px;
  margin-top: 20px;
}

.collection-layout {
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
}

.guide-layout {
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
}

.channel-layout {
  grid-template-columns: 280px minmax(0, 1fr);
}

.channel-layout .channel-main {
  min-width: 0;
}

.collection-aside,
.guide-aside {
  min-width: 0;
}

.aside-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.aside-title {
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.aside-note {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.aside-link {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.aside-link a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.aside-link a:hover {
  color: #ff8b93;
}

.aside-link-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  color: var(--text);
}

.aside-link-list a:hover {
  color: var(--accent);
}

.aside-more {
  margin-top: 12px;
}

.aside-more a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.aside-more a:hover {
  color: #ff8b93;
}

/* ============ channels page ============ */
.channel-index {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  align-self: start;
  position: sticky;
  top: 78px;
}

.channel-index-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.channel-index-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 14px;
  color: var(--text);
  border-radius: 4px;
  border-left: 2px solid transparent;
}

.channel-index-nav a:hover {
  background: var(--panel-hover);
  border-left-color: var(--accent);
  color: var(--accent);
}

.channel-cards,
.channel-naming,
.channel-relation {
  margin-bottom: 40px;
}

.channel-cards h2,
.channel-naming h2,
.channel-relation h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.channel-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.channel-body h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.channel-def {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
}

.channel-scope {
  font-size: 13px;
  color: var(--text-sub);
  flex: 1;
}

.channel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.channel-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.channel-links a:hover {
  color: #ff8b93;
}

.naming-table {
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.naming-table caption {
  text-align: left;
  font-size: 13px;
  color: var(--text-sub);
  padding: 0 0 10px;
}

.naming-table thead th {
  background: var(--panel-hover);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.naming-table tbody th {
  padding: 12px 14px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  width: 22%;
}

.naming-table tbody td {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-sub);
  border-bottom: 1px solid var(--line);
}

.naming-table tbody tr:last-child th,
.naming-table tbody tr:last-child td {
  border-bottom: 0;
}

.naming-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-sub);
}

.naming-note a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-weight: 700;
  color: var(--accent);
}

.naming-note a:hover {
  color: #ff8b93;
}

.relation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.relation-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  min-width: 0;
}

.relation-block h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.relation-block p {
  font-size: 14px;
  color: var(--text-sub);
}

.relation-link {
  margin-top: 10px;
}

.relation-link a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.relation-link a:hover {
  color: #ff8b93;
}

.relation-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-sub);
}

.relation-note a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-right: 16px;
  font-weight: 700;
  color: var(--accent);
}

.relation-note a:hover {
  color: #ff8b93;
}

/* ============ collections page ============ */
.collection-intro,
.entry-list,
.reading-order,
.related-paths,
.collection-update {
  margin-bottom: 40px;
}

.collection-intro > p {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 18px;
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.principle-list li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  min-width: 0;
}

.principle-list h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.principle-list p {
  font-size: 13px;
  color: var(--text-sub);
}

.entry-list h2,
.reading-order h2,
.related-paths h2,
.collection-update h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.entry-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  transition: border-color 0.18s ease;
}

.entry-card:hover {
  border-color: var(--accent);
}

.entry-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--panel-hover);
}

.entry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-body {
  padding: 16px 18px 16px 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.entry-channel {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}

.entry-body h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.entry-summary {
  font-size: 14px;
  color: var(--text-sub);
  flex: 1;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.entry-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.entry-link:hover {
  color: #ff8b93;
}

.reading-order > p {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.reading-order .step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: readstep;
}

.reading-order .step-list li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  counter-increment: readstep;
  position: relative;
  padding-left: 54px;
}

.reading-order .step-list li::before {
  content: counter(readstep);
  position: absolute;
  left: 16px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.reading-order .step-list h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.reading-order .step-list p {
  font-size: 14px;
  color: var(--text-sub);
}

.path-list {
  border-top: 1px solid var(--line);
}

.path-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.path-list h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.path-list p {
  font-size: 13px;
  color: var(--text-sub);
}

.path-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.path-list a:hover {
  color: #ff8b93;
}

.collection-update > p {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.related-links-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-sub);
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.related-links-item:hover {
  color: #ff8b93;
}

.field-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-list h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

.field-list p {
  font-size: 13px;
  color: var(--text-sub);
}

.field-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.field-list a:hover {
  color: #ff8b93;
}

/* ============ glossary page ============ */
.definition-lead,
.term-list,
.term-example,
.related-terms {
  margin-bottom: 40px;
}

.definition-lead h2,
.term-list h2,
.related-terms h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.definition-lead p {
  font-size: 16px;
  color: var(--text-sub);
  max-width: 780px;
}

.definition-lead p + p {
  margin-top: 10px;
}

.term-list {
  max-width: 780px;
}

.term-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.term-item:first-of-type {
  border-top: 1px solid var(--line);
}

.term-item h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--text);
}

.term-def {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
}

.term-note {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.term-example {
  font-size: 14px;
  color: var(--text-sub);
  padding: 10px 14px;
  background: var(--panel);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
}

.term-example::before {
  content: "示例：";
  font-weight: 700;
  color: var(--text);
}

.term-example p {
  margin: 0;
}

.term-example {
  max-width: 780px;
}

.term-example img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
}

.term-example figcaption {
  font-size: 13px;
  color: var(--text-sub);
}

.related-terms {
  max-width: 780px;
}

.related-terms > p {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.related-list {
  border-top: 1px solid var(--line);
}

.related-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.related-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.related-list a:hover {
  color: var(--accent);
}

.related-list span {
  font-size: 13px;
  color: var(--text-sub);
}

.term-example figcaption {
  font-size: 13px;
  color: var(--text-sub);
}

/* ============ guide page ============ */
.guide-intro,
.guide-steps,
.guide-figure,
.check-table,
.guide-faq,
.guide-errors {
  margin-bottom: 40px;
}

.guide-intro p {
  font-size: 16px;
  color: var(--text-sub);
  max-width: 780px;
}

.guide-intro p + p {
  margin-top: 10px;
}

.guide-steps h2,
.check-table h2,
.guide-faq h2,
.guide-errors h2 {
  font-size: 26px;
  margin-bottom: 16px;
}

.guide-steps .step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guide-steps .step-item,
.process-steps .step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.guide-steps .step-body h3,
.process-steps .step-body h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.guide-steps .step-body p,
.process-steps .step-body p {
  font-size: 14px;
  color: var(--text-sub);
}

.step-back {
  margin-top: 8px;
}

.step-back a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.step-back a:hover {
  color: #ff8b93;
}

.guide-figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.guide-figure img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
}

.check-table > p {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.check-grid {
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.check-grid caption {
  text-align: left;
  font-size: 13px;
  color: var(--text-sub);
  padding: 0 0 10px;
}

.check-grid thead th {
  background: var(--panel-hover);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.check-grid tbody th {
  padding: 12px 14px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  width: 26%;
}

.check-grid tbody td {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-sub);
  border-bottom: 1px solid var(--line);
}

.check-grid tbody tr:last-child th,
.check-grid tbody tr:last-child td {
  border-bottom: 0;
}

.guide-faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  margin-bottom: 10px;
  overflow: hidden;
}

.guide-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.guide-faq summary::-webkit-details-marker {
  display: none;
}

.guide-faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 18px;
  color: var(--accent);
}

.guide-faq details[open] summary::after {
  content: "−";
}

.guide-faq details[open] summary {
  border-bottom: 1px solid var(--line);
}

.guide-faq details p {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-sub);
}

.error-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.error-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.error-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.error-item > p {
  font-size: 14px;
  color: var(--text-sub);
}

.error-link {
  margin-top: 8px;
}

.error-link a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.error-link a:hover {
  color: #ff8b93;
}

/* ============ updates page ============ */
.record-guide,
.record-types,
.record-list,
.correction-policy,
.feedback-link {
  margin-bottom: 40px;
}

.record-guide h2,
.record-types h2,
.record-list h2,
.correction-policy h2,
.feedback-link h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.record-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.record-field {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  min-width: 0;
}

.record-field h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.record-field p {
  font-size: 13px;
  color: var(--text-sub);
}

.record-figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.record-figure img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
}

.record-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
}

.record-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.record-type {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  min-width: 0;
}

.record-type-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 1px 8px;
  margin-bottom: 8px;
}

.record-type h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.record-type > p:last-child {
  font-size: 13px;
  color: var(--text-sub);
}

.record-rows {
  border-top: 1px solid var(--line);
}

.record-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.record-row-body {
  min-width: 0;
}

.record-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.record-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  background: var(--panel-hover);
  border-radius: 4px;
  padding: 1px 8px;
}

.record-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-sub);
}

.record-row-body h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.record-row-body > p:last-child {
  font-size: 14px;
  color: var(--text-sub);
}

.record-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.record-link:hover {
  color: #ff8b93;
}

.record-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-sub);
}

.record-legend .status-dot {
  margin-right: 6px;
}

.policy-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: policy;
}

.policy-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 18px 18px 54px;
  position: relative;
  counter-increment: policy;
}

.policy-item::before {
  content: counter(policy);
  position: absolute;
  left: 16px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.policy-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.policy-item p {
  font-size: 14px;
  color: var(--text-sub);
}

.feedback-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feedback-link-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feedback-link-block h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.feedback-link-block p {
  font-size: 14px;
  color: var(--text-sub);
  flex: 1;
}

/* ============ feedback page ============ */
.feedback-scope,
.prepare-info,
.process-steps,
.limits,
.related {
  margin-bottom: 40px;
}

.feedback-scope .section-head p {
  font-size: 14px;
  color: var(--text-sub);
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.scope-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  min-width: 0;
}

.scope-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.scope-rule {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.scope-target {
  font-size: 13px;
}

.scope-target a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-weight: 700;
  color: var(--accent);
}

.scope-target a:hover {
  color: #ff8b93;
}

.prepare-info .section-head h2,
.process-steps .section-head h2,
.limits .section-head h2,
.related .section-head h2 {
  font-size: 26px;
}

.prepare-info .section-head p,
.process-steps .section-head p,
.limits .section-head p,
.related .section-head p {
  font-size: 14px;
  color: var(--text-sub);
}

.prepare-figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  margin-bottom: 20px;
}

.prepare-figure img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
}

.prepare-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
}

.prepare-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: prep;
}

.prepare-list li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px 16px 54px;
  position: relative;
  counter-increment: prep;
}

.prepare-list li::before {
  content: counter(prep);
  position: absolute;
  left: 16px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.prepare-list h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.prepare-list p {
  font-size: 14px;
  color: var(--text-sub);
}

.process-steps .step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.process-steps .step-body p a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-weight: 700;
  color: var(--accent);
}

.process-steps .step-body p a:hover {
  color: #ff8b93;
}

.limits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.limit-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 8px;
  padding: 16px;
  min-width: 0;
}

.limit-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.limit-card p {
  font-size: 13px;
  color: var(--text-sub);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 88px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.related-card:hover {
  border-color: var(--accent);
  background: var(--panel-hover);
}

.related-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.related-card:hover .related-name {
  color: var(--accent);
}

.related-desc {
  font-size: 12px;
  color: var(--text-sub);
}

/* ============ 404 ============ */
.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 24px 20px 56px;
}

.error-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 32px;
}

.error-code {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 10px;
}

.error-panel h1 {
  font-size: 42px;
  margin-bottom: 12px;
}

.error-lead {
  font-size: 16px;
  color: var(--text-sub);
  max-width: 640px;
  margin-bottom: 22px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-routes h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.error-routes > p {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.error-route-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.error-route-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.error-route-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============ 内页标题区一致性 ============ */
.inner-main .page-title,
.page-title-inner .page-title,
.site-brand-heading {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.inner-main .page-header {
  padding: 14px 0 4px;
}

.inner-main .page-lead {
  margin: 12px 0 0;
  max-width: 780px;
  font-size: 16px;
  color: var(--text-sub);
}

/* ============ responsive ============ */
@media (max-width: 1080px) {
  .footer-inner {
    grid-template-columns: 1.4fr repeat(2, 1fr);
    gap: 28px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 40px;
  }

  .hero-figure img {
    height: 260px;
  }

  .channel-strip ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .channel-strip li:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .channel-strip li:nth-child(3n + 1) {
    border-left: 1px solid var(--line);
  }

  .channel-strip li:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .lead-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-terms-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-index {
    position: static;
    top: auto;
  }

  .channel-index-nav ul {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .channel-index-nav a {
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-radius: 4px;
  }

  .channel-index-nav a:hover {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }

  .collection-layout,
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-row {
    grid-template-columns: auto 100px minmax(0, 1fr);
  }

  .update-state {
    grid-column: 2 / 3;
  }

  .update-row a {
    grid-column: 3 / 4;
    justify-content: flex-start;
  }

  .record-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .record-link {
    grid-column: 2 / 3;
  }

  .record-field-grid,
  .record-type-grid,
  .limits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principle-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  /* 移动端导航：只收起列表本身 */
  .nav-toggle {
    display: flex;
  }

  .primary-nav.site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    background: #0f131a;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.24s ease;
  }

  .primary-nav.site-nav.is-open {
    max-height: 520px;
    overflow-y: auto;
  }

  .primary-nav.site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 12px 14px;
  }

  .primary-nav.site-nav a {
    min-height: 44px;
    padding: 0 12px;
    font-size: 15px;
    border-radius: 4px;
  }

  .header-inner {
    position: relative;
    min-height: 56px;
    padding: 0 16px;
    gap: 12px;
  }

  .site-main,
  .inner-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-main {
    padding-left: 0;
    padding-right: 0;
  }

  .page-title,
  .site-brand-heading,
  .inner-main .page-title,
  .page-title-inner .page-title,
  .error-panel h1,
  .hero-copy h1 {
    font-size: 30px;
    line-height: 1.28;
  }

  .hero-inner {
    padding: 28px 16px 18px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-figure img {
    height: 200px;
  }

  .hero-status {
    padding: 0 16px 16px;
    font-size: 11px;
  }

  .channel-strip {
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .channel-strip ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    min-width: 100%;
  }

  .channel-strip li {
    flex: 0 0 auto;
    min-width: 132px;
    border-bottom: 0;
  }

  .channel-strip a {
    min-height: 56px;
    padding: 8px 12px;
  }

  .lead-grid {
    padding: 24px 16px;
    gap: 24px;
  }

  .lead-story h2 {
    font-size: 22px;
    padding: 6px 16px 0;
  }

  .lead-label {
    padding: 14px 16px 0;
  }

  .lead-summary {
    padding: 10px 16px 0;
    font-size: 14px;
  }

  .lead-meta {
    padding: 12px 16px 16px;
    gap: 4px 12px;
  }

  .bulletin {
    padding: 16px;
  }

  .channel-board,
  .collection-rail,
  .guide-terms,
  .update-log,
  .feedback-strip {
    padding-left: 16px;
    padding-right: 16px;
  }

  .channel-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .rail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .feedback-grid {
    gap: 16px;
  }

  .section-head h2,
  .guide-terms > h2,
  .feedback-strip > h2,
  .channel-cards h2,
  .channel-naming h2,
  .channel-relation h2,
  .entry-list h2,
  .reading-order h2,
  .related-paths h2,
  .collection-update h2,
  .definition-lead h2,
  .term-list h2,
  .related-terms h2,
  .guide-steps h2,
  .check-table h2,
  .guide-faq h2,
  .guide-errors h2,
  .record-guide h2,
  .record-types h2,
  .record-list h2,
  .correction-policy h2,
  .feedback-link h2,
  .prepare-info .section-head h2,
  .process-steps .section-head h2,
  .limits .section-head h2,
  .related .section-head h2,
  .error-routes h2 {
    font-size: 22px;
  }

  .update-row {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 10px;
    padding: 12px 0;
  }

  .update-type {
    grid-column: 2 / 3;
  }

  .update-scope {
    grid-column: 2 / 3;
    font-size: 13px;
  }

  .update-state {
    grid-column: 2 / 3;
  }

  .update-row a {
    grid-column: 2 / 3;
    min-height: 44px;
  }

  .feedback-block {
    padding: 18px;
  }

  .breadcrumb {
    font-size: 12px;
    padding-top: 12px;
  }

  .inner-main {
    padding-top: 16px;
    padding-bottom: 40px;
  }

  .page-layout {
    gap: 24px;
    margin-top: 14px;
  }

  /* 内页移动端：主内容在前，侧栏在后 */
  .collection-layout .collection-main,
  .guide-layout .guide-main {
    order: 0;
  }

  .collection-layout .collection-aside,
  .guide-layout .guide-aside {
    order: 1;
  }

  .channel-layout .channel-index {
    order: 0;
  }

  .channel-layout .channel-main {
    order: 1;
  }

  .principle-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .entry-body {
    padding: 14px 16px 16px;
  }

  .reading-order .step-list li {
    padding: 14px 16px 14px 48px;
  }

  .reading-order .step-list li::before {
    left: 14px;
    top: 14px;
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .guide-steps .step-item,
  .process-steps .step-item {
    padding: 14px;
    gap: 12px;
  }

  .policy-item {
    padding: 14px 16px 14px 48px;
  }

  .policy-item::before {
    left: 14px;
    top: 14px;
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .prepare-list li {
    padding: 14px 16px 14px 48px;
  }

  .prepare-list li::before {
    left: 14px;
    top: 14px;
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .record-field-grid,
  .record-type-grid,
  .limits-grid,
  .scope-grid,
  .feedback-link-grid,
  .relation-grid,
  .related-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .record-row {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
  }

  .record-link {
    grid-column: 2 / 3;
    min-height: 44px;
  }

  .naming-table,
  .check-grid {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 0;
  }

  .naming-table table,
  .check-grid table {
    min-width: 520px;
  }

  .naming-table thead,
  .naming-table tbody,
  .check-grid thead,
  .check-grid tbody {
    min-width: 520px;
  }

  .naming-table {
    display: block;
  }

  .naming-table thead tr,
  .naming-table tbody tr,
  .check-grid thead tr,
  .check-grid tbody tr {
    display: table-row;
  }

  .naming-table tbody th {
    width: 26%;
  }

  .error-panel {
    padding: 24px 18px;
  }

  .error-route-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
    padding: 32px 16px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    padding: 14px 16px;
  }

  .footer-col a {
    min-height: 40px;
  }
}

@media (max-width: 380px) {
  .page-title,
  .site-brand-heading,
  .inner-main .page-title,
  .page-title-inner .page-title,
  .error-panel h1,
  .hero-copy h1 {
    font-size: 27px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
