/* ==========================================================================
   午夜大片 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --ink: #1f1f1f;
  --ink-soft: #5c5c5c;
  --line: #dcd9d2;
  --accent: #1f5c4a;
  --accent-soft: #e8f0ec;
  --radius: 6px;
  --wrap: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  z-index: 60;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* --------------------------------------------------------------------------
   layout
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

/* 页头 */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

/* 主导航 */

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-start;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 8px 14px;
  min-height: 44px;
  cursor: pointer;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: inline-block;
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: 15px;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--accent);
  text-decoration: none;
  border-bottom-color: var(--accent);
}

.nav-list a.is-current {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.header-tools {
  flex: 0 0 auto;
  margin: 0;
}

.tool-link {
  display: inline-block;
  padding: 8px 16px;
  min-height: 44px;
  line-height: 28px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 15px;
}

.tool-link:hover,
.tool-link:focus-visible {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* 页脚 */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  margin-top: 64px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 24px 28px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.2fr);
  gap: 36px 48px;
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 320px;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 20px;
}

.footer-group {
  min-width: 0;
}

.footer-group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-group a {
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--accent);
}

.footer-meta {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-note {
  flex: 1 1 320px;
  min-width: 0;
}

.footer-copy {
  flex: 0 0 auto;
}

.footer-top {
  flex: 0 0 auto;
  margin-left: auto;
}

.footer-top a {
  color: var(--accent);
}

/* 内页主容器 */

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px 24px 8px;
  width: 100%;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 40px;
  align-items: start;
}

.sidebar-left .page-layout,
.page-layout.sidebar-left {
  grid-template-columns: 260px minmax(0, 1fr);
}

.page-content,
.content-main {
  min-width: 0;
}

.page-aside,
.side-panel {
  min-width: 0;
  position: sticky;
  top: 88px;
}

/* 面包屑 */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

/* 内页标题区 */

.page-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-description {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 720px;
}

/* --------------------------------------------------------------------------
   components
   -------------------------------------------------------------------------- */

/* 通用区块 */

