:root {
  --bg-page: #f5f6f7;
  --bg-card: #ffffff;
  --text-main: #23262b;
  --text-sub: #6b7280;
  --accent: #d9537a;
  --accent-dark: #b93f64;
  --line: #e5e7eb;
  --bg-footer: #1f2226;
  --bg-soft: #eef0f2;
  --radius: 6px;
  --wrap: 1120px;
  --read: 760px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ===== base ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ===== layout ===== */

.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0;
  white-space: nowrap;
}

.brand:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-main);
  border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background: var(--bg-soft);
  color: var(--accent);
}

.nav-link.is-current {
  color: var(--accent);
  font-weight: 600;
  background: #fbeef3;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-main {
  display: block;
}

.home-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 56px;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 24px 20px 56px;
}

.section {
  margin-top: 48px;
}

.section-head {
  margin-bottom: 20px;
}

.section-title {
  font-size: 22px;
  line-height: 1.4;
}

.section-sub {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-sub);
  max-width: 720px;
}

.section-desc,
.section-intro,
.section-lead {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-sub);
  max-width: 760px;
}

.section-note,
.section-foot,
.field-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-sub);
}

.section-foot a,
.section-note a,
.field-note a,
.aside-note a,
.sidebar-note a {
  margin-right: 16px;
  font-weight: 500;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: #b8bcc2;
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 500;
}

.page-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.page-title {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
}

.page-description {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-sub);
  max-width: var(--read);
}

.page-media {
  margin-top: 20px;
  max-width: var(--read);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.page-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-media figcaption {
  padding: 0 14px 12px;
}

/* ===== 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: 600;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text-main);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--accent-dark);
  background: #fbeef3;
  border-radius: 999px;
  white-space: nowrap;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.step-list {
  display: grid;
  gap: 14px;
}

.step-item {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-no,
.step-index {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: #fbeef3;
  border-radius: 50%;
}

.step-body {
  min-width: 0;
}

.step-name {
  font-size: 17px;
  line-height: 1.5;
}

.step-desc,
.step-text {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-sub);
}

.step-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
}

.status-ongoing,
.status-finished,
.status-paused {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 3px;
  border: 1px solid currentColor;
}

.status-ongoing {
  color: var(--accent-dark);
  background: #fbeef3;
}

.status-finished {
  color: #4b5563;
  background: var(--bg-soft);
}

.status-paused {
  color: #8a6d1f;
  background: #fbf4e2;
}

/* ===== pages: home ===== */

.hero-section {
  padding: 44px 0 8px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding-bottom: 36px;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
}

.hero-desc {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-sub);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 0 14px 12px;
}

.channel-list {
  display: grid;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.channel-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 200px 108px;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  transition: background-color 0.2s ease;
}

.channel-row:first-child {
  border-top: 0;
}

.channel-row:hover {
  background: #fbfbfc;
}

.channel-name {
  font-size: 16px;
  font-weight: 600;
}

.channel-desc {
  font-size: 14px;
  color: var(--text-sub);
  min-width: 0;
}

.channel-audience {
  font-size: 13px;
  color: var(--text-sub);
}

