/* ==========================================================================
   午夜伦理片 · oukea.cn 全站样式
   结构：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base
   ========================================================================== */

:root {
  --ink: #1c1f24;
  --ink-soft: #5a626d;
  --line: #d8dce2;
  --line-strong: #b9bfc8;
  --paper: #ffffff;
  --paper-alt: #f6f7f9;
  --accent: #0f6b4f;
  --accent-soft: #e6f1ec;
  --warn: #8a5a00;
  --warn-soft: #fbf3e2;
  --radius: 6px;
  --shell: 1180px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.72;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}

p {
  margin: 0 0 12px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt,
figure,
figcaption {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.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 {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  border-left: 1px solid var(--line);
  padding-left: 10px;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  font-size: 15px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.site-main {
  display: block;
}

.inner-main {
  min-width: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 27px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.page-description {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 760px;
  margin: 0;
}

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 36px 24px 20px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr);
  gap: 32px;
}

.footer-brand-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer-group-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-list a {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.footer-list a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 24px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.footer-index {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.footer-index a {
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-index a:hover {
  color: var(--accent);
}

.footer-note,
.footer-copy {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0;
}

.footer-top {
  margin-left: auto;
  font-size: 13px;
}

/* 内页两栏骨架：真实 DOM 中 .sidebar-left 为祖先容器 */
.page-layout {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 28px 24px 0;
}

.sidebar-left {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.sidebar-left .content-column,
.sidebar-left .page-content,
.sidebar-left .inner-main {
  min-width: 0;
}

/* 当 .sidebar-left 落在 body 上时，让 body 成为实际布局容器 */
body.sidebar-left {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-areas:
    "header header"
    "aside main"
    "footer footer";
  column-gap: 36px;
  align-items: start;
}

body.sidebar-left .site-header {
  grid-area: header;
}

body.sidebar-left .section-index,
body.sidebar-left .page-aside {
  grid-area: aside;
  margin: 24px 0 0 24px;
}

body.sidebar-left .site-main {
  grid-area: main;
  min-width: 0;
  margin: 24px 24px 0 0;
}

body.sidebar-left .site-footer {
  grid-area: footer;
}

/* ==========================================================================
   components
   ========================================================================== */

/* 通用区块与标题 */
.section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-intro,
.section-desc {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 780px;
  margin-bottom: 16px;
}

.section-note {
  font-size: 13px;
  color: var(--warn);
  background: var(--warn-soft);
  border-left: 3px solid var(--warn);
  padding: 10px 14px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 16px 0 0;
}

.section-text {
  font-size: 15px;
  color: var(--ink);
  max-width: 780px;
}

.section-head {
  margin-bottom: 18px;
}

.section-foot {
  margin: 14px 0 0;
  font-size: 14px;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid var(--accent-soft);
}

.text-link:hover {
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* 图片容器 */
.media-figure,
.section-media,
.direction-media,
.faq-media {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-alt);
}

.media-figure img,
.section-media img,
.direction-media img,
.faq-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-caption,
.faq-media-caption,
.direction-media figcaption {
  font-size: 12px;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  line-height: 1.6;
}

/* 数据表格 */
.data-table {
  width: 100%;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.data-table caption {
  text-align: left;
  font-size: 12px;
  color: var(--ink-soft);
  padding: 0 0 8px;
}

.data-table thead th {
  background: var(--paper-alt);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.data-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table tbody td {
  color: var(--ink-soft);
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  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: var(--paper-alt);
}

.table-caption {
  text-align: left;
  font-size: 12px;
  color: var(--ink-soft);
  padding: 0 0 8px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
}

/* 按钮 */
.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;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: #0c5741;
  color: #ffffff;
}

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 折叠问答 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "＋";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  line-height: 1.7;
}

.faq-item[open] .faq-question::before {
  content: "－";
}

.faq-item[open] .faq-question {
  color: var(--accent);
}

.faq-answer {
  padding: 0 16px 14px 40px;
  font-size: 14px;
  color: var(--ink-soft);
}

.faq-answer p {
  margin: 0 0 8px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* 侧栏索引 */
.section-index,
.page-aside {
  position: sticky;
  top: 82px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-alt);
  padding: 16px;
}

.index-title,
.section-index-title,
.aside-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.index-list,
.section-index-list,
.aside-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.index-link,
.section-index-link,
.aside-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--ink-soft);
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.index-link:hover,
.section-index-link:hover,
.aside-link:hover {
  background: var(--paper);
  color: var(--accent);
  text-decoration: none;
}

.index-link.is-active,
.section-index-link.is-active,
.aside-link.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--paper);
  font-weight: 600;
}

.index-note {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* 相关内容链接条 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-alt);
}

.related-links-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.related-links-item {
  font-size: 13px;
  color: var(--accent);
}

/* ==========================================================================
   pages · 首页
   ========================================================================== */

.home-main .section-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-section {
  padding: 40px 0 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 40px;
  align-items: start;
  padding-bottom: 32px;
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-media {
  min-width: 0;
}

.hero-media .media-figure {
  margin-bottom: 0;
}

.hero-media .media-figure img {
  aspect-ratio: 16 / 10;
}

.index-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-alt);
  padding: 18px 20px 20px;
}

.index-panel-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.index-panel-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.index-table {
  background: var(--paper);
}

.index-table thead th {
  background: var(--paper);
}

.overview-section,
.delivery-section,
.process-section,
.faq-section,
.path-section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.path-section {
  border-bottom: 0;
  margin-bottom: 0;
}

.overview-media {
  margin-bottom: 20px;
}

.overview-table tbody td:last-child,
.overview-table tbody th:last-child {
  white-space: nowrap;
}

.delivery-table tbody th {
  width: 24%;
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: process;
}

.process-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-areas:
    "index name"
    "index meta";
  column-gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.process-index {
  grid-area: index;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius);
  text-align: center;
  padding: 6px 0;
}

