/* ==========================================================================
   iseespa.net — 凡客影视 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --paper: #F6F4EE;
  --paper-deep: #EFEBE1;
  --ink: #17212B;
  --teal: #1F4E5F;
  --teal-soft: #E3EAE9;
  --amber: #B7791F;
  --amber-soft: #F5EBD8;
  --green: #2F6B4F;
  --green-soft: #E2EDE5;
  --line: #D8D2C4;
  --line-soft: #E6E1D5;
  --body-text: #2B2F33;
  --muted: #62686E;

  --font-title: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", "Menlo", monospace;

  --shell: 1180px;
  --read: 760px;
  --aside: 300px;
  --gap: 48px;
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

.site-body {
  background-color: var(--paper);
  color: var(--body-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-title);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

a:hover {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

strong {
  font-weight: 700;
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   layout — 页头 / 主容器 / 页脚 / 内页骨架
   -------------------------------------------------------------------------- */

.site-header {
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--teal);
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: block;
  padding: 8px 11px;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  line-height: 1.4;
}

.nav-list a:hover {
  color: var(--teal);
  border-bottom-color: var(--line);
}

.nav-list a.is-current {
  color: var(--teal);
  font-weight: 500;
  border-bottom-color: var(--teal);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--paper);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--ink);
}

.mobile-nav {
  border-top: 1px solid var(--line-soft);
  background-color: var(--paper-deep);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-list {
  padding: 8px 24px 16px;
}

.mobile-nav-list a {
  display: block;
  padding: 12px 4px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  min-height: 44px;
}

.mobile-nav-list a.is-current {
  color: var(--teal);
  font-weight: 500;
}

.site-main {
  display: block;
}

.home-main {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.inner-main {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--aside);
  gap: var(--gap);
  align-items: start;
}

.content-main,
.page-content,
.main-column,
.main-content {
  min-width: 0;
}

.content-aside,
.page-aside,
.content-sidebar,
.content-side,
.side-column,
.sidebar {
  min-width: 0;
  position: sticky;
  top: 88px;
}

/* 页面主标题区统一 */

.page-header {
  margin: 0 0 24px;
}

.page-title {
  font-family: var(--font-title);
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
}

.page-description {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}

.page-note,
.page-status,
.page-status-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 12px;
  border-left: 2px solid var(--amber);
}

.page-lead {
  font-size: 16px;
  color: var(--body-text);
  line-height: 1.8;
}

.page-title-area,
.page-head,
.page-title-block {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.page-title-area .page-note,
.page-head .page-note,
.page-title-block .page-status-note {
  margin-top: 12px;
}

/* 面包屑 */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 20px 0 16px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--teal);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

/* 页脚 */

.site-footer {
  border-top: 1px solid var(--line);
  background-color: var(--paper-deep);
  margin-top: 48px;
}

