/* ==========================================================================
   囧次元 · snvda.cn 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 基础重置与全局排版
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #23272e;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

a {
  color: #1f3a5f;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover,
a:focus {
  color: #c2410c;
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #c2410c;
  outline-offset: 2px;
}

p {
  margin: 0 0 0.9em;
}

ul,
ol {
  margin: 0 0 0.9em;
  padding-left: 1.35em;
}

li {
  margin-bottom: 0.35em;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  color: #1f3a5f;
  line-height: 1.35;
  font-weight: 600;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

h4 {
  font-size: 16px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

caption {
  text-align: left;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.code {
  display: inline-block;
  min-width: 2.6em;
  padding: 1px 6px;
  border: 1px solid #d8dde4;
  border-radius: 4px;
  background-color: #f4f6f8;
  color: #1f3a5f;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-align: center;
}

/* --------------------------------------------------------------------------
   layout · 页头 / 主导航 / 主容器 / 页脚骨架
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: #ffffff;
  border-bottom: 1px solid #d8dde4;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
  color: #1f3a5f;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand:hover,
.brand:focus {
  color: #c2410c;
  text-decoration: none;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: inline-block;
  padding: 10px 12px;
  min-height: 44px;
  line-height: 24px;
  color: #23272e;
  font-size: 15px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a:focus {
  color: #1f3a5f;
  border-bottom-color: #d8dde4;
  text-decoration: none;
}

.nav-list a.is-current {
  color: #c2410c;
  border-bottom-color: #c2410c;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 0;
  width: 44px;
  height: 44px;
  border: 1px solid #d8dde4;
  border-radius: 6px;
  background-color: #ffffff;
  color: #1f3a5f;
  font-size: 14px;
  cursor: pointer;
}

.nav-toggle::before {
  content: "菜单";
}

.nav-toggle[aria-expanded="true"]::before {
  content: "收起";
}

.site-main {
  display: block;
  width: 100%;
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #5b6472;
}

.breadcrumb a {
  color: #5b6472;
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
  color: #c2410c;
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #d8dde4;
}

.breadcrumb-current {
  color: #23272e;
}

.page-header {
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid #d8dde4;
}

.page-title {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 600;
  color: #1f3a5f;
  line-height: 1.3;
}

.page-description {
  margin: 0;
  max-width: 68ch;
  color: #5b6472;
  font-size: 16px;
}

.site-footer {
  margin-top: 48px;
  background-color: #f4f6f8;
  border-top: 1px solid #d8dde4;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 24px 32px;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 32px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  margin: 0 0 8px;
  color: #1f3a5f;
  font-size: 18px;
  font-weight: 700;
}

.footer-desc {
  margin: 0;
  max-width: 34ch;
  color: #5b6472;
  font-size: 14px;
  line-height: 1.7;
}

.footer-title {
  margin: 0 0 12px;
  color: #1f3a5f;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-group li {
  margin-bottom: 8px;
}

.footer-group a {
  color: #5b6472;
  font-size: 14px;
  text-decoration: none;
}

.footer-group a:hover,
.footer-group a:focus {
  color: #c2410c;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #d8dde4;
}

.footer-copy {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px 26px;
  color: #5b6472;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   layout · 通用页面区块与多栏骨架
   -------------------------------------------------------------------------- */

.section {
  margin-bottom: 52px;
}

.section-title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 600;
  color: #1f3a5f;
}

.section-lead,
.section-intro {
  margin: 0 0 22px;
  max-width: 72ch;
  color: #5b6472;
  font-size: 16px;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 600;
}

.section-head .section-intro {
  margin: 0;
}

.section-more {
  margin: 20px 0 0;
  font-size: 15px;
}

.link-more {
  color: #c2410c;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.link-more:hover,
.link-more:focus {
  color: #1f3a5f;
  border-bottom-color: #1f3a5f;
  text-decoration: none;
}

.page-layout {
  display: grid;
  gap: 40px;
  align-items: start;
}

.layout-shell {
  grid-template-columns: minmax(520px, 1fr) minmax(240px, 300px);
}

.sidebar-left .page-layout,
.page-layout.sidebar-left {
  grid-template-columns: minmax(240px, 280px) minmax(520px, 1fr);
}

.layout-primary {
  min-width: 0;
}

.layout-aside {
  min-width: 0;
  padding: 22px 20px;
  background-color: #f4f6f8;
  border: 1px solid #d8dde4;
  border-radius: 8px;
}

.aside-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  color: #1f3a5f;
}

