:root {
  --bg: #f6f5f2;
  --surface: #fff;
  --ink: #1c1b19;
  --muted: #5c5a56;
  --line: #e0ddd6;
  --accent: #2d6a6a;
  --accent-soft: #e8f2f2;
  --path-a: #5c5366;
  --path-a-bg: #eeecf2;
  --path-b: #4a5f7a;
  --path-b-bg: #e8eef5;
  --merge: #2d6a6a;
  --shadow: 0 1px 3px rgba(28, 27, 25, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Noto Sans SC", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.25rem 1.35rem 2.75rem;
}

/* 顶部导航 */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.site-nav__brand {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-nav__brand:hover {
  color: var(--accent);
}

.site-nav__links {
  display: flex;
  gap: 0.35rem;
}

.site-nav__links a {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.site-nav__links a:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.045);
}

.site-nav__links a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: #c5dede;
}

.page-title {
  margin: 0 0 0.45rem;
  font-size: 1.55rem;
  font-weight: 700;
}

.lead {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 560px) {
  .entry-grid {
    grid-template-columns: 1fr;
  }
}

.entry-tile {
  display: block;
  padding: 1.15rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.entry-tile:hover {
  border-color: #c5dede;
  box-shadow: 0 2px 8px rgba(28, 27, 25, 0.08);
}

.entry-tile__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.entry-tile__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.entry-tile__desc {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}

header {
  margin-bottom: 2rem;
  padding-bottom: 0;
  border-bottom: none;
}

h1:not(.page-title) {
  margin: 0 0 0.45rem;
  font-size: 1.55rem;
  font-weight: 700;
}

h2 {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

section { margin-bottom: 2.35rem; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem 1.25rem 1.65rem;
  box-shadow: var(--shadow);
}

.merge-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .dual { grid-template-columns: 1fr; }
}

.lane {
  border-radius: 10px;
  padding: 1rem 0.9rem;
  min-height: 11rem;
}

.lane--a {
  background: var(--path-a-bg);
  border: 1px solid #dcd7e3;
}

.lane--b {
  background: var(--path-b-bg);
  border: 1px solid #d0d8e3;
}

.lane-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.lane--a .lane-title { color: var(--path-a); }
.lane--b .lane-title { color: var(--path-b); }

.steps {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.86rem;
  color: var(--ink);
}

.steps li { margin-bottom: 0.4rem; }
.steps li:last-child { margin-bottom: 0; }

.optional {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.55rem;
  padding: 0.45rem 0.5rem;
  background: rgba(255,255,255,0.55);
  border-radius: 6px;
}

.join {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.35rem 0 0.15rem;
}

.join svg { display: block; color: var(--muted); }

.join span {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.trunk {
  margin-top: 0.25rem;
}

.step-card {
  position: relative;
  background: var(--accent-soft);
  border: 1px solid #c5dede;
  border-radius: 10px;
  padding: 0.7rem 1rem 0.85rem;
  margin: 0 auto;
  max-width: 34rem;
  text-align: left;
}

.step-card__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--merge);
  margin: 0 0 0.35rem;
  line-height: 1.35;
}

.step-card__body {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
}

.step-card .steps--sync {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink);
}

.step-card .steps--sync li { margin-bottom: 0.5rem; }
.step-card .steps--sync li:last-child { margin-bottom: 0; }

.step-card--muted {
  background: #faf9f7;
  border-style: dashed;
  border-color: var(--line);
}

.step-card--muted .step-card__title {
  color: var(--ink);
}

.step-card--muted .step-card__body {
  color: var(--muted);
}

.step-card--review {
  background: #f7f4ee;
  border-color: #e3d8cc;
  max-width: 34rem;
}

.step-card--review .step-card__title {
  color: #5c4d42;
}

.arrow-down {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.4rem 0;
  color: var(--muted);
}

.arrow-down svg { display: block; }

.arrow-label {
  font-size: 0.7rem;
  margin-top: 0.15rem;
  text-align: center;
  max-width: 22rem;
  color: var(--muted);
}

