/* =========================================================
   手机光棍影院 · 全站样式
   base → layout → components → pages → responsive
   ========================================================= */

/* ---------------------------------------------------------
   base
   --------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background-color: #f5f6f8;
  color: #1d2129;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.45;
  color: #1d2129;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt,
figure,
figcaption {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #1f6feb;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #1f6feb;
  outline-offset: 2px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

time {
  font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------
   layout · 页头 / 导航
   --------------------------------------------------------- */

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e5ea;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 600;
  color: #1d2129;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-logo:hover,
.brand-logo:focus-visible {
  color: #1f6feb;
  text-decoration: none;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

.nav-item {
  flex: 0 0 auto;
}

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 14px;
  color: #5c6470;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #1d2129;
  background-color: #f5f6f8;
  border-color: #e2e5ea;
  text-decoration: none;
}

.nav-link.is-current {
  color: #1f6feb;
  font-weight: 600;
  background-color: #eef4fe;
  border-color: #cfe0fb;
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e2e5ea;
  border-radius: 6px;
  background-color: #ffffff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: #1d2129;
}

/* ---------------------------------------------------------
   layout · 主体骨架
   --------------------------------------------------------- */

.site-main {
  display: block;
}

.inner-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.content-main {
  min-width: 0;
}

.content-aside,
.content-side {
  min-width: 0;
}

/* ---------------------------------------------------------
   layout · 面包屑 / 页面标题区
   --------------------------------------------------------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #5c6470;
  padding: 4px 0 0;
}

.breadcrumb a {
  color: #5c6470;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: #1f6feb;
}

.breadcrumb-sep {
  color: #b3b9c2;
}

.breadcrumb-current {
  color: #1d2129;
}

.page-header {
  padding: 18px 0 20px;
  border-bottom: 1px solid #e2e5ea;
  margin-bottom: 24px;
}

.page-tag,
.column-tag,
.section-tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #e2e5ea;
  border-radius: 4px;
  background-color: #ffffff;
  font-size: 12px;
  color: #5c6470;
  margin-bottom: 10px;
}

.page-title {
  font-size: 28px;
  font-weight: 600;
  color: #1d2129;
  line-height: 1.4;
}

.page-description {
  margin-top: 10px;
  font-size: 15px;
  color: #5c6470;
  max-width: 760px;
}

/* ---------------------------------------------------------
   layout · 页脚
   --------------------------------------------------------- */

.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #e2e5ea;
  margin-top: 16px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px 24px;
}

.footer-summary {
  font-size: 14px;
  color: #5c6470;
  max-width: 720px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e5ea;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 20px 0 8px;
}

.footer-group-title {
  font-size: 14px;
  font-weight: 600;
  color: #1d2129;
  margin-bottom: 10px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-list a {
  font-size: 13px;
  color: #5c6470;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: #1f6feb;
}

.footer-copy {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e5ea;
  font-size: 13px;
  color: #8a919c;
}

/* ---------------------------------------------------------
   components · 区块与标题
   --------------------------------------------------------- */

.section {
  padding: 4px 0 36px;
}

.section + .section {
  border-top: 1px solid #e2e5ea;
  padding-top: 32px;
}

.section-head {
  margin-bottom: 18px;
}

.section-title {
  font-size: 19px;
  font-weight: 600;
  color: #1d2129;
}

.section-desc,
.section-lead {
  margin-top: 8px;
  font-size: 14px;
  color: #5c6470;
  max-width: 820px;
}

.section-foot {
  margin-top: 16px;
  font-size: 14px;
}

.section-foot a,
.section-footnote a,
.aside-note a,
.section-desc a {
  color: #1f6feb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.section-footnote {
  margin-top: 16px;
  font-size: 14px;
  color: #5c6470;
}

.section-footnote a + a {
  margin-left: 14px;
}

/* ---------------------------------------------------------
   components · 按钮
   --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.btn-primary {
  background-color: #1f6feb;
  border-color: #1f6feb;
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #1a5fc9;
  border-color: #1a5fc9;
  color: #ffffff;
}

.btn-ghost {
  background-color: #ffffff;
  border-color: #c9cfd8;
  color: #1d2129;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: #1f6feb;
  color: #1f6feb;
  background-color: #eef4fe;
}

.btn-plain {
  background-color: #ffffff;
  border-color: #c9cfd8;
  color: #1d2129;
}

.btn-plain:hover,
.btn-plain:focus-visible {
  border-color: #1f6feb;
  color: #1f6feb;
}

/* ---------------------------------------------------------
   components · 表格
   --------------------------------------------------------- */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  background-color: #ffffff;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
}

