/* ==========================================================================
   海角社区 · 企业社群运营工具站
   全站样式表：base → layout → components → pages → responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base —— 变量、重置、排版基础
   -------------------------------------------------------------------------- */

:root {
  --ink: #16130F;
  --paper: #FBF7F2;
  --brick: #B93A17;
  --teal: #1F6F5C;
  --warm-gray: #6B6259;
  --line: #E3D9CE;
  --paper-soft: #F4EDE4;
  --paper-deep: #EFE6DA;
  --ink-soft: #2A2520;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", "Source Han Sans SC", sans-serif;

  --shell-max: 1180px;
  --shell-pad: 32px;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 2px rgba(22, 19, 15, 0.05);
  --shadow-lift: 0 6px 18px rgba(22, 19, 15, 0.08);
  --focus-ring: 2px solid var(--teal);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--brick);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

input {
  font-family: inherit;
  font-size: inherit;
}

strong {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   2. layout —— 页头、导航、主容器、页脚骨架
   -------------------------------------------------------------------------- */

/* 2.1 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(251, 247, 242, 0.12);
}

.header-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--paper);
  font-weight: 800;
  font-size: 19px;
  line-height: 1;
}

.brand:hover {
  color: #fff;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--brick);
  box-shadow: inset 0 0 0 2px rgba(251, 247, 242, 0.35);
}

.brand-text {
  font-size: 19px;
  font-weight: 800;
}

/* 2.2 主导航 */
.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 12px;
  color: rgba(251, 247, 242, 0.78);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--brick);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.is-current {
  color: #fff;
}

.nav-link.is-current::after {
  transform: scaleX(1);
  background: var(--brick);
}

.header-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  background: var(--brick);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.header-cta:hover {
  background: #9E2F11;
  color: #fff;
}

/* 2.3 汉堡按钮 */
.menu-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(251, 247, 242, 0.3);
  border-radius: var(--radius-sm);
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--paper);
  border-radius: 1px;
}

/* 2.4 移动导航 */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  padding: 76px 24px 32px;
  overflow-y: auto;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(251, 247, 242, 0.3);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--paper);
  font-size: 22px;
  line-height: 1;
}

.mobile-close::before {
  content: "×";
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
}

.mobile-nav-list li + li {
  border-top: 1px solid rgba(251, 247, 242, 0.14);
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  color: rgba(251, 247, 242, 0.86);
  font-size: 16px;
  font-weight: 600;
}

.mobile-nav-list a:hover {
  color: #fff;
}

/* 2.5 主内容与页面栅格 */
.site-main {
  display: block;
}

.home-main,
.inner-main {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
  padding-bottom: 64px;
}

/* 首页主栏 + 侧栏 */
.layout-shell {
  grid-template-columns: minmax(0, 1fr) 320px;
}

/* 内页通用：主栏 760 侧栏 340 */
.main-column,
.page-main-col,
.content-column {
  min-width: 0;
}

.side-column,
.page-sidebar,
.page-side,
.related-column,
.sidebar {
  min-width: 0;
}

/* 若侧栏在前的布局 */
.sidebar-left .page-layout,
.sidebar-left .layout-shell {
  grid-template-columns: 340px minmax(0, 1fr);
}

/* 2.6 面包屑与页面标题区 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 0;
  font-size: 14px;
  color: var(--warm-gray);
}

.breadcrumb a {
  color: var(--warm-gray);
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--brick);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

.page-header {
  padding: 18px 0 0;
}

.page-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}

.page-hero {
  padding: 18px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brick);
}

.page-lead,
.page-lede,
.page-intro {
  max-width: 34em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--warm-gray);
}

.hero-facts,
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 18px;
}

.hero-facts li,
.hero-points li,
.hero-point {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}

.hero-facts li::before,
.hero-points li::before,
.hero-point::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  background: var(--teal);
}

/* 2.7 页脚 */
.site-footer {
  margin-top: 72px;
  background: var(--ink);
  color: rgba(251, 247, 242, 0.74);
  font-size: 15px;
}

.footer-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 56px var(--shell-pad) 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--paper);
  margin-bottom: 12px;
}

.footer-desc {
  max-width: 30em;
  line-height: 1.8;
  color: rgba(251, 247, 242, 0.68);
}

.footer-col {
  min-width: 0;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--paper);
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(251, 247, 242, 0.7);
  font-size: 15px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 18px var(--shell-pad) 34px;
  border-top: 1px solid rgba(251, 247, 242, 0.14);
  font-size: 13px;
  color: rgba(251, 247, 242, 0.5);
}

/* --------------------------------------------------------------------------
   3. components —— 通用模块
   -------------------------------------------------------------------------- */