.channel-enter {
  justify-self: end;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.board-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.board-col {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.col-title {
  font-size: 17px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.update-list {
  display: grid;
  gap: 0;
}

.update-item {
  border-bottom: 1px dashed var(--line);
}

.update-item:last-child {
  border-bottom: 0;
}

.update-link {
  display: block;
  padding: 11px 0;
  color: var(--text-main);
  font-size: 14px;
  transition: color 0.2s ease;
}

.update-link:hover {
  color: var(--accent);
}

.rank-list {
  display: grid;
  gap: 0;
}

.rank-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-no {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-sub);
}

.rank-item:nth-child(-n + 3) .rank-no {
  color: var(--accent);
  font-weight: 600;
}

.rank-link {
  color: var(--text-main);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-link:hover {
  color: var(--accent);
}

.rank-meta {
  font-size: 12px;
  color: var(--text-sub);
  white-space: nowrap;
}

.col-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.playlist-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding-bottom: 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.playlist-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.playlist-figure {
  background: var(--bg-soft);
}

.playlist-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.playlist-name {
  font-size: 17px;
  line-height: 1.5;
  padding: 14px 16px 0;
}

.playlist-scope,
.playlist-range {
  padding: 8px 16px 0;
  font-size: 14px;
  color: var(--text-sub);
}

.playlist-meta {
  display: flex;
  gap: 8px;
  padding: 8px 16px 0;
  font-size: 13px;
}

.meta-label {
  color: var(--text-sub);
}

.meta-value {
  font-family: var(--font-mono);
  color: var(--text-main);
}

.playlist-enter,
.playlist-link {
  margin: 14px 16px 0;
  font-size: 14px;
  font-weight: 600;
  align-self: flex-start;
}

.field-table {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-caption,
.field-table-caption {
  padding: 12px 18px;
  text-align: left;
  font-size: 13px;
  color: var(--text-sub);
  border-bottom: 1px solid var(--line);
}

.field-table th,
.field-table td {
  padding: 12px 18px;
  text-align: left;
  font-size: 14px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.field-table thead th {
  border-top: 0;
  background: #fafbfc;
  font-size: 13px;
  color: var(--text-sub);
  font-weight: 600;
}

.field-table tbody th {
  width: 200px;
  font-weight: 600;
  color: var(--text-main);
}

.field-table tbody td {
  color: var(--text-sub);
}

.path-more {
  display: inline-block;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
}

/* ===== pages: tcdp ===== */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: start;
}

.page-layout.sidebar-left {
  grid-template-columns: 260px minmax(0, 1fr);
}

.channel-sidebar {
  position: sticky;
  top: 86px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.sidebar-title {
  font-size: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.channel-toc {
  display: grid;
  gap: 2px;
  margin-top: 10px;
}

.channel-toc a {
  display: block;
  padding: 7px 8px;
  font-size: 14px;
  color: var(--text-main);
  border-radius: 4px;
}

.channel-toc a:hover {
  background: var(--bg-soft);
  color: var(--accent);
}

.sidebar-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-sub);
}

.channel-overview {
  min-width: 0;
}

.channel-table {
  margin-top: 18px;
  display: grid;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.channel-table .channel-row {
  grid-template-columns: 160px minmax(0, 1fr) 200px 108px;
  align-items: start;
}

.channel-cell {
  min-width: 0;
}

.channel-cell.channel-name h3 {
  font-size: 16px;
}

.channel-count {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sub);
}

.cell-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.channel-cell p {
  font-size: 14px;
  color: var(--text-sub);
}

.channel-cell.channel-enter {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.enter-link {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.channel-detail {
  margin-top: 40px;
}

.channel-figure {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.channel-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.channel-figure figcaption {
  padding: 0 14px 12px;
}

.detail-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.detail-block h3 {
  font-size: 17px;
}

.detail-block p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-sub);
}

.channel-path {
  margin-top: 40px;
}

.channel-path .step-list,
.channel-detail .step-list {
  margin-top: 18px;
}

/* ===== pages: zpgx ===== */

.layout-main {
  min-width: 0;
}

.layout-aside {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
  position: sticky;
  top: 86px;
}

.layout-aside .step-list {
  margin-top: 16px;
}

.layout-aside .step-item {
  flex-direction: column;
  gap: 8px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px dashed var(--line);
  border-radius: 0;
  background: transparent;
}

.layout-aside .step-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.aside-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-sub);
}

.update-section .update-list {
  margin-top: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.update-row {
  border-bottom: 1px solid var(--line);
}

.update-row:last-child {
  border-bottom: 0;
}

.update-row .update-link {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 88px 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
}

.update-row .update-link:hover {
  background: #fbfbfc;
}

.update-cover {
  width: 72px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-soft);
}

.update-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.update-title {
  font-size: 15px;
  font-weight: 600;
  min-width: 0;
}

.update-tag {
  font-size: 13px;
  color: var(--text-sub);
}

.update-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-dark);
}

.update-range {
  font-size: 13px;
  color: var(--text-sub);
  min-width: 0;
}

.entry-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.entry-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.entry-nav-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.status-section {
  margin-top: 44px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.status-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}

.status-name {
  font-size: 16px;
}

.status-text {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-sub);
}

/* ===== pages: ztym ===== */

.playlist-section .playlist-grid {
  margin-top: 20px;
}

.reason-section,
.order-section,
.related-section {
  margin-top: 44px;
}

.reason-section .reason-item {
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reason-name {
  font-size: 17px;
}

.reason-text {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-sub);
}

.reason-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.order-section .step-list {
  margin-top: 18px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.related-card {
  display: block;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-main);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--text-main);
}

.related-name {
  font-size: 16px;
}

.related-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-sub);
}

/* ===== pages: smlj ===== */