.aside-note {
  margin: 16px 0 0;
  font-size: 14px;
  color: #5b6472;
}

/* 通用图片容器 */
.hero-media,
.section-media,
.section-figure,
.media-figure,
.guide-figure,
.page-media {
  margin: 0 0 28px;
  border: 1px solid #d8dde4;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f4f6f8;
}

.hero-media img,
.section-media img,
.section-figure img,
.media-figure img,
.guide-figure img,
.page-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.hero-media figcaption,
.section-media figcaption,
.section-figure figcaption,
.media-figure figcaption,
.guide-figure figcaption,
.page-media figcaption {
  padding: 12px 16px;
  border-top: 1px solid #d8dde4;
  background-color: #ffffff;
  color: #5b6472;
  font-size: 13px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   components · 表格 / 列表 / 步骤 / 卡片
   -------------------------------------------------------------------------- */

/* 工具索引表 */
.table-wrap {
  overflow-x: auto;
  border: 1px solid #d8dde4;
  border-radius: 8px;
  background-color: #ffffff;
}

.tool-table {
  width: 100%;
  min-width: 720px;
  font-size: 15px;
}

.tool-table-caption {
  padding: 12px 16px;
  color: #5b6472;
  font-size: 13px;
  border-bottom: 1px solid #d8dde4;
}

.tool-table thead th {
  padding: 12px 14px;
  background-color: #f4f6f8;
  border-bottom: 1px solid #d8dde4;
  color: #1f3a5f;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.tool-table tbody td {
  padding: 14px;
  border-bottom: 1px solid #d8dde4;
  color: #23272e;
  vertical-align: top;
}

.tool-table tbody tr:last-child td {
  border-bottom: 0;
}

.tool-table tbody tr:hover td {
  background-color: #f9fafb;
}

.tool-table td.code {
  border: 0;
  background-color: transparent;
  padding: 14px;
  text-align: left;
  font-weight: 600;
  color: #1f3a5f;
  white-space: nowrap;
}

.tool-table td.tool-no {
  white-space: nowrap;
  font-weight: 600;
  color: #1f3a5f;
}

/* 字段说明列表 */
.field-list {
  margin: 0;
}

.field-item {
  padding: 10px 0;
  border-bottom: 1px solid #d8dde4;
}

.field-item:last-child {
  border-bottom: 0;
}

.field-item dt {
  margin-bottom: 4px;
  color: #1f3a5f;
  font-size: 14px;
  font-weight: 600;
}

.field-item dd {
  margin: 0;
  color: #5b6472;
  font-size: 14px;
  line-height: 1.7;
}

/* 编号步骤（通用 ol） */
.path-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: path;
}

.path-steps > li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #d8dde4;
}

.path-steps > li:last-child {
  border-bottom: 0;
}

.path-steps .step-no,
.path-steps .path-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #d8dde4;
  border-radius: 6px;
  background-color: #f4f6f8;
  color: #1f3a5f;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 14px;
  font-weight: 600;
}

.path-steps .step-text {
  margin: 0;
  align-self: center;
  color: #23272e;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.fact-bar {
  background-color: #1f3a5f;
  color: #ffffff;
}

.fact-bar-text {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  font-size: 13px;
  line-height: 1.6;
  color: #e6ecf3;
}

.home-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

/* 首屏索引区 */
.hero-index {
  margin-bottom: 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 32px;
}

.hero-lead {
  min-width: 0;
}

.hero-title {
  margin: 0 0 16px;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.28;
  color: #1f3a5f;
}

.hero-desc {
  margin: 0 0 24px;
  max-width: 62ch;
  color: #23272e;
  font-size: 17px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: #c2410c;
  border-color: #c2410c;
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #9a3309;
  border-color: #9a3309;
  color: #ffffff;
  text-decoration: none;
}

.btn-ghost {
  background-color: #ffffff;
  border-color: #1f3a5f;
  color: #1f3a5f;
}

.btn-ghost:hover,
.btn-ghost:focus {
  background-color: #f4f6f8;
  color: #1f3a5f;
  text-decoration: none;
}

/* 首屏编号预览 */
.hero-preview {
  min-width: 0;
  padding: 22px 20px;
  border: 1px solid #d8dde4;
  border-radius: 8px;
  background-color: #f4f6f8;
}

.hero-preview-label {
  margin: 0 0 14px;
  color: #5b6472;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.hero-code-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-code-list li {
  margin: 0;
}