.trunk-note {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  max-width: 32rem;
  margin: 0.15rem auto 0.55rem;
  line-height: 1.45;
  padding: 0 0.5rem;
}

.channel-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
  margin: 0.15rem auto 0.55rem;
  max-width: 32rem;
}

.channel-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  max-width: 36rem;
  margin: 0 auto;
}

@media (max-width: 560px) {
  .channel-blocks {
    grid-template-columns: 1fr;
  }
}

.channel-block {
  background: #faf9f7;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  text-align: left;
}

.channel-block h4 {
  margin: 0 0 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

.channel-block p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.note-block {
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line);
  font-size: 0.84rem;
  color: var(--muted);
}

.note-block p { margin: 0 0 0.5rem; }
.note-block p:last-child { margin-bottom: 0; }

/* 架构页 */
.arch-section {
  margin-bottom: 1.5rem;
}

.arch-section:last-child {
  margin-bottom: 0;
}

.arch-module__title {
  margin: 0 0 0.5rem;
}

.arch-module__lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.arch-policy-figure {
  margin: 0 0 1.2rem;
}

.arch-policy-figure__svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(165deg, #faf9f7 0%, #fff 55%, #f6f5f2 100%);
}

/* object 嵌入外链 SVG：图内文字可选中；同路径用 img 时整图为替换元素，文字不可选 */
object[type="image/svg+xml"] {
  pointer-events: auto;
  max-width: 100%;
}

.arch-overview {
  margin: 0 0 1.35rem;
  padding: 1rem 1.05rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.arch-overview__title {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.arch-overview__layout {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: stretch;
}

.arch-overview__figure {
  margin: 0;
  width: 100%;
}

.arch-overview__svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #faf9f7 0%, #fff 55%, #f6f5f2 100%);
}

.arch-overview__p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink);
  line-height: 1.58;
}

.arch-overview__p + .arch-overview__p {
  margin-top: 0.55rem;
}

.arch-section h2 {
  margin-bottom: 0.65rem;
}

.arch-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}

.arch-panel p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.arch-panel p + p {
  margin-top: 0.5rem;
}

.arch-list {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.86rem;
  color: var(--ink);
  line-height: 1.5;
}

.arch-list li { margin-bottom: 0.35rem; }

/* 渠道-群组-终端关系图 */
.channel-relation-section {
  margin-top: 0.5rem;
}

.channel-relation-block-title {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.channel-relation-lead {
  margin: 0 0 0.35rem;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
}

.channel-relation-note {
  display: block;
  margin-top: 0.14rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.channel-relation-subhead {
  margin: 1.35rem 0 0.55rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.channel-relation-section .channel-relation-subhead:first-of-type {
  margin-top: 0.35rem;
}

/* 架构页 · 顶层模块 Tab（发布管理 / 内部审批 / 策略配置） */
.arch-module-tabs {
  margin-top: 0.15rem;
}

.arch-module-tabs__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.arch-module-tabs__btn {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.arch-module-tabs__btn:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}

#tab-arch-dispatch:checked ~ .arch-module-tabs__bar .arch-module-tabs__btn--dispatch,
#tab-arch-approval:checked ~ .arch-module-tabs__bar .arch-module-tabs__btn--approval,
#tab-arch-policy:checked ~ .arch-module-tabs__bar .arch-module-tabs__btn--policy,
#tab-flow-main:checked ~ .arch-module-tabs__bar .arch-module-tabs__btn--main,
#tab-flow-reissue:checked ~ .arch-module-tabs__bar .arch-module-tabs__btn--reissue,
#tab-flow-offline:checked ~ .arch-module-tabs__bar .arch-module-tabs__btn--offline {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: #c5dede;
}

.arch-module-tabs__panel {
  display: none;
}

#tab-arch-dispatch:checked ~ .arch-module-tabs__panel--dispatch,
#tab-arch-approval:checked ~ .arch-module-tabs__panel--approval,
#tab-arch-policy:checked ~ .arch-module-tabs__panel--policy,
#tab-flow-main:checked ~ .arch-module-tabs__panel--main,
#tab-flow-reissue:checked ~ .arch-module-tabs__panel--reissue,
#tab-flow-offline:checked ~ .arch-module-tabs__panel--offline {
  display: block;
}

.arch-module-tabs__stub {
  padding: 0.15rem 0 0.35rem;
}

.arch-module-tabs__stub .arch-module__title {
  margin-top: 0;
}

/* 示意图 Tab（纯 CSS + radio） */
.diagram-tabs {
  margin-top: 0.35rem;
}

.diagram-tabs__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.diagram-tabs__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.diagram-tabs__btn {
  display: inline-block;
  padding: 0.42rem 1rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.diagram-tabs__btn:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}

#tab-diagram-sms:checked ~ .diagram-tabs__bar .diagram-tabs__btn--sms,
#tab-diagram-mail:checked ~ .diagram-tabs__bar .diagram-tabs__btn--mail,
#tab-endpoint-broadcast:checked ~ .diagram-tabs__bar .diagram-tabs__btn--broadcast,
#tab-endpoint-national:checked ~ .diagram-tabs__bar .diagram-tabs__btn--national {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: #c5dede;
}