.section {
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.section-lede {
  font-size: 15.5px;
  color: var(--ink-soft);
}

.section-more {
  margin-top: 22px;
  font-size: 15px;
}

.text-link {
  display: inline-block;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: none;
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* 按钮 */

.btn {
  display: inline-block;
  padding: 11px 24px;
  min-height: 44px;
  line-height: 22px;
  border-radius: var(--radius);
  font-size: 15px;
  border: 1px solid transparent;
}

.btn-primary {
  display: inline-block;
  padding: 11px 24px;
  min-height: 44px;
  line-height: 22px;
  border-radius: var(--radius);
  font-size: 15px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #174638;
  border-color: #174638;
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.btn-text {
  display: inline-block;
  padding: 11px 0;
  min-height: 44px;
  line-height: 22px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.btn-text:hover,
.btn-text:focus-visible {
  text-decoration: none;
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* 图片块 */

figure {
  margin: 0;
}

.hero-media,
.team-method-media,
.careers-media,
.content-figure,
.media-figure,
.media-block,
.page-media {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-media img,
.team-method-media img,
.careers-media img,
.content-figure img,
.media-figure img,
.media-block img,
.page-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-media figcaption,
.team-method-media figcaption,
.careers-media figcaption,
.content-figure figcaption,
.media-figure figcaption,
.media-block figcaption,
.page-media figcaption {
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* 编号步骤清单 */

.step-list {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.step-item {
  position: relative;
  padding: 20px 0 20px 56px;
  border-top: 1px solid var(--line);
}

.step-item:last-child {
  border-bottom: 1px solid var(--line);
}

.step-item h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.step-item p {
  font-size: 15px;
  color: var(--ink-soft);
}

.step-list > .step-item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 20px;
  width: 36px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

/* 列表项通用 */

.check-list {
  display: grid;
  gap: 12px;
  counter-reset: check;
}

.check-list li {
  position: relative;
  padding-left: 44px;
  font-size: 15.5px;
  color: var(--ink-soft);
  min-height: 28px;
}

.check-list li::before {
  counter-increment: check;
  content: counter(check);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  line-height: 26px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
}

.check-list strong {
  color: var(--ink);
  font-weight: 600;
}

/* 语义表格 */

.spec-table,
.content-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 20px 0;
  font-size: 15px;
}

.spec-table caption,
.content-table caption {
  text-align: left;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.spec-table th,
.spec-table td,
.content-table th,
.content-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table thead th,
.content-table thead th {
  background: var(--accent-soft);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.spec-table tbody tr:last-child td,
.spec-table tbody tr:last-child th,
.content-table tbody tr:last-child td,
.content-table tbody tr:last-child th {
  border-bottom: 0;
}

/* 问答 */

.faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary,
.faq-question {
  cursor: pointer;
  list-style: none;
  padding: 18px 44px 18px 0;
  position: relative;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after,
.faq-question::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}

.faq-item[open] summary::after,
.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-item summary:hover,
.faq-question:hover {
  color: var(--accent);
}

.faq-item > p,
.faq-answer {
  padding: 0 44px 20px 0;
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 720px;
}

.faq-answer p {
  margin-bottom: 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* 正文内容块 */

.content-section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.content-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 12px;
}

.content-section h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.content-section > p {
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: 18px;
}

.content-section h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.section-hint,
.section-note,
.section-foot {
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 22px;
}

.section-hint a,
.section-note a,
.section-foot a {
  color: var(--accent);
}

/* 侧栏 */

.aside-label,
.aside-title,
.side-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.aside-toc,
.side-toc {
  display: grid;
  gap: 8px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
  margin-bottom: 24px;
}

.aside-toc a,
.side-toc a {
  font-size: 14.5px;
  color: var(--ink-soft);
}

.aside-toc a:hover,
.aside-toc a:focus-visible,
.side-toc a:hover,
.side-toc a:focus-visible {
  color: var(--accent);
}

.aside-note,
.side-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 20px;
}

.aside-note-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.aside-note p,
.aside-note li {
  font-size: 14px;
  color: var(--ink-soft);
}

.aside-note a {
  color: var(--accent);
}

.aside-links,
.aside-note ul {
  display: grid;
  gap: 8px;
}

/* 相关推荐 */

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.related-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.related-list a {
  font-size: 15px;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages
   -------------------------------------------------------------------------- */

/* 首页 · 首屏 */

.hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-lede {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-media {
  min-width: 0;
}

/* 首页 · 主体容器 */

.home-main > .section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* 首页 · 服务方向总览 */

.direction-rows {
  border-top: 1px solid var(--line);
}

.direction-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 1.4fr) minmax(0, 1.6fr);
  gap: 20px 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.direction-name h3 {
  font-size: 17px;
}

.direction-fit p,
.direction-work p {
  font-size: 15px;
  color: var(--ink-soft);
}

.direction-fit p::before {
  content: "适用对象 · ";
  color: var(--accent);
  font-weight: 600;
}

.direction-work p::before {
  content: "工作内容 · ";
  color: var(--accent);
  font-weight: 600;
}

/* 首页 · 工作方式与团队分工 */

.team-method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.team-method-copy {
  min-width: 0;
}

.team-method-copy > p {
  font-size: 15.5px;
  color: var(--ink-soft);
  margin-bottom: 14px;
  max-width: 640px;
}

.team-method-media {
  margin-top: 20px;
}

.role-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.role-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.role-item h3 {
  font-size: 16.5px;
  margin-bottom: 6px;
}

.role-item p {
  font-size: 15px;
  color: var(--ink-soft);
}

/* 首页 · 职位目录摘要 */

.career-rows {
  border-top: 1px solid var(--line);
  margin-bottom: 24px;
}

.career-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(0, 2.4fr);
  gap: 16px 32px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.career-name h3 {
  font-size: 17px;
}

.career-meta p {
  font-size: 15px;
  color: var(--ink-soft);
}

.careers-media {
  max-width: 640px;
}

/* 首页 · 合作流程三步 */

.process-steps .step-list {
  max-width: 780px;
}

/* 首页 · 常见问题摘要 */

.faq-summary .faq-list {
  max-width: 780px;
}

/* 首页 · 站内合作入口 */

.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.entry-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.entry-block h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.entry-block p {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.entry-block p:last-child {
  margin-bottom: 0;
}

/* 内页 · 服务方向逐条说明 */

.direction-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 18px;
}

.direction-item h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.direction-meta {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px 20px;
  margin: 0;
  font-size: 15px;
}

.direction-meta dt {
  color: var(--accent);
  font-weight: 600;
}

.direction-meta dd {
  margin: 0;
  color: var(--ink-soft);
}

/* 内页 · 职位目录 */

.position-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 18px;
}

.position-item h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.position-meta {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px 20px;
  margin: 0;
  font-size: 15px;
}

.position-meta dt {
  color: var(--accent);
  font-weight: 600;
}

.position-meta dd {
  margin: 0;
  color: var(--ink-soft);
}

/* 内页 · 职位申请流程 */

.step-item .step-index {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

/* 内页 · 合作流程步骤 */

.process-steps .step-item,
.page-process .step-item {
  padding-left: 0;
}

.process-steps .step-item::before,
.page-process .step-item::before {
  content: none;
}

.page-process .step-title {
  font-size: 17px;
  margin-bottom: 4px;
}

.page-process .step-owner {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 6px;
}

.page-process .step-need {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-top: 6px;
  padding-left: 14px;
  border-left: 2px solid var(--accent-soft);
}

/* 内页 · 流程卡点 */

.pitfall-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.pitfall-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.pitfall-title {
  font-size: 16.5px;
  margin-bottom: 8px;
}

.pitfall-item p {
  font-size: 15px;
  color: var(--ink-soft);
}

/* 内页 · 常见问题分组 */

.faq-group {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.faq-group:last-of-type {
  border-bottom: 0;
}

.faq-group .section-title {
  font-size: 22px;
  margin-bottom: 10px;
}

.faq-group .section-intro {
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: 18px;
}

.faq-group .section-intro a {
  color: var(--accent);
}

/* 内页 · 延伸阅读 */

.next-steps {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 26px 28px;
}

.next-steps .section-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.next-steps .section-intro {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.next-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.next-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.next-link {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.next-desc {
  font-size: 14px;
  color: var(--ink-soft);
}

/* 404 页 */

.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px 24px 24px;
  width: 100%;
}

.error-block {
  max-width: 640px;
  margin-bottom: 48px;
}

.error-code {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.error-block h1 {
  font-size: 32px;
  margin-bottom: 14px;
}

.error-text {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.error-guide {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.error-guide h2 {
  font-size: 22px;
  margin-bottom: 18px;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.error-links li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.error-links a {
  font-size: 15px;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {

  .header-inner {
    flex-wrap: wrap;
    gap: 12px 16px;
    padding: 12px 18px;
  }

  .brand {
    font-size: 18px;
  }

  .site-nav {
    order: 3;
    flex: 1 1 100%;
    display: block;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 10px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    border-bottom: 1px solid var(--line);
  }

  .nav-list a {
    display: block;
    padding: 13px 2px;
    min-height: 44px;
    border-bottom: 0;
  }

  .header-tools {
    margin-left: auto;
  }

  .hero {
    padding: 36px 0 32px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 0 18px;
  }

  .hero-title {
    font-size: 24px;
  }

  .home-main > .section {
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .section-head h2,
  .content-section h2,
  .faq-group .section-title,
  .error-guide h2 {
    font-size: 19px;
  }

  .page-title {
    font-size: 24px;
  }

  .direction-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .team-method-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .career-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .inner-main {
    padding: 22px 18px 8px;
  }

  /* 手机端：正文在前，侧栏在后 */
  .page-layout,
  .page-layout.sidebar-left,
  .sidebar-left .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .page-content,
  .content-main {
    order: 1;
  }

  .page-aside,
  .side-panel {
    order: 2;
    position: static;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 18px 24px;
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-top {
    margin-left: 0;
  }

  .error-main {
    padding: 40px 18px 24px;
  }

  .error-block h1 {
    font-size: 24px;
  }
}

@media (max-width: 640px) {

  body {
    font-size: 15.5px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .direction-meta,
  .position-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .direction-meta dd,
  .position-meta dd {
    margin-bottom: 8px;
  }

  .step-item {
    padding-left: 44px;
  }

  .step-list > .step-item::before {
    width: 30px;
  }

  .page-process .step-item {
    padding-left: 0;
  }

  .spec-table,
  .content-table {
    font-size: 14px;
  }

  .spec-table th,
  .spec-table td,
  .content-table th,
  .content-table td {
    padding: 12px 14px;
  }

  .spec-table thead th,
  .content-table thead th {
    white-space: normal;
  }

  .next-steps {
    padding: 20px 18px;
  }

  .faq-item summary,
  .faq-question {
    font-size: 15.5px;
    padding-right: 34px;
  }

  .faq-item > p,
  .faq-answer {
    padding-right: 0;
  }
}