.data-table {
  width: 100%;
  min-width: 640px;
  font-size: 14px;
  background-color: #ffffff;
}

.data-table caption {
  text-align: left;
}

.data-table thead th {
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: #5c6470;
  background-color: #f0f2f5;
  padding: 11px 14px;
  border-bottom: 1px solid #e2e5ea;
  white-space: nowrap;
}

.data-table tbody th {
  text-align: left;
  font-weight: 600;
  color: #1d2129;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e5ea;
  vertical-align: top;
}

.data-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e5ea;
  color: #5c6470;
  vertical-align: top;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover th,
.data-table tbody tr:hover td {
  background-color: #fafbfc;
}

.data-table a {
  color: #1f6feb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.table-caption {
  padding: 12px 14px 0;
  font-size: 13px;
  color: #5c6470;
  text-align: left;
}

/* ---------------------------------------------------------
   components · 卡片与列表
   --------------------------------------------------------- */

.card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: #ffffff;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 18px 16px;
}

.card:hover {
  border-color: #c9d6ea;
  background-color: #fafbfc;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
}

.card-scope {
  font-size: 14px;
  color: #5c6470;
}

.card-meta {
  font-size: 13px;
  color: #8a919c;
}

.card-link {
  margin-top: auto;
  padding-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1f6feb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------------------------------------------------------
   components · 编号步骤清单
   --------------------------------------------------------- */

.step-list {
  display: grid;
  gap: 12px;
}

.step-item {
  background-color: #ffffff;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 16px 18px;
  counter-increment: step;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-text {
  font-size: 14px;
  color: #5c6470;
}

.path-overview .step-list {
  counter-reset: step;
}

.path-overview .step-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-areas:
    "index title"
    "index text";
  column-gap: 14px;
  row-gap: 2px;
  align-items: start;
}

.path-overview .step-item::before {
  content: counter(step);
  grid-area: index;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: #eef4fe;
  border: 1px solid #cfe0fb;
  color: #1f6feb;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
}

.path-overview .step-title {
  grid-area: title;
  margin-bottom: 0;
}

.path-overview .step-text {
  grid-area: text;
}

/* ---------------------------------------------------------
   components · 记录列表与反馈条
   --------------------------------------------------------- */

.log-list {
  display: grid;
  gap: 10px;
}

.log-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  background-color: #ffffff;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 14px 16px;
}

.log-date {
  font-size: 13px;
  color: #5c6470;
  font-variant-numeric: tabular-nums;
}

.log-text {
  font-size: 14px;
  color: #1d2129;
}

.feedback-bar {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background-color: #ffffff;
  border: 1px solid #e2e5ea;
  border-left: 3px solid #b7791f;
  border-radius: 8px;
}

.feedback-text {
  font-size: 14px;
  color: #5c6470;
  max-width: 640px;
}

.feedback-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  color: #1f6feb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------------------------------------------------------
   components · 图片容器
   --------------------------------------------------------- */

.hero-media,
.content-media,
.channel-figure,
.collection-media,
.section-figure,
.section-media,
.guide-figure {
  background-color: #ffffff;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  overflow: hidden;
}

.hero-media img,
.content-media img,
.channel-figure img,
.collection-media img,
.section-figure img,
.section-media img,
.guide-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  background-color: #eef0f3;
}

.hero-media figcaption,
.content-media figcaption,
.channel-figure figcaption,
.section-figure figcaption,
.section-media figcaption,
.guide-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: #5c6470;
  border-top: 1px solid #e2e5ea;
}

/* ---------------------------------------------------------
   pages · 首页
   --------------------------------------------------------- */

.home-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  background-color: #ffffff;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 28px 26px;
  margin-bottom: 32px;
}

.hero-copy {
  min-width: 0;
}

.hero-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  color: #1d2129;
}

.hero-lead {
  margin-top: 12px;
  font-size: 15px;
  color: #5c6470;
  max-width: 560px;
}

.hero-note {
  margin-top: 10px;
  font-size: 13px;
  color: #8a919c;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  aspect-ratio: 16 / 10;
}