.diagram-tabs__panel {
  display: none;
}

#tab-diagram-sms:checked ~ .diagram-tabs__panel--sms,
#tab-diagram-mail:checked ~ .diagram-tabs__panel--mail,
#tab-endpoint-broadcast:checked ~ .diagram-tabs__panel--broadcast,
#tab-endpoint-national:checked ~ .diagram-tabs__panel--national {
  display: block;
}

.channel-relation-frame--endpoint {
  border-color: #b8a898;
  background: linear-gradient(165deg, #faf8f4 0%, #fff 48%, #f9f7f3 100%);
}

/* 端点投递类（大框） */
.endpoint-scope {
  margin-top: 0.5rem;
  border: 2px solid #c9c0b4;
  border-radius: 14px;
  padding: 1rem 1.1rem 1.15rem;
  background: linear-gradient(175deg, #faf8f4 0%, #fff 55%, #f9f7f3 100%);
  box-shadow: var(--shadow);
}

.endpoint-scope__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5rem;
  text-align: center;
  letter-spacing: 0.04em;
}

.endpoint-scope__lead {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

.endpoint-scope__flow {
  margin: 0 0 0.95rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.84rem;
  color: var(--ink);
  line-height: 1.55;
  text-align: left;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  border: 1px dashed #c9c0b4;
}

.endpoint-scope__todo {
  margin: 0.85rem 0 0;
  padding: 0.6rem 0.75rem;
  font-size: 0.78rem;
  color: #5c4d42;
  line-height: 1.5;
  background: #f3ebe2;
  border-radius: 8px;
  border-left: 3px solid #b8956a;
}

/* 发布策略后续考虑（全系统，独立于端点区块） */
.arch-followup {
  margin: 1.25rem 0 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  color: #3d3833;
  line-height: 1.55;
  background: #f0ebe4;
  border-radius: 10px;
  border: 1px solid #d4c9bc;
  border-left: 3px solid #6b7a8c;
}

.endpoint-scope__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 560px) {
  .endpoint-scope__grid {
    grid-template-columns: 1fr;
  }
}

.endpoint-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.75);
}

