/* ==========================================================================
   黑料社 · realtyyn.com 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #f3f4f1;
  color: #161a1d;
  font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", "Noto Sans Mono CJK SC", monospace;
  font-weight: 600;
  color: #161a1d;
  letter-spacing: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: #2e7d5b;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid #2e7d5b;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: #0f1418;
  color: #f3f4f1;
  border-radius: 6px;
  font-size: 14px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   layout
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-layout {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 56px;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr) 248px;
  column-gap: 24px;
  align-items: start;
}

/* 首页与部分内页：侧栏在左 */
.page-layout.sidebar-left {
  grid-template-columns: 208px minmax(0, 1fr) 248px;
}

/* 主内容在前、aside 在后的内页 */
.page-layout:not(.sidebar-left) {
  grid-template-columns: minmax(0, 1fr) 248px;
}

.page-layout:not(.sidebar-left) .inner-main {
  grid-column: 1;
  grid-row: 1;
}

.page-layout:not(.sidebar-left) .related {
  grid-column: 2;
  grid-row: 1;
}

/* 首页主列略宽 */
.home-main {
  min-width: 0;
  max-width: 760px;
}

.inner-main {
  min-width: 0;
  max-width: 700px;
}

.side-index {
  min-width: 0;
  position: sticky;
  top: 92px;
}

.side-notes,
.related {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   components · header
   -------------------------------------------------------------------------- */

.site-header {
  background-color: #f3f4f1;
  border-bottom: 1px solid #d6d8d2;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 18px;
  font-weight: 600;
  color: #161a1d;
  white-space: nowrap;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
  color: #2e7d5b;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #2e7d5b;
  flex: 0 0 auto;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: #3c4247;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #161a1d;
  background-color: #e8e9e4;
  text-decoration: none;
}

.nav-link.is-current {
  color: #2e7d5b;
  background-color: #e4ede7;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #d6d8d2;
  border-radius: 6px;
  background-color: #fbfbf9;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #161a1d;
  border-radius: 1px;
}

.mobile-drawer {
  border-top: 1px solid #d6d8d2;
  background-color: #fbfbf9;
  padding: 12px 24px 20px;
}

.mobile-drawer[hidden] {
  display: none;
}

.drawer-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.drawer-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #161a1d;
  font-size: 15px;
}

.drawer-list a:hover,
.drawer-list a:focus-visible {
  background-color: #e8e9e4;
  text-decoration: none;
}

.drawer-list a.is-current {
  color: #2e7d5b;
  font-weight: 600;
  background-color: #e4ede7;
}

/* --------------------------------------------------------------------------
   components · side index
   -------------------------------------------------------------------------- */

.side-index {
  border-right: 1px solid #d6d8d2;
  padding-right: 20px;
}

.side-nav {
  display: block;
}

.side-group {
  padding: 10px 0;
  border-bottom: 1px solid #e2e4de;
}

.side-group:last-child {
  border-bottom: 0;
}

.side-group-title,
.side-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 36px;
  padding: 4px 4px;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  color: #5b6267;
  text-align: left;
  border-radius: 4px;
}

.side-group-title::after,
.side-group-toggle::after {
  content: "+";
  font-size: 14px;
  color: #5b6267;
  line-height: 1;
}

.side-group-title[aria-expanded="true"]::after,
.side-group-toggle[aria-expanded="true"]::after {
  content: "−";
}

.side-group-title:hover,
.side-group-toggle:hover {
  color: #161a1d;
}

.side-list,
.side-group-list {
  display: grid;
  gap: 2px;
  margin-top: 4px;
}

.side-list[hidden],
.side-group-list[hidden] {
  display: none;
}

.side-list li,
.side-group-list li {
  min-width: 0;
}

.side-link,
.side-group-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  color: #3c4247;
  line-height: 1.5;
}

.side-link:hover,
.side-link:focus-visible,
.side-group-list a:hover,
.side-group-list a:focus-visible {
  color: #161a1d;
  background-color: #e8e9e4;
  text-decoration: none;
}

.side-link.is-current,
.side-group-list a.is-current {
  color: #2e7d5b;
  border-left-color: #2e7d5b;
  background-color: #e9f0eb;
  font-weight: 600;
}

.side-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #2e7d5b;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   components · shared content atoms
   -------------------------------------------------------------------------- */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #5b6267;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: #2e7d5b;
}

