:root {
  --dock-red: #d62d27;
  --dock-red-dark: #a91d1a;
  --ink: #171715;
  --ink-soft: #4f4c46;
  --paper: #f3f0e8;
  --paper-light: #fbfaf6;
  --line: #cbc5b8;
  --line-dark: #888176;
  --white: #ffffff;
  --focus: #1769aa;
  --display: "Songti SC", "STSong", "SimSun", serif;
  --body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --utility: ui-monospace, "SFMono-Regular", "Cascadia Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 23, 21, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 32px;
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  z-index: 100;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  color: var(--white);
  background: var(--ink);
}

.skip-link:focus-visible {
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  overflow: visible;
  clip-path: none;
}

.site-header {
  min-height: 76px;
  padding: 14px clamp(20px, 4vw, 68px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--paper-light);
  border-bottom: 1px solid var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 142px;
  height: auto;
  flex: 0 0 auto;
}

.brand-product {
  padding-left: 10px;
  color: var(--ink-soft);
  border-left: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
  font-size: 13px;
}

.button {
  min-height: 42px;
  padding: 10px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  font-weight: 700;
  text-align: center;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button-dark {
  color: var(--white);
  background: var(--ink);
}

.button-dark:hover {
  background: #33332f;
}

.button-red {
  color: var(--white);
  background: var(--dock-red);
  border-color: var(--dock-red);
}

.button-red:hover {
  background: var(--dock-red-dark);
  border-color: var(--dock-red-dark);
}

.button-paper {
  min-width: 190px;
  color: var(--ink);
  background: var(--paper-light);
}

main {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: clamp(44px, 7vw, 100px) clamp(20px, 4vw, 68px) 72px;
}

.workspace-intro {
  margin-bottom: clamp(36px, 5vw, 68px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: end;
  gap: clamp(30px, 7vw, 110px);
}

.eyebrow,
.desk-kicker,
.sidebar-label,
.boundary-index {
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--dock-red);
}

.workspace-intro h1 {
  max-width: 850px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.intro-copy {
  margin: 0;
  padding-top: 20px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line-dark);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.85;
}

.production-desk {
  background: var(--paper-light);
  border: 1px solid var(--ink);
  box-shadow: 12px 12px 0 rgba(23, 23, 21, 0.12);
}

.desk-header {
  min-height: 86px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
  background: var(--ink);
}

.desk-header h2 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.04em;
}

.desk-kicker {
  color: #bbb7ae;
}

.desk-session {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--dock-red);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(214, 45, 39, 0.18);
}

.desk-layout {
  display: grid;
  grid-template-columns: minmax(215px, 0.72fr) minmax(520px, 2fr) minmax(225px, 0.82fr);
  min-height: 610px;
}