.endpoint-card h4 {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.endpoint-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.endpoint-scope__note {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.channel-relation-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.channel-relation-frame {
  min-width: 640px;
  border: 2px solid var(--accent);
  border-radius: 14px;
  padding: 0.75rem 0.85rem 1rem;
  background: linear-gradient(165deg, #f9fcfb 0%, #fff 45%, #faf9f7 100%);
  box-shadow: var(--shadow);
}

.channel-relation-caption {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}

.channel-relation-svg {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

footer {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

/* 页面原型 */
.proto-section {
  margin-bottom: 1.8rem;
}

.proto-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.proto-modules__btn {
  border: 1px solid var(--line);
  background: #fbfaf8;
  color: var(--muted);
  border-radius: 8px;
  padding: 0.42rem 1rem;
  font-size: 0.85rem;
  line-height: 1.25;
  cursor: default;
}

.proto-modules__btn--active {
  color: var(--accent);
  background: linear-gradient(180deg, #edf7f7 0%, #e4f0f0 100%);
  border-color: #c5dede;
  font-weight: 600;
}

.proto-modules__btn[disabled] {
  opacity: 0.75;
}

.proto-frame {
  border: 1px solid #d9d4cb;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 6px 16px rgba(28, 27, 25, 0.06);
  overflow: hidden;
}

.proto-frame__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid #e7e1d8;
  background: linear-gradient(180deg, #fcfaf6 0%, #f7f2ea 100%);
  padding: 0.72rem 0.95rem;
  font-size: 0.86rem;
}

.proto-frame__dept {
  color: #3c3834;
}

.proto-frame__switch-btn {
  border: 1px solid #b7d6d6;
  background: #f3fbfb;
  color: #1f6666;
  border-radius: 8px;
  padding: 0.36rem 0.72rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}

.proto-frame__body {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  min-height: 360px;
}

.proto-pane {
  padding: 0.9rem 0.82rem;
  background: #fff;
}

.proto-pane + .proto-pane {
  border-left: 1px solid #eee9e2;
}

.proto-pane--channel {
  background: #fbfaf7;
}

.proto-pane h3 {
  margin: 0 0 0.6rem;
  font-size: 0.83rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.proto-pane__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.proto-pane__head h3 {
  margin: 0;
}

.proto-pane__action-btn {
  border: 1px solid #bfd8d8;
  background: #eef8f8;
  color: #185f5f;
  border-radius: 8px;
  padding: 0.28rem 0.62rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.proto-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.proto-list__item {
  display: block;
  padding: 0.46rem 0.52rem;
  border-radius: 8px;
  font-size: 0.84rem;
  color: var(--ink);
  transition: background 0.15s ease;
}

.proto-list__item + .proto-list__item {
  margin-top: 0.3rem;
}

.proto-list__item--active {
  background: linear-gradient(180deg, #edf7f7 0%, #e4f0f0 100%);
  color: var(--accent);
  font-weight: 600;
  border: 1px solid #c5dede;
}

.proto-pane--channel .proto-list__item:not(.proto-list__item--active):hover {
  background: #f1efea;
}

.proto-tree,
.proto-tree ul {
  list-style: none;
  margin: 0;
  padding-left: 0.75rem;
}

.proto-tree > li {
  padding-left: 0;
}

.proto-tree li {
  margin: 0.3rem 0;
  position: relative;
}

.proto-tree ul {
  margin-left: 0.12rem;
  border-left: 1px dashed #d8d1c6;
  padding-left: 0.72rem;
}

.proto-tree__node {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  min-width: 150px;
  padding: 0.28rem 0.56rem;
  border-radius: 7px;
  background: #f8f6f2;
  border: 1px solid #e6dfd3;
  font-size: 0.82rem;
}

.proto-tree__node em {
  font-style: normal;
  font-size: 0.74rem;
  color: #6e6b64;
}

.proto-tree__node--branch::before {
  content: "▾";
  color: #6e6b64;
}

.proto-tree__node--leaf::before {
  content: "•";
  color: #a39a8b;
}

.proto-tree__node--active {
  background: linear-gradient(180deg, #edf7f7 0%, #e4f0f0 100%);
  border-color: #c5dede;
  color: var(--accent);
  font-weight: 600;
}

.proto-search {
  margin-bottom: 0.62rem;
}

.proto-search input {
  width: 100%;
  border: 1px solid #dcd6cd;
  background: #fffdf9;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font-size: 0.83rem;
  outline: none;
}

.proto-search input:focus {
  border-color: #b8d5d5;
  box-shadow: 0 0 0 2px rgba(45, 106, 106, 0.1);
}

.proto-list--terminal .proto-list__item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid #ede6dc;
  background: #fdfbf8;
  border-radius: 9px;
  position: relative;
}

.proto-list__item--with-menu {
  border-color: #d5cec3;
  box-shadow: 0 4px 14px rgba(52, 47, 40, 0.08);
  z-index: 3;
}

.proto-list--terminal .proto-list__item span:last-child {
  color: #6a665f;
  font-variant-numeric: tabular-nums;
}

.proto-terminal__main {
  display: inline-flex;
  flex-direction: column;
  gap: 0.08rem;
}

.proto-terminal__main strong {
  font-size: 0.82rem;
  font-weight: 600;
}

.proto-terminal__main small {
  font-size: 0.74rem;
  color: #6a665f;
  font-variant-numeric: tabular-nums;
}

.proto-terminal__meta {
  margin-left: auto;
  font-size: 0.75rem;
  color: #706b62;
  background: #f2ede5;
  border-radius: 999px;
  padding: 0.14rem 0.5rem;
}

.proto-terminal__menu-btn {
  margin-left: auto;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid #ddd6cc;
  background: #fff;
  color: #6f6a62;
  font-size: 0.95rem;
  line-height: 1;
}

.proto-list__item--with-menu .proto-terminal__menu-btn {
  border-color: #b9d3d3;
  background: #eef8f8;
  color: #1f6666;
}

.proto-context-menu {
  position: absolute;
  top: 50%;
  right: 2.28rem;
  transform: translateY(-50%);
  min-width: 96px;
  background: #fff;
  border: 1px solid #ded7cc;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(53, 46, 37, 0.15);
  padding: 0.26rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  z-index: 2;
}

.proto-context-menu::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%) rotate(45deg);
  background: #fff;
  border-top: 1px solid #ded7cc;
  border-right: 1px solid #ded7cc;
}

.proto-context-menu__item {
  text-align: left;
  border: none;
  background: transparent;
  border-radius: 6px;
  padding: 0.3rem 0.44rem;
  font-size: 0.78rem;
  color: #3f3a34;
}

.proto-context-menu__item:hover {
  background: #f5f1eb;
}

.proto-context-menu__item--danger {
  color: #9b3a3a;
}

.proto-modal-demo {
  margin-top: 1rem;
  border: 1px solid #d9d4cb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(42, 38, 33, 0.08);
  overflow: hidden;
}

.proto-modal-demo__titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.72rem 0.9rem;
  border-bottom: 1px solid #e8e2d9;
  background: linear-gradient(180deg, #fcfaf7 0%, #f6f1e9 100%);
}

.proto-modal-demo__titlebar h3 {
  margin: 0;
  font-size: 0.92rem;
  color: #3d3833;
}

.proto-modal-demo__state {
  font-size: 0.74rem;
  color: #6b655d;
  background: #f1ece4;
  border-radius: 999px;
  padding: 0.14rem 0.5rem;
}

.proto-modal-demo__body {
  padding: 0.85rem 0.9rem;
}

.proto-modal-split {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(300px, 1.25fr);
  gap: 0.9rem;
  align-items: start;
}

.proto-modal-split__left {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.proto-modal-split__right .proto-field {
  margin-top: 0;
}

.proto-field {
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
}

.proto-field__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.proto-field span {
  font-size: 0.78rem;
  color: #676158;
}

.proto-field input {
  border: 1px solid #ddd7cd;
  border-radius: 8px;
  background: #fffdf9;
  padding: 0.44rem 0.58rem;
  font-size: 0.82rem;
  line-height: 1.2;
}

.proto-inline-link {
  display: inline-block;
  width: fit-content;
  margin-top: 0.08rem;
  font-size: 0.79rem;
  color: #2b6f8a;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(43, 111, 138, 0.45);
}

.proto-inline-link:hover {
  color: #1c596f;
  text-decoration-color: rgba(28, 89, 111, 0.7);
}

.proto-check-tree-wrap {
  border: 1px solid #e5dfd5;
  border-radius: 10px;
  background: #fcfbf8;
  padding: 0.58rem 0.62rem;
  max-height: 210px;
  overflow: auto;
}

.proto-check-tree,
.proto-check-tree ul {
  list-style: none;
  margin: 0;
  padding-left: 0.8rem;
}

.proto-check-tree > li {
  padding-left: 0;
}

.proto-check-tree li {
  margin: 0.28rem 0;
}

.proto-check-tree ul {
  margin-left: 0.12rem;
  border-left: 1px dashed #d9d2c8;
  padding-left: 0.68rem;
}

.proto-check-tree__node {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 160px;
  padding: 0.24rem 0.4rem;
  border-radius: 7px;
  border: 1px solid #ece5da;
  background: #fff;
  font-size: 0.8rem;
}

.proto-check-tree__node--branch {
  background: #f8f4ee;
}

.proto-check-tree__node input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #2d6a6a;
}

.proto-check-list-wrap {
  border: 1px solid #e5dfd5;
  border-radius: 10px;
  background: #fcfbf8;
  padding: 0.36rem;
  max-height: 190px;
  overflow: auto;
}

.proto-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.proto-check-list li + li {
  margin-top: 0.24rem;
}

.proto-check-list label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #ece5da;
  border-radius: 8px;
  background: #fff;
  padding: 0.32rem 0.46rem;
  font-size: 0.8rem;
}

.proto-check-list input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #2d6a6a;
}

.proto-modal-demo__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.52rem;
  padding: 0.65rem 0.9rem;
  border-top: 1px solid #ece6dc;
  background: #fcfaf7;
}

.proto-btn {
  border: 1px solid #cfc8bc;
  border-radius: 8px;
  padding: 0.34rem 0.82rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}

.proto-btn--minor {
  background: #fff;
  color: #4a443d;
}

.proto-btn--primary {
  border-color: #b7d6d6;
  background: #eaf6f6;
  color: #1f6666;
}

/* 人员管理页面 */
.person-page {
  margin-top: 0.25rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0.9rem;
}

.person-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-bottom: 0.62rem;
}

.person-category-tabs__btn {
  border: 1px solid var(--line);
  background: #fbfaf8;
  color: var(--muted);
  border-radius: 8px;
  padding: 0.42rem 1rem;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.2;
}

.person-category-tabs__btn--active {
  color: var(--accent);
  background: linear-gradient(180deg, #edf7f7 0%, #e4f0f0 100%);
  border-color: #c5dede;
  font-weight: 600;
}

.person-region,
.person-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.person-region {
  padding: 0.82rem;
}

.person-region h2 {
  margin: 0 0 0.58rem;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.person-tree,
.person-tree ul {
  list-style: none;
  margin: 0;
  padding-left: 0.8rem;
}

.person-tree > li {
  padding-left: 0;
}

.person-tree li {
  margin: 0.28rem 0;
}

.person-tree ul {
  margin-left: 0.12rem;
  border-left: 1px dashed #d8d1c6;
  padding-left: 0.7rem;
}

.person-tree__node,
.person-tree__leaf {
  display: inline-block;
  padding: 0.24rem 0.5rem;
  border: 1px solid #e5dfd4;
  border-radius: 7px;
  background: #f9f7f3;
  font-size: 0.8rem;
}

.person-tree__node::before {
  content: "▸ ";
  color: #8f877a;
}

.person-tree__node--active {
  background: var(--accent-soft);
  border-color: #c5dede;
  color: var(--accent);
  font-weight: 600;
}

.person-main {
  padding: 0.82rem;
}

.person-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.72rem;
}

.person-search {
  flex: 1;
}

.person-search input {
  width: 100%;
  border: 1px solid #dcd6cd;
  background: #fffdf9;
  border-radius: 8px;
  padding: 0.46rem 0.62rem;
  font-size: 0.82rem;
  outline: none;
}

.person-search input:focus {
  border-color: #b8d5d5;
  box-shadow: 0 0 0 2px rgba(45, 106, 106, 0.1);
}

.person-btn {
  border: 1px solid #cfc8bc;
  border-radius: 8px;
  padding: 0.38rem 0.78rem;
  font-size: 0.79rem;
  font-weight: 600;
  line-height: 1.2;
}

.person-btn--primary {
  border-color: #b7d6d6;
  background: #eaf6f6;
  color: #1f6666;
}

.person-btn--ghost {
  background: #fff;
  color: #4d473f;
}

.person-table-wrap {
  border: 1px solid #e5dfd4;
  border-radius: 10px;
  overflow: auto;
}

.person-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  font-size: 0.79rem;
}

.person-table thead th {
  text-align: left;
  background: #f8f5f0;
  color: #5f594f;
  font-weight: 600;
  padding: 0.48rem 0.56rem;
  border-bottom: 1px solid #e5dfd4;
  white-space: nowrap;
}

.person-table tbody td {
  padding: 0.48rem 0.56rem;
  border-bottom: 1px solid #f0ebe3;
  color: #39352f;
  vertical-align: top;
}

.person-table tbody tr:last-child td {
  border-bottom: none;
}

.person-ops {
  display: inline-flex;
  gap: 0.28rem;
}

.person-link-btn {
  border: 1px solid #d5cec3;
  background: #fff;
  border-radius: 6px;
  padding: 0.18rem 0.48rem;
  font-size: 0.74rem;
  color: #4e4941;
}

.person-link-btn--danger {
  color: #9b3a3a;
}

.person-modal-section {
  margin-top: 1rem;
}

.person-modal-demo {
  border: 1px solid #d9d4cb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(42, 38, 33, 0.08);
  overflow: hidden;
}

.person-modal-demo__titlebar {
  padding: 0.72rem 0.9rem;
  border-bottom: 1px solid #e8e2d9;
  background: linear-gradient(180deg, #fcfaf7 0%, #f6f1e9 100%);
}

.person-modal-demo__titlebar h2 {
  margin: 0;
  font-size: 0.94rem;
  color: #3d3833;
}

.person-modal-demo__body {
  padding: 0.85rem 0.9rem;
}

.person-modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.68rem;
}

.person-field {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.person-field span {
  font-size: 0.78rem;
  color: #676158;
}

.person-field input,
.person-field select {
  border: 1px solid #ddd7cd;
  border-radius: 8px;
  background: #fffdf9;
  padding: 0.44rem 0.58rem;
  font-size: 0.82rem;
  line-height: 1.2;
}

.person-channel-box {
  margin-top: 0.8rem;
  border: 1px solid #e6dfd4;
  border-radius: 10px;
  background: #fcfaf7;
  padding: 0.62rem 0.72rem;
}

.person-channel-box h3 {
  margin: 0 0 0.42rem;
  font-size: 0.82rem;
  color: #5c564d;
}

.person-channel-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.person-channel-list li {
  display: flex;
  gap: 0.32rem;
  align-items: center;
  font-size: 0.8rem;
  color: #3d3833;
}

.person-channel-list li + li {
  margin-top: 0.26rem;
}

.person-channel-list__ok {
  color: #1f6666;
  font-weight: 600;
}

.person-channel-list__empty {
  color: #9b3a3a;
}

.person-modal-demo__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.52rem;
  padding: 0.65rem 0.9rem;
  border-top: 1px solid #ece6dc;
  background: #fcfaf7;
}

@media (max-width: 860px) {
  .proto-frame__body {
    grid-template-columns: 1fr;
  }

  .proto-pane + .proto-pane {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .proto-frame__topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .proto-modal-split {
    grid-template-columns: 1fr;
  }

  .proto-form-grid {
    grid-template-columns: 1fr;
  }

  .person-page {
    grid-template-columns: 1fr;
  }

  .person-toolbar {
    flex-wrap: wrap;
  }

  .person-search {
    flex: 1 1 100%;
  }

  .person-modal-form-grid {
    grid-template-columns: 1fr;
  }
}