.fields-table-section,
.field-change-section,
.boundary-section {
  max-width: var(--read);
}

.field-figure {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.field-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.field-figure figcaption {
  padding: 0 14px 12px;
}

.fields-table-section .field-table {
  margin-top: 18px;
}

.field-name {
  width: 200px;
  font-weight: 600;
  color: var(--text-main);
}

.field-desc {
  color: var(--text-sub);
}

.change-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.change-item {
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.change-title {
  font-size: 16px;
}

.change-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-sub);
}

.boundary-text {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-sub);
}

.boundary-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.link-card {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.link-card:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== pages: ydzn ===== */

.section-paths,
.section-reading,
.section-check,
.section-next {
  max-width: var(--read);
}

.section-paths .step-list {
  margin-top: 18px;
}

.section-reading .reading-item {
  margin-top: 16px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reading-name {
  font-size: 16px;
}

.reading-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-sub);
}

.faq-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 18px;
}

.faq-question {
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  float: right;
  font-family: var(--font-mono);
  color: var(--accent);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 12px 0 16px;
  font-size: 14px;
  color: var(--text-sub);
  border-top: 1px dashed var(--line);
}

.section-text {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-sub);
}

.next-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.next-link {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.next-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== pages: 404 ===== */

.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px 20px 72px;
}

.error-panel {
  max-width: var(--read);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.error-title {
  margin-top: 12px;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
}

.error-text {
  margin-top: 14px;
  font-size: 15px;
  color: var(--text-sub);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.error-tips {
  margin-top: 48px;
  max-width: var(--read);
}

.error-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.error-list li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
}

/* ===== footer ===== */

.site-footer {
  background: var(--bg-footer);
  color: #c9cdd3;
  margin-top: 56px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 20px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.footer-slogan {
  margin-top: 8px;
  font-size: 14px;
  color: var(--accent);
}

.footer-desc {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.8;
  color: #9aa0a8;
}

.footer-group {
  min-width: 0;
}

.footer-title {
  font-size: 14px;
  color: #ffffff;
  padding-bottom: 10px;
  border-bottom: 1px solid #34383e;
  margin-bottom: 12px;
}

.footer-list {
  display: grid;
  gap: 8px;
}

.footer-list a {
  font-size: 13px;
  color: #c9cdd3;
}

.footer-list a:hover {
  color: #ffffff;
}

.footer-note {
  font-size: 13px;
  line-height: 1.8;
  color: #9aa0a8;
}

.footer-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 20px 24px;
  border-top: 1px solid #34383e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: #9aa0a8;
}

.footer-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  color: #c9cdd3;
}

.footer-top:hover {
  color: #ffffff;
}

/* ===== responsive ===== */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-figure img {
    aspect-ratio: 16 / 9;
  }

  .board-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .playlist-grid,
  .related-grid,
  .status-grid,
  .boundary-actions,
  .next-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-sidebar,
  .layout-aside {
    position: static;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 16px;
    row-gap: 8px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex-basis: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-bottom: 8px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 10px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .home-main,
  .inner-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-section {
    padding-top: 28px;
  }

  .hero-title,
  .page-title,
  .error-title {
    font-size: 24px;
  }

  .section {
    margin-top: 36px;
  }

  .channel-row,
  .channel-table .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 16px;
  }

  .channel-enter,
  .channel-cell.channel-enter {
    justify-self: start;
    justify-content: flex-start;
  }

  .update-row .update-link {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px 14px;
    align-items: start;
  }

  .update-cover {
    width: 64px;
  }

  .update-tag,
  .update-status,
  .update-range {
    grid-column: 2;
  }

  .playlist-grid,
  .related-grid,
  .status-grid,
  .boundary-actions,
  .next-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-table tbody th,
  .field-name {
    width: auto;
  }

  .field-table th,
  .field-table td {
    display: block;
    width: auto;
    padding: 10px 16px;
  }

  .field-table thead {
    display: none;
  }

  .field-table tbody tr {
    display: block;
    padding: 6px 0;
    border-top: 1px solid var(--line);
  }

  .field-table tbody tr:first-child {
    border-top: 0;
  }

  .field-table tbody th {
    border-top: 0;
    padding-bottom: 2px;
  }

  .field-table tbody td {
    border-top: 0;
    padding-top: 0;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px 16px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
}

@media (max-width: 420px) {
  .hero-actions .btn,
  .error-actions .btn {
    flex: 1 1 100%;
  }

  .step-item {
    padding: 14px;
  }
}