.hero-code-list .code {
  display: block;
  width: 100%;
  padding: 8px 6px;
  font-size: 14px;
}

/* 工具索引表区块 */
.tool-table-section .section-head {
  margin-bottom: 20px;
}

/* 使用场景分组 */
.scenario-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.scenario-group {
  min-width: 0;
  padding: 20px;
  border: 1px solid #d8dde4;
  border-radius: 8px;
  background-color: #ffffff;
}

.scenario-name {
  margin: 0 0 10px;
  font-size: 18px;
  color: #1f3a5f;
}

.scenario-cond {
  margin: 0 0 14px;
  color: #23272e;
  font-size: 15px;
  line-height: 1.7;
}

.scenario-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.scenario-link {
  margin: 0;
  font-size: 14px;
}

.scenario-link a {
  color: #c2410c;
  font-weight: 600;
}

/* 双栏入口 */
.dual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.dual-col {
  min-width: 0;
  padding: 24px 22px;
  border: 1px solid #d8dde4;
  border-radius: 8px;
  background-color: #f4f6f8;
}

.dual-title {
  margin: 0 0 10px;
  font-size: 20px;
  color: #1f3a5f;
}

.dual-intro {
  margin: 0 0 16px;
  color: #5b6472;
  font-size: 15px;
  line-height: 1.7;
}

.step-mini-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.step-mini-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
  color: #23272e;
}

.dual-link {
  margin: 0;
  font-size: 14px;
}

/* 站内栏目索引 */
.column-index-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.column-index-item {
  min-width: 0;
  margin: 0;
  padding: 18px 16px;
  border: 1px solid #d8dde4;
  border-radius: 8px;
  background-color: #ffffff;
}

.column-index-item .code {
  margin-bottom: 10px;
}

.column-index-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.column-index-item h3 a {
  color: #1f3a5f;
  text-decoration: none;
}

.column-index-item h3 a:hover,
.column-index-item h3 a:focus {
  color: #c2410c;
  text-decoration: underline;
}

.column-index-item p {
  margin: 0;
  color: #5b6472;
  font-size: 13px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages · 常用工具页
   -------------------------------------------------------------------------- */

.page-tools .section-tool-table,
.page-tools .section-tool-groups,
.page-tools .section-tool-alternatives,
.page-tools .section-tool-path {
  margin-bottom: 48px;
}

.page-tools .section-figure {
  margin-top: 4px;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.group-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  border: 1px solid #d8dde4;
  border-radius: 8px;
  background-color: #ffffff;
}

.group-title {
  margin: 0 0 10px;
  font-size: 18px;
  color: #1f3a5f;
}

.group-desc {
  margin: 0 0 14px;
  color: #5b6472;
  font-size: 15px;
  line-height: 1.7;
}

.group-list {
  margin: 0 0 18px;
  padding-left: 20px;
  color: #23272e;
  font-size: 15px;
}

.group-link {
  margin-top: auto;
  align-self: flex-start;
  color: #c2410c;
  font-size: 14px;
  font-weight: 600;
}

.alt-list {
  margin: 0;
}

.alt-item {
  padding: 16px 0;
  border-bottom: 1px solid #d8dde4;
}

.alt-item:last-child {
  border-bottom: 0;
}

.alt-item dt {
  margin-bottom: 6px;
  color: #1f3a5f;
  font-size: 16px;
  font-weight: 600;
}

.alt-item dd {
  margin: 0;
  max-width: 72ch;
  color: #23272e;
  font-size: 15px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   pages · 使用场景页
   -------------------------------------------------------------------------- */

.page-scenarios .scene-classes,
.page-scenarios .scene-entries,
.page-scenarios .scene-mapping,
.page-scenarios .scene-path {
  margin-bottom: 48px;
}

.class-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.class-item {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid #d8dde4;
  border-radius: 8px;
  background-color: #f4f6f8;
}

.class-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #1f3a5f;
}

.class-item p {
  margin: 0;
  color: #5b6472;
  font-size: 14px;
  line-height: 1.7;
}

.scene-entry {
  padding: 22px 0;
  border-bottom: 1px solid #d8dde4;
}

.scene-entry:last-of-type {
  border-bottom: 0;
}

.scene-entry h3 {
  margin: 0 0 14px;
  font-size: 19px;
  color: #1f3a5f;
}

.scene-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 14px;
}

.scene-cond,
.scene-limit {
  min-width: 0;
  padding: 16px 18px;
  border-radius: 8px;
}

.scene-cond {
  background-color: #f4f6f8;
  border: 1px solid #d8dde4;
}

