/* 采购协同平台 Demo · 企业后台视觉
   约束：无外链字体与图标、对比度 ≥ 4.5:1、状态不靠颜色单独表意、
   高度自适应 620–760、最小宽度 1180。 */

:root {
  /* 底色由米黄改为冷调渐变：--bg 只作为实色兜底（边框、遮罩要用），
     真正的画面由 --wash 提供——同一条渐变贯穿应用与首页。 */
  --bg: #f2f5f4;
  --wash: linear-gradient(158deg, #e2f0ea 0%, #eef4f4 42%, #e6ecf7 100%);
  --panel: #ffffff;
  --line: #e0e6e5;
  --line-2: #ecf0f0;
  --text: #1b2430;
  --text-2: #55606e;
  --text-3: #7d8894;
  --accent: #0f6e56;
  --accent-2: #12866a;
  --accent-soft: #e9f5f0;
  --warn: #a35a08;
  --warn-soft: #fdf3e3;
  --warn-line: #f0d5a8;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --info: #1f5f99;
  --info-soft: #eaf2fa;
  --radius: 10px;
  --radius-lg: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(16, 30, 54, 0.05), 0 8px 24px rgba(16, 30, 54, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  height: 100%;
}

body {
  margin: 0;
  background: var(--wash);
  background-attachment: fixed;
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', Roboto,
    sans-serif;
  font-size: 13px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
}
p {
  margin: 0;
}

.app-root {
  height: 100%;
}
.boot {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--text-3);
}

.mono,
.num {
  font-variant-numeric: tabular-nums;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}
.muted {
  color: var(--text-3);
}
.danger {
  color: var(--danger);
}
.divider {
  height: 1px;
  background: var(--line-2);
  margin: 14px 0;
}

/* ---------- 外壳 ---------- */

.shell {
  display: flex;
  height: 100%;
  min-height: 0;
}

.sidebar {
  flex: 0 0 212px;
  width: 212px;
  background: #fbfaf6;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px 16px 14px;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
}
.brand:hover .brand-txt b {
  color: var(--accent);
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex: 0 0 30px;
}
.brand-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.brand-txt b {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
}
.brand-txt small {
  color: var(--text-3);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.nav {
  flex: 1;
  padding: 6px 8px;
  overflow: auto;
}
.nav-group {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--text-3);
  padding: 12px 10px 4px;
  margin: 0;
}
.nav-group:first-child {
  padding-top: 4px;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  margin-bottom: 2px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 13.5px;
  text-align: left;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-item:hover {
  background: #f0ece2;
  color: var(--text);
}
.nav-item {
  transition:
    background 0.16s var(--ease),
    color 0.16s var(--ease);
}
.nav-item.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 2px 0 0 var(--accent);
  font-weight: 500;
}
.nav-item svg {
  flex: 0 0 17px;
  opacity: 0.9;
}
.nav-badge {
  margin-left: auto;
  background: #c2410c;
  color: #fff;
  font-size: 10.5px;
  border-radius: 999px;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
}

.side-foot {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.5;
}
.side-foot b {
  display: block;
  color: var(--text-2);
  font-weight: 400;
  font-size: 11.5px;
}
.side-foot small {
  color: var(--text-3);
  font-size: 10.5px;
}
.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 5px;
  flex: 0 0 6px;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  flex: 0 0 58px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.crumb {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 13px;
}
.crumb-root {
  color: var(--text-3);
}
.crumb-sep {
  color: #cbd5e1;
}
.crumb-cur {
  color: var(--text);
  font-weight: 500;
}
.top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.role-label {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.role-switch {
  display: flex;
  gap: 2px;
  background: #f1f4f9;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 2px;
}
.role-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 12px;
  color: var(--text-2);
}
.role-btn:hover {
  color: var(--text);
}
.role-btn.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(16, 30, 54, 0.12);
}
.role-ini {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: #dbe4ef;
  color: #43536b;
  font-size: 10.5px;
}
.role-btn.is-active .role-ini {
  background: var(--accent);
  color: #fff;
}

.content {
  flex: 1;
  overflow: auto;
  padding: 22px 26px 36px;
  scroll-behavior: smooth;
}
.content::-webkit-scrollbar {
  width: 10px;
}
.content::-webkit-scrollbar-thumb {
  background: #d7dfe9;
  border-radius: 6px;
  border: 3px solid var(--bg);
}

/* ---------- 演示路径 ---------- */