.footer-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-name {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.footer-note {
  font-size: 13px;
  color: var(--muted);
}

.footer-nav {
  min-width: 0;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.footer-nav-list a {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 0;
}

.footer-nav-list a:hover {
  color: var(--teal);
}

.footer-copy {
  width: 100%;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   components — 通用
   -------------------------------------------------------------------------- */

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 24px;
  margin: 0;
}

.section-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 760px;
}

.section-title {
  font-size: 24px;
  margin: 0 0 8px;
}

.section-intro {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 18px;
  max-width: 760px;
}

.col-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  color: var(--teal);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.text-link:hover {
  border-bottom-color: var(--teal);
}

.btn-primary,
.btn-secondary,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.2;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.btn-primary:hover {
  background-color: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn-secondary {
  background-color: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn-secondary:hover {
  background-color: var(--teal-soft);
  color: var(--ink);
}

.btn-ghost {
  background-color: transparent;
  color: var(--muted);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* 状态标签 */

.status-tag {
  display: inline-block;
  font-size: 12px;
  line-height: 1.5;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid;
  white-space: nowrap;
  font-family: var(--font-body);
}

.status-archived {
  color: var(--green);
  background-color: var(--green-soft);
  border-color: #BBD3C3;
}

.status-review,
.status-checking {
  color: var(--amber);
  background-color: var(--amber-soft);
  border-color: #E3C79B;
}

.status-progress,
.status-drafting,
.status-sorting,
.status-pending {
  color: var(--teal);
  background-color: var(--teal-soft);
  border-color: #B9CDD0;
}

/* 图片与图注 */

figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-color: var(--paper-deep);
}

figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* 表格 */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #fff;
}

table caption,
.table-caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
}

thead th {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background-color: var(--paper-deep);
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody td {
  font-size: 14px;
  color: var(--body-text);
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  line-height: 1.7;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:nth-child(even) {
  background-color: #FBFAF6;
}

tbody td:first-child {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
}

/* 概览条 */

.overview-bar,
.page-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.overview-item,
.overview-cell {
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.overview-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.5;
}

.overview-item p,
.overview-cell p,
.overview-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}

/* 三列实用信息 */

.info-columns,
.utility-grid,
.practical-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.info-col,
.utility-cell,
.practical-cell,
.practical-item,
.practical-card {
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.info-title,
.practical-cell-title,
.practical-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.5;
}

.info-col p,
.utility-cell p,
.practical-cell p,
.practical-item p,
.practical-card p {
  font-size: 14px;
  color: var(--body-text);
  line-height: 1.8;
}

/* 主题正文块 */

.topic-block,
.prose-block,
.method-block,
.content-block,
.body-block,
.detail-block {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.topic-block:last-child,
.prose-block:last-child,
.method-block:last-child,
.content-block:last-child,
.body-block:last-child,
.detail-block:last-child {
  border-bottom: 0;
}

.topic-block-title,
.method-block-title,
.topic-block h3,
.prose-block h3,
.method-block h3,
.content-block h3,
.body-block h3,
.detail-block h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.5;
}

.topic-block p,
.prose-block p,
.method-block p,
.content-block p,
.body-block p,
.detail-block p {
  font-size: 15px;
  color: var(--body-text);
  line-height: 1.85;
  max-width: 720px;
}

.topic-block p + p,
.method-block p + p {
  margin-top: 10px;
}

/* 侧栏块（四种命名统一外观） */

.aside-block,
.sidebar-block,
.side-block {
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.aside-block:last-child,
.sidebar-block:last-child,
.side-block:last-child {
  margin-bottom: 0;
}

.aside-title,
.sidebar-title,
.side-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.5;
}

.aside-block p,
.sidebar-block p,
.side-block p,
.aside-text,
.sidebar-text,
.side-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 10px;
}

.aside-link,
.sidebar-link,
.side-link {
  display: inline-block;
  font-size: 13px;
  color: var(--teal);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  min-height: 24px;
}

.aside-link:hover,
.sidebar-link:hover,
.side-link:hover {
  border-bottom-color: var(--teal);
}

/* 翻页 */

.page-pager,
.prev-next-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.pager-list {
  display: contents;
}

.pager-item {
  list-style: none;
}

.pager-link,
.pager-item a,
.prev-link,
.next-link {
  display: block;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-height: 44px;
}

.pager-link:hover,
.pager-item a:hover,
.prev-link:hover,
.next-link:hover {
  border-color: var(--teal);
  background-color: var(--teal-soft);
}

.pager-label,
.prev-next-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.pager-title,
.prev-next-title {
  display: block;
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
}

.pager-next,
.next-link {
  text-align: right;
}

.pager-prev,
.prev-link {
  text-align: left;
}

/* --------------------------------------------------------------------------
   pages — 首页
   -------------------------------------------------------------------------- */

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: var(--gap);
  align-items: start;
  padding: 40px 0 48px;
  border-bottom: 1px solid var(--line);
}

.hero-panel {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--teal);
  letter-spacing: 0;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  display: inline-block;
}

.hero-panel h1 {
  font-size: 44px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 18px;
}

.hero-lead {
  font-size: 16px;
  color: var(--body-text);
  line-height: 1.85;
  max-width: 620px;
}

.type-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.type-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  color: var(--teal);
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.type-chip:hover {
  border-color: var(--teal);
  background-color: var(--teal-soft);
  color: var(--ink);
}

.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  padding-left: 12px;
  border-left: 2px solid var(--line);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.recent-panel {
  min-width: 0;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.hero-figure {
  margin-bottom: 16px;
}

.hero-figure img {
  aspect-ratio: 16 / 9;
  height: auto;
}

.recent-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.recent-table-wrap {
  overflow-x: auto;
}

.recent-table {
  font-size: 13px;
}

.recent-table thead th {
  padding: 8px 10px;
  font-size: 12px;
}

.recent-table tbody td {
  padding: 9px 10px;
  font-size: 13px;
}

/* 类型图谱速览 */

.atlas-section,
.archive-section,
.prep-section,
.correction-section {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.correction-section {
  border-bottom: 0;
}

.atlas-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.atlas-col {
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  min-width: 0;
}

.atlas-col-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.atlas-list li {
  font-size: 14px;
  color: var(--body-text);
  line-height: 1.75;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.atlas-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.atlas-list strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.atlas-figure {
  margin-top: 22px;
}

.atlas-figure img {
  aspect-ratio: 21 / 9;
  height: auto;
}

/* 专题与片单双栏 */

.archive-layout,
.prep-layout,
.correction-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}

.topic-list,
.method-brief,
.prep-list,
.record-list,
.correction-scope,
.related-links {
  min-width: 0;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.topic-item,
.method-item,
.prep-item,
.record-item,
.scope-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.topic-item:last-child,
.method-item:last-child,
.prep-item:last-child,
.record-item:last-child,
.scope-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.topic-name,
.method-name,
.prep-name,
.scope-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.5;
}

.topic-scope,
.method-desc,
.prep-desc,
.scope-desc,
.record-desc {
  font-size: 14px;
  color: var(--body-text);
  line-height: 1.75;
}

.topic-batch {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--amber);
  background-color: var(--amber-soft);
  border: 1px solid #E3C79B;
  border-radius: 4px;
  padding: 1px 8px;
}

.record-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.5;
}