.role-sidebar,
.action-sidebar {
  padding: 27px 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.role-sidebar {
  border-right: 1px solid var(--line);
}

.action-sidebar {
  background: #e9e5dc;
  border-left: 1px solid var(--line);
}

.role-sidebar h3,
.action-sidebar h3,
.process-heading h3 {
  margin: 5px 0 0;
  font-size: 18px;
}

.sidebar-label {
  color: var(--ink-soft);
}

.role-tabs {
  display: grid;
  gap: 8px;
}

.role-tab {
  width: 100%;
  padding: 14px;
  display: grid;
  gap: 4px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  cursor: pointer;
  text-align: left;
}

.role-tab span {
  font-weight: 800;
}

.role-tab small {
  color: var(--ink-soft);
  line-height: 1.5;
}

.role-tab.is-active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.role-tab.is-active small {
  color: #d0ccc3;
}

.role-summary {
  min-height: 153px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.role-summary span {
  color: var(--dock-red);
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 700;
}

.role-summary p,
.login-note,
.action-sidebar > p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.desk-login {
  width: 100%;
  margin-top: auto;
}

.login-note {
  margin-top: -12px;
}

.process-workspace {
  min-width: 0;
  padding: 27px clamp(22px, 3vw, 42px);
}

.process-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.preview-label {
  padding: 5px 8px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.stage-rail {
  position: relative;
  margin: 44px 0 38px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  list-style: none;
}

.stage-rail::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 7%;
  left: 7%;
  height: 1px;
  background: var(--line-dark);
}

.stage-rail li {
  position: relative;
}

.stage-button {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 3px;
  display: grid;
  justify-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.stage-button b {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  background: var(--paper-light);
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  font-family: var(--utility);
  font-size: 9px;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.stage-button span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.stage-button.is-active b {
  color: var(--white);
  background: var(--dock-red);
  border-color: var(--dock-red);
  box-shadow: 0 0 0 5px rgba(214, 45, 39, 0.12);
}

.stage-button.is-active span {
  color: var(--ink);
}

.stage-detail {
  min-height: 317px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--white);
  border: 1px solid var(--line);
}

.stage-title-row {
  display: grid;
  gap: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.stage-title-row span {
  color: var(--dock-red);
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 700;
}

.stage-title-row strong {
  font-family: var(--display);
  font-size: clamp(27px, 3vw, 40px);
  letter-spacing: -0.04em;
}

/* 进度提示与阶段标签区分：标签用主色，进度用弱化色，避免视觉抢焦点。 */
.stage-title-row span.stage-progress {
  justify-self: start;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.noscript-note {
  margin: 0 0 24px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--dock-red);
  border-radius: 8px;
  background: var(--paper-light);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.noscript-note a {
  color: var(--dock-red);
  font-weight: 700;
}

#stage-description {
  margin: 22px 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.stage-metadata {
  margin: 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1.25fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stage-metadata div {
  padding: 14px;
  background: var(--paper-light);
}

.stage-metadata dt {
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-family: var(--utility);
  font-size: 10px;
}

.stage-metadata dd {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.6;
}

.action-list {
  margin: 0;
  padding: 0;
  display: grid;
  list-style: none;
}

.action-list li {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.5;
}

.action-list span {
  color: var(--dock-red);
}

.handoff-note {
  margin-top: auto;
  padding: 17px;
  color: var(--white);
  background: var(--ink);
}

.handoff-note span {
  display: block;
  margin-bottom: 8px;
  color: #bbb7ae;
  font-family: var(--utility);
  font-size: 10px;
}

.handoff-note strong {
  font-size: 13px;
  line-height: 1.6;
}

.boundary {
  margin-top: clamp(46px, 7vw, 90px);
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(360px, 1.5fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
  color: var(--white);
  background: var(--dock-red);
}

.boundary-index {
  color: #ffd0cd;
}

.boundary h2 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.18;
}

.boundary-rules {
  display: grid;
  gap: 10px;
}

.boundary-rules p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.boundary-rules b {
  display: inline-block;
  margin-right: 8px;
  color: #ffe8e6;
}

.site-footer {
  padding: 24px clamp(20px, 4vw, 68px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #cac6bd;
  background: var(--ink);
  border-top: 4px solid var(--dock-red);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
}

@media (max-width: 1120px) {
  .desk-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .action-sidebar {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(180px, 0.65fr) minmax(240px, 1fr) minmax(240px, 1fr);
    align-items: start;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .action-sidebar .sidebar-label {
    grid-column: 1;
  }

  .action-sidebar h3 {
    grid-column: 1;
    margin-top: -14px;
  }

  .action-sidebar > p {
    grid-column: 1;
  }

  .action-list {
    grid-column: 2;
    grid-row: 1 / span 4;
  }

  .handoff-note {
    grid-column: 3;
    grid-row: 1 / span 4;
    margin-top: 0;
  }

  .boundary {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .boundary .button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
  }

  .brand-product {
    display: none;
  }

  .site-nav a {
    display: none;
  }

  .workspace-intro {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .desk-layout {
    grid-template-columns: 1fr;
  }

  .role-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .role-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .role-summary {
    min-height: auto;
  }

  .desk-login {
    margin-top: 0;
  }

  .stage-metadata {
    grid-template-columns: 1fr;
  }

  .action-sidebar {
    grid-column: auto;
    grid-template-columns: 1fr 1fr;
  }

  .action-sidebar .sidebar-label,
  .action-sidebar h3,
  .action-sidebar > p {
    grid-column: 1;
  }

  .action-list {
    grid-column: 2;
    grid-row: 1 / span 4;
  }

  .handoff-note {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .boundary {
    grid-template-columns: 1fr;
  }

  .boundary .button {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 68px;
    padding: 12px 16px;
  }

  .brand-logo {
    width: 122px;
  }

  .site-nav {
    gap: 8px;
  }

  .site-nav .button {
    min-height: 44px;
    padding: 8px 11px;
    font-size: 12px;
  }

  main {
    padding: 38px 14px 50px;
  }

  .workspace-intro h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .production-desk {
    box-shadow: 6px 6px 0 rgba(23, 23, 21, 0.12);
  }

  .desk-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .role-tabs {
    grid-template-columns: 1fr;
  }

  .process-workspace {
    padding: 24px 16px;
  }

  .process-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .stage-rail {
    margin: 30px 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .stage-rail::before {
    display: none;
  }

  .stage-button {
    min-height: 48px;
    padding: 8px 10px;
    grid-template-columns: 29px 1fr;
    justify-items: start;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
  }

  .stage-button span {
    text-align: left;
  }

  .stage-button.is-active {
    background: #f8e4e2;
    border-color: var(--dock-red);
  }

  .stage-detail {
    min-height: 0;
    padding: 22px 18px;
  }

  .action-sidebar {
    grid-template-columns: 1fr;
  }

  .action-sidebar .sidebar-label,
  .action-sidebar h3,
  .action-sidebar > p,
  .action-list,
  .handoff-note {
    grid-column: 1;
    grid-row: auto;
  }

  .boundary {
    padding: 27px 20px;
  }

  .button-paper {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* 阶段落地动作 —— 把「读到这一步」变成「去做这一步」。 */
.stage-action {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.stage-action__hint {
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 700;
  color: var(--dock-red);
  letter-spacing: 0.04em;
}

.stage-action__btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