.guide {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 16px 10px;
  margin-bottom: 16px;
}
.guide.collapsed {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: var(--text-3);
  font-size: 12px;
}
.guide-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.guide-hd b {
  font-size: 13px;
  font-weight: 500;
}
.guide-sub {
  color: var(--text-3);
  font-size: 11.5px;
}
.guide-hd .icon-btn {
  margin-left: auto;
}
.guide-steps {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0;
  padding: 0 0 2px;
  list-style: none;
  overflow-x: auto;
}
.guide-steps li {
  flex: 0 0 auto;
}
.guide-steps button {
  white-space: nowrap;
}
.guide-steps button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: #fbfcfe;
  border-radius: 999px;
  padding: 4px 11px 4px 5px;
  font-size: 11.5px;
  color: var(--text-2);
}
.guide-steps button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.guide-steps i {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #e8edf5;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-style: normal;
  color: #566579;
}

/* ---------- 页头与卡片 ---------- */

.page-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.page-head h1 {
  font-size: 24px;
  letter-spacing: -0.02em;
}
.page-sub {
  color: var(--text-3);
  font-size: 12.5px;
  margin-top: 6px;
  line-height: 1.6;
}
.page-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}
.card-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-2);
}
.card-hd h2 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.card-sub {
  color: var(--text-3);
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.6;
}
.card-act {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-bd {
  padding: 18px 20px;
}
.card-bd.pad-0 {
  padding: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 16px;
}
.metric.warn {
  border-color: var(--warn-line);
  background: #fffdf7;
}
.metric-label {
  color: var(--text-3);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.metric-value {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.metric-hint {
  color: var(--text-3);
  font-size: 11.5px;
  margin-top: 2px;
}

.info {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #c9d4e2;
  background: #fff;
  color: var(--text-3);
  font-size: 9.5px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  padding: 0;
}
.info:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cfd9e6;
  background: #fff;
  color: #26374b;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12.5px;
  transition:
    background 0.16s var(--ease),
    border-color 0.16s var(--ease);
}
.btn:hover {
  background: #f7f9fc;
  border-color: #b7c5d6;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}
.btn.danger {
  color: var(--danger);
  border-color: #e7c3bf;
  background: #fff;
}
.btn.danger:hover {
  background: var(--danger-soft);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  padding: 2px 4px;
}
.link-btn:hover {
  text-decoration: underline;
}

.icon-btn {
  border: 0;
  background: transparent;
  color: var(--text-3);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
}
.icon-btn:hover {
  background: #f1f4f9;
  color: var(--text);
}

.mini-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
  border-radius: 6px;
  font-size: 10.5px;
  padding: 1px 6px;
  margin-left: 6px;
}
.mini-btn:hover {
  border-color: var(--accent);
}

.hint-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-3);
  font-size: 11.5px;
}

/* ---------- 表格 ---------- */

.table-wrap {
  overflow: auto;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tbl th {
  text-align: left;
  font-weight: 400;
  color: var(--text-3);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  padding: 11px 14px;
  background: #faf8f3;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
.tbl td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
.tbl tbody tr:last-child td {
  border-bottom: 0;
}
.tbl tbody tr:hover {
  background: #fbfcfe;
}
.tbl .row-click {
  cursor: pointer;
}
.tbl .ta-r {
  text-align: right;
}
.tbl .ta-c {
  text-align: center;
}
.sub-line {
  color: var(--text-3);
  font-size: 10.5px;
  margin-top: 1px;
}
.sub-line.danger {
  color: var(--danger);
}
.diff-row td {
  background: #fff7f6;
  border-top: 1px solid #f3d5d1;
}

.tbl .nw {
  white-space: nowrap;
}
.tco-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}
.mini-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.mini-tbl td {
  padding: 7px 4px;
  border-bottom: 1px dashed var(--line-2);
}
.mini-tbl tr.sum td {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

/* ---------- 标记 ---------- */

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  line-height: 1.7;
  white-space: nowrap;
}
.b-ok {
  background: var(--accent-soft);
  color: #0b5a46;
}
.b-info {
  background: var(--info-soft);
  color: #1a4f80;
}
.b-warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.b-danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.b-mute {
  background: #f0f3f8;
  color: #5a6a80;
}

.pill {
  display: inline-block;
  border-radius: 5px;
  padding: 0 6px;
  font-size: 10.5px;
  margin-right: 4px;
  border: 1px solid transparent;
}
.p-ok {
  background: var(--accent-soft);
  color: #0b5a46;
}
.p-warn {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: var(--warn-line);
}
.p-danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.p-mute {
  background: #f0f3f8;
  color: #5a6a80;
}

/* ---------- 深链路进度 ---------- */

.chain {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.chain-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px 6px 7px;
  font-size: 12.5px;
  color: var(--text-2);
}
.chain-step:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.chain-idx {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eef2f8;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  color: #5a6a80;
}
.chain-step.is-done {
  border-color: #bfe3d6;
  background: var(--accent-soft);
  color: #0b5a46;
}
.chain-step.is-done .chain-idx {
  background: var(--accent);
  color: #fff;
}
.chain-line {
  width: 16px;
  height: 1px;
  background: var(--line);
}

/* ---------- 待办与异常 ---------- */

.todo-list,
.alert-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.todo-list li + li {
  border-top: 1px solid var(--line-2);
}
.todo-list button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: 0;
  padding: 9px 2px;
  text-align: left;
}
.todo-list button:hover .todo-main b {
  color: var(--accent);
}
.todo-main {
  flex: 1;
  min-width: 0;
}
.todo-main b {
  display: block;
  font-weight: 400;
  font-size: 12.5px;
}
.todo-main small {
  color: var(--text-3);
  font-size: 11px;
}
.todo-mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 6px;
  background: var(--text-3);
}
.todo-mark.t-warn {
  background: #d97706;
}
.todo-mark.t-danger {
  background: var(--danger);
}
.todo-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 12px;
  padding: 8px 2px;
}

