/* ==========================================================================
   base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #1a1a1a;
  background-color: #f4f4f4;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #1a7f3a;
  text-decoration: none;
}

a:hover {
  color: #145c2a;
  text-decoration: underline;
}

ul,
ol {
  list-style-position: inside;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
}

h1 {
  font-size: 1.875rem;
}

h2 {
  font-size: 1.375rem;
}

h3 {
  font-size: 1.0625rem;
}

p {
  margin-bottom: 0.75rem;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 0.8125rem;
  color: #4a4a4a;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   layout
   ========================================================================== */

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #d4d4d4;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}

.brand-link:hover {
  text-decoration: none;
}

.brand-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
}

.brand-tag {
  font-size: 0.6875rem;
  color: #4a4a4a;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: block;
  padding: 0.375rem 0;
  font-size: 0.9375rem;
  color: #1a1a1a;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover {
  color: #1a7f3a;
  text-decoration: none;
  border-bottom-color: #1a7f3a;
}

.nav-list a.is-current {
  font-weight: 700;
  color: #1a1a1a;
  border-bottom-color: #1a7f3a;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #1a1a1a;
  cursor: pointer;
  min-height: 44px;
}

.header-cta {
  display: inline-block;
  background-color: #1a7f3a;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid #1a7f3a;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-cta:hover {
  background-color: #145c2a;
  border-color: #145c2a;
  color: #ffffff;
  text-decoration: none;
}

.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #d4d4d4;
}

.footer-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.5fr;
  gap: 2rem;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.375rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: #4a4a4a;
}

.footer-links a:hover {
  color: #1a7f3a;
}

.footer-brand {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-desc {
  font-size: 0.8125rem;
  color: #4a4a4a;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid #d4d4d4;
  padding: 1rem 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: #4a4a4a;
  margin: 0;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: #4a4a4a;
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: #1a7f3a;
}

.breadcrumb-sep {
  color: #4a4a4a;
}

.breadcrumb-current {
  color: #1a1a1a;
  font-weight: 600;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 1.875rem;
  margin-bottom: 0.75rem;
}

.page-description {
  font-size: 1rem;
  color: #4a4a4a;
  max-width: 60rem;
}

/* 三段式布局：左侧版本栏 + 主题目录 + 主内容 */
.layout-shell {
  display: grid;
  grid-template-columns: 200px 220px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.layout-shell.sidebar-left > .version-sidebar,
.layout-shell.sidebar-left > .toc-sidebar,
.layout-shell.sidebar-left > .sidebar-rail,
.layout-shell.sidebar-left > .toc-rail,
.layout-shell.sidebar-left > .doc-sidebar,
.layout-shell.sidebar-left > .sidebar,
.layout-shell.sidebar-left > .sidebar-version,
.layout-shell.sidebar-left > .topic-toc,
.layout-shell.sidebar-left > .toc-sidebar.faq-toc {
  grid-column: 1;
}

.layout-shell.sidebar-left > .toc-sidebar,
.layout-shell.sidebar-left > .toc-rail,
.layout-shell.sidebar-left > .topic-toc,
.layout-shell.sidebar-left > .toc {
  grid-column: 2;
}

.layout-shell.sidebar-left > .main-content,
.layout-shell.sidebar-left > .inner-main,
.layout-shell.sidebar-left > .content-area {
  grid-column: 3;
}

/* 版本侧栏 */
.version-sidebar,
.sidebar-rail,
.doc-sidebar,
.sidebar,
.sidebar-version,
.version-block {
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  padding: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.version-label,
.rail-label,
.sidebar-label,
.version-label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4a4a4a;
  margin-bottom: 0.375rem;
}

.version-number,
.version-id,
.rail-value,
.sidebar-value,
.version-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.375rem;
}

.doc-meta {
  margin-top: 1rem;
  border-top: 1px solid #d4d4d4;
  padding-top: 0.75rem;
}

.doc-id,
.doc-date,
.rail-meta,
.sidebar-note,
.version-desc {
  display: block;
  font-size: 0.75rem;
  color: #4a4a4a;
  margin-bottom: 0.25rem;
}

/* 主题目录侧栏 */
.toc-sidebar,
.toc-rail,
.topic-toc,
.toc {
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  padding: 1rem;
  position: sticky;
  top: 84px;
}

.toc-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #d4d4d4;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list li {
  margin-bottom: 0.375rem;
}

.toc-list a {
  display: block;
  font-size: 0.8125rem;
  color: #4a4a4a;
  padding: 0.25rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.5rem;
}

.toc-list a:hover {
  color: #1a7f3a;
  border-left-color: #1a7f3a;
  text-decoration: none;
}

/* 首页版本栏与主题目录的特定结构 */
.home-main .version-sidebar {
  grid-column: 1;
}

.home-main .toc-sidebar {
  grid-column: 2;
}