/* 3.1 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--brick);
  color: #fff;
}

.btn-primary:hover {
  background: #9E2F11;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-secondary {
  background: var(--teal);
  color: #fff;
}

.btn-secondary:hover {
  background: #175A4A;
  color: #fff;
}

/* 3.2 文本链接 */
.text-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--brick);
  border-bottom: 1px solid rgba(185, 58, 23, 0.35);
  padding-bottom: 1px;
}

.text-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* 3.3 区块通用 */
.section {
  padding: 8px 0 56px;
}

.section + .section {
  padding-top: 8px;
}

.section-head {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-desc {
  max-width: 42em;
  color: var(--warm-gray);
  font-size: 15px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-intro {
  max-width: 42em;
  margin-bottom: 24px;
  color: var(--warm-gray);
  font-size: 15px;
}

.section-note {
  margin-bottom: 22px;
  color: var(--warm-gray);
  font-size: 14px;
}

.section-figure {
  margin-top: 24px;
}

/* 3.4 图片与说明 */
.hero-figure,
.board-figure,
.review-figure,
.record-figure,
.cadence-figure,
.media-figure,
.section-figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.hero-figure img,
.board-figure img,
.review-figure img,
.record-figure img,
.cadence-figure img,
.media-figure img,
.section-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-deep);
}

.hero-figure figcaption,
.board-figure figcaption,
.review-figure figcaption,
.record-figure figcaption,
.cadence-figure figcaption,
.media-figure figcaption,
.section-figure figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--warm-gray);
  background: var(--paper);
}

/* 3.5 侧栏卡片（多页共用外观） */
.sidebar-card,
.side-card,
.related-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.sidebar-card + .sidebar-card,
.side-card + .side-card,
.related-card + .related-card {
  margin-top: 20px;
}

.sidebar-title,
.side-title,
.side-card-title,
.related-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}

.sidebar-text,
.side-text,
.related-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--warm-gray);
}

.toc-list,
.sidebar-links,
.side-links,
.related-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-list a,
.sidebar-links a,
.side-links a,
.related-links a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.6;
}

.toc-list a:hover,
.sidebar-links a:hover,
.side-links a:hover,
.related-links a:hover {
  color: var(--brick);
}

/* 3.6 术语表 */
.term-list {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.term-list dt {
  font-weight: 700;
  color: var(--ink);
}

.term-list dd {
  margin: 0 0 6px;
  color: var(--warm-gray);
  line-height: 1.7;
}

/* 3.7 上下页导航 */
.page-pager,
.pager,
.page-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 56px;
}

.pager-link,
.page-nav-prev,
.page-nav-next {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 46px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

.pager-link:hover,
.page-nav-prev:hover,
.page-nav-next:hover {
  border-color: var(--brick);
  color: var(--brick);
}

.pager-prev,
.page-nav-prev {
  text-align: left;
}

.pager-next,
.page-nav-next {
  text-align: right;
}

.pager-label,
.page-nav-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brick);
}

.pager-title,
.pager-name,
.page-nav-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

/* 3.8 折叠问答 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.faq-item summary,
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after,
.faq-question::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 700;
  color: var(--brick);
  line-height: 1;
}

.faq-item[open] summary::after,
.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-item > p,
.faq-answer {
  padding: 0 18px 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--warm-gray);
}

.faq-more {
  margin-top: 18px;
}

/* 3.9 清单控件（需求/资料整理） */
.checklist-tool {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.checklist-note,
.field-note {
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--warm-gray);
}

.checklist-items,
.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-soft);
  font-size: 14px;
}

.checklist-name {
  flex: 1 1 auto;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}

.checklist-size {
  flex: 0 0 auto;
  color: var(--warm-gray);
  font-size: 13px;
}

.checklist-remove {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--warm-gray);
  font-size: 16px;
  line-height: 1;
}

.checklist-remove::before {
  content: "×";
}

.checklist-remove:hover {
  border-color: var(--brick);
  color: var(--brick);
}

.checklist-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.checklist-field,
.field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--warm-gray);
}