.alert-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fbfcfe;
  border: 1px solid var(--line-2);
}
.alert-list li.al-warn {
  background: var(--warn-soft);
  border-color: var(--warn-line);
}
.alert-list li.al-danger {
  background: var(--danger-soft);
  border-color: #f3d5d1;
}
.al-icon {
  color: var(--warn);
  display: grid;
  place-items: center;
}
.al-danger .al-icon {
  color: var(--danger);
}
.al-main {
  flex: 1;
  min-width: 0;
}
.al-main b {
  font-weight: 400;
  font-size: 12.5px;
  display: block;
}
.al-main small {
  color: var(--text-2);
  font-size: 11px;
}
.al-tag {
  font-size: 10.5px;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 5px;
  background: #fff;
}

/* ---------- 报价卡 ---------- */

.q-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.q-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfdff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.q-card header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.q-card header b {
  font-size: 12.5px;
  font-weight: 500;
}
.q-doc {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--text-3);
  background: #eef2f8;
  border-radius: 5px;
  padding: 1px 6px;
}
.q-card.is-parsed {
  background: #fff;
}
.q-card.is-parsing {
  border-color: var(--warn-line);
  background: var(--warn-soft);
}
.q-raw {
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.7;
  font-family: ui-monospace, Menlo, monospace;
}
.q-state {
  font-size: 11px;
  color: var(--text-3);
}
.q-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin: 0;
}
.q-fields dt {
  color: var(--text-3);
  font-size: 10.5px;
}
.q-fields dd {
  margin: 0;
  font-size: 12px;
}
.q-card footer {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px dashed var(--line-2);
  padding-top: 8px;
}
.src {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-3);
  font-size: 10.5px;
}
.q-warn {
  margin-left: auto;
  color: var(--danger);
  font-size: 10.5px;
}