.record-item .status-tag {
  margin-top: 8px;
}

.related-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.related-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.related-list a {
  font-size: 14px;
  color: var(--teal);
  display: block;
  min-height: 24px;
}

.related-list a:hover {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   pages — 内页通用内容段
   -------------------------------------------------------------------------- */

.type-matrix,
.practical-info,
.adjacent-types,
.topic-sections,
.status-legend,
.section,
.method-body,
.field-table-section,
.topic-content,
.records-batch,
.term-table,
.feedback-checklist,
.correction-scope,
.faq-section,
.topic-body,
.content-section,
.utility-section,
.mapping-section,
.prose-section {
  margin-bottom: 40px;
}

.section:last-child,
.content-section:last-child,
.topic-body:last-child {
  margin-bottom: 0;
}

/* 类型矩阵 */

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.matrix-item {
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 0;
}

.matrix-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.matrix-fields {
  margin: 0;
}

.matrix-fields dt {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-top: 8px;
}

.matrix-fields dt:first-child {
  margin-top: 0;
}

.matrix-fields dd {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--body-text);
  line-height: 1.7;
}

.matrix-figure {
  margin-top: 24px;
}

.matrix-figure img {
  aspect-ratio: 21 / 9;
  height: auto;
}

/* 相邻类型表 */

.adjacent-table {
  font-size: 14px;
}

/* 状态说明 */

.legend-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.legend-item {
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-width: 0;
}

.legend-item p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}

.legend-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.legend-note a {
  color: var(--teal);
  border-bottom: 1px solid var(--line);
}

.legend-note a:hover {
  border-bottom-color: var(--teal);
}

/* 专题档案列表 */

.topic-archive-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #fff;
  overflow: hidden;
}

.topic-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}

.topic-row:last-child {
  border-bottom: 0;
}

.topic-row-main {
  min-width: 0;
}

.topic-row .topic-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.topic-row .topic-scope {
  font-size: 14px;
  color: var(--body-text);
}

.topic-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.topic-meta .status-tag {
  margin-top: 0;
}

/* 专题与类型对应 */

.mapping-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.mapping-table {
  font-size: 14px;
}

.section-figure img,
.mapping-figure img {
  aspect-ratio: 3 / 4;
  height: auto;
}

/* 字段表 */

.field-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #fff;
  margin-bottom: 22px;
}

.field-table {
  min-width: 520px;
}

.content-figure {
  margin: 22px 0;
}

.content-figure img {
  aspect-ratio: 16 / 9;
  height: auto;
}

.figure-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* 观看准备清单 */

.prep-list {
  counter-reset: prep;
  padding-left: 0;
}

.content-section .prep-list .prep-item {
  counter-increment: prep;
  position: relative;
  padding: 14px 0 14px 44px;
  border-bottom: 1px dashed var(--line-soft);
}

.content-section .prep-list .prep-item::before {
  content: counter(prep);
  position: absolute;
  left: 0;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--teal-soft);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #B9CDD0;
}

.content-section .prep-list .prep-item:last-child {
  border-bottom: 0;
}

.prep-action {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* 数据表（观看准备） */

.data-table {
  font-size: 14px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

/* 公开记录表 */

.records-table {
  font-size: 14px;
  min-width: 520px;
}

.section-media {
  margin-bottom: 20px;
}

.section-media img {
  aspect-ratio: 21 / 9;
  height: auto;
}

/* 纠错清单 */

.checklist-list {
  counter-reset: check;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #fff;
  padding: 4px 20px;
}

.checklist-item {
  counter-increment: check;
  position: relative;
  padding: 16px 0 16px 44px;
  border-bottom: 1px dashed var(--line-soft);
}

.checklist-item:last-child {
  border-bottom: 0;
}

.checklist-item::before {
  content: counter(check);
  position: absolute;
  left: 0;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--teal-soft);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #B9CDD0;
}

.checklist-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.5;
}

.checklist-desc {
  font-size: 14px;
  color: var(--body-text);
  line-height: 1.8;
}