.scene-limit {
  background-color: #ffffff;
  border: 1px dashed #d8dde4;
}

.scene-cond h4,
.scene-limit h4 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #1f3a5f;
}

.scene-cond ul,
.scene-limit ul {
  margin: 0;
  padding-left: 20px;
  color: #23272e;
  font-size: 15px;
}

.scene-tools {
  margin: 0;
  font-size: 14px;
}

.scene-tools a {
  color: #c2410c;
  font-weight: 600;
}

.mapping-table {
  border: 1px solid #d8dde4;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
}

.mapping-head,
.mapping-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #d8dde4;
}

.mapping-head {
  background-color: #f4f6f8;
  color: #1f3a5f;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.mapping-row:last-child {
  border-bottom: 0;
}

.mapping-row span {
  min-width: 0;
  font-size: 15px;
  color: #23272e;
}

.mapping-row span:last-child {
  color: #1f3a5f;
}

/* --------------------------------------------------------------------------
   pages · 操作指南页
   -------------------------------------------------------------------------- */

.page-guides .guide-figure {
  margin-bottom: 32px;
}

.page-guides .guide-toc {
  position: sticky;
  top: 88px;
  padding: 22px 20px;
  border: 1px solid #d8dde4;
  border-radius: 8px;
  background-color: #f4f6f8;
}

.toc-title {
  margin: 0 0 14px;
  font-size: 16px;
  color: #1f3a5f;
}

.toc-list {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
}

.toc-list li {
  margin-bottom: 8px;
}

.toc-list a {
  color: #23272e;
  text-decoration: none;
}

.toc-list a:hover,
.toc-list a:focus {
  color: #c2410c;
  text-decoration: underline;
}

.toc-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: #5b6472;
}

.guide-body {
  min-width: 0;
}

.guide-section {
  margin-bottom: 44px;
  scroll-margin-top: 88px;
}

.guide-section:last-child {
  margin-bottom: 0;
}

.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px 18px;
  padding: 20px 0;
  border-bottom: 1px solid #d8dde4;
}

.step-item:last-child {
  border-bottom: 0;
}

.step-item .step-no {
  grid-row: 1 / span 3;
  margin: 0;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid #d8dde4;
  border-radius: 6px;
  background-color: #f4f6f8;
  color: #1f3a5f;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 15px;
  font-weight: 600;
}

.step-item .step-name {
  grid-column: 2;
  margin: 0;
  font-size: 17px;
  color: #1f3a5f;
}

.step-item .step-action {
  grid-column: 2;
  margin: 0;
  color: #23272e;
  font-size: 16px;
  line-height: 1.75;
}

.step-item .step-expect {
  grid-column: 2;
  margin: 0;
  color: #5b6472;
  font-size: 14px;
  line-height: 1.7;
}

.pitfall-table {
  border: 1px solid #d8dde4;
  border-radius: 8px;
  overflow: hidden;
  font-size: 15px;
}

.pitfall-table caption {
  padding: 12px 16px;
  color: #5b6472;
  font-size: 13px;
  border-bottom: 1px solid #d8dde4;
  background-color: #ffffff;
}

.pitfall-table thead th {
  padding: 12px 14px;
  background-color: #f4f6f8;
  border-bottom: 1px solid #d8dde4;
  color: #1f3a5f;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.pitfall-table tbody td {
  padding: 14px;
  border-bottom: 1px solid #d8dde4;
  color: #23272e;
  vertical-align: top;
}

.pitfall-table tbody tr:last-child td {
  border-bottom: 0;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #d8dde4;
}

.check-item:last-child {
  border-bottom: 0;
}

.check-item .check-no {
  flex: 0 0 auto;
  margin: 0;
  min-width: 2.4em;
  color: #1f3a5f;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 14px;
  font-weight: 600;
}

.check-item .check-text {
  margin: 0;
  color: #23272e;
  font-size: 16px;
  line-height: 1.75;
}