.breadcrumb-sep {
  color: #9aa0a4;
}

.breadcrumb-current {
  color: #5b6267;
}

.page-header {
  margin-bottom: 16px;
}

.page-title {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 600;
  color: #161a1d;
}

.page-head {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #d6d8d2;
}

.page-path {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 12px;
  color: #5b6267;
  margin-bottom: 8px;
}

.page-lead {
  font-size: 16px;
  line-height: 1.8;
  color: #3c4247;
  max-width: 62ch;
}

.page-eyebrow {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 12px;
  color: #2e7d5b;
  margin-bottom: 10px;
}

.page-summary {
  font-size: 16px;
  line-height: 1.8;
  color: #3c4247;
  max-width: 62ch;
}

.page-hero {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #d6d8d2;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.page-meta li {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 12px;
  color: #5b6267;
  padding: 3px 10px;
  border: 1px solid #d6d8d2;
  border-radius: 4px;
  background-color: #fbfbf9;
}

/* 文本链接 */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #2e7d5b;
  min-height: 32px;
}

.text-link::after {
  content: "→";
  font-size: 13px;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid #d6d8d2;
  border-radius: 4px;
  background-color: #fbfbf9;
  font-size: 12px;
  color: #5b6267;
  line-height: 1.6;
  min-height: 26px;
}

a.tag {
  color: #2e7d5b;
  border-color: #c3d6ca;
  background-color: #eef4f0;
}

a.tag:hover,
a.tag:focus-visible {
  background-color: #e4ede7;
  text-decoration: none;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 图片与图注 */
.media-figure,
.page-figure,
.module-figure,
.content-figure,
.page-media {
  margin: 0;
  border: 1px solid #d6d8d2;
  border-radius: 8px;
  overflow: hidden;
  background-color: #e8e9e4;
}

.media-figure img,
.page-figure img,
.module-figure img,
.content-figure img,
.page-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: #e2e4de;
}

.media-figure figcaption,
.page-figure figcaption,
.module-figure figcaption,
.content-figure figcaption,
.media-caption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: #5b6267;
  background-color: #fbfbf9;
  border-top: 1px solid #d6d8d2;
}

/* 终端片段 */
.terminal,
.terminal-block {
  background-color: #0f1418;
  border-radius: 8px;
  overflow: hidden;
  color: #d8dedb;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid #223038;
  background-color: #131a1f;
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #2e7d5b;
  flex: 0 0 auto;
}

.terminal-title,
.terminal-name {
  font-size: 12px;
  color: #8b979c;
}

.terminal-lines {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
}

.terminal-lines li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  min-width: 0;
  color: #c6cec9;
  word-break: break-word;
}

.terminal-key,
.term-key {
  color: #2e7d5b;
  flex: 0 0 auto;
}

.term-num {
  color: #a7652b;
  flex: 0 0 auto;
}

.term-ok {
  color: #2e7d5b;
  flex: 0 0 auto;
}

.terminal-body {
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.terminal-line {
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: #c6cec9;
  word-break: break-word;
}

.terminal-mini .terminal-lines {
  padding: 10px 14px;
}

.terminal-status {
  color: #2e7d5b;
}

.terminal-val {
  color: #c6cec9;
}

.terminal-list {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  color: #c6cec9;
}

/* 折叠问答 */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid #d6d8d2;
  border-radius: 6px;
  background-color: #fbfbf9;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  min-height: 48px;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: #161a1d;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 16px;
  color: #2e7d5b;
  line-height: 1.4;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-question:hover {
  background-color: #eef4f0;
}

.faq-answer {
  padding: 0 16px 16px;
  border-top: 1px solid #e2e4de;
  padding-top: 12px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.8;
  color: #3c4247;
}

/* 相关内容（主内容底部横排） */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #d6d8d2;
}

.related-links-label {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 12px;
  color: #5b6267;
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid #d6d8d2;
  border-radius: 4px;
  background-color: #fbfbf9;
  font-size: 13px;
  color: #2e7d5b;
}

.related-links-item:hover,
.related-links-item:focus-visible {
  background-color: #eef4f0;
  text-decoration: none;
}

/* 右侧相关内容栏 */
.related {
  position: sticky;
  top: 92px;
}