.skel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.skel-row {
  height: 11px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0ece3, #faf8f3, #f0ece3);
  background-size: 200% 100%;
  animation: sh 1.2s linear infinite;
}
@keyframes sh {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
.waiting {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 12px;
  padding: 10px 2px;
}

/* ---------- 建议 ---------- */

.sug {
  border: 1px solid #cfe6dc;
  background: #f8fcfa;
  border-radius: 10px;
  padding: 16px 18px;
}
.sug-hd {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.sug-mark {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 25px;
}
.sug-hd b {
  font-size: 13.5px;
  font-weight: 500;
}
.sug-hd p {
  color: var(--text-2);
  font-size: 12px;
  margin-top: 2px;
}
.sug-save {
  margin-left: auto;
  display: flex;
  gap: 14px;
}
.sug-save span {
  font-size: 11px;
  color: var(--text-3);
}
.sug-save b {
  display: block;
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.sug-reasons {
  margin: 12px 0 0;
  padding-left: 18px;
}
.sug-reasons li {
  font-size: 12.5px;
  color: #2c3b50;
  margin-bottom: 5px;
}
.sug-excluded {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--danger-soft);
  border-radius: 8px;
}
.sug-excluded b {
  font-size: 11.5px;
  color: var(--danger);
  font-weight: 500;
}
.sug-excluded p {
  font-size: 11.5px;
  color: #7a3a34;
  margin-top: 4px;
}
.sug-act {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.sug-done .sug-mark {
  background: var(--accent);
}
.sug-blocked {
  border-color: #f3d5d1;
  background: var(--danger-soft);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.alt-pick {
  font-size: 12px;
}
.alt-pick summary {
  cursor: pointer;
  color: var(--text-2);
  padding: 6px 2px;
}
.alt-pick summary:hover {
  color: var(--accent);
}
.alt-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0 2px;
  min-width: 320px;
}
.alt-body select,
.alt-body textarea {
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 12.5px;
  background: #fff;
}

/* ---------- 表单 ---------- */

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: var(--text-2);
}
.form input,
.form select,
.form textarea,
.receive-form input {
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12.5px;
  background: #fff;
  color: var(--text);
}
.form input:focus,
.form select:focus,
.form textarea:focus,
.receive-form input:focus {
  outline: 2px solid rgba(15, 110, 86, 0.25);
  outline-offset: 0;
  border-color: var(--accent);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.req {
  color: var(--danger);
  margin-left: 2px;
}
.form-err {
  color: var(--danger);
  background: var(--danger-soft);
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 12px;
}
.form-tip {
  color: var(--text-3);
  font-size: 11px;
}

.act-panel {
  border-top: 1px dashed var(--line);
  margin-top: 14px;
  padding-top: 12px;
}
.act-label {
  font-size: 11.5px;
  color: var(--text-3);
  display: block;
  margin-bottom: 6px;
}
.act-panel textarea {
  width: 100%;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  resize: vertical;
}
.act-btns {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.act-hint {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: #f6f8fb;
  border: 1px dashed #cfd9e6;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-2);
  margin-top: 14px;
}
.act-hint.ok {
  background: var(--accent-soft);
  border-color: #bfe3d6;
  color: #0b5a46;
}
.act-note {
  font-size: 11.5px;
  color: var(--warn);
  background: var(--warn-soft);
  border-radius: 6px;
  padding: 6px 9px;
  margin-top: 8px;
}

.receive-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.receive-form .form-row {
  width: 100%;
  max-width: 420px;
}
.receive-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: var(--text-2);
}
.receive-done {
  background: #f8fbfa;
  border: 1px solid #d8ece5;
  border-radius: 9px;
  padding: 12px;
}
.rd-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0b5a46;
  font-size: 12.5px;
}
.rd-head span {
  margin-left: auto;
  color: var(--text-3);
  font-size: 11px;
}
.rd-nums {
  display: flex;
  gap: 26px;
  margin: 10px 0;
}
.rd-nums div {
  display: flex;
  flex-direction: column;
}
.rd-nums span {
  color: var(--text-3);
  font-size: 10.5px;
}
.rd-nums b {
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.rd-note {
  font-size: 11.5px;
  color: var(--warn);
  margin-bottom: 10px;
}
.rd-note.ok {
  color: #0b5a46;
}

/* ---------- 对账 ---------- */

.recon-calc {
  display: flex;
  gap: 34px;
  margin: 12px 0 8px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 9px;
}
.recon-calc span {
  display: block;
  color: var(--text-3);
  font-size: 11px;
}
.recon-calc b {
  font-size: 18px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.calc-note {
  font-size: 11.5px;
  color: var(--text-2);
  background: #f6f8fb;
  border-left: 2px solid #cfd9e6;
  padding: 8px 10px;
  border-radius: 0 6px 6px 0;
}
.dispo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.dispo {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dispo:hover {
  border-color: var(--accent);
  background: #f9fdfb;
}
.dispo b {
  font-weight: 500;
  font-size: 12.5px;
}
.dispo small {
  color: var(--text-3);
  font-size: 11px;
}
.disposition-done {
  background: var(--accent-soft);
  border-radius: 9px;
  padding: 12px;
}
.disposition-done b {
  color: #0b5a46;
  font-weight: 500;
}
.disposition-done p {
  font-size: 11.5px;
  color: var(--text-2);
  margin-top: 4px;
}

/* ---------- 审批 ---------- */

.stepper {
  list-style: none;
  margin: 0;
  padding: 0;
}
.stepper li {
  display: flex;
  gap: 11px;
  padding-bottom: 16px;
  position: relative;
}
.stepper li:last-child {
  padding-bottom: 0;
}
.stepper li::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.stepper li:last-child::before {
  display: none;
}
.st-dot {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  flex: 0 0 21px;
  display: grid;
  place-items: center;
  background: #eef2f8;
  color: #6b7c93;
  font-size: 10.5px;
}
.st-done .st-dot {
  background: var(--accent);
  color: #fff;
}
.st-current .st-dot {
  background: #fff;
  border: 2px solid var(--warn);
  color: var(--warn);
}
.st-reject .st-dot {
  background: var(--danger);
  color: #fff;
}
.st-body b {
  font-weight: 400;
  font-size: 12.5px;
}
.st-body small {
  display: block;
  color: var(--text-3);
  font-size: 11px;
}
.st-body em {
  display: block;
  color: var(--text-2);
  font-size: 11.5px;
  margin-top: 3px;
}

.trail {
  list-style: none;
  margin: 0;
  padding: 0;
}
.trail li {
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--line);
}
.trail li.tl-done {
  border-color: var(--accent);
}
.trail li.tl-current {
  border-color: var(--warn);
}
.trail li.tl-reject {
  border-color: var(--danger);
}
.trail b {
  font-weight: 400;
  font-size: 12.5px;
}
.trail span {
  display: block;
  color: var(--text-3);
  font-size: 11px;
}
.trail em {
  display: block;
  color: var(--text-2);
  font-size: 11.5px;
}

.approval-top {
  padding: 14px 16px;
}

/* ---------- 履约时间轴 ---------- */

.timeline {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  flex: 1;
  position: relative;
  padding-top: 22px;
}
.timeline li::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}
.timeline li:first-child::before {
  left: 50%;
}
.timeline li:last-child::before {
  right: 50%;
}
.tl-dot {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d3dce8;
  display: grid;
  place-items: center;
  color: #fff;
}
.timeline li.is-done .tl-dot {
  background: var(--accent);
  border-color: var(--accent);
}
.timeline li.is-done::before {
  background: #bfe3d6;
}
.timeline b {
  display: block;
  text-align: center;
  font-weight: 400;
  font-size: 11.5px;
}
.timeline small {
  display: block;
  text-align: center;
  color: var(--text-3);
  font-size: 10.5px;
}

/* ---------- 筛选 ---------- */

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  flex-wrap: wrap;
}
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-2);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 11.5px;
}
.chip:hover {
  border-color: #bfcbd9;
}
.chip.is-on {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 9px;
  margin-left: auto;
  color: var(--text-3);
}
.search input {
  border: 0;
  outline: 0;
  width: 180px;
  font-size: 12.5px;
  background: transparent;
}