.guide-feedback .section-lead a {
  color: #c2410c;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   pages · 更新说明页
   -------------------------------------------------------------------------- */

.page-updates .page-media {
  margin-bottom: 36px;
}

.page-updates .updates-timeline,
.page-updates .updates-impact,
.page-updates .updates-crossref,
.page-updates .updates-fallback {
  margin-bottom: 48px;
}

.timeline-group {
  margin-bottom: 32px;
}

.timeline-group:last-child {
  margin-bottom: 0;
}

.timeline-group .group-title {
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1f3a5f;
  font-size: 17px;
  color: #1f3a5f;
}

.timeline-item {
  padding: 18px 0;
  border-bottom: 1px solid #d8dde4;
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-item .item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 13px;
}

.timeline-item .item-date {
  color: #1f3a5f;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-weight: 600;
}

.timeline-item .item-scope {
  padding: 1px 8px;
  border: 1px solid #d8dde4;
  border-radius: 4px;
  background-color: #f4f6f8;
  color: #5b6472;
}

.timeline-item .item-title {
  margin: 0 0 8px;
  font-size: 17px;
  color: #1f3a5f;
}

.timeline-item .item-desc {
  margin: 0 0 12px;
  max-width: 72ch;
  color: #23272e;
  font-size: 15px;
  line-height: 1.75;
}

.item-impact {
  margin: 0 0 12px;
  padding: 12px 16px;
  border-left: 3px solid #c2410c;
  background-color: #f4f6f8;
  border-radius: 0 6px 6px 0;
}

.item-impact .impact-label {
  margin: 0 0 4px;
  color: #c2410c;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.item-impact p:last-child {
  margin: 0;
  color: #23272e;
  font-size: 14px;
  line-height: 1.7;
}

.item-link {
  color: #c2410c;
  font-size: 14px;
  font-weight: 600;
}

.impact-item {
  padding: 18px 0;
  border-bottom: 1px solid #d8dde4;
}

.impact-item:last-child {
  border-bottom: 0;
}

.impact-item .impact-heading {
  margin: 0 0 8px;
  font-size: 17px;
  color: #1f3a5f;
}

.impact-item p {
  margin: 0 0 8px;
  max-width: 72ch;
  color: #23272e;
  font-size: 15px;
  line-height: 1.75;
}

.impact-item .impact-ref {
  margin: 0;
  color: #5b6472;
  font-size: 14px;
}

.crossref-table {
  border: 1px solid #d8dde4;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
}

.crossref-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #d8dde4;
}

.crossref-row:last-child {
  border-bottom: 0;
}

.crossref-head {
  background-color: #f4f6f8;
  color: #1f3a5f;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.crossref-cell {
  min-width: 0;
  font-size: 15px;
  color: #23272e;
}

.crossref-row:not(.crossref-head) .crossref-cell:last-child {
  color: #1f3a5f;
}

.fallback-steps {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: fallback;
}

.fallback-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #d8dde4;
}

.fallback-steps li:last-child {
  border-bottom: 0;
}

.fallback-steps .step-num {
  flex: 0 0 auto;
  min-width: 2.6em;
  color: #1f3a5f;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 14px;
  font-weight: 600;
}

.fallback-steps .step-text {
  margin: 0;
  color: #23272e;
  font-size: 16px;
  line-height: 1.75;
}

.fallback-note {
  margin: 0;
  font-size: 15px;
}

.fallback-note a {
  color: #c2410c;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   pages · 问题反馈页
   -------------------------------------------------------------------------- */

.page-feedback .container {
  display: block;
}

.page-feedback .section {
  margin-bottom: 48px;
}

.channel-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.channel-item {
  min-width: 0;
  padding: 22px 20px;
  border: 1px solid #d8dde4;
  border-radius: 8px;
  background-color: #ffffff;
}

.channel-name {
  margin: 0 0 10px;
  font-size: 18px;
  color: #1f3a5f;
}

.channel-desc {
  margin: 0 0 10px;
  color: #23272e;
  font-size: 15px;
  line-height: 1.75;
}

.channel-desc a {
  color: #c2410c;
  font-weight: 600;
}

.channel-fit {
  margin: 0;
  color: #5b6472;
  font-size: 14px;
  line-height: 1.7;
}

.info-list {
  margin: 0;
  border: 1px solid #d8dde4;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
}

.info-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #d8dde4;
}

.info-row:last-child {
  border-bottom: 0;
}

.info-term {
  color: #1f3a5f;
  font-size: 15px;
  font-weight: 600;
}

.info-value {
  margin: 0;
  color: #23272e;
  font-size: 15px;
  line-height: 1.75;
}

.info-value a {
  color: #c2410c;
  font-weight: 600;
}

.process-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 6px 18px;
  padding: 18px 0;
  border-bottom: 1px solid #d8dde4;
}

.process-step:last-child {
  border-bottom: 0;
}

.process-step .step-no {
  grid-row: 1 / span 2;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d8dde4;
  border-radius: 6px;
  background-color: #f4f6f8;
  color: #1f3a5f;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 14px;
  font-weight: 600;
}