.related-title {
  font-size: 13px;
  font-weight: 600;
  color: #5b6267;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d6d8d2;
}

.related-block {
  margin-bottom: 24px;
}

.related-list {
  display: grid;
  gap: 8px;
}

.related-list li {
  min-width: 0;
}

.related-list a {
  display: block;
  font-size: 14px;
  color: #2e7d5b;
  line-height: 1.6;
}

.related-list a:hover,
.related-list a:focus-visible {
  text-decoration: underline;
}

.related-note {
  display: block;
  font-size: 12px;
  color: #5b6267;
  line-height: 1.6;
  margin-top: 2px;
}

/* 返回顶部 */
.back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #3a4247;
  border-radius: 6px;
  color: #d8dedb;
  font-size: 16px;
  line-height: 1;
  background-color: #1a2126;
}

.back-top::before {
  content: "↑";
}

.back-top:hover,
.back-top:focus-visible {
  background-color: #2e7d5b;
  border-color: #2e7d5b;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   components · footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: auto;
  background-color: #0f1418;
  color: #b9c1bd;
  font-size: 14px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) auto;
  gap: 32px 28px;
  align-items: start;
}

.footer-brand {
  min-width: 0;
}

.footer-brand-name {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 17px;
  font-weight: 600;
  color: #f3f4f1;
  margin-bottom: 10px;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.8;
  color: #97a09b;
  max-width: 34ch;
}

.footer-col {
  min-width: 0;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  color: #f3f4f1;
  margin-bottom: 10px;
}