.content-media-primary {
  grid-column: 1 / -1;
}

.content-media-primary img {
  aspect-ratio: 21 / 9;
}

.channel-overview .data-table tbody th {
  white-space: nowrap;
}

.collection-preview .card-row {
  align-items: stretch;
}

.field-summary .data-table tbody th {
  white-space: nowrap;
}

/* ---------------------------------------------------------
   pages · 题材频道
   --------------------------------------------------------- */

.channel-table-wrap {
  margin-bottom: 22px;
}

.channel-figure {
  margin-top: 4px;
}

.channel-figure img {
  aspect-ratio: 16 / 9;
}

.group-block {
  margin-top: 22px;
  background-color: #ffffff;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 18px 18px 6px;
}

.group-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.group-desc {
  font-size: 14px;
  color: #5c6470;
  margin-bottom: 12px;
}

.group-list {
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
}

.group-item {
  font-size: 14px;
  color: #5c6470;
  padding: 10px 12px;
  border: 1px solid #e2e5ea;
  border-radius: 6px;
  background-color: #fafbfc;
}

.group-item strong {
  color: #1d2129;
  font-weight: 600;
}

.content-aside {
  background-color: #ffffff;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 18px 16px;
}

.aside-title {
  font-size: 16px;
  font-weight: 600;
}

.aside-desc {
  margin-top: 8px;
  font-size: 13px;
  color: #5c6470;
}

.aside-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.aside-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #e2e5ea;
  border-radius: 6px;
  background-color: #fafbfc;
}

.aside-label {
  font-size: 13px;
  color: #5c6470;
}

.aside-item a {
  font-size: 14px;
  color: #1f6feb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.aside-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e5ea;
  font-size: 13px;
  color: #5c6470;
}

/* ---------------------------------------------------------
   pages · 专题片单
   --------------------------------------------------------- */

.collection-group {
  margin-bottom: 28px;
}

.collection-group .group-title {
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e5ea;
  margin-bottom: 16px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: #ffffff;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 0 0 16px;
  overflow: hidden;
}

.collection-card:hover {
  border-color: #c9d6ea;
}

.collection-media {
  border: 0;
  border-bottom: 1px solid #e2e5ea;
  border-radius: 0;
}

.collection-media img {
  aspect-ratio: 16 / 9;
}

.collection-name {
  font-size: 16px;
  font-weight: 600;
  padding: 4px 16px 0;
}

.collection-scope {
  font-size: 14px;
  color: #5c6470;
  padding: 0 16px;
}

.collection-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  padding: 4px 16px 0;
  font-size: 13px;
}

.collection-meta dt {
  color: #8a919c;
}

.collection-meta dd {
  color: #5c6470;
}

.collection-enter {
  margin-top: auto;
  padding: 8px 16px 0;
  font-size: 14px;
  font-weight: 600;
  color: #1f6feb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.basis-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.basis-item {
  background-color: #ffffff;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 16px 16px 18px;
}

.basis-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.basis-text {
  font-size: 14px;
  color: #5c6470;
}

.section-mapping .table-wrap {
  margin-bottom: 20px;
}

.mapping-table {
  min-width: 560px;
}

.section-media img {
  aspect-ratio: 21 / 9;
}

.section-next .section-desc {
  line-height: 2;
}

/* ---------------------------------------------------------
   pages · 条目字段说明
   --------------------------------------------------------- */

.fields-section .section-figure {
  margin: 16px 0 20px;
}

.fields-section .section-figure img {
  aspect-ratio: 21 / 9;
}

.fields-table {
  min-width: 720px;
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.boundary-item {
  background-color: #ffffff;
  border: 1px solid #e2e5ea;
  border-left: 3px solid #b7791f;
  border-radius: 8px;
  padding: 14px 16px;
}

.boundary-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.boundary-desc {
  font-size: 14px;
  color: #5c6470;
}

.history-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.history-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  background-color: #ffffff;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 14px 16px;
}

.history-date {
  font-size: 13px;
  color: #5c6470;
  font-variant-numeric: tabular-nums;
}

.history-text {
  font-size: 14px;
  color: #1d2129;
}

/* ---------------------------------------------------------
   pages · 查阅路径指引
   --------------------------------------------------------- */