.checklist-input,
.field-input {
  min-height: 44px;
  width: 180px;
  max-width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   4. pages —— 首页与各内页模块
   -------------------------------------------------------------------------- */

/* 4.1 首页 · 首屏 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero-content {
  min-width: 0;
}

.hero h1,
#hero-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 18px;
}

.hero-lead {
  max-width: 32em;
  font-size: 17px;
  line-height: 1.8;
  color: var(--warm-gray);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 4px;
}

.hero-figure {
  min-width: 0;
}

.hero-figure img {
  aspect-ratio: 5 / 4;
}

/* 4.2 首页 · 角色与职责三栏 */
.role-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.role-col {
  min-width: 0;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brick);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.role-col h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.role-duty {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.role-prep {
  font-size: 14px;
  line-height: 1.75;
  color: var(--warm-gray);
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* 4.3 首页 · 看板示意与编号注释 */
.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.board-figure {
  min-width: 0;
}

.board-notes {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.note-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.note-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.note-index {
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.note-item h3 {
  font-size: 17px;
  font-weight: 700;
}

.note-item p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--warm-gray);
}

/* 4.4 首页 · 四拍流程条 */
.flow-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.flow-node {
  position: relative;
  min-width: 0;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.flow-node::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  width: 34px;
  height: 3px;
  background: var(--teal);
}

.flow-step {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
}

.flow-node h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.flow-input,
.flow-output,
.flow-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--warm-gray);
}

.flow-input {
  margin-bottom: 6px;
}

.flow-output {
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.flow-more {
  margin-top: 22px;
}

/* 4.5 首页 · 能力对照双列 */
.compare-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.compare-col {
  min-width: 0;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.compare-col h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compare-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.compare-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 2px;
  background: var(--brick);
}

/* 4.6 首页 · 场景入口四栏 */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.scene-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.scene-card:hover {
  border-color: var(--brick);
  box-shadow: var(--shadow-lift);
}

.scene-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.scene-card p {
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.75;
  color: var(--warm-gray);
  margin-bottom: 16px;
}

/* 4.7 首页 · 复盘说明区 */
.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.review-text {
  min-width: 0;
}

.review-text h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.review-list li {
  padding: 14px 16px;
  border-left: 3px solid var(--teal);
  background: var(--paper-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.review-note {
  font-size: 14px;
  line-height: 1.75;
  color: var(--warm-gray);
  margin-bottom: 14px;
}

.review-figure {
  min-width: 0;
}

/* 4.8 首页 · 对接入口条 */
.contact-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 26px;
}

.contact-step {
  min-width: 0;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.contact-step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-step p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--warm-gray);
}

.contact-more {
  margin-top: 4px;
}

/* 4.9 首页 · 相关内容条 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 8px 0 56px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.related-links-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brick);
}

.related-links-item {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}

.related-links-item:hover {
  color: var(--brick);
}

/* 4.10 内页 · 场景与角色（roles） */
.scenario-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.scenario-row:last-child {
  border-bottom: 0;
}

.scenario-col {
  min-width: 0;
}

.scenario-col-scene h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.scenario-col-scene p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--warm-gray);
}

.role-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brick);
  margin-bottom: 10px;
}

.role-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.role-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 2px;
  background: var(--teal);
}

.role-card {
  min-width: 0;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.role-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.role-card-sub {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--brick);
  margin: 14px 0 8px;
}

.role-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--warm-gray);
}

/* 映射表 */
.mapping-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.mapping-head,
.mapping-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 14px 18px;
}

.mapping-head {
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.mapping-row {
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.mapping-scene {
  font-weight: 700;
  color: var(--ink);
}

.mapping-detail {
  color: var(--warm-gray);
  line-height: 1.75;
}

/* 4.11 内页 · 需求确认（need-confirm） */
.confirm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.confirm-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.confirm-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.confirm-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--warm-gray);
}

.decision-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: decision;
}

.decision-items li {
  position: relative;
  min-width: 0;
  padding: 18px 20px 18px 62px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  counter-increment: decision;
}

.decision-items li::before {
  content: counter(decision, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 18px;
  font-size: 18px;
  font-weight: 700;
  color: var(--brick);
}

.decision-items h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.decision-items p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--warm-gray);
}

.record-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: start;
}

.record-steps {
  min-width: 0;
}

.record-step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: record;
}

.record-step-list li {
  position: relative;
  padding-left: 44px;
  counter-increment: record;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.record-step-list li::before {
  content: counter(record);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.record-figure {
  min-width: 0;
}

.side-stage,
.side-stage-next {
  font-size: 14px;
  line-height: 1.75;
  color: var(--warm-gray);
}

.side-stage-next {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 600;
}

/* 4.12 内页 · 搭建执行（build） */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  counter-reset: build;
}

.step-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  min-width: 0;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.step-index {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper);
  font-size: 18px;
  font-weight: 700;
}

.step-body {
  min-width: 0;
}

.step-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-body p {
  font-size: 15px;
  line-height: 1.78;
  color: var(--warm-gray);
}

.step-body p + p {
  margin-top: 8px;
}

.step-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}

.step-num {
  font-weight: 700;
  color: var(--teal);
}