.home-main .main-content {
  grid-column: 3;
  min-width: 0;
}

/* ==========================================================================
   components
   ========================================================================== */

/* 首页 hero 区 */
.hero-section {
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.hero-media {
  margin-bottom: 1.25rem;
}

.hero-media img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.hero-text h1 {
  font-size: 1.875rem;
  margin-bottom: 0.75rem;
}

.editor-note {
  font-size: 0.9375rem;
  color: #4a4a4a;
  border-left: 3px solid #1a7f3a;
  padding-left: 1rem;
  margin-bottom: 1.25rem;
}

.content-index {
  background-color: #f4f4f4;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  padding: 1rem 1.25rem;
}

.index-title {
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.index-list li {
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  color: #4a4a4a;
}

.index-list a {
  color: #1a7f3a;
}

/* 服务能力分组 */
.capability-section,
.scenario-spotlight,
.flow-section,
.faq-preview,
.trust-band,
.cooperation-cta {
  margin-bottom: 2.5rem;
}

.capability-section h2,
.scenario-spotlight h2,
.flow-section h2,
.faq-preview h2 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.section-intro {
  font-size: 0.9375rem;
  color: #4a4a4a;
  margin-bottom: 1.25rem;
  max-width: 52rem;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.capability-card {
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  padding: 1.25rem;
  transition: border-color 0.2s ease;
}

.capability-card:hover {
  border-color: #1a7f3a;
}

.capability-card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.capability-card p {
  font-size: 0.875rem;
  color: #4a4a4a;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.capability-figure,
.scenario-figure,
.flow-figure,
.section-figure,
.team-media,
.content-figure {
  margin: 1.25rem 0;
}

.capability-figure img,
.scenario-figure img,
.flow-figure img,
.section-figure img,
.team-media img,
.content-figure img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

/* 专题策划摘要 */
.scenario-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.scenario-item {
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  padding: 1.25rem;
  transition: border-color 0.2s ease;
}

.scenario-item:hover {
  border-color: #1a7f3a;
}

.scenario-id {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: #1a7f3a;
  margin-bottom: 0.5rem;
}

.scenario-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.scenario-item p {
  font-size: 0.875rem;
  color: #4a4a4a;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.more-link {
  text-align: right;
  font-size: 0.875rem;
}

/* 合作流程终端块 */
.terminal-block {
  background-color: #1e1e1e;
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  color: #e6e6e6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.terminal-line {
  margin-bottom: 0.75rem;
  color: #e6e6e6;
}

.prompt {
  color: #1a7f3a;
  margin-right: 0.375rem;
}

.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.flow-steps li {
  padding: 0.75rem;
  border: 1px solid rgba(230, 230, 230, 0.2);
  border-radius: 4px;
  font-size: 0.8125rem;
}

.step-num {
  display: block;
  color: #1a7f3a;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

/* FAQ 折叠 */
.faq-accordion {
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid #d4d4d4;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: #1a7f3a;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  border-bottom: 1px solid #d4d4d4;
}

.faq-item p {
  padding: 0.5rem 1.25rem 1rem;
  font-size: 0.875rem;
  color: #4a4a4a;
  margin: 0;
}

.faq-item a {
  color: #1a7f3a;
}

/* 信任信息带 */
.trust-band {
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  padding: 1.5rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.trust-item h3 {
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.trust-item p {
  font-size: 0.875rem;
  color: #4a4a4a;
  margin: 0;
  line-height: 1.6;
}

/* 合作入口 */
.cooperation-cta {
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  padding: 1.5rem;
  text-align: left;
}

.cooperation-cta h2 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.cooperation-cta p {
  font-size: 0.9375rem;
  color: #4a4a4a;
  margin-bottom: 1rem;
}

.cta-button {
  display: inline-block;
  background-color: #1a7f3a;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 4px;
  border: 1px solid #1a7f3a;
}

.cta-button:hover {
  background-color: #145c2a;
  border-color: #145c2a;
  color: #ffffff;
  text-decoration: none;
}

/* 相关内容 */
.related-links {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #d4d4d4;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
}

.related-links-label {
  font-weight: 600;
  color: #1a1a1a;
}

.related-links-item {
  color: #1a7f3a;
}

/* 服务目录页 */
.task-group-section,
.deliverable-section,
.entry-strip {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.task-item {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 1rem;
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  padding: 1.25rem;
  align-items: start;
  transition: border-color 0.2s ease;
}

.task-item:hover {
  border-color: #1a7f3a;
}

.task-index {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a7f3a;
  line-height: 1;
  padding-top: 0.25rem;
}

.task-content h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.task-content p {
  font-size: 0.875rem;
  color: #4a4a4a;
  margin-bottom: 0.375rem;
  line-height: 1.6;
}

.task-content p:last-child {
  margin-bottom: 0;
}

.task-link {
  font-size: 0.875rem;
  white-space: nowrap;
}

.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.deliverable-card {
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  padding: 1.25rem;
  transition: border-color 0.2s ease;
}

.deliverable-card:hover {
  border-color: #1a7f3a;
}

.deliverable-name {
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.deliverable-card p {
  font-size: 0.875rem;
  color: #4a4a4a;
  margin: 0;
  line-height: 1.6;
}

.entry-strip {
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  padding: 1.5rem;
}

.entry-strip p {
  font-size: 0.9375rem;
  color: #4a4a4a;
  margin-bottom: 1rem;
}

.entry-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.entry-links a {
  display: inline-block;
  background-color: #1a7f3a;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid #1a7f3a;
}

.entry-links a:hover {
  background-color: #145c2a;
  border-color: #145c2a;
  color: #ffffff;
  text-decoration: none;
}

/* 专题策划页 */
.scenario-list-section,
.featured-details-section,
.related-services-section {
  margin-bottom: 2.5rem;
}

.section-desc {
  font-size: 0.9375rem;
  color: #4a4a4a;
  margin-bottom: 1.25rem;
}

.scenario-list-section .scenario-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scenario-list-section .scenario-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: start;
}

.scenario-index {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a7f3a;
  line-height: 1;
  padding-top: 0.25rem;
}

.scenario-content h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.scenario-field {
  font-size: 0.875rem;
  color: #4a4a4a;
  margin-bottom: 0.375rem;
  line-height: 1.6;
}

.featured-item {
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.featured-item:last-child {
  margin-bottom: 0;
}

.featured-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.featured-item p {
  font-size: 0.875rem;
  color: #4a4a4a;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* 团队栏目页 */
.team-roles-section,
.principles-section,
.cooperation-entry {
  margin-bottom: 2.5rem;
}

.role-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.role-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  padding: 1.25rem;
  align-items: start;
  transition: border-color 0.2s ease;
}

.role-item:hover {
  border-color: #1a7f3a;
}

.role-index {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a7f3a;
  line-height: 1;
  padding-top: 0.25rem;
}

.role-name {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.role-desc,
.role-method {
  font-size: 0.875rem;
  color: #4a4a4a;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.principle-item {
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  padding: 1.25rem;
  transition: border-color 0.2s ease;
}

.principle-item:hover {
  border-color: #1a7f3a;
}

.principle-title {
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.principle-desc {
  font-size: 0.875rem;
  color: #4a4a4a;
  margin: 0;
  line-height: 1.6;
}

.cooperation-entry {
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  padding: 1.5rem;
}

.cooperation-desc {
  font-size: 0.9375rem;
  color: #4a4a4a;
  margin-bottom: 1rem;
}

/* 合作指南页 */
.content-section {
  margin-bottom: 2.5rem;
}

.prep-list,
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.prep-item,
.process-item {
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  padding: 1.25rem;
  transition: border-color 0.2s ease;
}

.prep-item:hover,
.process-item:hover {
  border-color: #1a7f3a;
}

.prep-item-title,
.process-item-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.prep-item-desc,
.process-item-desc {
  font-size: 0.875rem;
  color: #4a4a4a;
  margin: 0;
  line-height: 1.6;
}

.terminal-note {
  background-color: #1e1e1e;
  border-radius: 6px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  color: #e6e6e6;
  line-height: 1.6;
}

.terminal-note .terminal-line {
  margin-bottom: 0.5rem;
}

.terminal-note .terminal-line:last-child {
  margin-bottom: 0;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist-item {
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #4a4a4a;
  line-height: 1.6;
}

.checklist-item strong {
  color: #1a1a1a;
}

.section-links {
  font-size: 0.875rem;
}

.link-sep {
  margin: 0 0.5rem;
  color: #d4d4d4;
}

/* FAQ 页 */
.faq-group {
  margin-bottom: 2.5rem;
}

.mobile-toc {
  display: none;
}

.faq-group .faq-item {
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-group .faq-item summary {
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.faq-group .faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-group .faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: #1a7f3a;
  flex-shrink: 0;
}

.faq-group .faq-item[open] summary::after {
  content: "−";
}

.faq-group .faq-item[open] summary {
  border-bottom: 1px solid #d4d4d4;
}

.faq-answer {
  padding: 0.75rem 1.25rem 1rem;
  font-size: 0.875rem;
  color: #4a4a4a;
  line-height: 1.6;
}

.faq-answer p {
  margin-bottom: 0.5rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer a {
  color: #1a7f3a;
}

.correction-section {
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.correction-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.correction-block h3 {
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.correction-block p {
  font-size: 0.875rem;
  color: #4a4a4a;
  margin: 0;
  line-height: 1.6;
}

.guide-link-bar {
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.guide-link-text {
  font-size: 0.9375rem;
  color: #4a4a4a;
  margin: 0;
}

.guide-link {
  display: inline-block;
  background-color: #1a7f3a;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid #1a7f3a;
}

.guide-link:hover {
  background-color: #145c2a;
  border-color: #145c2a;
  color: #ffffff;
  text-decoration: none;
}

/* ==========================================================================
   pages
   ========================================================================== */

/* 首页特定 */
.home-main .layout-shell {
  align-items: start;
}

/* 404 页 */
.error-main {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-panel {
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  padding: 2.5rem;
  text-align: center;
  max-width: 32rem;
  width: 100%;
}

.error-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 3rem;
  font-weight: 700;
  color: #1a7f3a;
  margin-bottom: 0.5rem;
}

.error-panel h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.error-desc {
  font-size: 0.9375rem;
  color: #4a4a4a;
  margin-bottom: 1.25rem;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.error-btn {
  display: inline-block;
  background-color: #1a7f3a;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid #1a7f3a;
}

.error-btn:hover {
  background-color: #145c2a;
  border-color: #145c2a;
  color: #ffffff;
  text-decoration: none;
}

.error-link {
  display: inline-block;
  font-size: 0.875rem;
  color: #1a7f3a;
  padding: 0.5rem 1rem;
  border: 1px solid #1a7f3a;
  border-radius: 4px;
}

.error-link:hover {
  background-color: #f4f4f4;
  text-decoration: none;
}

.error-tip {
  font-size: 0.8125rem;
  color: #4a4a4a;
}

.error-tip a {
  color: #1a7f3a;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .layout-shell {
    grid-template-columns: 180px 200px minmax(0, 1fr);
    gap: 1.25rem;
  }

  .capability-grid,
  .deliverable-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-shell {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-shell {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    min-height: auto;
  }

  .brand-link {
    margin-right: auto;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    order: 3;
  }

  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    order: 4;
    border-top: 1px solid #d4d4d4;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    padding: 0.625rem 0;
    border-bottom: none;
    border-left: 2px solid transparent;
    padding-left: 0.5rem;
  }

  .nav-list a.is-current {
    border-bottom: none;
    border-left-color: #1a7f3a;
  }

  .header-cta {
    order: 2;
    margin-left: auto;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }

  .site-main {
    padding: 1.5rem 1rem 2.5rem;
  }

  .layout-shell {
    display: block;
  }

  .layout-shell > .version-sidebar,
  .layout-shell > .toc-sidebar,
  .layout-shell > .sidebar-rail,
  .layout-shell > .toc-rail,
  .layout-shell > .doc-sidebar,
  .layout-shell > .sidebar,
  .layout-shell > .sidebar-version,
  .layout-shell > .topic-toc,
  .layout-shell > .toc,
  .home-main .version-sidebar,
  .home-main .toc-sidebar {
    display: none;
  }

  .layout-shell > .main-content,
  .layout-shell > .inner-main,
  .layout-shell > .content-area,
  .home-main .main-content {
    width: 100%;
  }

  .mobile-toc {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-toc a {
    flex-shrink: 0;
    font-size: 0.8125rem;
    color: #4a4a4a;
    padding: 0.375rem 0.75rem;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    background-color: #ffffff;
    white-space: nowrap;
  }

  .mobile-toc a:hover {
    border-color: #1a7f3a;
    color: #1a7f3a;
    text-decoration: none;
  }

  .scenario-list {
    grid-template-columns: 1fr;
  }

  .trust-grid,
  .principles-grid,
  .correction-content {
    grid-template-columns: 1fr;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .task-item {
    grid-template-columns: 2.5rem 1fr;
  }

  .task-link {
    grid-column: 2;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1rem 1rem;
  }

  .footer-bottom {
    padding: 0.75rem 1rem;
  }

  .capability-grid,
  .deliverable-grid {
    grid-template-columns: 1fr;
  }

  .hero-media img,
  .capability-figure img,
  .scenario-figure img,
  .flow-figure img,
  .section-figure img,
  .team-media img,
  .content-figure img {
    aspect-ratio: 16 / 9;
  }

  .error-panel {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  h1 {
    font-size: 1.625rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .header-shell {
    padding: 0.5rem 0.75rem;
  }

  .brand-tag {
    display: none;
  }

  .site-main {
    padding: 1.25rem 0.75rem 2rem;
  }

  .hero-section,
  .capability-card,
  .scenario-item,
  .task-item,
  .deliverable-card,
  .role-item,
  .prep-item,
  .process-item,
  .checklist-item,
  .correction-section,
  .guide-link-bar,
  .cooperation-cta,
  .entry-strip,
  .cooperation-entry {
    padding: 1rem;
  }

  .content-index {
    padding: 0.75rem 1rem;
  }

  .terminal-block {
    padding: 1rem;
  }
}