/* ---------- 图表 ---------- */

.chart {
  display: block;
}
.donut-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}
.legend {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.legend li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  padding: 3px 0;
  color: var(--text-2);
}
.legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.legend b {
  margin-left: auto;
  font-weight: 400;
  color: var(--text);
}
.bar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bar-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.bl-label {
  width: 108px;
  font-size: 12px;
  color: var(--text-2);
  flex: 0 0 108px;
}
.bl-track {
  flex: 1;
  height: 7px;
  background: #eef2f8;
  border-radius: 4px;
  overflow: hidden;
}
.bl-track i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}
.bl-val {
  width: 96px;
  text-align: right;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}
.bar {
  height: 6px;
  background: #eef2f8;
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
}
.bf-ok {
  background: var(--accent);
}
.bf-warn {
  background: #d97706;
}
.rate-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.rate-bars > div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-3);
}

/* ---------- 空态 ---------- */

.empty {
  text-align: center;
  padding: 34px 16px;
}
.empty-mark {
  color: #c3cfdd;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}
.empty-title {
  font-size: 13px;
}
.empty-desc {
  color: var(--text-3);
  font-size: 12px;
  margin: 4px 0 12px;
}

/* ---------- 抽屉 ---------- */

.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(14, 26, 44, 0.28);
  z-index: 40;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 92vw;
  background: #fff;
  z-index: 41;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(16, 30, 54, 0.14);
  animation: slide 0.18s ease-out;
}
@keyframes slide {
  from {
    transform: translateX(16px);
    opacity: 0.6;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.drawer-hd {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-2);
}
.drawer-hd h2 {
  font-size: 15px;
}
.drawer-hd p {
  color: var(--text-3);
  font-size: 11.5px;
  margin-top: 3px;
}
.drawer-hd .icon-btn {
  margin-left: auto;
}
.drawer-bd {
  flex: 1;
  overflow: auto;
  padding: 16px 18px;
}
.drawer-ft {
  padding: 12px 18px;
  border-top: 1px solid var(--line-2);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  background: #fbfcfe;
}

.kv-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 0;
}
.kv-list dt {
  color: var(--text-3);
  font-size: 11px;
}
.kv-list dd {
  margin: 0;
  font-size: 12.5px;
}