.checklist-action {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* 受理范围卡片 */

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.scope-card {
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.scope-card .scope-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.scope-card .scope-desc {
  font-size: 14px;
  color: var(--body-text);
  line-height: 1.8;
}

.scope-tag {
  margin-top: 10px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--teal);
  background-color: var(--teal-soft);
  border: 1px solid #B9CDD0;
  border-radius: 4px;
  padding: 1px 8px;
  display: inline-block;
}

/* FAQ */

.faq-item {
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  cursor: pointer;
  padding: 14px 44px 14px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.6;
  position: relative;
  min-height: 44px;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--teal);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-question:hover {
  color: var(--teal);
}

.faq-answer {
  padding: 0 18px 16px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--body-text);
  line-height: 1.85;
  max-width: 720px;
}

/* --------------------------------------------------------------------------
   pages — 404
   -------------------------------------------------------------------------- */

.error-main {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.error-panel {
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 40px;
  max-width: 760px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--amber);
  margin-bottom: 12px;
}

.error-panel h1 {
  font-size: 34px;
  color: var(--ink);
  margin: 0 0 16px;
}

.error-lead {
  font-size: 15px;
  color: var(--body-text);
  line-height: 1.85;
  max-width: 620px;
}

.error-reasons {
  margin: 22px 0;
  border-top: 1px solid var(--line-soft);
}

.error-reasons li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--body-text);
  line-height: 1.7;
}

.error-path {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
  background-color: var(--teal-soft);
  border: 1px solid #B9CDD0;
  border-radius: 4px;
  padding: 1px 8px;
  white-space: nowrap;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.error-links {
  margin-top: 36px;
  max-width: 760px;
}

.error-links h2 {
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.error-link-list a {
  display: block;
  padding: 14px 16px;
  min-height: 44px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--teal);
}

.error-link-list a:hover {
  border-color: var(--teal);
  background-color: var(--teal-soft);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero-section {
    grid-template-columns: minmax(0, 1fr) 380px;
  }

  .hero-panel h1 {
    font-size: 38px;
  }

  .atlas-columns,
  .matrix-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  :root {
    --gap: 32px;
  }

  .header-inner {
    gap: 16px;
  }

  .nav-list a {
    padding: 8px 8px;
    font-size: 13px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .content-aside,
  .page-aside,
  .content-sidebar,
  .content-side,
  .side-column,
  .sidebar {
    position: static;
    top: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .aside-block,
  .sidebar-block,
  .side-block {
    margin-bottom: 0;
  }

  .hero-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 32px;
  }

  .hero-panel h1 {
    font-size: 34px;
  }

  .recent-panel {
    max-width: 640px;
  }

  .archive-layout,
  .prep-layout,
  .correction-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .mapping-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-figure img,
  .mapping-figure img {
    aspect-ratio: 16 / 9;
  }

  .info-columns,
  .utility-grid,
  .practical-grid,
  .legend-list,
  .scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-bar,
  .page-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .topic-meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: 60px;
    padding: 0 16px;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .home-main,
  .inner-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-panel h1 {
    font-size: 30px;
  }

  .page-title {
    font-size: 26px;
  }

  .error-panel h1 {
    font-size: 26px;
  }

  .section-title,
  .section-head h2 {
    font-size: 20px;
  }

  .hero-section {
    padding: 26px 0 32px;
  }

  .atlas-section,
  .archive-section,
  .prep-section,
  .correction-section {
    padding: 32px 0;
  }

  .atlas-columns,
  .matrix-grid,
  .info-columns,
  .utility-grid,
  .practical-grid,
  .legend-list,
  .scope-grid,
  .error-link-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .overview-bar,
  .page-overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .content-aside,
  .page-aside,
  .content-sidebar,
  .content-side,
  .side-column,
  .sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-pager,
  .prev-next-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .pager-next,
  .next-link {
    text-align: left;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .type-chip {
    padding: 0 14px;
    font-size: 13px;
  }

  .topic-list,
  .method-brief,
  .prep-list,
  .record-list,
  .correction-scope,
  .related-links {
    padding: 16px 16px;
  }

  .topic-row {
    padding: 14px 16px;
  }

  .error-panel {
    padding: 24px 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 16px;
  }

  .footer-nav-list {
    gap: 2px 12px;
  }

  .footer-nav-list a {
    padding: 8px 0;
    min-height: 32px;
    display: inline-block;
  }

  .section-figure img,
  .mapping-figure img,
  .atlas-figure img,
  .matrix-figure img,
  .section-media img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 400px) {
  .header-inner {
    padding: 0 12px;
  }

  .home-main,
  .inner-main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-panel h1 {
    font-size: 26px;
  }

  .page-title {
    font-size: 23px;
  }

  .recent-panel {
    padding: 12px;
  }

  .checklist-list {
    padding: 4px 14px;
  }

  .checklist-item,
  .content-section .prep-list .prep-item {
    padding-left: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  .faq-question {
    transition: none;
  }
}