.footer-list {
  display: grid;
  gap: 6px;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  font-size: 13px;
  color: #b9c1bd;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: #6fc39a;
  text-decoration: none;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px 28px;
  border-top: 1px solid #232c31;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-note,
.footer-copy {
  font-size: 12px;
  line-height: 1.7;
  color: #7d8783;
  max-width: 68ch;
}

/* --------------------------------------------------------------------------
   pages · index
   -------------------------------------------------------------------------- */

.hero {
  padding: 8px 0 32px;
  border-bottom: 1px solid #d6d8d2;
}

.hero-eyebrow {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 12px;
  color: #2e7d5b;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 32px;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.8;
  color: #3c4247;
  max-width: 60ch;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.btn-primary {
  background-color: #2e7d5b;
  color: #ffffff;
  border: 1px solid #2e7d5b;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #256349;
  border-color: #256349;
  text-decoration: none;
}

.btn-ghost {
  background-color: transparent;
  color: #161a1d;
  border: 1px solid #b9bdb5;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background-color: #e8e9e4;
  border-color: #9aa0a4;
  text-decoration: none;
}

.hero-capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-capabilities li {
  padding: 10px 12px;
  border: 1px solid #d6d8d2;
  border-left: 2px solid #2e7d5b;
  border-radius: 0 6px 6px 0;
  background-color: #fbfbf9;
  font-size: 13px;
  line-height: 1.7;
  color: #3c4247;
  min-width: 0;
}

/* 首页通用 section */
.section {
  padding: 36px 0;
  border-bottom: 1px solid #d6d8d2;
}

.section:last-of-type {
  border-bottom: 0;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 15px;
  line-height: 1.8;
  color: #5b6267;
  max-width: 62ch;
}

/* 服务方向矩阵 */
.matrix-figure {
  margin-bottom: 20px;
}

.matrix-list {
  display: grid;
  gap: 0;
  border-top: 1px solid #d6d8d2;
}

.matrix-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #e2e4de;
  align-items: start;
}

.matrix-left {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  min-width: 0;
}

.matrix-num {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  color: #2e7d5b;
  line-height: 1.7;
  grid-row: 1 / span 2;
}

.matrix-left h3 {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.matrix-left p {
  grid-column: 2;
  font-size: 14px;
  line-height: 1.8;
  color: #5b6267;
}

.matrix-right {
  min-width: 0;
}

.matrix-right .tag {
  margin-bottom: 6px;
}

.matrix-right p {
  font-size: 14px;
  line-height: 1.8;
  color: #3c4247;
}

/* 团队分工摘要 */
.team-brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.team-roles {
  min-width: 0;
}

.role-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.role-item {
  padding: 12px 14px;
  border: 1px solid #d6d8d2;
  border-radius: 6px;
  background-color: #fbfbf9;
  font-size: 14px;
  line-height: 1.7;
  color: #3c4247;
  min-width: 0;
}

.team-media {
  min-width: 0;
}

.team-note {
  font-size: 14px;
  line-height: 1.8;
  color: #3c4247;
  margin-top: 12px;
}

/* 工作方式与方法记录 */
.method-brief .terminal {
  margin-bottom: 20px;
}

.check-list {
  display: grid;
  gap: 0;
  border-top: 1px solid #d6d8d2;
  margin-bottom: 16px;
}

.check-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #e2e4de;
  min-width: 0;
}

.check-num {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  color: #2e7d5b;
  line-height: 1.8;
}

.check-body {
  min-width: 0;
}

.check-body h3 {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.check-body p {
  font-size: 14px;
  line-height: 1.8;
  color: #5b6267;
}

/* 业务场景摘要 */
.scenario-list {
  display: grid;
  gap: 0;
  border-top: 1px solid #d6d8d2;
  margin-bottom: 16px;
}

.scenario-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #e2e4de;
  min-width: 0;
}

.scenario-num {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  color: #2e7d5b;
  line-height: 1.8;
}

.scenario-body {
  min-width: 0;
}

.scenario-body h3 {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.scenario-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}

.scenario-col {
  min-width: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #5b6267;
  padding-left: 12px;
  border-left: 2px solid #e2e4de;
}

/* 合作流程预览 */
.step-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.step {
  min-width: 0;
  padding: 14px 12px;
  border: 1px solid #d6d8d2;
  border-top: 2px solid #2e7d5b;
  border-radius: 0 0 6px 6px;
  background-color: #fbfbf9;
}

.step-num {
  display: inline-block;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  color: #2e7d5b;
  margin-bottom: 6px;
}

.step h3 {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.step p {
  font-size: 13px;
  line-height: 1.7;
  color: #5b6267;
}

.prep-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.prep-label {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 12px;
  color: #5b6267;
}

/* 首页常见问题摘要 */
.faq-brief .faq-list {
  margin-bottom: 16px;
}

/* 首页右栏方法记录 */
.side-notes .terminal {
  margin-bottom: 20px;
}

.notes-block {
  border: 1px solid #d6d8d2;
  border-radius: 6px;
  background-color: #fbfbf9;
  padding: 14px;
}

.notes-title {
  font-size: 12px;
  font-weight: 600;
  color: #5b6267;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e4de;
}

.notes-list {
  display: grid;
  gap: 10px;
}

.note-item {
  font-size: 13px;
  line-height: 1.7;
  color: #3c4247;
  padding-left: 10px;
  border-left: 2px solid #d6d8d2;
  min-width: 0;
}

.note-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  color: #2e7d5b;
}

/* --------------------------------------------------------------------------
   pages · inner shared modules
   -------------------------------------------------------------------------- */

.module {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e2e4de;
}

.module:last-of-type {
  border-bottom: 0;
}

.module h2 {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.module-intro {
  font-size: 15px;
  line-height: 1.8;
  color: #5b6267;
  margin-bottom: 18px;
  max-width: 62ch;
}

.module-foot {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.section-intro {
  font-size: 15px;
  line-height: 1.8;
  color: #5b6267;
  margin-bottom: 18px;
  max-width: 62ch;
}

.section-lead {
  font-size: 15px;
  line-height: 1.8;
  color: #5b6267;
  margin-bottom: 18px;
  max-width: 62ch;
}

.section-foot {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.section-footnote {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #5b6267;
}

.section-footnote a {
  color: #2e7d5b;
}

/* --------------------------------------------------------------------------
   pages · team
   -------------------------------------------------------------------------- */

.role-list {
  display: grid;
  gap: 0;
  border-top: 1px solid #d6d8d2;
}

.role-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 16px 20px;
  padding: 16px 0;
  border-bottom: 1px solid #e2e4de;
  align-items: start;
}

.role-name {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  align-items: baseline;
  min-width: 0;
}

.role-index {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  color: #2e7d5b;
}

.role-name h3 {
  font-size: 16px;
  line-height: 1.5;
}

.role-input,
.role-output {
  min-width: 0;
}

.role-label {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 12px;
  color: #5b6267;
  margin-bottom: 2px;
}

.role-input p:last-child,
.role-output p:last-child {
  font-size: 14px;
  line-height: 1.8;
  color: #3c4247;
}

.module-figure {
  margin-bottom: 32px;
}

.handoff-list {
  display: grid;
  gap: 12px;
}

.handoff-item {
  padding: 14px 16px;
  border: 1px solid #d6d8d2;
  border-left: 2px solid #2e7d5b;
  border-radius: 0 6px 6px 0;
  background-color: #fbfbf9;
  min-width: 0;
}

.handoff-item h3 {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.handoff-item p {
  font-size: 14px;
  line-height: 1.8;
  color: #5b6267;
}

.boundary-list {
  display: grid;
  gap: 0;
  border-top: 1px solid #d6d8d2;
}

.boundary-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #e2e4de;
  min-width: 0;
}

.boundary-index {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  color: #a7652b;
  line-height: 1.8;
}

.boundary-item h3 {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.boundary-item p {
  font-size: 14px;
  line-height: 1.8;
  color: #5b6267;
}

.module-join p {
  font-size: 15px;
  line-height: 1.8;
  color: #3c4247;
  margin-bottom: 12px;
  max-width: 62ch;
}

.module-link {
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   pages · method
   -------------------------------------------------------------------------- */

.page-figure {
  margin-bottom: 20px;
}

.method-stages,
.method-checks,
.method-coop,
.method-records {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e2e4de;
}

.method-records {
  border-bottom: 0;
}

.method-stages h2,
.method-checks h2,
.method-coop h2,
.method-records h2 {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.terminal-block {
  margin-bottom: 20px;
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stage-card {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #d6d8d2;
  border-radius: 6px;
  background-color: #fbfbf9;
}

.stage-card h3 {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.stage-num {
  display: inline-block;
  margin-right: 8px;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  color: #2e7d5b;
}

.stage-action,
.stage-output {
  font-size: 14px;
  line-height: 1.8;
  color: #3c4247;
}

.stage-output {
  margin-top: 6px;
}

.label {
  display: inline-block;
  margin-right: 6px;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 12px;
  color: #5b6267;
}

.check-list {
  display: grid;
  gap: 0;
  border-top: 1px solid #d6d8d2;
}

.check-row {
  padding: 14px 0;
  border-bottom: 1px solid #e2e4de;
  min-width: 0;
}

.check-row h3 {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.check-standard {
  font-size: 14px;
  line-height: 1.8;
  color: #3c4247;
}

.check-record {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.8;
  color: #5b6267;
}

.coop-list {
  display: grid;
  gap: 12px;
}

.coop-item {
  padding: 12px 14px;
  border: 1px solid #d6d8d2;
  border-left: 2px solid #2e7d5b;
  border-radius: 0 6px 6px 0;
  background-color: #fbfbf9;
  min-width: 0;
}

.coop-item h3 {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.coop-item p {
  font-size: 14px;
  line-height: 1.8;
  color: #5b6267;
}

.record-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.record-item {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #d6d8d2;
  border-radius: 6px;
  background-color: #fbfbf9;
}

.record-item h3 {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 6px;
}

.record-item p {
  font-size: 14px;
  line-height: 1.8;
  color: #5b6267;
}

/* --------------------------------------------------------------------------
   pages · roles
   -------------------------------------------------------------------------- */

.section.block-overview,
.section.block-roles,
.section.block-prepare,
.section.block-path {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e2e4de;
}

.section.block-path {
  border-bottom: 0;
}

.block-overview h2,
.block-roles h2,
.block-prepare h2,
.block-path h2 {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.block-overview .tag-list {
  margin-bottom: 18px;
}

.block-roles .role-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 16px 20px;
  padding: 16px 0;
  border-bottom: 1px solid #e2e4de;
  align-items: start;
}

.block-roles .role-row:first-of-type {
  border-top: 1px solid #d6d8d2;
}

.role-row-main {
  min-width: 0;
}

.role-row-main h3 {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.role-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #5b6267;
}

.role-row-side {
  min-width: 0;
}

.role-row-side .role-label {
  margin-bottom: 2px;
}

.role-row-side p:last-child {
  font-size: 14px;
  line-height: 1.8;
  color: #3c4247;
}

.prepare-group {
  margin-bottom: 16px;
}

.prepare-group:last-child {
  margin-bottom: 0;
}

.prepare-group-title {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 8px;
  color: #161a1d;
}

.prepare-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prepare-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid #d6d8d2;
  border-radius: 4px;
  background-color: #fbfbf9;
  font-size: 13px;
  line-height: 1.6;
  color: #3c4247;
  min-width: 0;
}

.prepare-tag {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 11px;
  color: #2e7d5b;
  border-right: 1px solid #e2e4de;
  padding-right: 8px;
}

.path-steps {
  display: grid;
  gap: 0;
  border-top: 1px solid #d6d8d2;
}

.path-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #e2e4de;
  min-width: 0;
}

.path-num {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  color: #2e7d5b;
  line-height: 1.8;
}

.path-body {
  min-width: 0;
}

.path-body h3 {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.path-body p {
  font-size: 14px;
  line-height: 1.8;
  color: #5b6267;
}

/* --------------------------------------------------------------------------
   pages · process
   -------------------------------------------------------------------------- */

.flow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.flow-step {
  min-width: 0;
  padding: 14px 12px;
  border: 1px solid #d6d8d2;
  border-top: 2px solid #2e7d5b;
  border-radius: 0 0 6px 6px;
  background-color: #fbfbf9;
}

.flow-num {
  display: inline-block;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  color: #2e7d5b;
  margin-bottom: 6px;
}

.flow-step-name {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.flow-step-goal {
  font-size: 13px;
  line-height: 1.7;
  color: #5b6267;
}

.stage-block {
  margin-bottom: 20px;
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stage-cell {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #d6d8d2;
  border-radius: 6px;
  background-color: #fbfbf9;
}

.stage-cell-title {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 12px;
  color: #5b6267;
  margin-bottom: 4px;
}

.stage-name {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  color: #2e7d5b;
}

.prep-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.prep-item {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #d6d8d2;
  border-radius: 6px;
  background-color: #fbfbf9;
  font-size: 14px;
  line-height: 1.7;
  color: #3c4247;
}

.split-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.split-col {
  min-width: 0;
  padding: 16px;
  border: 1px solid #d6d8d2;
  border-radius: 6px;
  background-color: #fbfbf9;
}

.split-col-title {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e4de;
}

.split-list {
  display: grid;
  gap: 8px;
}

.split-list li {
  font-size: 14px;
  line-height: 1.8;
  color: #3c4247;
  padding-left: 12px;
  border-left: 2px solid #e2e4de;
  min-width: 0;
}

.deliver-list {
  display: grid;
  gap: 12px;
}

.deliver-item {
  padding: 12px 14px;
  border: 1px solid #d6d8d2;
  border-left: 2px solid #2e7d5b;
  border-radius: 0 6px 6px 0;
  background-color: #fbfbf9;
  min-width: 0;
}

.deliver-item-title {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  color: #161a1d;
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   pages · scenarios
   -------------------------------------------------------------------------- */

.scene-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.scene-item {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #d6d8d2;
  border-radius: 6px;
  background-color: #fbfbf9;
}

.scene-name {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e4de;
}

.scene-cell {
  min-width: 0;
  margin-top: 8px;
}

.cell-label {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 12px;
  color: #5b6267;
  margin-bottom: 2px;
}

.scene-cell p:last-child {
  font-size: 14px;
  line-height: 1.8;
  color: #3c4247;
}

.content-figure {
  margin-bottom: 32px;
}

#boundaries .boundary-list {
  display: grid;
  gap: 0;
  border-top: 1px solid #d6d8d2;
}

#boundaries .boundary-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #e2e4de;
  min-width: 0;
}

#boundaries .boundary-item::before {
  content: "!";
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  color: #a7652b;
  line-height: 1.8;
}

.boundary-name {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 4px;
}

#boundaries .boundary-item p {
  font-size: 14px;
  line-height: 1.8;
  color: #5b6267;
}

.advice-list {
  display: grid;
  gap: 12px;
}

.advice-item {
  padding: 12px 14px;
  border: 1px solid #d6d8d2;
  border-left: 2px solid #2e7d5b;
  border-radius: 0 6px 6px 0;
  background-color: #fbfbf9;
  min-width: 0;
}

.advice-name {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.advice-item p {
  font-size: 14px;
  line-height: 1.8;
  color: #5b6267;
}

/* --------------------------------------------------------------------------
   pages · faq
   -------------------------------------------------------------------------- */

.faq-section {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e2e4de;
}

.faq-section:last-of-type {
  border-bottom: 0;
}

.section-title {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.page-media {
  margin-bottom: 32px;
}

.faq-next {
  padding: 20px 0 0;
}

.faq-next .section-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.next-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.next-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid #d6d8d2;
  border-radius: 4px;
  background-color: #fbfbf9;
  font-size: 14px;
  color: #2e7d5b;
}

.next-list a:hover,
.next-list a:focus-visible {
  background-color: #eef4f0;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.error-block {
  border: 1px solid #d6d8d2;
  border-radius: 8px;
  background-color: #fbfbf9;
  padding: 32px 28px;
}

.error-code {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  color: #a7652b;
  margin-bottom: 10px;
}

.error-block h1 {
  font-size: 28px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.error-text {
  font-size: 15px;
  line-height: 1.8;
  color: #5b6267;
  margin-bottom: 10px;
  max-width: 60ch;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid #d6d8d2;
  border-radius: 4px;
  background-color: #f3f4f1;
  font-size: 14px;
  color: #2e7d5b;
}

.error-links a:hover,
.error-links a:focus-visible {
  background-color: #eef4f0;
  text-decoration: none;
}

.error-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 6px;
  background-color: #2e7d5b;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.error-home:hover,
.error-home:focus-visible {
  background-color: #256349;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .page-layout,
  .page-layout.sidebar-left,
  .page-layout:not(.sidebar-left) {
    grid-template-columns: minmax(0, 1fr) 232px;
    column-gap: 24px;
  }

  .page-layout.sidebar-left .side-index {
    display: none;
  }

  .page-layout.sidebar-left .site-main,
  .page-layout.sidebar-left .home-main,
  .page-layout.sidebar-left .inner-main {
    grid-column: 1;
    grid-row: 1;
  }

  .page-layout.sidebar-left .side-notes,
  .page-layout.sidebar-left .related {
    grid-column: 2;
    grid-row: 1;
  }

  .page-layout:not(.sidebar-left) .inner-main {
    grid-column: 1;
    grid-row: 1;
  }

  .page-layout:not(.sidebar-left) .related {
    grid-column: 2;
    grid-row: 1;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  }

  .back-top {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .flow-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .record-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    height: 64px;
    padding: 0 16px;
    gap: 12px;
  }

  .brand {
    font-size: 16px;
  }

  .site-nav {
    flex: 0 0 auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    display: none;
  }

  .nav-list.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 10px 16px 16px;
    background-color: #fbfbf9;
    border-bottom: 1px solid #d6d8d2;
    box-shadow: 0 8px 18px rgba(15, 20, 24, 0.08);
  }

  .nav-list.is-open .nav-link {
    min-height: 44px;
    justify-content: flex-start;
    font-size: 15px;
  }

  .mobile-drawer {
    padding: 10px 16px 16px;
  }

  .page-layout,
  .page-layout.sidebar-left,
  .page-layout:not(.sidebar-left) {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px 16px 40px;
    row-gap: 32px;
  }

  .page-layout.sidebar-left .site-main,
  .page-layout.sidebar-left .home-main,
  .page-layout.sidebar-left .inner-main,
  .page-layout:not(.sidebar-left) .inner-main {
    grid-column: 1;
    grid-row: 1;
    max-width: 100%;
  }

  .page-layout.sidebar-left .side-notes,
  .page-layout.sidebar-left .related,
  .page-layout:not(.sidebar-left) .related {
    grid-column: 1;
    grid-row: 2;
    position: static;
    max-width: 100%;
  }

  .side-index {
    display: none;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero-capabilities {
    grid-template-columns: minmax(0, 1fr);
  }

  .matrix-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .team-brief-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .scenario-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-title {
    font-size: 24px;
    line-height: 1.35;
  }

  .role-row,
  .block-roles .role-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .stage-grid,
  .scene-grid,
  .split-columns,
  .prep-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .record-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
    padding: 32px 16px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    padding: 14px 16px 24px;
    flex-direction: column;
  }

  .error-main {
    padding: 40px 16px 56px;
  }

  .error-block {
    padding: 24px 18px;
  }

  .error-block h1 {
    font-size: 22px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 23px;
  }

  .page-title {
    font-size: 21px;
  }

  .step-bar,
  .flow-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