.sub-hd {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 8px;
}
.about p {
  font-size: 12.5px;
  margin-bottom: 10px;
}
.about ul {
  margin: 0 0 10px;
  padding-left: 18px;
}
.about li {
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 5px;
}

/* ---------- 提示 ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #16202e;
  color: #f4f8ff;
  border-radius: 9px;
  padding: 9px 15px;
  font-size: 12.5px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 76vw;
  box-shadow: 0 10px 28px rgba(16, 30, 54, 0.22);
  animation: pop 0.18s ease-out;
}
.toast.t-warn {
  background: #7c3f06;
}
.toast.t-danger {
  background: #7a1d15;
}
@keyframes pop {
  from {
    transform: translate(-50%, 8px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.fatal {
  padding: 40px;
  text-align: center;
}

/* ---------- 窄屏提示 ---------- */

.narrow-hint {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(244, 246, 249, 0.92);
  display: grid;
  place-items: center;
}
.narrow-hint[hidden] {
  display: none;
}
.nh-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  max-width: 380px;
  text-align: center;
  box-shadow: var(--shadow);
}
.nh-card b {
  font-size: 14px;
}
.nh-card p {
  color: var(--text-2);
  font-size: 12.5px;
  margin-top: 6px;
}

@media (max-width: 1179px) {
  .grid-2,
  .metric-grid,
  .q-grid,
  .dispo-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .content {
    scroll-behavior: auto;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ============ 首页（静态说明页 · 纸色浅底） ============
   这一版按需求把米黄底换成了渐变：只做「一条斜向的柔和色温变化」，
   不用紫蓝 mesh、不用发光——那种才是最容易认出「AI 做的」。
   层次仍靠三样东西：极细网格、1px 细线、产品面板的一道软阴影。
   尺度参考产品官网：超大衬线主张 + 一行正文 + 占屏比高的产品面板 + 大数字带。 */

.landing {
  --paper: #f3f5f3;
  --paper-2: #eef2f1;
  --surface: #ffffff;
  --ink: #14181f;
  --ink-2: #3d4753;
  --muted: rgba(20, 24, 31, 0.6);
  --faint: rgba(20, 24, 31, 0.38);
  --hair: rgba(20, 24, 31, 0.12);
  --hair-2: rgba(20, 24, 31, 0.07);
  --green: #0f6e56;
  --green-ink: #0b5f4a;
  --amber: #b45309;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background-color: var(--paper);
  /* 网格压在渐变之上：横竖线只留 2.6% 的黑，负责「纸面」的质感；
     渐变从薄荷绿起、经中性、落到一点淡紫蓝与暖砂，角度跟正文阅读方向一致。 */
  background-image:
    linear-gradient(rgba(20, 24, 31, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 24, 31, 0.026) 1px, transparent 1px),
    radial-gradient(120% 88% at 10% -6%, rgba(15, 110, 86, 0.13), transparent 62%),
    linear-gradient(164deg, #e4f2ea 0%, #eef4f4 36%, #e6ecf8 70%, #f6eee2 100%);
  background-size:
    40px 40px,
    40px 40px,
    100% 100%,
    100% 100%;
  color: var(--ink);
}

.landing-bar {
  flex: 0 0 56px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 48px;
  border-bottom: 1px solid var(--hair);
  background: rgba(245, 249, 247, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.landing-brand {
  display: flex;
  gap: 11px;
  align-items: center;
}
.landing-brand .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 15px;
  background: var(--green);
  color: #fff;
}
.landing-brand .brand-txt b {
  color: var(--ink);
  font-size: 14px;
}
.landing-brand .brand-txt small {
  color: var(--faint);
  letter-spacing: 0.18em;
  font-size: 9.5px;
}
.landing-bar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.landing-ver {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.landing-scroll {
  flex: 1;
  overflow: auto;
  overflow-x: hidden;
  min-height: 0;
}
.landing-scroll::-webkit-scrollbar {
  width: 11px;
}
.landing-scroll::-webkit-scrollbar-thumb {
  background: rgba(20, 24, 31, 0.16);
  border-radius: 6px;
  border: 3px solid var(--paper);
}

.landing-body {
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  padding: 0 48px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* ---- 首屏 ---- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 60px;
  padding: 68px 0 60px;
  align-items: center;
}

/* 纸面浮尘：极低对比的深灰点，缓慢上浮，随指针轻微视差 */
.hero-fx {
  position: absolute;
  inset: -30px 0 -10px;
  width: 100%;
  height: calc(100% + 40px);
  pointer-events: none;
  z-index: 0;
}
.hero-copy,
.panel-stage {
  position: relative;
  z-index: 1;
}

/* 面板 3D：外层负责悬浮，内层负责倾斜，两套 transform 不打架 */
.panel-stage {
  perspective: 1200px;
  animation: floaty 9s ease-in-out infinite;
}
.panel-stage:hover .panel {
  box-shadow:
    0 40px 84px -32px rgba(18, 32, 48, 0.4),
    0 6px 16px rgba(18, 32, 48, 0.07);
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green-ink);
  margin-bottom: 22px;
}
.hero h1 {
  font-family: 'Songti SC', 'STSong', 'Noto Serif SC', Georgia, 'Times New Roman', serif;
  font-size: clamp(38px, 4.4vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  font-weight: 600;
  color: var(--ink);
}
.lede {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 26em;
}
.hero-cta {
  margin-top: 34px;
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  border: 1px solid var(--green);
  color: #fff;
  border-radius: 9px;
  padding: 15px 28px;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition:
    background 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.cta-primary:hover {
  background: #12866a;
  border-color: #12866a;
  transform: translateY(-1px);
}
.hero-note {
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--faint);
}

/* 产品面板：白纸上一张实体卡片，靠软阴影而不是渐变拉开层次 */
.panel {
  margin: 0;
  position: relative;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--surface);
  box-shadow:
    0 26px 60px -28px rgba(18, 32, 48, 0.32),
    0 2px 6px rgba(18, 32, 48, 0.05);
  overflow: hidden;
  /* 静置就有 1° / -2° 的微倾，读得出来是「一张立起来的卡」，指针靠近再叠加 */
  --rx: 1deg;
  --ry: -2deg;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.panel-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--hair-2);
}
.panel-id {
  font-size: 11.5px;
  font-family: ui-monospace, Menlo, monospace;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.panel-name {
  font-size: 12px;
  color: var(--faint);
}
.panel-chip {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--amber);
  border: 1px solid rgba(180, 83, 9, 0.22);
  background: rgba(180, 83, 9, 0.07);
  border-radius: 4px;
  padding: 1px 7px;
}
.p-row {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.9fr 88px;
  gap: 10px;
  align-items: center;
  padding: 13px 18px;
  font-size: 13px;
  border-bottom: 1px solid var(--hair-2);
}
.p-head {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--faint);
  padding-top: 10px;
  padding-bottom: 10px;
}
.p-row .num,
.p-row .ta-r {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.p-name {
  font-size: 13px;
  color: var(--ink);
}
.p-name em {
  display: block;
  font-style: normal;
  font-size: 10.5px;
  color: var(--faint);
  margin-top: 2px;
}
.p-tag {
  display: inline-block;
  font-style: normal;
  font-size: 10.5px;
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
}
.p-tag.t-ok {
  background: #e6f2ec;
  color: #0b6049;
}
.p-tag.t-danger {
  background: #fbe9df;
  color: #a2441f;
}
.p-tag.t-mute {
  background: #efeee8;
  color: #5f6673;
}
.panel-sug {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 18px;
  background: #f0f7f3;
  border-top: 1px solid #dbeae1;
}
.p-spark {
  color: var(--green);
  display: grid;
  place-items: center;
}
.p-sug-txt b {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.p-sug-txt em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.panel figcaption {
  padding: 9px 18px 11px;
  font-size: 10.5px;
  color: var(--faint);
  border-top: 1px solid var(--hair-2);
  background: #fbfaf6;
}

/* ---- 大数字带 ---- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 40px 0 36px;
}
.stat {
  padding: 0 26px;
  border-right: 1px solid var(--hair-2);
}
.stat:first-child {
  padding-left: 0;
}
.stat:last-child {
  border-right: 0;
  padding-right: 0;
}
.stat-value {
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.stat-value i {
  font-style: normal;
  font-size: 12px;
  color: var(--faint);
  margin-left: 6px;
  letter-spacing: 0;
}
.stat-value span {
  font-variant-numeric: tabular-nums;
  display: inline-block;
  animation: statRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.stat:nth-child(2) .stat-value span {
  animation-delay: 0.08s;
}
.stat:nth-child(3) .stat-value span {
  animation-delay: 0.16s;
}
.stat:nth-child(4) .stat-value span {
  animation-delay: 0.24s;
}
@keyframes statRise {
  from {
    transform: translateY(10px);
  }
  to {
    transform: none;
  }
}
.stat-label {
  margin-top: 9px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.stat-note {
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--faint);
}

/* ---- 区块标题 ---- */

.sec-hd {
  margin-bottom: 34px;
}
.sec-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-ink);
  margin-bottom: 14px;
}
.sec-hd h2 {
  font-family: 'Songti SC', 'STSong', 'Noto Serif SC', Georgia, serif;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.26;
  letter-spacing: -0.022em;
  font-weight: 600;
  max-width: 22em;
  color: var(--ink);
}
.sec-sub {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 40em;
}

/* ---- 分工 ---- */

.split {
  padding: 84px 0 76px;
  border-top: 1px solid var(--hair);
}
.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
}
.split-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 16px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.dot-ai {
  background: var(--green);
}
.dot-human {
  background: var(--amber);
}
.split-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.split-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.split-list li:last-child {
  margin-bottom: 0;
}
.split-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(20, 24, 31, 0.22);
}