.guide-steps .step-list {
  margin-top: 16px;
}

.guide-steps .step-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.guide-steps .step-index {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background-color: #eef4fe;
  border: 1px solid #cfe0fb;
  color: #1f6feb;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-steps .step-body {
  min-width: 0;
}

.guide-steps .step-title {
  margin-bottom: 6px;
}

.guide-steps .step-text {
  color: #5c6470;
}

.guide-tips {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #e2e5ea;
}

.guide-figure {
  margin: 16px 0 20px;
}

.guide-figure img {
  aspect-ratio: 16 / 9;
}

.tip-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tip-item {
  background-color: #ffffff;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 14px 16px;
}

.tip-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.tip-text {
  font-size: 14px;
  color: #5c6470;
}

.content-side {
  display: grid;
  gap: 20px;
}

.guide-faq,
.guide-feedback {
  background-color: #ffffff;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 18px 16px;
}

.faq-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.faq-item {
  border: 1px solid #e2e5ea;
  border-radius: 6px;
  background-color: #fafbfc;
  padding: 0 12px;
}

.faq-question {
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  color: #1d2129;
  padding: 12px 22px 12px 0;
  position: relative;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #5c6470;
  font-variant-numeric: tabular-nums;
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-answer {
  font-size: 14px;
  color: #5c6470;
  padding: 10px 0 12px;
  border-top: 1px solid #e2e5ea;
}

.guide-feedback .feedback-text {
  margin-top: 10px;
}

.guide-feedback .feedback-link {
  margin-top: 12px;
}

/* ---------------------------------------------------------
   pages · 404
   --------------------------------------------------------- */

.error-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.error-panel {
  max-width: 640px;
  background-color: #ffffff;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 32px 28px;
}

.error-code {
  font-size: 13px;
  font-weight: 600;
  color: #b7791f;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}

.error-title {
  font-size: 28px;
  font-weight: 600;
}

.error-desc {
  margin-top: 12px;
  font-size: 15px;
  color: #5c6470;
}

.error-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-links {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e2e5ea;
  display: grid;
  gap: 8px;
}

.error-links a {
  font-size: 14px;
  color: #1f6feb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------------------------------------------------------
   responsive · 960px
   --------------------------------------------------------- */

@media (max-width: 960px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 20px;
  }

  .hero-media img {
    aspect-ratio: 16 / 9;
  }

  .card-row,
  .collection-grid,
  .basis-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .boundary-list,
  .tip-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------------------------------------------------------
   responsive · 640px
   --------------------------------------------------------- */

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 10px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    flex: 1 1 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
    border-top: 1px solid #e2e5ea;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 12px 12px;
    font-size: 15px;
  }

  .home-main,
  .inner-main {
    padding: 16px 16px 40px;
  }

  .page-title,
  .hero-title,
  .error-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 17px;
  }

  .section {
    padding-bottom: 28px;
  }

  .section + .section {
    padding-top: 24px;
  }

  .hero-panel {
    padding: 20px 16px;
    gap: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .card-row,
  .collection-grid,
  .basis-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .table-wrap {
    overflow-x: visible;
    border: 0;
    background-color: transparent;
  }

  .data-table {
    min-width: 0;
    background-color: transparent;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody,
  .data-table tbody tr,
  .data-table tbody th,
  .data-table tbody td {
    display: block;
    width: 100%;
  }

  .data-table tbody tr {
    background-color: #ffffff;
    border: 1px solid #e2e5ea;
    border-radius: 8px;
    padding: 4px 0;
    margin-bottom: 12px;
  }

  .data-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .data-table tbody th,
  .data-table tbody td {
    border-bottom: 1px solid #eef0f3;
    padding: 10px 14px;
  }

  .data-table tbody tr th:last-child,
  .data-table tbody tr td:last-child {
    border-bottom: 0;
  }

  .data-table tbody tr:hover th,
  .data-table tbody tr:hover td {
    background-color: transparent;
  }

  .table-caption {
    padding: 0 0 10px;
  }

  .log-item,
  .history-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .path-overview .step-item,
  .guide-steps .step-item {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 12px;
  }

  .guide-steps .step-index {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .feedback-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .feedback-link {
    width: 100%;
  }

  .error-main {
    padding: 32px 16px 48px;
  }

  .error-panel {
    padding: 24px 18px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