.side-terms {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.75;
  color: var(--warm-gray);
}

.board-note {
  position: relative;
  padding-left: 40px;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.board-note:last-child {
  margin-bottom: 0;
}

.note-num {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

/* 4.13 内页 · 验收复盘（review） */
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.check-item {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.check-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.check-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--warm-gray);
}

.metric-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.metric-group {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.metric-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.metric-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--warm-gray);
  margin-bottom: 12px;
}

.metric-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.metric-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.metric-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 2px;
  background: var(--brick);
}

.cadence-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: start;
}

.cadence-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: cadence;
  min-width: 0;
}

.cadence-step {
  position: relative;
  padding: 16px 18px 16px 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  counter-increment: cadence;
}

.cadence-step::before {
  content: counter(cadence);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.cadence-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.cadence-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--warm-gray);
}

.cadence-figure {
  min-width: 0;
}

.cadence-notes {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.notes-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notes-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.notes-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 2px;
  background: var(--teal);
}

/* 4.14 内页 · 版本说明（release） */
.release-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.release-item {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.release-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.release-no {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
}

.release-title {
  font-size: 17px;
  font-weight: 700;
}

.release-brief {
  font-size: 15px;
  line-height: 1.75;
  color: var(--warm-gray);
  margin-bottom: 12px;
}

.release-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.release-tags li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-soft);
  font-size: 13px;
  color: var(--warm-gray);
}

.release-block {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.release-block:last-child {
  border-bottom: 0;
}

.release-block h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
}

.release-block p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--warm-gray);
  margin-bottom: 10px;
}

.sub-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 14px 0 10px;
}

.module-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.module-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 2px;
  background: var(--brick);
}

.index-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.index-list a {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-soft);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}

.index-list a:hover {
  border-color: var(--brick);
  color: var(--brick);
}

/* 4.15 内页 · 问题解答（faq） */
.faq-group {
  padding: 8px 0 48px;
}

.faq-scene {
  padding: 8px 0 48px;
}

/* 4.16 内页 · 咨询对接（contact） */
.flow-track .flow-node .flow-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.compare-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bullet-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 2px;
  background: var(--teal);
}

/* 4.17 404 */
.error-main {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
}

.error-block {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brick);
}

.error-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.error-text {
  max-width: 34em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--warm-gray);
  margin-bottom: 24px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 28px;
}

.error-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.error-links a:hover {
  color: var(--brick);
  border-bottom-color: var(--brick);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   5. responsive —— 1200 / 900 / 640 断点
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  :root {
    --shell-pad: 28px;
  }

  .page-layout,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
  }

  .sidebar-left .page-layout,
  .sidebar-left .layout-shell {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .hero {
    gap: 36px;
  }

  .hero h1,
  #hero-title {
    font-size: 36px;
  }

  .page-title {
    font-size: 36px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 62px;
    gap: 16px;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .page-layout,
  .layout-shell,
  .sidebar-left .page-layout,
  .sidebar-left .layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 40px 0 44px;
  }

  .hero-figure {
    order: 2;
  }

  .hero-content {
    order: 1;
  }

  .board-layout,
  .review-layout,
  .record-body,
  .cadence-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .role-columns,
  .contact-steps,
  .metric-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scene-grid,
  .flow-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --shell-pad: 18px;
  }

  body.site-body {
    font-size: 16px;
  }

  .page-title,
  .hero h1,
  #hero-title,
  .error-title {
    font-size: 28px;
  }

  .section-title,
  .section-head h2 {
    font-size: 21px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .home-main,
  .inner-main,
  .error-main {
    padding: 0 var(--shell-pad);
  }

  .section {
    padding-bottom: 40px;
  }

  .page-hero {
    margin-bottom: 28px;
    padding-bottom: 24px;
  }

  .role-columns,
  .compare-columns,
  .compare-cols,
  .scene-grid,
  .flow-track,
  .contact-steps,
  .confirm-grid,
  .check-grid,
  .metric-groups,
  .scenario-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .mapping-head,
  .mapping-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .step-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 18px;
  }

  .step-index {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .checklist-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .checklist-input,
  .field-input {
    width: 100%;
  }

  .checklist-controls .btn {
    width: 100%;
  }

  .page-pager,
  .pager,
  .page-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .pager-next,
  .page-nav-next {
    text-align: left;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 40px;
  }

  .faq-item summary,
  .faq-question {
    font-size: 15px;
    padding: 14px 16px;
  }

  .faq-item > p,
  .faq-answer {
    padding: 0 16px 16px;
  }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav-link::after,
  .scene-card,
  .btn,
  a {
    transition: none;
  }
}