/* ---- 功能构成 ---- */

.functions {
  padding: 78px 0 72px;
  border-top: 1px solid var(--hair);
}
.fn-glabel {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 40px 0 4px;
}
.fn-glabel:first-of-type {
  margin-top: 0;
}
.fn-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
}
.fn-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 19px 0;
  border-bottom: 1px solid var(--hair-2);
}
.fn-no {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.fn-main b {
  display: block;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.fn-desc {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}
.fn-metric {
  font-size: 12px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---- 角色表 ---- */

.roles {
  padding: 78px 0 72px;
  border-top: 1px solid var(--hair);
}
.role-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.role-tbl th {
  text-align: left;
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--faint);
  padding: 0 16px 12px;
  border-bottom: 1px solid rgba(20, 24, 31, 0.2);
}
.role-tbl th:first-child,
.role-tbl td:first-child {
  padding-left: 0;
}
.role-tbl td {
  padding: 17px 16px;
  vertical-align: top;
  line-height: 1.65;
  color: var(--ink-2);
  border-bottom: 1px solid var(--hair-2);
}
.role-tbl tr:last-child td {
  border-bottom: 0;
}
.role-tbl td b {
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
}
.role-tbl .mute {
  color: var(--faint);
}

/* ---- 边界 ---- */

.bounds {
  flex: 1;
  padding: 76px 0 64px;
  border-top: 1px solid var(--hair);
}
.bound-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 64px;
  margin: 0;
}
.bound-list dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--green-ink);
  margin-bottom: 6px;
}
.bound-list dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}