.process-step .step-name {
  grid-column: 2;
  margin: 0;
  font-size: 17px;
  color: #1f3a5f;
}

.process-step .step-desc {
  grid-column: 2;
  margin: 0;
  color: #23272e;
  font-size: 15px;
  line-height: 1.75;
}

.selfcheck-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.selfcheck-item {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid #d8dde4;
  border-radius: 8px;
  background-color: #f4f6f8;
}

.selfcheck-name {
  margin: 0 0 8px;
  font-size: 16px;
  color: #1f3a5f;
}

.selfcheck-desc {
  margin: 0;
  color: #23272e;
  font-size: 14px;
  line-height: 1.75;
}

.selfcheck-desc a {
  color: #c2410c;
  font-weight: 600;
}

.related-links {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #d8dde4;
}

.related-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #d8dde4;
}

.related-item a {
  color: #1f3a5f;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.related-item a:hover,
.related-item a:focus {
  color: #c2410c;
  text-decoration: underline;
}

.related-note {
  color: #5b6472;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.error-block {
  margin-bottom: 44px;
  padding-bottom: 28px;
  border-bottom: 1px solid #d8dde4;
}

.error-code {
  margin: 0 0 12px;
  color: #c2410c;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.error-block h1 {
  margin: 0 0 14px;
  font-size: 30px;
  color: #1f3a5f;
}

.error-lead {
  margin: 0;
  max-width: 62ch;
  color: #5b6472;
  font-size: 16px;
}

.error-help h2 {
  margin: 0 0 16px;
  font-size: 22px;
  color: #1f3a5f;
}

.error-list {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  border-top: 1px solid #d8dde4;
}

.error-list li {
  padding: 14px 0;
  border-bottom: 1px solid #d8dde4;
}

.error-list a {
  color: #1f3a5f;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.error-list a:hover,
.error-list a:focus {
  color: #c2410c;
  text-decoration: underline;
}

.error-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid #c2410c;
  border-radius: 6px;
  background-color: #c2410c;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.error-action:hover,
.error-action:focus {
  background-color: #9a3309;
  border-color: #9a3309;
  color: #ffffff;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   responsive · 断点适配
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  .column-index-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .scenario-groups,
  .group-grid,
  .class-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout-shell,
  .sidebar-left .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-guides .guide-toc {
    position: static;
  }
}

@media (max-width: 960px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .dual-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .scene-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .channel-list,
  .selfcheck-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 20px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    flex: 1 0 100%;
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 8px 0 4px;
    border-top: 1px solid #d8dde4;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 4px;
    min-height: 44px;
    border-bottom: 1px solid #d8dde4;
  }

  .nav-list a.is-current {
    border-bottom-color: #c2410c;
  }

  .inner-main,
  .home-main,
  .error-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .fact-bar-text,
  .footer-copy {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-title,
  .hero-title {
    font-size: 28px;
  }

  .section-title,
  .section-head h2,
  .error-help h2 {
    font-size: 21px;
  }
}

@media (max-width: 640px) {
  body.site-body {
    font-size: 16px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-code-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scenario-groups,
  .group-grid,
  .class-list,
  .column-index-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px 20px 24px;
  }

  .step-item,
  .process-step {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 6px 14px;
  }

  .step-item .step-no,
  .process-step .step-no {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }

  .info-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .mapping-head,
  .mapping-row,
  .crossref-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .mapping-head span:last-child,
  .crossref-head span:last-child {
    display: none;
  }

  .path-steps > li {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .path-steps .step-no,
  .path-steps .path-num {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .tool-table {
    min-width: 620px;
  }

  .pitfall-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 400px) {
  .header-inner,
  .inner-main,
  .home-main,
  .error-main,
  .fact-bar-text,
  .footer-copy {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-code-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-item,
  .process-step {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-item .step-no,
  .process-step .step-no {
    grid-row: auto;
    margin-bottom: 6px;
  }

  .step-item .step-name,
  .step-item .step-action,
  .step-item .step-expect,
  .process-step .step-name,
  .process-step .step-desc {
    grid-column: 1;
  }
}

/* 滚动进入视口的轻微淡入，仅作增强，不影响初始可见性 */
@media (prefers-reduced-motion: no-preference) {
  .section,
  .hero-index {
    animation: section-fade 0.4s ease-out both;
  }
}

@keyframes section-fade {
  from {
    transform: translateY(8px);
    opacity: 0.85;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}