.process-name {
  grid-area: name;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.process-meta {
  grid-area: meta;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 6px 14px;
  font-size: 14px;
}

.process-meta dt {
  color: var(--ink);
  font-weight: 600;
}

.process-meta dd {
  color: var(--ink-soft);
  min-width: 0;
}

.path-desc {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 780px;
  margin-bottom: 14px;
}

.path-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.path-links .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
}

/* ==========================================================================
   pages · 服务方向
   ========================================================================== */

.direction-list .section-intro {
  margin-bottom: 20px;
}

.direction-item {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.direction-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.direction-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.direction-media {
  margin-bottom: 14px;
}

.direction-meta {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px 16px;
  font-size: 14px;
  margin-bottom: 12px;
}

.direction-meta dt {
  font-weight: 600;
  color: var(--ink);
}

.direction-meta dd {
  color: var(--ink-soft);
  min-width: 0;
}

.direction-link {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  font-size: 14px;
}

.direction-tasks {
  font-size: 14px;
  color: var(--ink-soft);
}

.direction-prepare .data-table {
  margin-top: 4px;
}

.guide-group {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.guide-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.guide-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.guide-text {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.guide-link {
  margin: 0;
  font-size: 14px;
}

/* ==========================================================================
   pages · 合作流程
   ========================================================================== */

.section-flow-overview .section-media {
  margin-bottom: 22px;
}

.flow-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: 14px;
}

.flow-step .step-no {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

.flow-step .step-title {
  font-size: 17px;
  font-weight: 600;
}

.flow-step .step-detail {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px 16px;
  font-size: 14px;
}

.flow-step .step-detail dt {
  font-weight: 600;
  color: var(--ink);
}

.flow-step .step-detail dd {
  color: var(--ink-soft);
  min-width: 0;
}

.block-table tbody th {
  width: 26%;
}

.entry-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.entry-item {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.entry-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.entry-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.entry-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================================================
   pages · 交付标准
   ========================================================================== */

.section-deliver-types .section-media {
  margin-bottom: 20px;
}

.deliver-table {
  min-width: 640px;
}

.deliver-table tbody th {
  width: 22%;
}

.rule-block {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.rule-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.subsection-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.rule-text {
  font-size: 14px;
  color: var(--ink-soft);
}

.modify-table {
  margin-top: 12px;
}

.modify-table tbody th {
  width: 32%;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.check-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-areas:
    "index title"
    "index text";
  column-gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-index {
  grid-area: index;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  padding-top: 2px;
}

.check-title {
  grid-area: title;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.check-text {
  grid-area: text;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.boundary-block {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--warn);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--warn-soft);
}

.boundary-text {
  font-size: 14px;
  color: var(--ink);
  margin: 0;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 20px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================================================
   pages · 常见问题
   ========================================================================== */

.faq-media {
  margin-bottom: 26px;
}

.faq-group {
  margin-bottom: 32px;
}

.faq-group .section-intro {
  margin-bottom: 14px;
}

.faq-path {
  margin-bottom: 0;
}

.faq-path .section-text {
  font-size: 15px;
}

.faq-path .section-text a {
  font-weight: 600;
}

/* ==========================================================================
   pages · 404
   ========================================================================== */

.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 64px 24px 0;
}

.error-panel {
  max-width: 640px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--paper-alt);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.error-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.error-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 18px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 0 100%;
    margin-left: 0;
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
    padding-top: 6px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 48px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav-link.is-current {
    border-bottom-color: var(--accent);
  }

  .hero-section {
    padding-top: 28px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-bottom: 26px;
  }

  .hero-title {
    font-size: 25px;
  }

  .overview-section,
  .delivery-section,
  .process-section,
  .faq-section,
  .path-section {
    padding-bottom: 32px;
    margin-bottom: 32px;
  }

  .page-layout {
    padding: 22px 18px 0;
  }

  .sidebar-left {
    display: block;
  }

  .sidebar-left .section-index,
  .sidebar-left .page-aside {
    position: static;
    margin-bottom: 22px;
  }

  .index-list,
  .section-index-list,
  .aside-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .index-link,
  .section-index-link,
  .aside-link {
    min-height: 44px;
    border: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    padding: 6px 14px;
  }

  .index-link.is-active,
  .section-index-link.is-active,
  .aside-link.is-active {
    border-color: var(--accent);
    border-left-color: var(--accent);
  }

  .index-note {
    margin-top: 10px;
  }

  body.sidebar-left {
    display: block;
  }

  body.sidebar-left .section-index,
  body.sidebar-left .page-aside {
    margin: 20px 18px 0;
  }

  body.sidebar-left .site-main {
    margin: 20px 18px 0;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 18px 18px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .footer-bottom {
    padding: 14px 18px 24px;
  }

  .footer-top {
    margin-left: 0;
  }

  .entry-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .deliver-table {
    min-width: 560px;
  }
}

@media (max-width: 600px) {
  body.site-body {
    font-size: 15px;
  }

  .header-inner {
    padding: 8px 14px;
  }

  .brand-mark {
    font-size: 17px;
  }

  .brand-sub {
    font-size: 10px;
    padding-left: 8px;
  }

  .home-main .section-inner {
    padding: 0 14px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .page-title {
    font-size: 22px;
  }

  .page-description,
  .section-intro,
  .section-desc,
  .section-text,
  .path-desc {
    font-size: 14px;
  }

  .section-title {
    font-size: 18px;
  }

  .index-panel {
    padding: 14px 14px 16px;
  }

  .data-table {
    font-size: 13px;
  }

  .data-table thead th,
  .data-table tbody th,
  .data-table tbody td {
    padding: 9px 10px;
  }

  .process-item {
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 12px;
    padding: 14px;
  }

  .process-meta,
  .direction-meta,
  .flow-step .step-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .process-meta dt,
  .direction-meta dt,
  .flow-step .step-detail dt {
    margin-top: 6px;
  }

  .flow-step {
    padding: 16px;
  }

  .check-item {
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 10px;
    padding: 12px;
  }

  .faq-question {
    font-size: 14px;
    padding: 12px 14px;
  }

  .faq-answer {
    padding: 0 14px 12px 34px;
    font-size: 13px;
  }

  .error-main {
    padding: 40px 14px 0;
  }

  .error-panel {
    padding: 22px 18px;
  }

  .error-code {
    font-size: 32px;
  }

  .error-title {
    font-size: 19px;
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .page-layout {
    padding: 18px 14px 0;
  }

  body.sidebar-left .section-index,
  body.sidebar-left .page-aside,
  body.sidebar-left .site-main {
    margin-left: 14px;
    margin-right: 14px;
  }

  .index-link,
  .section-index-link,
  .aside-link {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }
}