.landing-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0 22px;
  border-top: 1px solid var(--hair);
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: 0.02em;
}

/* 只动位移不动透明度：动画未执行时内容依然可见 */
@keyframes rise {
  from {
    transform: translateY(12px);
  }
  to {
    transform: none;
  }
}
.hero-copy > * {
  animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-copy > *:nth-child(2) {
  animation-delay: 0.06s;
}
.hero-copy > *:nth-child(3) {
  animation-delay: 0.12s;
}
.hero-copy > *:nth-child(4) {
  animation-delay: 0.18s;
}
.hero-copy > *:nth-child(5) {
  animation-delay: 0.22s;
}

@media (prefers-reduced-motion: reduce) {
  .panel-stage {
    animation: none;
  }
  .panel {
    transform: none !important;
    transition: none;
  }
  .stat-value span {
    animation: none;
  }
}

@media (max-width: 1179px) {
  .landing-bar {
    padding: 0 24px;
  }
  .landing-body {
    padding: 0 24px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0 36px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 0;
  }
  .stat:nth-child(2n) {
    border-right: 0;
  }
  .split,
  .functions,
  .roles,
  .bounds {
    padding: 48px 0 44px;
  }
  .split-grid,
  .fn-list,
  .bound-list {
    grid-template-columns: 1fr;
    gap: 26px 0;
  }
  .fn-list {
    column-gap: 0;
  }
}
