:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #e7ebf0;
  --line-strong: #d7dee8;
  --text: #111827;
  --muted: #667085;
  --subtle: #98a2b3;
  --brand: #0f766e;
  --brand-strong: #0b5f59;
  --brand-soft: #e7f8f3;
  --blue: #2563eb;
  --blue-soft: #eaf2ff;
  --green: #059669;
  --green-soft: #e7f8ef;
  --amber: #d97706;
  --amber-soft: #fff4d6;
  --red: #e11d48;
  --red-soft: #ffe8ed;
  --violet: #6d28d9;
  --violet-soft: #f1ecff;
  --shadow: 0 2px 10px rgba(15, 23, 42, .06);
  --shadow-strong: 0 18px 50px rgba(15, 23, 42, .18);
  --radius: 10px;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

html[data-portal-theme="dark"] {
  --bg: #0b1220;
  --surface: #101828;
  --surface-soft: #172033;
  --line: #293548;
  --line-strong: #3a475b;
  --text: #f2f4f7;
  --muted: #b2bdcc;
  --subtle: #8793a6;
  --brand: #48c6b5;
  --brand-strong: #79ddcf;
  --brand-soft: #123a36;
  --green-soft: #12372d;
  --amber-soft: #3a2c12;
  --red-soft: #3c1821;
  --shadow: 0 2px 14px rgba(0, 0, 0, .28);
  --shadow-strong: 0 20px 56px rgba(0, 0, 0, .46);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
b { color: var(--red); }

.app {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 6;
}
.sidebar-dark {
  background: #111827;
  color: #e5e7eb;
  border-right-color: #1f2937;
}
.brand {
  min-height: 64px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-dark .brand { border-bottom-color: rgba(255,255,255,.08); }
.brand-inline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #101828;
  position: relative;
  flex: 0 0 38px;
  display: inline-block;
}
.brand-mark:before,
.brand-mark:after {
  content: "";
  position: absolute;
  width: 23px;
  height: 9px;
  border: 3px solid #38d5c2;
  border-left-color: #4f8cff;
  border-radius: 4px;
  transform: rotate(32deg);
}
.brand-mark:before { top: 8px; left: 6px; }
.brand-mark:after { bottom: 8px; right: 6px; transform: rotate(32deg) scaleX(-1); }
.brand-copy,
.brand-inline div {
  display: grid;
  gap: 4px;
}
.brand-copy strong,
.brand-inline strong {
  font-size: 17px;
  line-height: 1.1;
  font-weight: 750;
}
.brand-copy small,
.brand-inline span {
  color: var(--muted);
  font-size: 12px;
}
.sidebar-dark .brand-copy small { color: #9ca3af; }

.nav {
  padding: 14px 12px;
  display: grid;
  gap: 5px;
  align-content: start;
  overflow-y: auto;
  flex: 1;
  /* 保留滚动能力，但隐藏视觉滚动条，避免侧栏右缘露出突兀灰条（与 .console-tabs 处理一致） */
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
}
.nav::-webkit-scrollbar { width: 0; height: 0; display: none; }
.nav-group {
  margin: 14px 10px 6px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 700;
}
.sidebar-dark .nav-group { color: #6b7280; }
.nav-item {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #344054;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  font-weight: 650;
  text-align: left;
}
.sidebar-dark .nav-item { color: #d1d5db; }
.nav-item:hover { background: #f2f5f8; }
.sidebar-dark .nav-item:hover { background: rgba(255,255,255,.06); }
.nav-item.active {
  background: var(--brand-soft);
  color: var(--brand);
}
.sidebar-dark .nav-item.active {
  background: rgba(20, 184, 166, .16);
  color: #5eead4;
}
.nav-ico {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  background: rgba(15, 118, 110, .1);
  color: currentColor;
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.nav-sub-item {
  padding-left: 45px;
  font-size: 13px;
  min-height: 36px;
  opacity: .88;
}
.nav-sub-item .nav-ico {
  width: 18px;
  height: 18px;
  font-size: 11px;
  background: rgba(15, 118, 110, .08);
}
.sidebar-dark .nav-sub-item .nav-ico { background: rgba(255,255,255,.06); }
.sidebar-bottom {
  border-top: 1px solid var(--line);
  padding: 14px 12px 16px;
  display: grid;
  gap: 8px;
}
.sidebar-resource-links { display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sidebar-resource-links a { padding: 5px 10px; border-radius: 7px; color: var(--muted); font-size: 12px; font-weight: 650; }
.sidebar-resource-links a:hover { background: var(--surface-soft); color: var(--brand); }
.page {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  min-height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.page-title h1 {
  margin: 0 0 5px;
  font-size: 21px;
  line-height: 1.15;
  font-weight: 750;
}
.page-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.content {
  padding: 22px 24px 28px;
  display: grid;
  /* 单列网格必须用 minmax(0,1fr) 收口，否则被 JS 注入包裹的宽表（如 admin/tasks 的
     tasks-table min-width:1420）会按 max-content 撑开整个文档，产生整页横向滚动条。 */
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.content > * { min-width: 0; }
.pill,
.coin-pill,
.badge {
  min-height: 34px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: #344054;
  border-radius: 999px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
}
.coin-pill {
  background: #ecfdf8;
  border-color: #b7eadc;
  color: var(--brand);
  justify-content: center;
}
.coin-pill strong { font-weight: 850; }
.badge.neutral { color: var(--muted); }

.btn {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: #344054;
  padding: 0 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}
.btn:hover { background: #f8fafc; }
.btn:focus-visible,
.control:focus {
  outline: none;
  border-color: #86cfc4;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn.primary:hover { background: var(--brand-strong); }
.btn.search {
  background: #ecfdf5;
  border-color: #8fd9ce;
  color: var(--brand);
}
.btn.danger {
  color: var(--red);
  border-color: #fecdd3;
  background: #fff7f8;
}
.btn[disabled] {
  opacity: .52;
  cursor: not-allowed;
  transform: none;
}
.link {
  border: 0;
  padding: 0;
  color: var(--brand);
  background: transparent;
  font-weight: 750;
}
.link.danger-link { color: var(--red); }
.icon-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #475467;
  font-size: 24px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
}
.icon-btn:hover { background: #f2f5f8; }

.toolbar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  gap: 10px;
  align-items: center;
}
.api-key-toolbar {
  grid-template-columns: minmax(260px, 1.6fr) minmax(150px, .8fr) minmax(150px, .8fr) auto;
}
.usage-toolbar {
  grid-template-columns: minmax(220px, 1.3fr) repeat(4, minmax(130px, .7fr)) auto;
}
.control {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: #344054;
  padding: 0 10px;
  min-width: 0;
}
textarea.control {
  min-height: 92px;
  padding: 10px;
  resize: vertical;
}
.actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.toolbar-actions {
  justify-self: end;
  flex-wrap: nowrap;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.pricing-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  min-height: 108px;
  display: grid;
  align-content: space-between;
}
.metric .label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.metric .value {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.metric .hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.metric.good { border-top: 3px solid var(--green); }
.metric.warn { border-top: 3px solid var(--amber); }
.metric.bad { border-top: 3px solid var(--red); }
.metric.info { border-top: 3px solid var(--blue); }
.metric.violet { border-top: 3px solid var(--violet); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}
.panel-head span {
  color: var(--muted);
  font-size: 12px;
}
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}
th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: middle;
}
th {
  color: #475467;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 800;
}
td { color: #1f2937; }
tbody tr:hover { background: #fbfcfe; }
tr:last-child td { border-bottom: 0; }
.table-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.status.good { background: var(--green-soft); color: var(--green); }
.status.warn { background: var(--amber-soft); color: #b45309; }
.status.bad { background: var(--red-soft); color: var(--red); }
.status.info { background: var(--blue-soft); color: var(--blue); }
.status.neutral { background: #eef2f7; color: #475467; }
.muted { color: var(--muted); font-size: 12px; }
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums;
}
.coin-value {
  font-size: 15px;
  color: var(--text);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.negative { color: var(--red); font-weight: 800; }

.empty-state {
  min-height: 164px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  margin: 16px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
  padding: 20px;
  background: #fbfcfe;
}
.empty-state strong { color: var(--text); }
.is-hidden { display: none !important; }

.admin-list-content { gap: 14px; }
.admin-filter-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(140px, .7fr)) auto;
}
.finance-filter-toolbar { grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(145px, .8fr)) auto; }
.billing-filter-toolbar { grid-template-columns: repeat(2, minmax(190px, 1fr)) auto; }
.profit-filter-toolbar { grid-template-columns: repeat(3, minmax(160px, .8fr)) minmax(300px, 1.2fr) auto; }

/* Q01 视觉收口：1280×720 下内容区约 980px（侧栏 252 + 内边距），晚于 1360px 才压缩会导致
   筛选工具栏的操作行被挤出视口右侧。提前在 ≤1360px 切换两列 + 操作行整行，避免 1280 挤压。 */
@media (max-width: 1360px) {
  .admin-filter-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-filter-toolbar .actions { grid-column: 1 / -1; }
  .toolbar-actions { justify-self: stretch; }
  .toolbar-actions .btn { flex: 1; }
}
.billing-tabs {
  min-height: 46px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  gap: 4px;
}
.billing-tabs .tab {
  min-height: 42px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0 16px;
  font-weight: 750;
}
.billing-tabs .tab:hover { color: #344054; background: #f8fafc; }
.billing-tabs .tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.billing-tabs .tab:focus-visible { outline: 3px solid rgba(15, 118, 110, .12); outline-offset: -3px; }
.management-tabs .tab { display: inline-flex; align-items: center; text-decoration: none; }
.page > .management-tabs { padding-inline: 24px; background: var(--surface); }
.billing-tab-panel { display: grid; gap: 14px; }
.custom-date-range {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto minmax(130px, 1fr);
  align-items: center;
  gap: 7px;
  color: var(--muted);
}
.search-control {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: var(--subtle);
}
.search-control:focus-within {
  border-color: #86cfc4;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}
.search-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #344054;
  background: transparent;
}
.data-panel .panel-head > div { display: grid; gap: 4px; }
.admin-data-table { min-width: 980px; }
.users-table { min-width: 1060px; }
.finance-table { min-width: 1420px; }
.billing-rules-table { min-width: 1540px; }
.cost-formula-table { min-width: 1580px; }
.profit-analysis-table { min-width: 980px; }
.identity-cell { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.identity-cell > span:last-child { display: grid; gap: 4px; }
.identity-cell small { color: var(--subtle); font-size: 11px; }
.table-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  font-weight: 850;
}
.pagination {
  min-height: 54px;
  border-top: 1px solid var(--line);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.pagination > div { display: flex; align-items: center; gap: 5px; }
.page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #475467;
}
.page-btn:hover:not(:disabled) { border-color: #86cfc4; color: var(--brand); }
.page-btn.active { border-color: var(--brand); background: var(--brand); color: #fff; }
.page-btn:disabled { opacity: .45; cursor: not-allowed; }
.loading-state {
  min-height: 248px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--muted);
}
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #dceeea;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: refresh-spin .7s linear infinite;
}
.empty-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eef2f7;
  color: #667085;
  display: inline-grid;
  place-items: center;
  font-size: 20px;
}
.drawer-head > div { display: grid; gap: 5px; }
.drawer-head > div > span { color: var(--muted); font-size: 12px; }
.form-drawer { width: min(560px, 100vw); }
.field small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.field-combo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.text-btn {
  border-color: transparent;
  background: transparent;
  color: var(--brand);
  padding-inline: 6px;
}
.text-btn:hover { background: var(--brand-soft); }
.inline-create {
  border: 1px solid #b7dfd8;
  border-radius: 8px;
  background: #f6fffc;
  padding: 10px;
  display: grid;
  gap: 8px;
}
.inline-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.btn.compact { min-height: 30px; padding-inline: 10px; font-size: 12px; }
.segmented-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 7px;
}
.segmented-field legend { padding: 0; color: #344054; font-size: 12px; font-weight: 800; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: #475467;
  display: grid;
  place-items: center;
  font-weight: 700;
  cursor: pointer;
}
.segmented input:checked + span { border-color: #77cbbf; background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1px #77cbbf; }
.segmented input:focus-visible + span { outline: 3px solid rgba(15, 118, 110, .12); }
.input-suffix { position: relative; }
.input-suffix .control { width: 100%; padding-right: 42px; }
.input-suffix > span { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 12px; font-weight: 700; }
.input-suffix.wide-suffix .control { padding-right: 64px; }
.finance-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.finance-metric { min-height: 118px; }
.finance-metric > div { margin-top: 8px; display: flex; align-items: baseline; gap: 6px; }
.finance-metric .value { margin: 0; font-size: clamp(18px, 1.55vw, 23px); }
.metric-unit { color: var(--muted); font-size: 12px; font-weight: 700; }
.task-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.task-metrics .metric { min-height: 86px; padding: 10px 12px; }
.task-metrics .metric .value { margin-top: 6px; font-size: 21px; }
.task-metrics .metric .hint { margin-top: 8px; font-size: 11px; }
.transaction-amount { font-variant-numeric: tabular-nums; }
.positive { color: var(--green); }
.frozen-value { color: #c66a05; font-weight: 800; }
.balance-flow { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.balance-flow i { color: var(--subtle); font-style: normal; }
.legend-note { display: inline-flex; align-items: center; gap: 7px; }
.legend-note i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.rule-price { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.rule-price strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.rule-price small { color: var(--muted); font-size: 11px; }
.rule-price.has-draft { display: grid; gap: 2px; }
.rule-price.has-draft > span { display: inline-flex; align-items: baseline; gap: 5px; }
.rule-price .previous-price { color: #667085; font-size: 10px; font-weight: 700; }
.price-version {
  display: grid;
  gap: 3px;
  min-width: 118px;
}
.price-version code { color: #344054; font-size: 11px; font-weight: 800; }
.price-version small { color: var(--muted); font-size: 10px; }
.billing-rule-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.billing-rule-actions .link.publish-link { color: #0f766e; font-weight: 850; }
.billing-rule-actions .link.retry-link { color: #b45309; font-weight: 850; }
.rule-description { max-width: 300px; color: #475467; }
.billing-formula-preview {
  min-height: 58px;
  border: 1px solid #b7dfd8;
  border-radius: 8px;
  background: #f6fffc;
  padding: 11px 12px;
  display: grid;
  gap: 5px;
}
.billing-formula-preview strong { color: #0f5f57; font-size: 12px; }
.billing-formula-preview span { color: #344054; font-size: 13px; line-height: 1.45; }
.billing-rule-drawer-actions { flex-wrap: wrap; }
.billing-publish-modal { width: min(680px, calc(100vw - 32px)); }
.billing-publish-modal .modal-head > div { display: grid; gap: 4px; }
.billing-publish-modal .modal-head > div > span { color: var(--muted); font-size: 12px; }
.billing-publish-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}
.billing-price-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
  padding: 13px 14px;
  display: grid;
  gap: 5px;
}
.billing-price-card.next { border-color: #8bd3c8; background: #f2fffb; }
.billing-price-card > span { color: var(--muted); font-size: 11px; font-weight: 800; }
.billing-price-card strong { color: #101828; font-size: 22px; font-variant-numeric: tabular-nums; }
.billing-price-card.next strong { color: #0f766e; }
.billing-price-card small { color: #667085; font-size: 11px; }
.billing-price-arrow { display: grid; place-items: center; color: #98a2b3; font-size: 20px; }
.billing-publish-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.billing-publish-meta > div {
  border: 1px solid #eaecf0;
  border-radius: 8px;
  padding: 9px 10px;
  display: grid;
  gap: 3px;
}
.billing-publish-meta span { color: var(--muted); font-size: 10px; font-weight: 800; }
.billing-publish-meta strong { color: #344054; font-size: 12px; overflow-wrap: anywhere; }
.billing-publish-steps {
  margin: 0;
  padding: 2px 0;
  list-style: none;
  display: grid;
}
.billing-publish-steps li {
  position: relative;
  min-height: 52px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #667085;
}
.billing-publish-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 14px;
  top: 30px;
  bottom: 4px;
  width: 2px;
  background: #e4e7ec;
}
.billing-publish-steps i {
  width: 28px;
  height: 28px;
  border: 1px solid #d0d5dd;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 850;
  z-index: 1;
}
.billing-publish-steps span { display: grid; gap: 2px; padding-top: 2px; }
.billing-publish-steps strong { color: #344054; font-size: 12px; }
.billing-publish-steps small { color: #98a2b3; font-size: 10px; }
.billing-publish-steps li.active i { border-color: #0f766e; color: #0f766e; box-shadow: 0 0 0 4px #e7f8f4; }
.billing-publish-steps li.active strong { color: #0f766e; }
.billing-publish-steps li.done i { border-color: #0f766e; background: #0f766e; color: #fff; }
.billing-publish-steps li.done:not(:last-child)::after { background: #8bd3c8; }
.billing-publish-steps li.failed i { border-color: #d92d20; background: #fff1f0; color: #d92d20; }
.billing-publish-steps li.failed strong { color: #b42318; }
.prototype-failure-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #667085;
  font-size: 11px;
}
.prototype-failure-toggle input { width: 14px; height: 14px; accent-color: #0f766e; }
.prototype-failure-toggle strong { color: #475467; }
@media (max-width: 620px) {
  .billing-publish-compare { grid-template-columns: 1fr; }
  .billing-price-arrow { transform: rotate(90deg); min-height: 22px; }
  .billing-publish-meta { grid-template-columns: 1fr; }
  .billing-rule-drawer-actions .btn { flex: 1 1 auto; }
}
.formula-code {
  border-radius: 6px;
  background: #f2f4f7;
  color: #344054;
  padding: 5px 7px;
  font-size: 12px;
  white-space: nowrap;
}
.profit-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cost-value { color: #b45309; font-weight: 800; font-variant-numeric: tabular-nums; }
.profit-rate { color: var(--green); font-weight: 850; font-variant-numeric: tabular-nums; }

.drawer-mask,
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 20;
}
.drawer-mask.open,
.modal-mask.open {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(520px, 100vw);
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -10px 0 30px rgba(15, 23, 42, .12);
  transform: translateX(100%);
  transition: transform .18s ease;
  z-index: 21;
  display: flex;
  flex-direction: column;
}
#usageDrawer { width: min(400px, 100vw); }
.drawer-mask.open .drawer,
.drawer.open { transform: translateX(0); }
.drawer-head,
.modal-head {
  min-height: 64px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.drawer-head h3,
.modal-head h3 {
  margin: 0;
  font-size: 17px;
}
.drawer-body {
  padding: 16px 18px;
  overflow-y: auto;
  display: grid;
  gap: 14px;
}
.drawer-foot,
.modal-foot {
  border-top: 1px solid var(--line);
  padding: 14px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.modal {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%) scale(.98);
  transition: transform .18s ease;
  display: flex;
  flex-direction: column;
}
.modal.small { width: min(440px, calc(100vw - 32px)); }
.modal-mask.open .modal { transform: translate(-50%, -50%) scale(1); }
.modal-body {
  padding: 16px 18px;
  overflow-y: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stack { display: grid; gap: 12px; }
.field {
  display: grid;
  gap: 6px;
}
.field span {
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}
.span-2 { grid-column: 1 / -1; }
.form-error {
  min-height: 18px;
  margin: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}
.notice {
  margin: 0;
  border: 1px solid var(--line);
  background: #fbfcfe;
  border-radius: 8px;
  padding: 12px;
  color: #344054;
  display: grid;
  gap: 7px;
  line-height: 1.5;
}
.notice.danger {
  background: #fff7f8;
  border-color: #fecdd3;
  color: #9f1239;
}
.notice.warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.notice.good {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #065f46;
}
.one-time-key {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 8px;
}
.one-time-key code {
  display: block;
  border: 1px solid #a7f3d0;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  color: #065f46;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.drawer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.detail-list {
  display: grid;
}
.detail-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.detail-row > span { color: var(--muted); }
.detail-row strong {
  text-align: right;
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
}
.detail-row code {
  color: var(--text);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.detail-row.long strong {
  line-height: 1.55;
  font-weight: 700;
}

.toast-region {
  position: fixed;
  top: 76px;
  right: 20px;
  z-index: 50;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 40px));
}
.toast {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in .16s ease-out;
}
.toast:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex: 0 0 8px;
}
.toast.success:before { background: var(--green); }
.toast.error:before { background: var(--red); }
.toast.info:before { background: var(--blue); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-menu-btn,
.sidebar-backdrop { display: none; }
.user-menu { position: relative; }
.user-menu summary {
  min-height: 42px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 9px 4px 5px;
  cursor: pointer;
}
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu[open] summary,
.user-menu summary:hover { background: var(--surface-soft); }
.avatar {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #dff5ef;
  color: var(--brand);
  font-weight: 850;
}
.admin-user-menu .avatar { background: #e8edf5; color: #344054; }
.user-copy { display: grid; gap: 2px; text-align: left; }
.user-copy strong { font-size: 12px; }
.user-copy small { color: var(--muted); font-size: 11px; }
.user-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 176px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-strong);
  display: grid;
  z-index: 12;
}
.user-popover a,
.user-popover button {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 0 10px;
  color: #344054;
  text-align: left;
}
.user-popover a { display: flex; align-items: center; }
.user-popover a:hover,
.user-popover button:hover { background: #f2f5f8; }

.dashboard-content { gap: 18px; }
.section-heading {
  min-height: 38px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.section-heading h2 { margin: 0 0 4px; font-size: 16px; }
.section-heading p,
.updated-at { margin: 0; color: var(--muted); font-size: 12px; }
.updated-at { white-space: nowrap; }
.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.admin-dashboard-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-metric {
  position: relative;
  min-height: 142px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  align-content: space-between;
  gap: 12px;
  overflow: hidden;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.dashboard-metric:after {
  content: "→";
  position: absolute;
  right: 15px;
  bottom: 13px;
  color: var(--subtle);
  font-weight: 850;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .16s ease, transform .16s ease;
}
.dashboard-metric:hover {
  border-color: #b8d7d2;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  transform: translateY(-2px);
}
.dashboard-metric:hover:after { opacity: 1; transform: translateX(0); }
.metric-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.metric-title { color: var(--muted); font-size: 12px; font-weight: 750; }
.metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  background: #edf4ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}
.dashboard-metric.good .metric-icon { background: var(--green-soft); color: var(--green); }
.dashboard-metric.warn .metric-icon { background: var(--amber-soft); color: var(--amber); }
.dashboard-metric.bad .metric-icon { background: var(--red-soft); color: var(--red); }
.dashboard-metric.violet .metric-icon { background: var(--violet-soft); color: var(--violet); }
.metric-main { display: flex; align-items: baseline; gap: 6px; }
.metric-main strong {
  font-size: 27px;
  line-height: 1;
  letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
}
.metric-main span { color: var(--muted); font-size: 12px; font-weight: 650; }
.metric-detail {
  min-height: 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  padding-right: 18px;
}
.metric-detail strong { color: #344054; }
.metric-detail .good-copy { color: var(--green); }
.metric-detail .bad-copy { color: var(--red); }

.dashboard-grid { display: grid; gap: 16px; min-width: 0; }
.chart-grid { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
.records-grid { grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); align-items: start; }
.admin-bottom-grid { grid-template-columns: minmax(0, 1.7fr) minmax(300px, .7fr); align-items: start; }
.chart-panel { min-height: 350px; }
.chart-body { position: relative; min-height: 296px; padding: 18px; }
.chart-canvas { position: relative; width: 100%; min-height: 250px; }
.line-canvas { height: 258px; }
.doughnut-layout {
  display: grid;
  grid-template-columns: minmax(180px, .95fr) minmax(170px, .75fr);
  align-items: center;
  gap: 18px;
}
.doughnut-canvas { height: 238px; min-height: 238px; }
.chart-summary { display: grid; gap: 13px; }
.chart-summary-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.chart-summary-row i { width: 8px; height: 8px; border-radius: 50%; }
.chart-summary-row strong { color: var(--text); font-variant-numeric: tabular-nums; }
.chart-summary-row small { grid-column: 2 / -1; color: var(--subtle); }
.chart-fallback {
  position: absolute;
  inset: 18px;
  margin: 0;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #fbfcfe;
}
.trend-note { display: inline-flex; align-items: center; gap: 6px; }
.trend-note i,
.scope-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.scope-pill { background: #f8fafc; }
.dashboard-table { min-width: 820px; }
.billing-table { min-width: 690px; }
.activity-table { min-width: 720px; }
.task-action { font-weight: 750; }
.activity-action {
  min-width: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef2f7;
  color: #475467;
  font-size: 12px;
  font-weight: 750;
}
.activity-action.charge { background: var(--green-soft); color: var(--green); }
.activity-action.key { background: var(--blue-soft); color: var(--blue); }
.quick-panel { overflow: visible; }
.quick-actions { display: grid; padding: 8px; }
.quick-action {
  min-height: 60px;
  border-radius: 8px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.quick-action:hover { background: #f4f7f9; }
.quick-action + .quick-action { border-top: 1px solid var(--line); border-radius: 0; }
.quick-action span:nth-child(2) { display: grid; gap: 3px; }
.quick-action strong { font-size: 13px; }
.quick-action small { color: var(--muted); font-size: 11px; }
.quick-action b { color: var(--subtle); font-size: 14px; }
.quick-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: #eef2f7;
  color: #344054;
  font-weight: 850;
}
.primary-quick .quick-icon { background: var(--brand-soft); color: var(--brand); }
.sidebar-scope { color: #9ca3af; font-size: 11px; }
.sidebar-scope strong { color: #e5e7eb; font-size: 13px; }
.is-refreshing .dashboard-metric,
.is-refreshing .panel { opacity: .58; pointer-events: none; }
.is-refreshing .refresh-icon,
.refresh-btn[disabled] .refresh-icon { animation: refresh-spin .75s linear infinite; }
@keyframes refresh-spin { to { transform: rotate(360deg); } }

.landing {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}
.landing-head {
  min-height: 72px;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.landing-main {
  width: min(1080px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 52px 0;
  display: grid;
  gap: 24px;
}
.landing-title {
  display: grid;
  gap: 8px;
}
.landing-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}
.eyebrow {
  margin: 0;
  color: var(--brand);
  font-weight: 850;
}
.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.entry-card {
  min-height: 190px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 14px;
}
.entry-card:hover {
  border-color: #86cfc4;
  transform: translateY(-1px);
}
.entry-card strong {
  font-size: 18px;
}
.entry-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.entry-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 900;
}

@media (max-width: 1180px) {
  .metric-grid,
  .pricing-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .usage-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-metrics,
  .admin-dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .records-grid,
  .admin-bottom-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .quick-action + .quick-action { border-top: 0; border-radius: 8px; }
  .admin-filter-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-filter-toolbar .actions { grid-column: 1 / -1; }
  .toolbar-actions { justify-self: stretch; }
  .toolbar-actions .btn { flex: 1; }
  .finance-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profit-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profit-filter-toolbar .custom-date-range { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(280px, calc(100vw - 56px));
    height: 100vh;
    transform: translateX(-100%);
    transition: transform .18s ease;
    box-shadow: 16px 0 40px rgba(15, 23, 42, .18);
    z-index: 31;
  }
  body.sidebar-open { overflow: hidden; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, .35);
    z-index: 30;
  }
  body.sidebar-open .sidebar-backdrop { display: block; }
  .nav {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow-y: auto;
  }
  .sidebar-bottom { display: grid; }
  .topbar {
    position: sticky;
    align-items: center;
    flex-direction: row;
    padding-left: 68px;
  }
  .mobile-menu-btn {
    position: absolute;
    left: 18px;
    top: 14px;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #fff;
    color: #344054;
    font-size: 20px;
  }
  .top-actions { flex-wrap: nowrap; }
  .top-coin,
  .scope-pill,
  .user-copy { display: none; }
  .api-key-toolbar,
  .usage-toolbar,
  .admin-filter-toolbar { grid-template-columns: 1fr; }
  .admin-filter-toolbar .actions { grid-column: auto; }
  .metric-grid,
  .pricing-metrics,
  .entry-grid { grid-template-columns: 1fr; }
  .profit-summary { grid-template-columns: 1fr; }
  .billing-tabs { overflow-x: auto; }
  .billing-tabs .tab { flex: 0 0 auto; padding-inline: 12px; }
  .custom-date-range { grid-template-columns: 1fr; }
  .custom-date-range span { display: none; }
  .chart-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .field-combo { grid-template-columns: 1fr; }
  .field-combo .text-btn { justify-self: start; }
  .pill { white-space: normal; }
}
@media (max-width: 620px) {
  .topbar { align-items: flex-start; padding-right: 14px; }
  .page-title h1 { font-size: 18px; }
  .page-title p { display: none; }
  .top-actions { gap: 7px; }
  .refresh-btn { width: 38px; padding: 0; }
  .refresh-btn > span:last-child { display: none; }
  .content { padding: 16px 14px 22px; }
  .section-heading { align-items: flex-start; }
  .dashboard-metrics,
  .admin-dashboard-metrics { grid-template-columns: 1fr; }
  .dashboard-metric { min-height: 128px; }
  .doughnut-layout { grid-template-columns: 1fr; }
  .doughnut-canvas { height: 210px; min-height: 210px; }
  .chart-panel { min-height: 0; }
  .chart-body { min-height: 280px; padding: 14px; }
  .quick-actions { grid-template-columns: 1fr; }
  .updated-at { display: none; }
  .pagination { align-items: flex-start; flex-direction: column; }
  .form-drawer { width: 100vw; }
  .finance-metrics { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .task-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .task-metrics { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .admin-theme .topbar { padding-left: 60px; padding-right: 10px; gap: 8px; }
  .admin-theme .mobile-menu-btn { left: 14px; }
  .admin-theme .page-title { min-width: 0; }
  .admin-theme .page-title h1 { max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

.status-success { background: #f6ffed; color: #52c41a; }
.status-error { background: #fff2f0; color: #ff4d4f; }
.status-warning { background: #fffbe6; color: #fa8c16; }
.status-processing { background: #e6f7ff; color: #1890ff; }
.status-disabled { background: #fafafa; color: #9ca3af; }

.stats-filter-toolbar {
  grid-template-columns: repeat(4, minmax(145px, 1fr)) auto;
}
.tasks-filter-toolbar {
  grid-template-columns: minmax(245px, 1.4fr) repeat(5, minmax(135px, .7fr)) auto;
}
.compact-filter-toolbar {
  grid-template-columns: repeat(3, minmax(170px, 240px)) 1fr;
}
.compact-filter-toolbar .actions { justify-self: end; }
.platform-filter-toolbar {
  grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(160px, .7fr)) auto;
}
.stats-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-card { min-height: 134px; }
.stats-card:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.stats-card:after { display: none; }
.stats-card .metric-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}
.stats-card .metric-detail small {
  margin-left: auto;
  color: var(--subtle);
}
.panel-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1890ff;
  box-shadow: 0 0 0 4px #e6f7ff;
}
.usage-users-table { min-width: 1280px; }
.capability-ranking-table { min-width: 860px; }
.tasks-table { min-width: 1420px; }
.models-table { min-width: 1120px; }
.platform-admin-table { min-width: 1340px; }
.compact-identity { min-width: 180px; }
.compact-identity .status { width: max-content; min-height: 20px; padding-inline: 6px; font-size: 10px; }
.expandable-row { cursor: pointer; }
.expandable-row:focus-visible {
  outline: 3px solid rgba(15, 118, 110, .12);
  outline-offset: -3px;
}
.expandable-row.is-expanded { background: #f7fbfa; }
.row-chevron {
  color: var(--subtle);
  font-size: 15px;
  width: 18px;
  text-align: center;
}
.expanded-detail-row td {
  padding: 0;
  background: #f8fbfb;
}
.expanded-detail {
  margin: 0 14px 14px;
  border: 1px solid #dcebe8;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}
.expanded-head {
  min-height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.expanded-head span,
.expanded-task small { color: var(--muted); font-size: 11px; }
.expanded-task-list { display: grid; }
.expanded-task {
  min-height: 48px;
  padding: 7px 12px;
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) minmax(100px, .7fr) minmax(90px, .6fr) minmax(90px, .6fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.expanded-task:last-child { border-bottom: 0; }
.expanded-task > span:first-child { display: grid; gap: 3px; }
.expanded-empty {
  padding: 20px 12px;
  color: var(--muted);
  text-align: center;
}
.success-rate { color: #059669; font-weight: 800; }
.warning-rate { color: #d97706; font-weight: 800; }
.rank-badge {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #eef2f7;
  color: #475467;
  display: inline-grid;
  place-items: center;
  font-weight: 850;
}
.rank-1 { background: #fff4d6; color: #b45309; }
.rank-2 { background: #eef2f7; color: #475467; }
.rank-3 { background: #fff0e5; color: #c2410c; }

.multi-select {
  position: relative;
  min-width: 0;
}
.multi-select summary {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: #344054;
  padding: 0 30px 0 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
  position: relative;
  white-space: nowrap;
}
.multi-select summary::-webkit-details-marker { display: none; }
.multi-select summary:after {
  content: "⌄";
  position: absolute;
  right: 10px;
  color: var(--muted);
}
.multi-select[open] summary {
  border-color: #86cfc4;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}
.multi-select-popover {
  position: absolute;
  z-index: 15;
  top: calc(100% + 7px);
  left: 0;
  width: 170px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: var(--shadow-strong);
  display: grid;
}
.multi-select-popover label {
  min-height: 34px;
  padding: 0 8px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #344054;
}
.multi-select-popover label:hover { background: #f2f5f8; }
.task-id { display: block; min-width: 205px; }
.error-copy {
  display: block;
  margin-top: 5px;
  color: var(--red);
  font-size: 11px;
}
.task-detail-drawer { width: min(680px, 100vw); }
.task-detail-body { background: #f8fafc; }
.detail-section {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.detail-section-title {
  min-height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}
.compact-detail-list { padding: 0 14px; }
.compact-detail-list .detail-row:last-child { border-bottom: 0; }
.code-viewer,
.log-viewer {
  margin: 0;
  padding: 14px;
  color: #d1fae5;
  background: #111827;
  font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-x: auto;
  white-space: pre-wrap;
}
.log-viewer { color: #e5e7eb; }
.billing-breakdown {
  padding: 8px 14px;
  display: grid;
}
.billing-breakdown > div {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.billing-breakdown > div:last-child { border-bottom: 0; }
.billing-breakdown span { color: var(--muted); }
.billing-total strong { color: var(--brand); font-size: 17px; }

.model-name-cell {
  min-width: 230px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.model-name-cell > span:last-child { display: grid; gap: 4px; }
.model-name-cell small { color: var(--muted); font-size: 11px; }
.model-glyph {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #eaf2ff;
  color: #2563eb;
  display: inline-grid;
  place-items: center;
  flex: 0 0 36px;
  font-weight: 850;
}
.role-chip {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border-radius: 7px;
  padding: 0 8px;
  background: #eef7f5;
  color: var(--brand);
  font-weight: 850;
}
.capability-path {
  min-width: 120px;
  display: grid;
  gap: 4px;
}
.capability-path small {
  color: var(--muted);
  font-size: 11px;
}
.capability-path strong {
  color: #1d2939;
  font-size: 13px;
}
.audio-capability {
  width: max-content;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  background: #f2f4f7;
  color: #475467;
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 750;
}
.audio-capability.with-audio {
  background: #e8f7f2;
  color: #067647;
}
.model-combination-summary,
.model-template-summary {
  min-width: 230px;
  display: grid;
  gap: 5px;
}
.model-combination-summary small,
.model-template-summary small {
  width: max-content;
  max-width: 280px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #f2f4f7;
  color: #344054;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.model-template-summary { min-width: 125px; }
.model-template-summary small { background: #fff8e7; color: #7a4d00; }
.model-combination-summary em,
.model-template-summary em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}
.model-spec-list {
  min-width: 150px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.model-spec-list span {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 7px;
  background: #f2f4f7;
  color: #344054;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 750;
}
.spec-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.spec-fieldset legend {
  padding: 0;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}
.spec-fieldset legend b,
.field > span b { color: var(--red); }
.spec-fieldset > p {
  margin: -1px 0 2px;
  color: var(--muted);
  font-size: 11px;
}
.spec-options {
  min-height: 54px;
  padding: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fbfcfe;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.spec-placeholder {
  color: #667085;
  font-size: 12px;
}
.spec-option {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: #344054;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.spec-option:hover { border-color: #86cfc4; }
.spec-option:has(input:checked) {
  border-color: #70bdb2;
  background: #eef9f7;
  color: var(--brand);
}
.spec-option:has(input:focus-visible) {
  outline: 3px solid rgba(15, 118, 110, .14);
  outline-offset: 1px;
}
.spec-option input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--brand);
}
.spec-option span {
  color: inherit;
  font-size: 12px;
  font-weight: 750;
}
.model-template-option > span { display: grid; gap: 2px; }
.model-template-option small {
  color: #667085;
  font-size: 10px;
  font-weight: 600;
}
.template-association-flow {
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #475467;
  font-size: 11px;
}
.template-association-flow span { font-weight: 750; }
.template-association-flow b { color: #98a2b3; }
.template-association-flow em {
  margin-left: auto;
  color: var(--brand);
  font-style: normal;
  font-weight: 800;
}
.model-form-drawer { width: min(780px, 100vw); }
.model-form-drawer .drawer-body {
  gap: 18px;
  background: #fbfcfe;
}
.model-form-section {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 13px;
}
.model-form-section:last-of-type { border-bottom: 0; }
.model-form-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.model-form-section-head h4 {
  margin: 0;
  color: #1d2939;
  font-size: 14px;
}
.model-form-section-head h4 b { color: var(--red); }
.model-form-section-head p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 11px;
  line-height: 1.5;
}
.capability-load-button {
  flex: 0 0 auto;
  white-space: nowrap;
}
.capability-load-action {
  display: flex;
  justify-content: flex-start;
}
.capability-load-status {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #f8fafc;
  color: #475467;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  line-height: 1.5;
}
.capability-load-status .signal-dot {
  flex: 0 0 7px;
  box-shadow: none;
}
.capability-load-status.is-loading {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}
.capability-load-status.is-loading .signal-dot { background: #2563eb; }
.capability-load-status.is-success {
  border-color: #a7e0ca;
  background: #eefaf6;
  color: #067647;
}
.capability-load-status.is-success .signal-dot { background: #12b76a; }
.capability-load-status.is-error {
  border-color: #fecaca;
  background: #fff7f7;
  color: #b42318;
}
.capability-load-status.is-error .signal-dot { background: #f04438; }
.spec-combination-list {
  display: grid;
  gap: 9px;
}
.spec-combination-empty {
  min-height: 72px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #667085;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.spec-combination-row {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 32px;
  align-items: end;
  gap: 11px;
}
.spec-combination-index {
  align-self: center;
  color: #475467;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.spec-combination-fields {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}
.compact-field { gap: 4px; }
.compact-field > span { font-size: 10px; }
.compact-field .control { min-width: 0; }
.spec-combination-remove {
  width: 32px;
  height: 36px;
}
.spec-combination-remove:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.linked-template-count {
  min-height: 58px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.linked-template-count > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.linked-template-count strong {
  color: #1d2939;
  font-size: 13px;
}
.linked-template-count > div span {
  color: #667085;
  font-size: 11px;
}
.linked-template-count-value {
  min-width: 64px;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.linked-template-count-value b { font-size: 20px; }
.linked-template-count-value em {
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}
.request-url {
  display: block;
  max-width: 330px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.secret-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.secret-input .control { width: 100%; }

.admin-avatar { background: #e8edf5; color: #344054; }
.mfa-state {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 750;
}
.mfa-state.enabled { color: #059669; }
.mfa-state.disabled { color: #98a2b3; }
.switch-row {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600 !important;
}
.switch-row input {
  width: 34px;
  height: 19px;
  appearance: none;
  border-radius: 999px;
  background: #d9d9d9;
  position: relative;
  transition: background .16s ease;
}
.switch-row input:before {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .22);
  transition: transform .16s ease;
}
.switch-row input:checked { background: var(--brand); }
.switch-row input:checked:before { transform: translateX(15px); }

/* === 游客门户样式 === */

/* 认证页面容器 */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem;
}

.auth-card {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.brand-mark-large {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #101828;
  position: relative;
  margin: 0 auto;
}

.brand-mark-large:before,
.brand-mark-large:after {
  content: "";
  position: absolute;
  width: 31px;
  height: 12px;
  border: 4px solid #38d5c2;
  border-left-color: #4f8cff;
  border-radius: 5px;
  transform: rotate(32deg);
}

.brand-mark-large:before { top: 11px; left: 8px; }
.brand-mark-large:after { bottom: 11px; right: 8px; transform: rotate(32deg) scaleX(-1); }

.auth-card h1 {
  margin: 1.5rem 0 0.5rem;
  text-align: center;
}

.auth-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

.auth-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

.auth-footer p {
  margin: 0.5rem 0;
}

.auth-footer a {
  color: var(--brand);
  text-decoration: underline;
}

.field-hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  display: block;
  margin-top: 4px;
}

.verification-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.verification-code-btn { min-width: 116px; }

.optional-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.full-width {
  width: 100%;
}

.notice.success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #065f46;
}

@media (max-width: 768px) {
  .auth-container {
    padding: 1rem;
  }

  .auth-card {
    padding: 2rem;
  }
}

@media (max-width: 1280px) {
  .tasks-filter-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tasks-filter-toolbar .actions { grid-column: 1 / -1; }
  .stats-filter-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-filter-toolbar .actions { grid-column: 1 / -1; }
}
@media (max-width: 1180px) {
  .stats-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-filter-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-filter-toolbar .actions { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .stats-filter-toolbar,
  .tasks-filter-toolbar,
  .compact-filter-toolbar,
  .platform-filter-toolbar { grid-template-columns: 1fr; }
  .stats-filter-toolbar .actions,
  .tasks-filter-toolbar .actions,
  .platform-filter-toolbar .actions { grid-column: auto; }
  .compact-filter-toolbar .actions { justify-self: stretch; }
  .compact-filter-toolbar .actions .btn { flex: 1; }
  .multi-select-popover { width: 100%; }
}
@media (max-width: 620px) {
  .stats-card-grid { grid-template-columns: 1fr; }
  .top-updated,
  .panel-note { display: none; }
  .task-detail-drawer { width: 100vw; }
  .expanded-task { grid-template-columns: minmax(220px, 1fr) 90px 90px; }
  .expanded-task > span:last-child { display: none; }
  .model-form-section-head { align-items: stretch; flex-direction: column; }
  .model-form-section-head .btn { width: 100%; }
  .capability-load-action .btn { width: 100%; }
  .spec-combination-row { grid-template-columns: 1fr 32px; align-items: start; }
  .spec-combination-index { grid-column: 1 / -1; }
}

/* === 作品管理样式 === */

.work-admin-tabs { margin-bottom: 0; }
.work-filter-toolbar { grid-template-columns: minmax(260px, 1.5fr) minmax(150px, .65fr) minmax(150px, .65fr) auto; }
.work-admin-table { min-width: 1180px; }
.work-admin-identity { min-width: 260px; display: flex; align-items: center; gap: 11px; }
.work-admin-identity img { width: 76px; height: 54px; border-radius: 8px; object-fit: cover; background: #eef2f7; flex: 0 0 76px; }
.work-admin-identity > span { min-width: 0; display: grid; gap: 5px; }
.work-admin-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-admin-identity small { max-width: 210px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.work-upload-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 14px; }
.work-upload-main,
.work-publish-panel { overflow: hidden; }
.work-publish-panel { position: sticky; top: 14px; }
.work-form-content { padding: 16px; }
.work-file-zone { min-height: 174px; padding: 24px; display: grid; place-items: center; align-content: center; gap: 7px; border-width: 1px; border-color: #a9cfc9; background: #f8fffd; }
.work-file-zone:hover,
.work-file-zone.drag-over { border-color: var(--brand); background: var(--brand-soft); }
.work-file-zone:focus-visible { outline: 3px solid rgba(15, 118, 110, .14); outline-offset: 2px; }
.work-file-zone strong { color: #344054; font-size: 13px; }
.work-file-zone small { color: var(--muted); }
.work-upload-symbol { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #dff5f0; color: var(--brand); font-size: 20px; font-weight: 850; }
.work-file-preview { margin-top: 10px; min-height: 78px; border: 1px solid var(--line); border-radius: 8px; padding: 9px; display: grid; grid-template-columns: 94px minmax(0, 1fr) auto; align-items: center; gap: 11px; background: #fff; text-align: left; }
.work-file-preview img,
.work-file-preview video { width: 94px; height: 64px; margin: 0; border-radius: 7px; object-fit: cover; }
.work-file-preview audio { width: 100%; max-width: 260px; }
.work-file-preview > div { min-width: 0; display: grid; gap: 4px; }
.work-file-preview > div strong,
.work-file-preview > div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-file-preview > div span { color: var(--muted); font-size: 11px; }
.work-relation-summary { border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; padding: 12px; display: grid; gap: 9px; }
.work-relation-summary > strong { color: #344054; font-size: 12px; }
.work-relation-summary dl { margin: 0; display: grid; gap: 7px; }
.work-relation-summary dl > div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; font-size: 12px; }
.work-relation-summary dt { color: var(--muted); }
.work-relation-summary dd { margin: 0; color: #344054; font-weight: 700; overflow-wrap: anywhere; }
.work-publish-actions { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8px; }
.danger-action { background: #b42318; border-color: #b42318; }
.danger-action:hover { background: #912018; border-color: #912018; }

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem 0;
}

.work-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  transition: box-shadow 0.2s;
}

.work-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.work-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #f3f4f6;
}

.work-info {
  padding: 1rem;
}

.work-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #1f2937;
}

.work-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tag {
  background: #f3f4f6;
  color: #6b7280;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
}

.work-stats {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
}

.work-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

/* 文件上传区 */
.file-upload-zone {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 3rem;
  text-align: center;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.2s;
}

.file-upload-zone:hover,
.file-upload-zone.drag-over {
  border-color: #667eea;
  background: #f3f4f6;
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.file-preview {
  margin-top: 1rem;
  text-align: center;
}

.preview-image,
.preview-video {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.large-drawer {
  max-width: 800px;
}

/* 响应式 */
@media (max-width: 1200px) {
  .work-upload-layout { grid-template-columns: minmax(0, 1fr) 290px; }
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .work-filter-toolbar { grid-template-columns: 1fr; }
  .work-upload-layout { grid-template-columns: 1fr; }
  .work-publish-panel { position: static; }
  .work-file-preview { grid-template-columns: 72px minmax(0, 1fr); }
  .work-file-preview img,
  .work-file-preview video { width: 72px; height: 54px; }
  .work-file-preview > .btn { grid-column: 1 / -1; }
  .works-grid {
    grid-template-columns: 1fr;
  }
}

/* === 游客门户：官网首页 === */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
}

.hero-content {
  max-width: 900px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.95;
  font-weight: 500;
}

.hero-description {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.section {
  padding: 4rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-gray {
  background: var(--surface-soft);
  max-width: 100%;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
  color: var(--text);
}

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0;
}

.capability-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.capability-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.capability-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.capability-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.capability-desc {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.featured-works {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.work-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s;
}

.work-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.work-preview {
  width: 100%;
  height: 180px;
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-placeholder {
  font-size: 4rem;
  opacity: 0.3;
}

.work-title {
  padding: 0.75rem 1rem 0.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.work-meta {
  padding: 0 1rem 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.pricing-preview {
  text-align: center;
  padding: 2rem;
}

.pricing-desc {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 3rem;
}

.pricing-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.pricing-item {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.pricing-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.pricing-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer {
  background: var(--text);
  color: white;
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.footer-section p {
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin: 0.5rem 0;
}

.footer-section a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
}

.footer-section a:hover {
  color: white;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}

/* === 游客门户：音频调试页 === */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
}

.navbar-nav {
  display: flex;
  gap: 2rem;
}

.navbar-nav a {
  color: var(--muted);
  transition: color 0.2s;
}

.navbar-nav a:hover {
  color: var(--text);
}

.debug-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem;
}

.debug-header {
  text-align: center;
  margin-bottom: 3rem;
}

.debug-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.debug-subtitle {
  color: var(--muted);
  font-size: 1.125rem;
}

.debug-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.debug-form h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 0;
}

.audio-result {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}

.audio-result h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.result-info {
  margin-bottom: 1.5rem;
}

.result-info p {
  font-size: 1.125rem;
  color: var(--green);
  margin-bottom: 1rem;
}

.audio-player {
  width: 100%;
  max-width: 500px;
  margin: 1.5rem auto;
  display: block;
}

.result-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.result-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.result-label {
  color: var(--muted);
  font-size: 0.875rem;
}

.result-value {
  font-weight: 600;
  font-size: 1.125rem;
}

.balance-display {
  position: fixed;
  top: 80px;
  right: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow);
  z-index: 50;
  min-width: 200px;
}

.balance-label {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.balance-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.balance-tip {
  font-size: 0.75rem;
  color: var(--muted);
}

.balance-tip a {
  color: var(--brand);
  text-decoration: underline;
}

.examples-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.examples-section h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.examples-hint {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.examples {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.example-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-size: 0.875rem;
}

.example-btn:hover {
  background: var(--surface-soft);
  border-color: var(--brand);
}

.slider-control {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  appearance: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  cursor: pointer;
  border: none;
}

.slider-value {
  font-weight: 600;
  min-width: 40px;
  text-align: right;
}

.cost-estimate {
  background: var(--brand-soft);
  padding: 1rem;
  border-radius: 8px;
  color: var(--text);
}

.cost-estimate strong {
  color: var(--brand-strong);
}

.required {
  color: var(--red);
}

.field-hint {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.is-hidden {
  display: none;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .capabilities {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .featured-works {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-highlights {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .balance-display {
    position: static;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .debug-container {
    padding: 2rem 1rem;
  }

  .navbar-content {
    flex-direction: column;
    gap: 1rem;
  }

  .navbar-nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .result-meta {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .featured-works {
    grid-template-columns: 1fr;
  }
}

/* 密码强度验证样式 */
.password-strength {
  margin-top: 0.5rem;
}

.strength-bar {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.strength-fill {
  height: 100%;
  width: 0;
  transition: width 0.3s, background 0.3s;
}

.strength-fill.weak {
  width: 33%;
  background: #ef4444;
}

.strength-fill.medium {
  width: 66%;
  background: #f59e0b;
}

.strength-fill.strong {
  width: 100%;
  background: #10b981;
}

.strength-text {
  font-size: 0.85rem;
  color: #6b7280;
}

/* === 发现页样式 === */
.discovery-filters {
  display: flex;
  gap: 1rem;
  padding: 2rem;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
}

.works-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.work-card-discovery {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.work-card-discovery:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.work-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: #f3f4f6;
}

.work-details {
  padding: 1rem;
}

.work-details h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #6b7280;
}

/* 作品详情弹窗 */
.work-modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.work-modal {
  background: white;
  border-radius: 12px;
  max-width: 900px;
  max-height: 90vh;
  overflow: auto;
  position: relative;
}

.work-modal-image {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  background: #000;
}

.work-modal-content {
  padding: 2rem;
}

.close-modal-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.close-modal-btn:hover {
  background: rgba(255,255,255,1);
}

/* === 生图调试页样式 === */
.image-debug-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
}

.debug-params {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  height: fit-content;
}

.image-results {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  min-height: 400px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.generated-image {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
}

.generated-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download-img-btn {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.download-img-btn:hover {
  background: rgba(255,255,255,1);
}

.prompt-examples {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.example-prompt-btn {
  text-align: left;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.9rem;
}

.example-prompt-btn:hover {
  background: #f9fafb;
  border-color: var(--brand);
}

.slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  outline: none;
  -webkit-appearance: none;
  margin: 0.5rem 0;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  cursor: pointer;
  border: none;
}

@media (max-width: 1024px) {
  .works-masonry {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-debug-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .works-masonry {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }

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

  .image-debug-container {
    padding: 2rem 1rem;
  }

  .work-modal-mask {
    padding: 1rem;
  }
}

/* === 生视频调试页样式 === */
.video-debug-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
}

.video-params {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  height: fit-content;
}

.video-results {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
}

.video-player-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.progress-container {
  margin: 2rem 0;
}

.progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #6b7280;
}

.video-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
}

.info-item {
  text-align: center;
}

.info-label {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.info-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
}

.motion-selector {
  display: flex;
  gap: 0.5rem;
}

.motion-btn {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

.motion-btn.active {
  border-color: #667eea;
  background: #f3f4f6;
  color: #667eea;
}

@media (max-width: 1024px) {
  .video-debug-container {
    grid-template-columns: 1fr;
  }
}

/* ===== 按钮补充变体 ===== */
.btn.large { min-height: 46px; padding: 0 24px; font-size: 15px; border-radius: 10px; }
.btn.small { min-height: 30px; padding: 0 14px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn.ghost:hover { background: var(--surface-soft); }

/* ===== 落地页首页 ===== */
.landing { background: var(--bg); }
.landing-container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.landing-section { padding: 72px 0; }
.landing-section.section-tint { background: var(--surface); border-block: 1px solid var(--line); }
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 800;
  margin-bottom: 12px;
}
.landing-h2 { margin: 0 0 12px; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -.02em; }
.landing-lead { margin: 0 0 36px; max-width: 640px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.landing-section-cta { margin-top: 32px; text-align: center; }

/* Hero */
.landing-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #0b0f1a 0%, #131a2b 100%); color: #fff; }
.landing-hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(600px 420px at 78% 40%, rgba(225, 29, 72, .42), transparent 62%),
              radial-gradient(520px 360px at 20% 10%, rgba(79, 140, 255, .22), transparent 60%);
  pointer-events: none;
}
.landing-hero-inner {
  position: relative;
  max-width: 1120px; margin: 0 auto; padding: 88px 24px 96px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.landing-hero-copy .eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: #ff8a9b; font-weight: 800; margin-bottom: 18px;
}
.landing-hero h1 { margin: 0 0 20px; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -.03em; font-weight: 850; }
.landing-hero h1 em { font-style: normal; color: #ff6478; }
.landing-hero-sub { margin: 0 0 30px; max-width: 520px; color: #c3cbdb; font-size: 17px; line-height: 1.6; }
.landing-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.landing-hero .btn.ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: #fff; }
.landing-hero .btn.ghost:hover { background: rgba(255,255,255,.12); }
.landing-hero-hint { margin-top: 26px; display: flex; align-items: center; gap: 12px; font-size: 13px; color: #9aa4b8; }
.landing-hero-hint .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.landing-hero-hint a { color: #ff8a9b; font-weight: 700; }
.landing-hero-card {
  justify-self: end; width: min(360px, 100%);
  background: rgba(16, 22, 38, .72); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 22px; backdrop-filter: blur(8px);
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
}
.code-chip {
  display: inline-block; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px;
  color: #ff8a9b; background: rgba(225,29,72,.16); border: 1px solid rgba(225,29,72,.3);
  padding: 4px 10px; border-radius: 6px; margin-bottom: 16px;
}
.code-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; color: #d7dce8; }
.code-lines .k { color: #7aa2ff; }
.code-lines .ok { color: #34d399; }

/* 输出画廊 */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 14px; cursor: pointer;
}
.gallery-item {
  position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: #0b0f1a;
  box-shadow: var(--shadow);
}
.gallery-item.is-tall { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 14px 12px 10px;
  display: flex; flex-direction: column; gap: 3px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.78)); color: #fff;
}
.gallery-tag { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #ff8a9b; font-weight: 800; }
.gallery-name { font-size: 14px; font-weight: 650; }

/* 能力卡片 */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cap-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px;
  display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); border-color: var(--brand); }
.cap-card:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,118,110,.14); }
.cap-card.is-soon { opacity: .82; }
.cap-ico { font-size: 30px; }
.cap-card h3 { margin: 0; font-size: 18px; }
.cap-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; flex: 1; }
.cap-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cap-tags span { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; }

/* 模型层 */
.model-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.model-chips span {
  padding: 10px 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-weight: 700; font-size: 15px; color: var(--text); box-shadow: var(--shadow);
}

/* 应用场景 */
.usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.usecase-card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.section-tint .usecase-card { background: var(--bg); }
.usecase-card h3 { margin: 0 0 8px; font-size: 17px; }
.usecase-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* 接入步骤 */
.steps-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.steps-flow li { display: flex; flex-direction: column; gap: 12px; }
.step-no { font-size: 26px; font-weight: 850; color: var(--brand); }
.steps-flow h4 { margin: 0 0 4px; font-size: 15px; }
.steps-flow p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

@media (max-width: 900px) {
  .landing-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .landing-hero-card { justify-self: stretch; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .usecase-grid { grid-template-columns: 1fr; }
  .steps-flow { grid-template-columns: 1fr; }
  .steps-flow li { flex-direction: row; align-items: baseline; gap: 14px; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .cap-grid { grid-template-columns: 1fr; }
}

/* ===== 发现页（侧边栏布局） ===== */
.discover-body { background: var(--bg); }
.discover-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

.discover-sidebar {
  position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto;
  background: var(--surface); border-right: 1px solid var(--line);
  padding: 20px 16px; display: flex; flex-direction: column; gap: 20px;
}
.discover-brand { display: inline-flex; }
.discover-nav { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.discover-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px;
  font-weight: 700; color: var(--text); border: 1px solid transparent;
}
.discover-nav-item:hover { background: var(--surface-soft); }
.discover-nav-item.active { background: var(--brand-soft); color: var(--brand); border-color: #bfe7df; }
.discover-nav-group { display: flex; flex-direction: column; gap: 2px; }
.dn-title { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); font-weight: 800; }
.dn-ico { font-size: 15px; }
.dn-soon { font-size: 10px; padding: 1px 6px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); font-weight: 700; }
.discover-nav-sub {
  text-align: left; border: 0; background: none; padding: 7px 12px 7px 34px; border-radius: 8px;
  color: var(--muted); font-size: 14px; cursor: pointer; font-weight: 600;
}
.discover-nav-sub:hover { background: var(--surface-soft); color: var(--text); }
.discover-nav-sub.active { background: var(--brand-soft); color: var(--brand); }
.discover-nav-footer { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.discover-nav-footer a:not(.btn) { color: var(--muted); font-size: 14px; padding: 6px 12px; border-radius: 8px; font-weight: 600; }
.discover-nav-footer a:not(.btn):hover { background: var(--surface-soft); color: var(--text); }
.discover-nav-footer .btn { margin-top: 6px; }

.discover-mobilebar { display: none; }

.discover-main { padding: 28px 32px 56px; min-width: 0; }
.discover-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.discover-header h1 { margin: 6px 0 6px; font-size: 30px; letter-spacing: -.02em; }
.discover-header p { margin: 0; color: var(--muted); }
.discover-search { position: relative; min-width: 280px; flex: 1; max-width: 380px; }
.discover-search .search-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--subtle); }
.discover-search input {
  width: 100%; height: 44px; padding: 0 16px 0 40px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; color: var(--text);
}
.discover-search input:focus { outline: none; border-color: #86cfc4; box-shadow: 0 0 0 3px rgba(15,118,110,.12); }

.discover-filters {
  position: sticky; top: 12px; z-index: 20;
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: -8px -10px 16px; padding: 8px 10px;
  border: 1px solid transparent; border-radius: 12px;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.portal-has-topbar .discover-filters { top: 76px; }
.discover-body.discover-has-scrolled .discover-filters {
  border-color: var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.chip {
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted);
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .15s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.is-soon { color: var(--subtle); }

.discover-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 16px; }
.discover-card {
  position: relative; border-radius: 14px; overflow: hidden; background: #0b0f1a; cursor: pointer;
  box-shadow: var(--shadow);
}
.discover-card.is-wide { grid-column: span 2; }
.discover-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.discover-card:hover img { transform: scale(1.05); }
.discover-card-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 18px; color: #fff;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.8));
}
.discover-card-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #ff8a9b; font-weight: 800; }
.discover-card-overlay h3 { margin: 0 0 8px; font-size: 17px; }
.discover-card .create-similar { align-self: flex-start; opacity: 0; transform: translateY(6px); transition: all .2s ease; }
.discover-card:hover .create-similar,
.discover-card:focus-within .create-similar { opacity: 1; transform: none; }
.discover-empty { text-align: center; color: var(--muted); padding: 60px 0; font-size: 15px; }
.discover-feed-state {
  min-height: 84px; margin-top: 20px; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.discover-feed-copy { min-width: 0; display: flex; align-items: center; gap: 12px; }
.discover-feed-copy > span:last-child { min-width: 0; display: grid; gap: 3px; }
.discover-feed-copy strong { color: var(--text); font-size: 13px; }
.discover-feed-copy small { color: var(--muted); font-size: 12px; }
.discover-feed-indicator {
  width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center;
  border-radius: 50%; background: var(--surface-soft); color: var(--brand); font-size: 15px; font-weight: 850;
}
.discover-feed-indicator::before { content: "↓"; }
.discover-feed-state.is-loading .discover-feed-indicator {
  border: 2px solid var(--line-strong); border-top-color: var(--brand); background: transparent;
  animation: discover-spin .7s linear infinite;
}
.discover-feed-state.is-loading .discover-feed-indicator::before { content: ""; }
.discover-feed-state.is-complete { justify-content: center; text-align: left; }
.discover-feed-state.is-complete .discover-feed-indicator { background: var(--brand-soft); }
.discover-feed-state.is-complete .discover-feed-indicator::before { content: "✓"; }
.discover-card-skeleton {
  padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  border: 1px solid var(--line); background: var(--surface-soft); box-shadow: none; cursor: default;
  animation: discover-skeleton-pulse .75s ease-in-out infinite alternate;
}
.discover-card-skeleton:hover { transform: none; }
.discover-card-skeleton > span { display: block; border-radius: 999px; background: var(--line-strong); }
.discover-skeleton-label { width: 28%; height: 9px; }
.discover-skeleton-title { width: 62%; height: 16px; }
.discover-skeleton-action { width: 76px; height: 30px; margin-top: 2px; }
.discover-scroll-tools {
  position: fixed; right: 28px; bottom: 28px; z-index: 35;
  min-height: 42px; padding: 6px 7px 6px 14px;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--muted);
  box-shadow: var(--shadow-strong); font-size: 12px; font-weight: 750; cursor: pointer;
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .18s ease, transform .18s ease, border-color .18s ease;
}
.discover-scroll-tools.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.discover-scroll-tools:hover { border-color: var(--brand); color: var(--brand); }
.discover-scroll-tools:focus-visible { outline: 3px solid rgba(15,118,110,.16); outline-offset: 2px; }
.discover-scroll-arrow {
  width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; background: var(--brand); color: #fff; font-size: 15px;
}
@keyframes discover-spin { to { transform: rotate(360deg); } }
@keyframes discover-skeleton-pulse { from { opacity: .58; } to { opacity: 1; } }

/* 发现页：调试资产库 */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.asset-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 180ms cubic-bezier(.16, 1, .3, 1), background 180ms cubic-bezier(.16, 1, .3, 1);
}
.asset-card:hover {
  border-color: #9ccfc7;
  background: #fcfefd;
}
.asset-visual-preview,
.asset-audio-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #101828;
}
.asset-visual-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.asset-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(16, 24, 40, .78);
  color: #fff;
  transform: translate(-50%, -50%);
  padding-left: 2px;
}
.asset-audio-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: #16232f;
}
.asset-audio-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #2dd4bf;
  color: #102a2a;
  font-size: 25px;
  font-weight: 850;
}
.asset-wave {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 56px;
}
.asset-wave i {
  width: 4px;
  border-radius: 999px;
  background: #99f6e4;
}
.asset-wave i:nth-child(1), .asset-wave i:nth-child(7) { height: 16px; opacity: .55; }
.asset-wave i:nth-child(2), .asset-wave i:nth-child(6) { height: 30px; opacity: .72; }
.asset-wave i:nth-child(3), .asset-wave i:nth-child(5) { height: 44px; }
.asset-wave i:nth-child(4) { height: 54px; }
.asset-card-body {
  display: flex;
  min-height: 176px;
  flex-direction: column;
  padding: 16px;
}
.asset-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.asset-card-top time {
  overflow: hidden;
  color: var(--subtle);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset-type {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
}
.asset-type.video { background: var(--blue-soft); color: var(--blue); }
.asset-type.audio { background: var(--violet-soft); color: var(--violet); }
.asset-card h3 {
  margin: 14px 0 6px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset-card-body > p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
}
.asset-card-actions .link {
  font-size: 12px;
}
.asset-empty {
  display: grid;
  justify-items: center;
  max-width: 560px;
  margin: 40px auto 0;
  padding: 60px 24px;
  text-align: center;
}
.asset-empty-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 16px;
  font-weight: 850;
}
.asset-empty h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.asset-empty p {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.asset-empty > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
@media (prefers-reduced-motion: reduce) {
  .asset-card { transition: none; }
}

/* 文档中心 */
.docs-main {
  min-width: 0;
  padding: 34px 40px 72px;
  background: #fff;
}
.docs-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto 38px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.docs-header h1 {
  margin: 6px 0 8px;
  font-size: 32px;
  letter-spacing: -.02em;
}
.docs-header p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.docs-search {
  position: relative;
  flex: 0 1 360px;
  min-width: 280px;
}
.docs-search > span {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--subtle);
  font-size: 18px;
  transform: translateY(-50%);
}
.docs-search input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
}
.docs-search input:focus {
  outline: none;
  border-color: #86cfc4;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}
.docs-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 52px;
  max-width: 1120px;
  margin: 0 auto;
  align-items: start;
}
.docs-toc {
  position: sticky;
  top: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}
.docs-toc > strong {
  margin-bottom: 8px;
  font-size: 13px;
}
.docs-toc > a {
  padding: 7px 9px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.docs-toc > a:hover {
  background: var(--surface-soft);
  color: var(--brand);
}
.docs-toc-help {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding: 15px 9px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.docs-toc-help span { color: var(--subtle); }
.docs-toc-help a { color: var(--brand); font-weight: 700; word-break: break-all; }
.docs-content {
  min-width: 0;
  max-width: 850px;
}
.docs-section {
  margin-bottom: 54px;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.docs-section:last-of-type {
  margin-bottom: 0;
}
.docs-section-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.docs-section-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.docs-section-head h2 {
  margin: 2px 0 6px;
  font-size: 22px;
  letter-spacing: -.01em;
}
.docs-section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.docs-steps {
  margin: 0 0 24px;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.docs-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
}
.docs-steps li > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #101828;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.docs-steps strong { display: block; margin-bottom: 3px; font-size: 14px; }
.docs-steps p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.docs-code-block {
  overflow: hidden;
  border-radius: 12px;
  background: #101828;
  color: #d7dce8;
}
.docs-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid #344054;
}
.docs-code-head > span {
  color: #99f6e4;
  font-size: 12px;
  font-weight: 800;
}
.docs-code-head .btn {
  border-color: #475467;
  background: #1d2939;
  color: #fff;
}
.docs-code-head .btn:hover { background: #344054; }
.docs-code-block pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.65;
  white-space: pre;
}
.docs-code-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.docs-code-note code {
  color: #344054;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.docs-callout {
  padding: 18px 20px;
  border: 1px solid #b7eadc;
  border-radius: 10px;
  background: var(--brand-soft);
}
.docs-callout strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-strong);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
}
.docs-callout p { margin: 0; color: #315e59; font-size: 13px; line-height: 1.65; }
.docs-inline-link { margin: 18px 0 0; }
.docs-inline-link a { color: var(--brand); font-weight: 750; }
.docs-inline-link a:hover { text-decoration: underline; text-underline-offset: 3px; }
.docs-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
.docs-table {
  min-width: 720px;
}
.docs-table th,
.docs-table td {
  padding: 12px 14px;
}
.docs-table td {
  font-size: 13px;
}
.docs-table code {
  color: #344054;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
}
.docs-table a { color: var(--brand); font-weight: 750; }
.docs-table.compact { min-width: 600px; }
.docs-status-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
  align-items: stretch;
}
.docs-status-flow > span { display: none; }
.docs-status-flow > div {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}
.docs-status-flow code {
  display: block;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 11px;
}
.docs-status-flow strong { display: block; margin-bottom: 5px; font-size: 13px; }
.docs-status-flow p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.docs-rules,
.docs-checklist {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.docs-rules li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
}
.docs-rules strong { font-size: 13px; }
.docs-rules span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.docs-checklist li {
  position: relative;
  padding: 15px 2px 15px 30px;
  border-bottom: 1px solid var(--line);
  color: #475467;
  line-height: 1.6;
}
.docs-checklist li::before {
  content: "✓";
  position: absolute;
  top: 14px;
  left: 2px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 850;
}
.docs-no-results {
  display: grid;
  justify-items: center;
  padding: 64px 24px;
  text-align: center;
}
.docs-no-results > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--brand);
  font-size: 22px;
}
.docs-no-results h2 { margin: 0 0 7px; font-size: 19px; }
.docs-no-results p { margin: 0; color: var(--muted); }

@media (max-width: 1000px) {
  .docs-main { padding: 28px 28px 64px; }
  .docs-header { align-items: stretch; flex-direction: column; }
  .docs-search { flex-basis: auto; max-width: 520px; }
  .docs-layout { grid-template-columns: 1fr; gap: 30px; }
  .docs-toc {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .docs-toc > strong { width: 100%; }
  .docs-toc-help { display: none; }
  .docs-content { max-width: none; }
}
@media (max-width: 700px) {
  .docs-main { padding: 22px 16px 52px; }
  .docs-header { margin-bottom: 26px; }
  .docs-header h1 { font-size: 28px; }
  .docs-search { min-width: 0; }
  .docs-status-flow { grid-template-columns: 1fr 1fr; }
  .docs-rules li { grid-template-columns: 1fr; gap: 5px; }
}
@media (max-width: 480px) {
  .docs-status-flow { grid-template-columns: 1fr; }
  .docs-code-block pre { padding: 16px; font-size: 11.5px; }
}

/* 文档中心 v2：任务导向信息架构 */
.docs-main { padding: 38px 42px 80px; }
.docs-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: end;
  max-width: 1180px;
  margin-bottom: 34px;
  padding-bottom: 28px;
}
.docs-heading { min-width: 0; }
.docs-product-line { display: flex; align-items: center; gap: 10px; color: var(--brand); font-size: 13px; font-weight: 750; }
.docs-version {
  padding: 3px 7px;
  border: 1px solid #b7eadc;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.docs-header h1 { margin: 8px 0 9px; font-size: 34px; text-wrap: balance; }
.docs-header p { max-width: 660px; text-wrap: pretty; }
.docs-search { min-width: 280px; }
.docs-search input { height: 46px; background: var(--surface-soft); }
.docs-search input::placeholder { color: #667085; }
.docs-search input:hover { border-color: #b7c1ce; }
.docs-search input:focus { background: #fff; }
.docs-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 46px; max-width: 1180px; }
.docs-toc { gap: 22px; padding-right: 26px; }
.docs-toc-group { display: grid; gap: 3px; }
.docs-toc-group > span { margin: 0 9px 5px; color: var(--subtle); font-size: 11px; font-weight: 800; }
.docs-toc-group > a { padding: 7px 9px; border-radius: 7px; color: var(--muted); font-size: 13px; font-weight: 650; }
.docs-toc-group > a:hover,
.docs-toc-group > a:focus-visible { background: var(--surface-soft); color: var(--brand); outline: none; }
.docs-toc-group > a[aria-current="location"] { background: var(--brand-soft); color: var(--brand-strong); }
.docs-toc-help { margin-top: 2px; }
.docs-content { max-width: 900px; }
.docs-section { margin-bottom: 58px; padding-bottom: 58px; scroll-margin-top: 28px; }
.docs-section-head { display: flex; grid-template-columns: none; align-items: flex-start; justify-content: space-between; gap: 24px; }
.docs-section-head h2 { margin: 0 0 7px; font-size: 23px; text-wrap: balance; }
.docs-section-head p { text-wrap: pretty; }
.docs-section-action {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 750;
}
.docs-section-action:hover,
.docs-section-action:focus-visible { background: var(--brand-soft); color: var(--brand-strong); outline: none; }
.docs-overview {
  margin-bottom: 58px;
  padding: 28px 30px 30px;
  border-top: 1px solid #d8ebe7;
  border-bottom: 1px solid #d8ebe7;
  background: #f5fbfa;
}
.docs-overview-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.docs-overview-head h2 { margin: 0; font-size: 20px; }
.docs-overview-head p { margin: 0; color: #526a67; font-size: 13px; }
.docs-path-list { border-top: 1px solid #d8ebe7; }
.docs-path-list > a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 12px 2px;
  border-bottom: 1px solid #d8ebe7;
}
.docs-path-list > a:hover,
.docs-path-list > a:focus-visible { color: var(--brand-strong); outline: none; }
.docs-path-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
  color: var(--brand);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 850;
}
.docs-path-list strong { display: block; margin-bottom: 4px; font-size: 14px; }
.docs-path-list p { margin: 0; color: #526a67; font-size: 13px; line-height: 1.5; }
.docs-path-list > a > span:last-child { color: var(--brand); font-size: 12px; font-weight: 750; }
.docs-code-block { border-radius: 10px; }
.docs-code-head .btn:hover,
.docs-code-head .btn:focus-visible { background: #344054; outline: 2px solid #99f6e4; outline-offset: 2px; }
.docs-table a:hover { text-decoration: underline; text-underline-offset: 3px; }
.docs-status-flow { display: block; padding: 22px; background: var(--surface-soft); }
.docs-status-primary { display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); align-items: center; gap: 10px; }
.docs-status-primary > span { color: var(--subtle); text-align: center; font-size: 20px; }
.docs-status-primary > div,
.docs-status-terminals > div { padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.docs-status-flow code { margin-bottom: 10px; }
.docs-status-branch { position: relative; height: 52px; color: var(--subtle); font-size: 11px; text-align: center; }
.docs-status-branch::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 20px;
  left: 50%;
  width: 1px;
  background: var(--line-strong);
}
.docs-status-branch span { position: absolute; bottom: 0; left: 50%; padding: 0 8px; background: var(--surface-soft); transform: translateX(-50%); }
.docs-status-terminals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.docs-status-terminals .is-success { border-color: #a9dfca; background: var(--green-soft); }
.docs-status-terminals .is-success code { color: #047857; }
.docs-status-terminals .is-error { border-color: #ffc4cf; background: var(--red-soft); }
.docs-status-terminals .is-error code { color: #be123c; }
.docs-billing-lifecycle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.docs-billing-lifecycle > div { min-width: 0; padding: 18px 18px 18px 0; }
.docs-billing-lifecycle > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.docs-billing-lifecycle span { display: block; margin-bottom: 8px; color: var(--brand); font-size: 11px; font-weight: 800; }
.docs-billing-lifecycle strong { display: block; margin-bottom: 6px; font-size: 14px; }
.docs-billing-lifecycle p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.docs-formulas { margin: 24px 0 0; }
.docs-formulas > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.docs-formulas dt { font-size: 13px; font-weight: 750; }
.docs-formulas dd { margin: 0; }
.docs-formulas code { color: #344054; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }
.docs-billing-note {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid #a9dfca;
  border-radius: 8px;
  background: var(--green-soft);
}
.docs-billing-note strong { flex: 0 0 auto; color: #047857; font-size: 13px; }
.docs-billing-note span { color: #315e59; font-size: 13px; line-height: 1.55; }
.docs-support-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.docs-support-row strong { display: block; margin-bottom: 4px; font-size: 13px; }
.docs-support-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.docs-support-row a { flex: 0 0 auto; padding: 8px 11px; border-radius: 7px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 750; }
.docs-support-row a:hover,
.docs-support-row a:focus-visible { background: var(--brand-strong); outline: none; }

@media (max-width: 1000px) {
  .docs-main { padding: 28px 28px 64px; }
  .docs-header { grid-template-columns: 1fr; align-items: stretch; }
  .docs-search { max-width: 560px; }
  .docs-layout { grid-template-columns: 1fr; gap: 30px; }
  .docs-toc { position: static; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 8px; padding: 0 0 14px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .docs-toc-group { display: flex; flex: 0 0 auto; gap: 4px; }
  .docs-toc-group > span { display: none; }
  .docs-toc-help { display: none; }
  .docs-content { max-width: none; }
}
@media (max-width: 700px) {
  .docs-main { padding: 22px 16px 52px; }
  .docs-header { margin-bottom: 26px; }
  .docs-header h1 { font-size: 28px; }
  .docs-search { min-width: 0; }
  .docs-overview { padding: 22px 18px 24px; }
  .docs-overview-head { display: block; }
  .docs-overview-head p { margin-top: 6px; }
  .docs-path-list > a { grid-template-columns: 38px minmax(0, 1fr); }
  .docs-path-list > a > span:last-child { display: none; }
  .docs-section-head { display: block; }
  .docs-section-action { display: inline-block; margin-top: 12px; }
  .docs-status-flow { padding: 16px; }
  .docs-status-primary { grid-template-columns: 1fr; }
  .docs-status-primary > span { transform: rotate(90deg); }
  .docs-status-terminals { grid-template-columns: 1fr; }
  .docs-billing-lifecycle { grid-template-columns: 1fr; }
  .docs-billing-lifecycle > div { padding: 16px 0; }
  .docs-billing-lifecycle > div + div { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .docs-formulas > div { grid-template-columns: 1fr; gap: 6px; }
  .docs-billing-note { align-items: flex-start; flex-direction: column; gap: 5px; }
  .docs-support-row { align-items: flex-start; flex-direction: column; }
}

.discover-backdrop { display: none; }

@media (max-width: 900px) {
  .discover-shell { grid-template-columns: 1fr; }
  .discover-sidebar {
    position: fixed; top: 0; left: 0; z-index: 60; width: 258px; height: 100vh;
    transform: translateX(-100%); transition: transform .25s ease;
  }
  body.discover-nav-open .discover-sidebar { transform: none; box-shadow: var(--shadow-strong); }
  .discover-backdrop {
    display: block; position: fixed; inset: 0; z-index: 55; border: 0;
    background: rgba(15,23,42,.4); opacity: 0; pointer-events: none; transition: opacity .25s ease;
  }
  body.discover-nav-open .discover-backdrop { opacity: 1; pointer-events: auto; }
  .discover-mobilebar {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40;
  }
  .discover-menu-btn { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 8px; width: 38px; height: 38px; font-size: 18px; cursor: pointer; }
  .discover-main { padding: 20px 16px 48px; }
  .discover-filters { top: 72px; }
  .portal-has-topbar .discover-filters { top: 124px; }
  .discover-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .discover-card.is-wide { grid-column: span 2; }
  .discover-scroll-tools { right: 16px; bottom: 16px; }
}
@media (max-width: 560px) {
  .discover-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .discover-card.is-wide { grid-column: span 1; }
  .discover-header { flex-direction: column; align-items: stretch; }
  .discover-search { max-width: none; }
  .discover-feed-state { align-items: stretch; flex-direction: column; }
  .discover-feed-state .btn { width: 100%; }
  .discover-feed-state.is-complete { align-items: center; }
  .discover-scroll-tools > span:first-child { display: none; }
  .discover-scroll-tools { min-width: 42px; padding: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .discover-feed-state.is-loading .discover-feed-indicator,
  .discover-card-skeleton { animation: none; }
  .discover-scroll-tools { transition: none; }
}



/* ===== 调试页（图生图，3 栏布局） ===== */
.debug-body { background: var(--bg); }
.debug-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.debug-form-col { padding: 26px 28px 48px; border-right: 1px solid var(--line); min-width: 0; }
.debug-form-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.debug-form-head h1 { margin: 6px 0 0; font-size: 26px; letter-spacing: -.02em; }
.debug-form { display: flex; flex-direction: column; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.char-count { align-self: flex-end; color: var(--subtle); font-size: 12px; }
.prompt-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -8px; }
.prompt-preset { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 7px 11px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.prompt-preset:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.prompt-preset:focus-visible { outline: 3px solid rgba(15,118,110,.18); outline-offset: 2px; }

.source-block { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.source-title { font-weight: 700; font-size: 14px; }
.source-loaded { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 10px; background: var(--surface-soft); }
.source-loaded img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; flex: 0 0 76px; }
.source-loaded strong { display: block; margin-bottom: 4px; font-size: 14px; }
.source-loaded p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.source-upload { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 22px; border: 1px dashed var(--line-strong); border-radius: 10px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.source-upload:hover { border-color: var(--brand); background: var(--brand-soft); }
.source-plus { font-size: 22px; color: var(--muted); }
.source-upload strong { font-size: 14px; }
.source-upload small { color: var(--subtle); font-size: 12px; line-height: 1.5; }

.check-line { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check-line.small { font-size: 13px; color: var(--muted); }
.check-line input { width: 16px; height: 16px; accent-color: var(--brand); }
.debug-balance { display: flex; align-items: baseline; gap: 6px; padding: 12px 14px; border-radius: 10px; background: var(--brand-soft); color: var(--muted); font-size: 13px; }
.debug-balance strong { color: var(--brand); font-size: 18px; }

/* 右栏结果面板 */
.debug-result-col { padding: 26px 28px 48px; min-width: 0; }
.debug-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.debug-tab { border: 0; background: none; padding: 10px 16px; border-radius: 8px 8px 0 0; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.debug-tab:hover { color: var(--text); }
.debug-tab.active { color: var(--brand); border-bottom-color: var(--brand); }

.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.results-tools { display: flex; gap: 8px; }
.results-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 80px 20px; color: var(--muted); text-align: center; }
.results-empty .empty-ico { font-size: 40px; }
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.result-card { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.result-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.result-check { position: absolute; top: 10px; left: 10px; }
.result-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.result-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; }
.result-meta small { color: var(--subtle); font-size: 12px; }

/* 图生图任务状态（0 已提交 / 1 排队中 / 2 处理中 / 3 已完成 / 4 失败 / 5 已取消） */
body[data-page="image-to-image"] .results-toolbar { margin-bottom: 12px; }
body[data-page="image-to-image"] .results-selection { display: flex; align-items: center; gap: 10px; }
body[data-page="image-to-image"] .results-selection-count { color: var(--subtle); font-size: 12px; }
body[data-page="image-to-image"] .i2i-status-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 2px 0 14px;
  border-bottom: 1px solid var(--line);
}
body[data-page="image-to-image"] .i2i-status-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
body[data-page="image-to-image"] .i2i-status-heading > div { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
body[data-page="image-to-image"] .i2i-status-heading strong { font-size: 14px; }
body[data-page="image-to-image"] .i2i-status-heading span,
body[data-page="image-to-image"] .i2i-status-heading small { color: var(--muted); font-size: 12px; }
body[data-page="image-to-image"] .i2i-status-heading small { white-space: nowrap; }
body[data-page="image-to-image"] .i2i-status-filters { display: flex; flex-wrap: wrap; gap: 7px; }
body[data-page="image-to-image"] .i2i-status-filters button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  min-width: 66px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
body[data-page="image-to-image"] .i2i-status-filters button:hover { border-color: #91cfc7; background: var(--surface-soft); color: var(--text); }
body[data-page="image-to-image"] .i2i-status-filters button:focus-visible { outline: 3px solid rgba(15, 118, 110, .2); outline-offset: 1px; }
body[data-page="image-to-image"] .i2i-status-filters button.active { border-color: #77cbbf; background: var(--brand-soft); color: var(--brand-strong); }
body[data-page="image-to-image"] .i2i-status-filters em {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--subtle);
  font-size: 10px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
body[data-page="image-to-image"] .i2i-status-filters button.active em { background: var(--surface); color: var(--brand); }
body[data-page="image-to-image"] .i2i-filter-code { color: var(--subtle); font-size: 10px; font-variant-numeric: tabular-nums; }
body[data-page="image-to-image"] .results-empty { min-height: 320px; padding: 64px 20px; border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--surface-soft); }
body[data-page="image-to-image"] .results-empty .empty-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--surface); color: var(--subtle); font-size: 24px; box-shadow: var(--shadow); }
body[data-page="image-to-image"] .results-empty strong { color: var(--text); font-size: 14px; }
body[data-page="image-to-image"] .results-empty p { margin: -4px 0 0; font-size: 13px; }
body[data-page="image-to-image"] .results-grid { gap: 16px; }
body[data-page="image-to-image"] .i2i-result-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 13px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
body[data-page="image-to-image"] .i2i-result-card:hover { border-color: #c1ccd7; box-shadow: 0 8px 22px rgba(15, 23, 42, .07); transform: translateY(-1px); }
body[data-page="image-to-image"] .i2i-result-card.is-selected { border-color: #64bfb4; box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
body[data-page="image-to-image"] .i2i-result-card .result-check {
  top: 12px;
  left: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 4px 12px rgba(15, 23, 42, .14);
  backdrop-filter: blur(8px);
}
body[data-page="image-to-image"] .i2i-result-card .result-check input { margin: 0; }
body[data-page="image-to-image"] .i2i-result-visual { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #dfe6ec; }
body[data-page="image-to-image"] .i2i-result-card .i2i-result-visual > img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; transition: transform .25s ease, filter .25s ease; }
body[data-page="image-to-image"] .i2i-result-card:hover .i2i-result-visual > img { transform: scale(1.015); }
body[data-page="image-to-image"] .i2i-result-card.state-0 .i2i-result-visual > img { filter: saturate(.72) brightness(.91); }
body[data-page="image-to-image"] .i2i-result-card.state-1 .i2i-result-visual > img { filter: saturate(.78) brightness(.88); }
body[data-page="image-to-image"] .i2i-result-card.state-2 .i2i-result-visual > img { filter: saturate(.9) brightness(.82); }
body[data-page="image-to-image"] .i2i-result-card.state-4 .i2i-result-visual > img,
body[data-page="image-to-image"] .i2i-result-card.state-5 .i2i-result-visual > img { filter: grayscale(.72) saturate(.5) brightness(.86); }
body[data-page="image-to-image"] .i2i-result-output-label {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(17, 24, 39, .76);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  backdrop-filter: blur(8px);
}
body[data-page="image-to-image"] .i2i-result-state {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 36px 14px 13px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, .86) 64%);
  color: #fff;
  text-align: left;
}
body[data-page="image-to-image"] .i2i-state-symbol {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 9px;
  background: rgba(71, 85, 105, .84);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .2);
  backdrop-filter: blur(8px);
}
body[data-page="image-to-image"] .state-1 .i2i-state-symbol { background: rgba(180, 104, 10, .9); }
body[data-page="image-to-image"] .state-2 .i2i-state-symbol { background: rgba(15, 118, 110, .92); }
body[data-page="image-to-image"] .state-4 .i2i-state-symbol { background: rgba(190, 24, 93, .9); }
body[data-page="image-to-image"] .state-5 .i2i-state-symbol { background: rgba(71, 85, 105, .88); }
body[data-page="image-to-image"] .i2i-result-state strong { min-width: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
body[data-page="image-to-image"] .i2i-result-state small { display: none; }
body[data-page="image-to-image"] .i2i-progress-track { grid-column: 1 / -1; width: 100%; height: 3px; margin-top: 1px; overflow: hidden; border-radius: 5px; background: rgba(255, 255, 255, .24); }
body[data-page="image-to-image"] .i2i-progress-track span { display: block; width: 38%; height: 100%; border-radius: inherit; background: #82e5d8; animation: i2i-progress 1.2s ease-in-out infinite alternate; }
body[data-page="image-to-image"] .i2i-result-content { display: grid; gap: 9px; padding: 13px 14px 14px; }
body[data-page="image-to-image"] .i2i-result-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
body[data-page="image-to-image"] .i2i-result-title-row h3 {
  display: -webkit-box;
  min-width: 0;
  min-height: 36px;
  margin: 1px 0 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
body[data-page="image-to-image"] .i2i-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  flex: 0 0 auto;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
body[data-page="image-to-image"] .i2i-status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
body[data-page="image-to-image"] .i2i-status-code { opacity: .66; font-size: 10px; font-variant-numeric: tabular-nums; }
body[data-page="image-to-image"] .status-0 { background: #edf2f7; color: #475569; }
body[data-page="image-to-image"] .status-1 { background: var(--amber-soft); color: #a85d08; }
body[data-page="image-to-image"] .status-2 { background: var(--brand-soft); color: var(--brand-strong); }
body[data-page="image-to-image"] .status-3 { background: var(--green-soft); color: var(--green); }
body[data-page="image-to-image"] .status-4 { background: var(--red-soft); color: var(--red); }
body[data-page="image-to-image"] .status-5 { background: #eef2f6; color: #64748b; }
body[data-page="image-to-image"] .i2i-result-description { min-height: 36px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
body[data-page="image-to-image"] .i2i-result-meta { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--subtle); font-size: 11px; font-variant-numeric: tabular-nums; }
body[data-page="image-to-image"] .i2i-result-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body[data-page="image-to-image"] .i2i-result-meta span + span::before { content: "·"; margin-right: 7px; }
body[data-page="image-to-image"] .i2i-result-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-height: 28px; padding-top: 2px; border-top: 1px solid var(--line); }
body[data-page="image-to-image"] .i2i-task-action { min-height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--brand); font-size: 12px; font-weight: 750; }
body[data-page="image-to-image"] .i2i-task-action:hover { background: var(--brand-soft); }
body[data-page="image-to-image"] .i2i-task-action.danger { color: var(--muted); }
body[data-page="image-to-image"] .i2i-task-action.danger:hover { background: var(--red-soft); }

@keyframes i2i-progress {
  from { transform: translateX(-105%); }
  to { transform: translateX(170%); }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="image-to-image"] .i2i-result-card,
  body[data-page="image-to-image"] .i2i-result-card .i2i-result-visual > img { transition: none; }
  body[data-page="image-to-image"] .i2i-progress-track span { width: 64%; animation: none; }
}

/* 使用指南 */
.guide-hero { position: relative; min-height: 230px; margin-bottom: 24px; overflow: hidden; border-radius: 14px; background: var(--surface-soft); }
.guide-hero::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(8,15,23,.82)); }
.guide-hero img { width: 100%; height: 230px; object-fit: cover; display: block; }
.guide-hero div { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; color: #fff; }
.guide-hero span { display: block; margin-bottom: 6px; color: #9ee9df; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.guide-hero strong { display: block; font-size: 18px; line-height: 1.35; }
.guide-steps { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.guide-steps > div { display: flex; align-items: flex-start; gap: 14px; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.guide-steps b { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; }
.guide-steps span { display: flex; flex-direction: column; gap: 4px; }
.guide-steps strong { font-size: 14px; }
.guide-steps small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.guide-block { margin-bottom: 22px; }
.guide-block h3 { margin: 0 0 6px; font-size: 17px; }
.guide-block h4 { margin: 0 0 10px; font-size: 14px; color: var(--brand); }
.guide-block p { margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.guide-block p strong { color: var(--text); }

/* API 面板 */
.api-endpoint { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); margin-bottom: 12px; }
.method-post { background: #dcfce7; color: #15803d; font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 6px; }
.api-endpoint code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
.api-desc { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.api-auth { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.badge-bearer { background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: 11px; padding: 3px 8px; border-radius: 6px; }
.api-auth span:not(.badge-bearer) { color: var(--muted); font-size: 13px; flex: 1; }
.api-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.api-table th, .api-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.api-table th { color: var(--subtle); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.api-table code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--surface-soft); padding: 2px 6px; border-radius: 5px; }
.type-string { color: var(--violet); font-weight: 700; font-size: 12px; }
.type-number { color: var(--green); font-weight: 700; font-size: 12px; }
.api-params-head { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 10px; }
.api-params-head h4 { margin: 0; font-size: 15px; }
.api-code { background: #0b0f1a; color: #d7dce8; border-radius: 10px; padding: 16px; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; line-height: 1.55; overflow-x: auto; white-space: pre; }

@media (max-width: 1100px) {
  .debug-shell { grid-template-columns: 220px 1fr; }
  .debug-result-col { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .debug-form-col { border-right: 0; }
}
@media (max-width: 900px) {
  .debug-shell { grid-template-columns: 1fr; }
  .debug-form-col { padding: 20px 16px 40px; }
  .debug-result-col { padding: 20px 16px 40px; }
  .results-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  body[data-page="image-to-image"] .i2i-status-heading { align-items: flex-start; }
  body[data-page="image-to-image"] .i2i-status-heading > div { align-items: flex-start; flex-direction: column; gap: 3px; }
  body[data-page="image-to-image"] .i2i-status-filters button { flex: 1 1 calc(50% - 4px); }
}

/* 视频结果卡片 */
.result-video { position: relative; }
.result-video img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.result-video .play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px; padding-left: 3px;
}
.result-video .dur-badge {
  position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.7); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 5px;
}

/* ===== 音频生成页 ===== */
.seg-toggle { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; }
.seg-btn { border: 0; background: none; padding: 7px 20px; border-radius: 7px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: var(--brand); color: #fff; }
.voice-loaded { margin: 0; font-size: 13px; color: var(--muted); }
.voice-loaded strong { color: var(--text); }
.aud-result-list { display: flex; flex-direction: column; gap: 14px; }
.aud-result { position: relative; display: flex; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); }
.aud-result .result-check { position: static; }
.aud-result .result-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.aud-body { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.aud-top { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.aud-ico { font-size: 18px; }
.aud-result audio { width: 100%; height: 38px; }
.aud-result .result-meta { padding: 0; }

/* ===== 游客定价页 ===== */
.pricing-page {
  background: #fff;
}
.pricing-page .navbar {
  padding-block: 12px;
}
.pricing-page .navbar-nav {
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
}
.pricing-page .navbar-nav a {
  font-weight: 650;
}
.pricing-page .navbar-nav a.active {
  color: var(--brand);
}
.pricing-page .navbar-nav .btn {
  color: #fff;
}
.pricing-page .footer {
  margin-top: 0;
}
.pricing-container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}
.pricing-hero {
  padding: 76px 0;
  background: #101828;
  color: #fff;
}
.pricing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 72px;
  align-items: center;
}
.pricing-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 18px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(94, 234, 212, .12);
  color: #99f6e4;
  font-size: 12px;
  font-weight: 800;
}
.pricing-hero h1 {
  max-width: 700px;
  margin: 0 0 20px;
  font-size: 46px;
  line-height: 1.12;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.pricing-hero-copy > p {
  max-width: 650px;
  margin: 0;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.75;
  text-wrap: pretty;
}
.pricing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.pricing-hero .btn.ghost {
  border-color: #475467;
  background: transparent;
  color: #fff;
}
.pricing-hero .btn.ghost:hover {
  border-color: #98a2b3;
  background: #1d2939;
}
.pricing-standard {
  border: 1px solid #344054;
  border-radius: 14px;
  background: #182230;
  overflow: hidden;
}
.pricing-standard-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #344054;
}
.pricing-standard-head span {
  font-weight: 800;
}
.pricing-standard-head small {
  color: #98a2b3;
  font-size: 11px;
}
.pricing-standard dl {
  margin: 0;
}
.pricing-standard dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 20px;
}
.pricing-standard dl div + div {
  border-top: 1px solid #2d3748;
}
.pricing-standard dt {
  color: #aeb8c8;
  font-size: 13px;
}
.pricing-standard dd {
  margin: 0;
  color: #fff;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.pricing-principles {
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}
.pricing-principles-inner {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: 72px;
  padding-block: 52px;
  align-items: start;
}
.pricing-section-intro h2,
.pricing-section-heading h2,
.pricing-faq-intro h2,
.pricing-cta h2 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.pricing-section-intro p,
.pricing-section-heading p,
.pricing-faq-intro p,
.pricing-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  text-wrap: pretty;
}
.pricing-principle-list {
  border-top: 1px solid var(--line-strong);
}
.pricing-principle-list article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line-strong);
}
.principle-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
}
.pricing-principle-list h3 {
  margin: 0 0 5px;
  font-size: 15px;
}
.pricing-principle-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.pricing-section {
  padding: 72px 0;
}
.pricing-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.pricing-section-heading > div {
  max-width: 720px;
}
.pricing-section-heading.compact {
  margin-bottom: 24px;
}
.pricing-text-link,
.pricing-row-link {
  color: var(--brand);
  font-weight: 750;
}
.pricing-text-link:hover,
.pricing-row-link:hover {
  color: var(--brand-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pricing-table-wrap {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow-x: auto;
  max-width: 100%;
  contain: inline-size;
  background: #fff;
}
.pricing-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}
.pricing-table th,
.pricing-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.pricing-table th {
  background: var(--surface-soft);
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}
.pricing-table tbody tr:last-child td {
  border-bottom: 0;
}
.pricing-table tbody tr:hover td:not([rowspan]) {
  background: #f9fbfc;
}
.pricing-capability-cell {
  width: 29%;
  border-right: 1px solid var(--line);
  background: #fcfcfd;
}
.pricing-capability-cell > strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}
.pricing-capability-cell p {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.pricing-spec {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 7px;
  background: #f2f4f7;
  color: #344054;
  font-size: 12px;
  font-weight: 750;
}
.pricing-rate {
  color: var(--text);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}
.pricing-rate-unit {
  color: var(--muted);
  font-size: 12px;
}
.pricing-pending {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: #9a5b04;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.pricing-billing-label {
  color: #475467;
  font-size: 13px;
}
.pricing-action-cell {
  text-align: right !important;
  white-space: nowrap;
}
.pricing-row-link {
  font-size: 13px;
}
.pricing-loading {
  padding: 40px !important;
  color: var(--muted);
  text-align: center !important;
}
.pricing-table-notes {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 4px 0;
  color: var(--muted);
  font-size: 12px;
}
.pricing-table-notes p {
  margin: 0;
  line-height: 1.6;
}
.pricing-table-notes strong {
  color: var(--text);
}
.pricing-examples-section {
  border-block: 1px solid var(--line);
  background: var(--surface-soft);
}
.pricing-examples-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 52px;
  align-items: start;
}
.pricing-example-list {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.pricing-example-item {
  display: grid;
  grid-template-columns: minmax(150px, .9fr) minmax(190px, 1.2fr) minmax(130px, .7fr);
  gap: 18px;
  align-items: center;
  padding: 17px 18px;
}
.pricing-example-item + .pricing-example-item {
  border-top: 1px solid var(--line);
}
.pricing-example-copy {
  display: grid;
  gap: 4px;
}
.pricing-example-copy strong {
  font-size: 14px;
}
.pricing-example-copy span {
  color: var(--muted);
  font-size: 12px;
}
.pricing-example-item code {
  color: #475467;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
}
.pricing-example-cost {
  display: grid;
  justify-items: end;
  gap: 3px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pricing-example-cost strong {
  color: var(--brand-strong);
  font-size: 15px;
}
.pricing-example-cost small {
  color: var(--muted);
}
.pricing-formula {
  border-radius: 12px;
  background: #101828;
  color: #fff;
  padding: 24px;
}
.pricing-formula h3 {
  margin: 0 0 20px;
  font-size: 19px;
}
.formula-row {
  display: grid;
  gap: 7px;
  padding: 14px 0;
  border-top: 1px solid #344054;
}
.formula-row span {
  color: #aeb8c8;
  font-size: 12px;
}
.formula-row code {
  color: #ecfdf5;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
}
.pricing-formula > p {
  margin: 18px 0 0;
  color: #aeb8c8;
  font-size: 12px;
  line-height: 1.65;
}
.pricing-cta {
  background: var(--brand-strong);
  color: #fff;
}
.pricing-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-block: 48px;
}
.pricing-cta-inner > div:first-child {
  max-width: 720px;
}
.pricing-cta p {
  color: #c7eee8;
}
.pricing-cta-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}
.pricing-cta .btn.primary {
  border-color: #fff;
  background: #fff;
  color: var(--brand-strong);
}
.pricing-cta .btn.primary:hover {
  background: #ecfdf8;
}
.pricing-cta .btn.ghost {
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
.pricing-cta .btn.ghost:hover {
  background: rgba(255,255,255,.1);
}
.pricing-faq-grid {
  display: grid;
  grid-template-columns: minmax(230px, .55fr) minmax(0, 1.45fr);
  gap: 72px;
  align-items: start;
}
.pricing-faq-intro {
  position: sticky;
  top: 104px;
}
.pricing-faq-intro .pricing-text-link {
  display: inline-block;
  margin-top: 22px;
}
.pricing-faq-list {
  border-top: 1px solid var(--line-strong);
}
.faq-item {
  border-bottom: 1px solid var(--line-strong);
}
.faq-item summary {
  position: relative;
  padding: 20px 42px 20px 0;
  cursor: pointer;
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.5;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--brand);
  font-size: 20px;
  font-weight: 500;
  transition: transform 180ms cubic-bezier(.16, 1, .3, 1);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  max-width: 70ch;
  margin: -4px 42px 20px 0;
  color: var(--muted);
  line-height: 1.75;
  text-wrap: pretty;
}
.pricing-page a:focus-visible,
.faq-item summary:focus-visible {
  outline: 3px solid rgba(15, 118, 110, .28);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1000px) {
  .pricing-hero-grid,
  .pricing-principles-inner,
  .pricing-examples-grid,
  .pricing-faq-grid {
    grid-template-columns: 1fr;
  }
  .pricing-hero-grid,
  .pricing-principles-inner,
  .pricing-faq-grid {
    gap: 36px;
  }
  .pricing-standard {
    max-width: 620px;
  }
  .pricing-faq-intro {
    position: static;
  }
  .pricing-cta-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }
}
@media (max-width: 768px) {
  .pricing-page .navbar-content {
    align-items: flex-start;
  }
  .pricing-page .navbar-nav {
    justify-content: flex-start;
    gap: 10px 16px;
  }
  .pricing-page .navbar-nav a {
    font-size: 13px;
  }
  .pricing-container {
    width: min(100% - 32px, 1120px);
  }
  .pricing-hero {
    padding: 56px 0;
  }
  .pricing-hero h1 {
    font-size: 36px;
  }
  .pricing-principles-inner {
    padding-block: 42px;
  }
  .pricing-section {
    padding: 56px 0;
  }
  .pricing-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .pricing-table-notes {
    flex-direction: column;
    gap: 6px;
  }
  .pricing-example-item {
    grid-template-columns: 1fr auto;
  }
  .pricing-example-item code {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .pricing-example-cost {
    grid-column: 2;
    grid-row: 1;
  }
  .pricing-cta-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

/* ===== 2026-07-21 门户导航与身份入口优化 ===== */
.discover-nav-footer > a.active:not(.btn) { background: var(--brand-soft); color: var(--brand); }
.discover-nav-console { display: grid; gap: 3px; }
.discover-nav-console summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 12px; border-radius: 8px; color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 650; list-style: none;
}
.discover-nav-console summary::-webkit-details-marker { display: none; }
.discover-nav-console summary::after { content: "⌄"; color: var(--subtle); font-size: 12px; transition: transform 160ms ease; }
.discover-nav-console[open] summary::after { transform: rotate(180deg); }
.discover-nav-console summary:hover,
.discover-nav-console[open] summary { background: var(--surface-soft); color: var(--text); }
.discover-nav-console > div { display: grid; gap: 2px; padding: 0 0 4px 16px; }
.discover-nav-console a { padding: 6px 12px; border-radius: 7px; color: var(--muted); font-size: 13px; font-weight: 600; }
.discover-nav-console a:hover,
.discover-nav-console a:focus-visible { background: var(--surface-soft); color: var(--brand); outline: none; }
.discover-nav-console .is-current { background: var(--brand-soft); color: var(--brand); }
.pricing-main { min-width: 0; overflow-x: hidden; background: #fff; }
.pricing-main > main { min-width: 0; }
.pricing-page .footer { border-top: 1px solid var(--line); }
.auth-container {
  min-height: 100vh; padding: 52px 24px; background: var(--bg); align-items: flex-start;
}
.auth-card {
  width: min(100%, 460px); margin: auto; padding: 34px 36px 30px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); box-shadow: var(--shadow);
}
.auth-register-container { padding-block: 32px 52px; }
.auth-register-container .auth-card { max-width: 520px; }
.auth-back { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; font-weight: 650; }
.auth-back:hover { color: var(--brand); }
.auth-card h1 { margin: 24px 0 8px; font-size: 28px; letter-spacing: -.02em; }
.auth-subtitle { margin: 0 0 26px; color: var(--muted); text-align: left; line-height: 1.6; }
.auth-card .field { margin-bottom: 16px; }
.password-control { position: relative; display: flex; align-items: center; }
.password-control .control { padding-right: 64px; }
.password-toggle { position: absolute; right: 7px; border: 0; padding: 5px 7px; border-radius: 6px; background: transparent; color: var(--brand); font-size: 12px; font-weight: 750; }
.password-toggle:hover { background: var(--brand-soft); }
.demo-account { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 12px 14px; border: 1px solid #ccebe4; border-radius: 9px; background: var(--brand-soft); }
.demo-account div { display: grid; gap: 4px; min-width: 0; }
.demo-account strong { color: var(--brand-strong); font-size: 12px; }
.demo-account span { overflow: hidden; color: #376a65; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.demo-account .btn { flex: 0 0 auto; }
.agreement-row { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 16px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.agreement-row input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--brand); }
.auth-footer { margin-top: 22px; }
.portal-modal-mask { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(15, 23, 42, .42); opacity: 0; pointer-events: none; transition: opacity 160ms ease; }
.portal-modal-mask[hidden] { display: none; }
.portal-modal-mask.is-open { opacity: 1; pointer-events: auto; }
.portal-modal { width: min(100%, 440px); border: 0; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-strong); }
.portal-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.portal-modal-head h2 { margin: 0; font-size: 19px; }
.portal-modal-close { border: 0; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; }
.portal-modal-body { display: grid; gap: 16px; padding: 20px 24px 24px; }
.portal-modal-body p { margin: 0; color: var(--muted); line-height: 1.6; }
.business-email-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-soft); }
.business-email-row code { overflow: hidden; color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
.business-actions, .auth-gate-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-gate-target { color: var(--brand-strong); font-weight: 700; }
.pricing-row-link.is-disabled { color: var(--subtle); cursor: not-allowed; text-decoration: none; }
.pricing-row-link.is-disabled:hover { color: var(--subtle); }
@media (max-width: 900px) {
  .auth-container { min-height: calc(100vh - 63px); padding: 28px 16px 46px; }
  .auth-card { padding: 28px 22px 24px; }
  .auth-register-container { padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-modal-mask, .discover-nav-console summary::after { transition: none; }
}
@media (max-width: 520px) {
  .pricing-page .navbar-nav a:nth-child(1),
  .pricing-page .navbar-nav a:nth-child(2),
  .pricing-page .navbar-nav a:nth-child(4) {
    display: none;
  }
  .pricing-hero h1 {
    font-size: 31px;
  }
  .pricing-hero-copy > p {
    font-size: 15px;
  }
  .pricing-hero-actions,
  .pricing-cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .pricing-standard-head,
  .pricing-standard dl div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .pricing-section-intro h2,
  .pricing-section-heading h2,
  .pricing-faq-intro h2,
  .pricing-cta h2 {
    font-size: 25px;
  }
  .pricing-example-item {
    grid-template-columns: 1fr;
  }
  .pricing-example-cost,
  .pricing-example-item code {
    grid-column: 1;
    grid-row: auto;
    justify-items: start;
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after {
    transition: none;
  }
}

/* ===== 门户文案交付稿对齐：定价 / 商务 / 登录 / 注册 ===== */
.portal-copy-page { --portal-ink: #17211f; --portal-wash: #f4f6f2; }
.portal-page-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.portal-eyebrow { color: var(--brand); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.portal-lang-switch {
  min-width: 42px; min-height: 32px; padding: 0 10px; border: 1px solid currentColor; border-radius: 999px;
  background: transparent; color: inherit; font-size: 12px; font-weight: 800;
}
.portal-lang-switch:hover { background: rgba(15, 118, 110, .08); }
.discover-mobilebar .portal-lang-switch { margin-left: auto; color: var(--brand); }
.form-banner-error {
  margin: 0 0 16px; padding: 10px 12px; border: 1px solid #fecdd3; border-radius: 8px;
  background: #fff7f8; color: var(--red); font-size: 12px; font-weight: 700; line-height: 1.5;
}
.form-banner-error[hidden], .modal-mask[hidden] { display: none; }
.portal-copy-page .modal-mask { z-index: 100; }
.field-error { min-height: 0; color: var(--red) !important; font-size: 11px !important; font-weight: 700; }
.field-error:empty { display: none; }
.control[aria-invalid="true"] { border-color: #fda4af; box-shadow: 0 0 0 3px rgba(225, 29, 72, .08); }
.agreement-row a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.agreement-error { display: block; margin: -10px 0 14px 24px; }
.auth-assist { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 18px; color: var(--muted); font-size: 12px; }
.auth-assist label { display: inline-flex; align-items: center; gap: 7px; }
.auth-assist input { width: 15px; height: 15px; accent-color: var(--brand); }
.auth-assist .link { font-size: 12px; }
.auth-card .portal-page-tools + h1 { margin-top: 24px; }
.auth-card .desktop-language { color: var(--brand); }

.compact-pricing-hero { padding: 64px 0 72px; }
.compact-pricing-hero .portal-page-tools { margin-bottom: 68px; }
.compact-pricing-hero .portal-eyebrow { color: #5eead4; }
.compact-pricing-hero .portal-lang-switch { color: #d7f7f1; }
.pricing-copy-focused { max-width: 850px; }
.pricing-copy-focused h1 { max-width: 780px; }
.pricing-copy-focused .pricing-hero-actions { margin-top: 30px; }
.pricing-catalog { padding-top: 68px; }
.pricing-sync-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.pricing-sync-status strong { color: var(--text); font-variant-numeric: tabular-nums; }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.pricing-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 14px; }
.pricing-filter-btn {
  min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: #fff; color: var(--muted); font-size: 13px; font-weight: 750;
}
.pricing-filter-btn:hover { border-color: #8fd9ce; color: var(--brand); }
.pricing-filter-btn.is-active { border-color: var(--brand); background: var(--brand); color: #fff; }
.pricing-table { min-width: 1050px; }
.pricing-capability-cell { width: auto; min-width: 150px; }
.pricing-capability-cell > strong { margin: 0; font-size: 14px; }
.pricing-model-cell { color: var(--subtle); }
.pricing-availability { display: inline-flex; padding: 4px 9px; border-radius: 999px; background: #f2f4f7; color: var(--muted); font-size: 12px; font-weight: 750; white-space: nowrap; }
.pricing-availability.is-available { background: var(--green-soft); color: var(--green); }
.pricing-disclaimer { margin: 14px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.portal-footer { margin: 0; }

.portal-content { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.business-main { min-width: 0; background: #fff; }
.business-hero { padding: 34px 0 82px; overflow: hidden; background: var(--portal-wash); }
.business-hero .portal-page-tools { margin-bottom: 74px; }
.business-hero .desktop-language { color: var(--brand); }
.business-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 72px; align-items: center; }
.business-hero h1 { max-width: 760px; margin: 0; color: var(--portal-ink); font-size: clamp(42px, 5vw, 68px); line-height: 1.02; letter-spacing: -.05em; text-wrap: balance; }
.business-hero p { max-width: 680px; margin: 24px 0 32px; color: #55605d; font-size: 17px; line-height: 1.75; }
.business-signal { position: relative; width: min(100%, 360px); aspect-ratio: 1; justify-self: end; border: 1px solid #cfd7d1; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 28px var(--portal-wash); }
.business-signal::before { content: ""; position: absolute; inset: 50%; width: 1px; height: 38%; background: #9bc8bf; transform-origin: top; animation: signal-sweep 8s linear infinite; }
.business-signal span { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid #b9ccc7; border-radius: 50%; background: #fff; color: var(--brand); font: 800 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.business-signal span:nth-of-type(1) { top: 10%; left: 28%; }.business-signal span:nth-of-type(2) { top: 47%; right: 7%; }.business-signal span:nth-of-type(3) { bottom: 9%; left: 18%; }
.business-signal i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }.business-signal i:nth-of-type(1) { left: 22%; top: 46%; }.business-signal i:nth-of-type(2) { right: 35%; bottom: 25%; }
@keyframes signal-sweep { to { transform: rotate(360deg); } }
.business-directions { padding: 84px 0; }
.section-lead { max-width: 680px; margin-bottom: 36px; }.section-lead h2 { margin: 12px 0 0; color: var(--portal-ink); font-size: 34px; letter-spacing: -.03em; }
.business-direction-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.business-direction-grid article { min-height: 230px; padding: 28px; }.business-direction-grid article + article { border-left: 1px solid var(--line-strong); }
.direction-index { color: var(--brand); font: 750 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.business-direction-grid h3 { margin: 48px 0 12px; font-size: 20px; }.business-direction-grid p { margin: 0; color: var(--muted); line-height: 1.7; }
.business-form-section { padding: 84px 0 96px; background: #101828; color: #fff; }
.business-form-layout { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: 72px; align-items: start; }
.business-form-intro { position: sticky; top: 36px; }.business-form-intro .portal-eyebrow { color: #5eead4; }.business-form-intro h2 { margin: 14px 0; font-size: 38px; letter-spacing: -.03em; }.business-form-intro > p { color: #aeb8c7; line-height: 1.7; }
.business-contact-note { display: grid; gap: 8px; margin-top: 34px; padding-top: 24px; border-top: 1px solid #344054; color: #98a2b3; font-size: 12px; }.business-contact-note a { color: #5eead4; font-size: 14px; font-weight: 750; }
.business-form-card { padding: 30px; border: 1px solid #344054; border-radius: 12px; background: #fff; color: var(--text); box-shadow: 0 24px 60px rgba(0,0,0,.22); }
.business-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.business-details-field { grid-column: 1 / -1; }.business-form-card textarea.control { min-height: 132px; }
.business-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }.business-form-actions p { margin: 0; color: var(--muted); font-size: 11px; }

@media (max-width: 900px) {
  .desktop-language { display: none; }
  .compact-pricing-hero .portal-page-tools { margin-bottom: 42px; }
  .business-hero { padding-top: 24px; }
  .business-hero .portal-page-tools { margin-bottom: 44px; }
  .business-hero-grid, .business-form-layout { grid-template-columns: 1fr; gap: 44px; }
  .business-signal { justify-self: start; width: min(74vw, 330px); }
  .business-form-intro { position: static; }
}
@media (max-width: 620px) {
  .pricing-container, .portal-content { width: min(100% - 32px, 1120px); }
  .compact-pricing-hero { padding: 42px 0 52px; }
  .compact-pricing-hero .portal-page-tools { margin-bottom: 34px; }
  .pricing-copy-focused h1 { font-size: 36px; }
  .pricing-sync-status { white-space: normal; }
  .pricing-filter { flex-wrap: nowrap; margin-inline: -16px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
  .pricing-filter-btn { flex: 0 0 auto; }
  .pricing-table-wrap { overflow: visible; border: 0; contain: none; background: transparent; }
  .pricing-table { min-width: 0; border-collapse: separate; }
  .pricing-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pricing-table tbody { display: grid; gap: 12px; }
  .pricing-table tbody tr {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; padding: 18px;
    border: 1px solid var(--line-strong); border-radius: 11px; background: #fff;
  }
  .pricing-table tbody tr:hover td { background: transparent; }
  .pricing-table td, .pricing-table tbody tr:last-child td { display: grid; align-content: start; gap: 6px; padding: 0; border: 0; text-align: left !important; }
  .pricing-table td::before { content: attr(data-label); color: var(--subtle); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .pricing-table .pricing-capability-cell { grid-column: 1 / -1; padding-bottom: 12px; border-right: 0; border-bottom: 1px solid var(--line); background: transparent; }
  .pricing-table .pricing-action-cell { grid-column: 1 / -1; padding-top: 4px; }
  .pricing-table .pricing-action-cell:has(.is-disabled) { display: none; }
  .pricing-table .pricing-row-link { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 8px; }
  .business-hero h1 { font-size: 42px; }
  .section-lead h2 { font-size: 30px; line-height: 1.18; text-wrap: balance; }
  .business-signal { width: min(86vw, 320px); }
  .business-direction-grid { grid-template-columns: 1fr; }
  .business-direction-grid article { min-height: 190px; padding-inline: 10px; }
  .business-direction-grid article + article { border-left: 0; border-top: 1px solid var(--line-strong); }
  .business-direction-grid h3 { margin-top: 36px; }
  .business-form-section { padding-block: 64px; }
  .business-form-card { padding: 22px 18px; }
  .business-form-grid { grid-template-columns: 1fr; }
  .business-details-field { grid-column: auto; }
  .business-form-actions { align-items: stretch; flex-direction: column; }
  .business-form-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .business-signal::before { animation: none; } }

/* ===== 登录 / 注册 PRD 丰富态 ===== */
.auth-login-container { padding: 34px 28px 54px; align-items: flex-start; }
.auth-wide-card {
  width: min(100%, 1040px); margin: auto; overflow: hidden; border: 1px solid var(--line-strong);
  border-radius: 14px; background: #fff; box-shadow: 0 22px 70px rgba(15, 23, 42, .10);
}
.auth-wide-card > .portal-page-tools { min-height: 62px; padding: 0 28px; border-bottom: 1px solid var(--line); }
.auth-wide-card .desktop-language { color: var(--brand); }
.auth-login-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); }
.auth-story-panel { padding: 48px 44px 42px; background: #101828; color: #fff; }
.auth-story-panel .portal-eyebrow { color: #5eead4; }
.auth-story-panel h1 { margin: 14px 0 14px; font-size: 42px; line-height: 1.08; letter-spacing: -.04em; }
.auth-story-panel > p { max-width: 530px; margin: 0; color: #b6c0cf; line-height: 1.7; }
.auth-value-list { display: grid; gap: 0; margin: 34px 0; border-top: 1px solid #344054; border-bottom: 1px solid #344054; }
.auth-value-list > div { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 17px 0; }
.auth-value-list > div + div { border-top: 1px solid #283548; }
.auth-value-list > div > span { padding-top: 2px; color: #5eead4; font: 750 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.auth-value-list p { display: grid; gap: 4px; margin: 0; }.auth-value-list strong { font-size: 14px; }.auth-value-list small { color: #98a2b3; font-size: 12px; line-height: 1.5; }
.auth-access-panel { display: grid; grid-template-columns: .78fr 1.22fr; gap: 22px; padding: 19px; border: 1px solid #344054; border-radius: 10px; background: #162235; }
.auth-access-panel h2 { margin: 7px 0 7px; font-size: 16px; line-height: 1.3; letter-spacing: 0; }.auth-access-panel > div:first-child > p { margin: 0; color: #98a2b3; font-size: 10px; line-height: 1.55; }
.auth-access-list { display: grid; gap: 8px; }.auth-access-list article { display: grid; grid-template-columns: 34px 1fr; gap: 10px; min-height: 62px; align-items: center; padding: 10px; border: 1px solid #344054; border-radius: 8px; background: #101828; }
.auth-access-list article > span { color: #5eead4; font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }.auth-access-list article > div { display: grid; gap: 4px; }.auth-access-list strong { font-size: 11px; }.auth-access-list small { color: #98a2b3; font-size: 9px; line-height: 1.45; }
.auth-form-panel { align-self: center; padding: 48px 44px; }
.auth-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 28px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #f6f8fa; }
.auth-mode-switch a { display: flex; min-height: 38px; align-items: center; justify-content: center; border-radius: 7px; color: var(--muted); font-size: 13px; font-weight: 800; }
.auth-mode-switch a:hover { color: var(--brand); background: #fff; }
.auth-mode-switch a.is-active { background: #fff; color: var(--brand-strong); box-shadow: 0 1px 4px rgba(15, 23, 42, .10); cursor: default; }
.auth-form-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 28px; }
.auth-step-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-weight: 900; }
.auth-form-heading h2 { margin: 0 0 5px; font-size: 24px; letter-spacing: -.025em; }.auth-form-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.auth-form-panel .field { margin-bottom: 18px; }.auth-form-panel .auth-footer { text-align: center; }
.auth-help-panel { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.auth-help-panel > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }.auth-help-panel h3 { margin: 0; font-size: 15px; }.auth-help-panel .portal-eyebrow { font-size: 9px; }
.auth-help-panel ul { display: grid; gap: 0; margin: 14px 0 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 9px; }
.auth-help-panel li { display: grid; gap: 4px; padding: 11px 13px; }.auth-help-panel li + li { border-top: 1px solid var(--line); }
.auth-help-panel li strong { color: #344054; font-size: 11px; }.auth-help-panel li small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.auth-form-panel .password-control .control,
.auth-register-card .password-control .control { width: 100%; }

.auth-register-container .auth-register-card { width: min(100%, 800px); max-width: 800px; padding: 34px 38px 32px; }
.auth-register-card > .auth-mode-switch { margin-top: 24px; }
.register-fact-strip { display: grid; grid-template-columns: .8fr 1.35fr .65fr; margin: 24px 0 28px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfd; }
.register-fact-strip > span { display: grid; gap: 5px; padding: 13px 15px; }.register-fact-strip > span + span { border-left: 1px solid var(--line); }
.register-fact-strip strong { color: var(--muted); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }.register-fact-strip small { color: #344054; font-size: 12px; font-weight: 750; line-height: 1.4; }
.register-progress { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 28px; padding: 0; list-style: none; }
.register-progress li { position: relative; display: flex; align-items: center; gap: 8px; color: var(--subtle); font-size: 11px; }
.register-progress li::after { content: ""; position: absolute; left: 34px; right: 10px; top: 14px; height: 1px; background: var(--line-strong); }
.register-progress li:last-child::after { display: none; }
.register-progress li > span { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; font-weight: 800; }
.register-progress li strong { position: relative; z-index: 1; padding-right: 8px; background: #fff; white-space: nowrap; }
.register-progress li.is-active { color: var(--brand); }.register-progress li.is-active > span { border-color: var(--brand); background: var(--brand); color: #fff; }
.register-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.register-form-grid .field { margin: 0; }.register-span-2 { grid-column: 1 / -1; }
.account-type-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.account-type-field legend { margin-bottom: 6px; padding: 0; color: #344054; font-size: 12px; font-weight: 800; }.account-type-field legend b { color: var(--red); }
.account-type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.account-type-options label { position: relative; cursor: pointer; }.account-type-options input { position: absolute; opacity: 0; pointer-events: none; }
.account-type-options label > span { display: grid; gap: 3px; min-height: 62px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }
.account-type-options label:hover > span { border-color: #8fd9ce; }.account-type-options input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.account-type-options strong { color: #344054; font-size: 12px; }.account-type-options small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.register-rule-note { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; padding: 12px 14px; border: 1px solid #ccebe4; border-radius: 9px; background: var(--brand-soft); }
.register-rule-note > span { display: grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; font-family: Georgia, serif; font-weight: 800; }
.register-rule-note p { display: grid; gap: 3px; margin: 0; }.register-rule-note strong { color: var(--brand-strong); font-size: 12px; }.register-rule-note small { color: #46716c; font-size: 11px; line-height: 1.45; }
.auth-register-card .agreement-row { margin-top: 20px; }
.register-success-modal { width: min(560px, calc(100vw - 32px)); }.register-success-modal .modal-head { justify-content: flex-start; min-height: 88px; }
.register-success-modal .modal-head > div:last-child { display: grid; gap: 5px; }.register-success-modal .modal-head h3 { font-size: 20px; }
.success-orbit { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 20px; font-weight: 900; }
.register-success-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; border: 1px solid var(--line); border-radius: 9px; }
.register-success-facts > span { display: grid; gap: 5px; padding: 13px; }.register-success-facts > span + span { border-left: 1px solid var(--line); }.register-success-facts strong { color: var(--muted); font-size: 10px; }.register-success-facts small { color: var(--text); font-size: 13px; font-weight: 750; }
.register-next-steps { display: grid; grid-template-columns: .72fr 1.28fr; gap: 28px; margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.register-next-intro h2 { margin: 8px 0 9px; font-size: 20px; letter-spacing: -.02em; }.register-next-intro > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.register-next-intro > a { display: inline-flex; margin-top: 14px; color: var(--brand); font-size: 11px; font-weight: 800; }
.register-next-steps ol { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 9px; }
.register-next-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 12px 14px; }.register-next-steps li + li { border-top: 1px solid var(--line); }
.register-next-steps li > span { padding-top: 2px; color: var(--brand); font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }.register-next-steps li p { display: grid; gap: 4px; margin: 0; }.register-next-steps li strong { color: #344054; font-size: 11px; }.register-next-steps li small { color: var(--muted); font-size: 10px; line-height: 1.5; }

@media (max-width: 900px) {
  .auth-login-container { padding: 24px 16px 44px; }
  .auth-login-grid { display: flex; flex-direction: column; }
  .auth-form-panel { order: -1; }
  .auth-story-panel { padding: 36px 30px; }
  .auth-form-panel { padding: 38px 30px 42px; }
}
@media (max-width: 620px) {
  .auth-wide-card > .portal-page-tools { min-height: 56px; padding-inline: 20px; }
  .auth-story-panel { padding: 32px 22px; }.auth-story-panel h1 { font-size: 36px; }
  .auth-value-list { margin-block: 28px; }
  .auth-access-panel { grid-template-columns: 1fr; }
  .auth-form-panel { padding: 32px 22px 36px; }
  .auth-register-container .auth-register-card { padding: 28px 20px 26px; }
  .register-fact-strip { grid-template-columns: 1fr; }.register-fact-strip > span + span { border-top: 1px solid var(--line); border-left: 0; }
  html[lang="zh-CN"] .auth-register-card h1 { font-size: 26px; white-space: nowrap; }
  .register-progress li { display: grid; justify-items: start; gap: 5px; }.register-progress li::after { left: 30px; top: 14px; }
  .register-progress li strong { padding: 0; font-size: 9px; }
  .register-form-grid { grid-template-columns: 1fr; }.register-span-2 { grid-column: auto; }
  .register-next-steps { grid-template-columns: 1fr; gap: 18px; }
  .register-success-facts { grid-template-columns: 1fr; }.register-success-facts > span + span { border-top: 1px solid var(--line); border-left: 0; }
}

/* ===== 门户统一顶部栏与资源导航 ===== */
.portal-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 248px;
  z-index: 50;
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
  backdrop-filter: blur(14px);
}
/* 新门户布局下，抽屉/弹窗必须覆盖 portal-topbar(z-index:50)，否则标题栏与关闭按钮被遮挡 */
.console-portal-page .drawer-mask,
.console-portal-page .modal-mask { z-index: 60; }
.console-portal-page .drawer,
.console-portal-page .modal { z-index: 61; }
.portal-topbar-context {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.portal-context-mark { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.portal-topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.portal-icon-btn,
.portal-language-btn,
.portal-avatar {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}
.portal-language-btn { width: 44px; flex-basis: 44px; font-size: 12px; font-weight: 850; }
.portal-icon-btn:hover,
.portal-language-btn:hover { border-color: var(--line); background: var(--surface-soft); color: var(--text); }
.portal-icon-btn:focus-visible,
.portal-language-btn:focus-visible,
.portal-avatar:focus-visible,
.portal-auth-entry:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 24%, transparent); outline-offset: 2px; }
.portal-icon-btn svg,
.portal-popover svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portal-auth-entry {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.portal-auth-entry:hover { border-color: var(--brand-strong); background: var(--brand-strong); }
.portal-avatar {
  border-radius: 50%;
  background: #101828;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}
.portal-avatar:hover { box-shadow: 0 0 0 3px var(--brand-soft); }
.portal-popover-anchor { position: relative; }
.portal-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-strong);
}
.portal-popover[hidden] { display: none; }
.portal-notification-popover { display: grid; min-height: 174px; justify-items: center; align-content: center; gap: 10px; text-align: center; }
.portal-notification-popover strong { position: absolute; top: 14px; left: 16px; font-size: 13px; }
.portal-notification-popover > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--surface-soft); color: var(--subtle); }
.portal-notification-popover p { margin: 0; color: var(--muted); font-size: 12px; }
.portal-notifications .portal-icon-btn { position: relative; }
.portal-notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  line-height: 1;
}
.portal-notification-link {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.portal-notification-link:hover { background: var(--brand-soft); border-color: #86cfc4; }
.portal-account-menu { width: 210px; padding: 6px; }
.portal-account-menu a,
.portal-account-menu button { display: grid; width: 100%; min-height: 42px; grid-template-columns: 20px 1fr 16px; align-items: center; gap: 10px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; text-align: left; }
.portal-account-menu a:hover,
.portal-account-menu a:focus-visible,
.portal-account-menu button:hover,
.portal-account-menu button:focus-visible { background: var(--surface-soft); color: var(--text); outline: none; }
.portal-account-menu a svg:last-child { width: 14px; height: 14px; color: var(--subtle); }
.portal-account-menu .portal-logout { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 7px 7px; color: var(--red); }
.portal-has-topbar :is(.discover-shell, .debug-shell, .console-portal-shell) > :not(.discover-sidebar):not(.discover-mobilebar) { margin-top: 64px; }
.portal-has-topbar .portal-page-tools [data-language-toggle],
.portal-has-topbar .discover-mobilebar > .portal-lang-switch { display: none; }

.console-portal-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.console-workspace { min-width: 0; background: var(--bg); }
.console-section-header {
  padding: 30px 32px 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.console-section-copy h1 { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: 0; }
.console-section-copy p { max-width: 720px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.console-tabs { display: flex; gap: 30px; margin-top: 22px; overflow-x: auto; scrollbar-width: none; }
.console-tabs::-webkit-scrollbar { display: none; }
.console-tabs a {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}
.console-tabs a::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: transparent; }
.console-tabs a:hover { color: var(--text); }
.console-tabs a.is-active { color: var(--brand); }
.console-tabs a.is-active::after { background: var(--brand); }
.console-viewbar {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}
.console-viewbar .page-title h2 { margin: 0 0 5px; font-size: 18px; line-height: 1.15; font-weight: 750; }
.console-viewbar .page-title p { max-width: 720px; }
.console-viewbar .top-actions { flex: 0 0 auto; }
.console-portal-page .content { padding: 24px 32px 34px; }

html[data-portal-theme="dark"] .console-portal-page .btn:not(.primary),
html[data-portal-theme="dark"] .console-portal-page .control { border-color: var(--line-strong); background: var(--surface); color: var(--text); }
html[data-portal-theme="dark"] .console-portal-page .btn:not(.primary):hover { background: var(--surface-soft); }
html[data-portal-theme="dark"] .console-portal-page th { background: var(--surface-soft); color: var(--muted); }
html[data-portal-theme="dark"] .console-portal-page td { color: var(--text); }
html[data-portal-theme="dark"] .console-portal-page tbody tr:hover { background: var(--surface-soft); }
html[data-portal-theme="dark"] .console-portal-page .status.warn { color: #f5b84b; }
html[data-portal-theme="dark"] .console-portal-page .status.neutral { background: var(--surface-soft); color: var(--muted); }
html[data-portal-theme="dark"] .console-portal-page .empty-state { background: var(--surface-soft); }
html[data-portal-theme="dark"] .console-portal-page .drawer,
html[data-portal-theme="dark"] .console-portal-page .modal { background: var(--surface); color: var(--text); }
html[data-portal-theme="dark"] .console-portal-page .field > span,
html[data-portal-theme="dark"] .console-portal-page .segmented-field legend { color: var(--text); }
html[data-portal-theme="dark"] .console-portal-page .notice { background: var(--surface-soft); color: var(--muted); }
html[data-portal-theme="dark"] .console-portal-page .one-time-key { background: var(--green-soft); }
html[data-portal-theme="dark"] .console-portal-page .one-time-key code { background: var(--surface); color: var(--brand-strong); }
html[data-portal-theme="dark"] .console-portal-page .pill,
html[data-portal-theme="dark"] .console-portal-page .metric-detail strong { color: var(--text); }
html[data-portal-theme="dark"] .console-portal-page .coin-pill { border-color: #235b53; background: var(--brand-soft); color: var(--brand-strong); }
html[data-portal-theme="dark"] .console-portal-page .chart-fallback,
html[data-portal-theme="dark"] .console-portal-page .quick-action:hover { background: var(--surface-soft); }

html[data-portal-theme="dark"] .portal-copy-page { --portal-ink: var(--text); --portal-wash: #111b2c; }
html[data-portal-theme="dark"] body.pricing-page { background: var(--bg); }
html[data-portal-theme="dark"] .pricing-main,
html[data-portal-theme="dark"] .business-main,
html[data-portal-theme="dark"] .auth-wide-card,
html[data-portal-theme="dark"] .pricing-table-wrap,
html[data-portal-theme="dark"] .pricing-example-list,
html[data-portal-theme="dark"] .business-form-card { background: var(--surface); }
html[data-portal-theme="dark"] .pricing-filter-btn,
html[data-portal-theme="dark"] .auth-mode-switch a.is-active,
html[data-portal-theme="dark"] .auth-mode-switch a:hover,
html[data-portal-theme="dark"] .register-progress li > span,
html[data-portal-theme="dark"] .register-progress li strong,
html[data-portal-theme="dark"] .account-type-options label > span { background: var(--surface); }
html[data-portal-theme="dark"] .auth-mode-switch,
html[data-portal-theme="dark"] .register-fact-strip { background: var(--surface-soft); }
html[data-portal-theme="dark"] .pricing-table th,
html[data-portal-theme="dark"] .pricing-capability-cell,
html[data-portal-theme="dark"] .pricing-table tbody tr:hover td:not([rowspan]),
html[data-portal-theme="dark"] .pricing-spec,
html[data-portal-theme="dark"] .pricing-availability { background: var(--surface-soft); color: var(--muted); }
html[data-portal-theme="dark"] .pricing-table th,
html[data-portal-theme="dark"] .pricing-billing-label,
html[data-portal-theme="dark"] .pricing-model-cell,
html[data-portal-theme="dark"] .auth-help-panel li strong,
html[data-portal-theme="dark"] .register-fact-strip small,
html[data-portal-theme="dark"] .account-type-field legend,
html[data-portal-theme="dark"] .account-type-options strong,
html[data-portal-theme="dark"] .register-next-steps li strong { color: var(--text); }
html[data-portal-theme="dark"] .business-hero p { color: var(--muted); }
html[data-portal-theme="dark"] .business-signal,
html[data-portal-theme="dark"] .business-signal span { border-color: var(--line-strong); background: var(--surface); }
html[data-portal-theme="dark"] .docs-overview { border-color: var(--line-strong); background: #10251f; }
html[data-portal-theme="dark"] .docs-overview-head p,
html[data-portal-theme="dark"] .docs-path-list p { color: var(--muted); }
html[data-portal-theme="dark"] .docs-path-list,
html[data-portal-theme="dark"] .docs-path-list > a { border-color: var(--line-strong); }
html[data-portal-theme="dark"] .docs-path-mark,
html[data-portal-theme="dark"] .docs-status-terminals > div,
html[data-portal-theme="dark"] .docs-search input:focus { background: var(--surface); }
html[data-portal-theme="dark"] .control,
html[data-portal-theme="dark"] .discover-search input,
html[data-portal-theme="dark"] .docs-search input { color: var(--text); }

@media (max-width: 900px) {
  .portal-topbar { top: 63px; left: 0; z-index: 39; height: 52px; padding-inline: 16px; }
  .portal-topbar-context { display: none; }
  .portal-topbar-actions { width: 100%; }
  .portal-auth-entry { margin-left: 2px; }
  .portal-has-topbar :is(.discover-shell, .debug-shell, .console-portal-shell) > :not(.discover-sidebar):not(.discover-mobilebar) { margin-top: 52px; }
  .console-portal-shell { grid-template-columns: 1fr; }
  .console-section-header { padding: 22px 16px 0; }
  .console-tabs { gap: 24px; margin-top: 16px; }
  .console-viewbar { min-height: 72px; align-items: flex-start; padding: 13px 16px; }
  .console-viewbar .page-title p { display: none; }
  .console-portal-page .content { padding: 18px 16px 28px; }
}

@media (max-width: 620px) {
  html[data-portal-theme="dark"] .pricing-table tbody tr { background: var(--surface); }
  .portal-popover { position: fixed; top: 108px; right: 12px; max-width: calc(100vw - 24px); }
  .console-section-copy h1 { font-size: 22px; }
  .console-viewbar { flex-wrap: wrap; }
  .console-viewbar .top-actions { width: 100%; justify-content: flex-start; }
  .console-tabs a { min-height: 44px; }
}

/* ===== 2026-07-22 认证工作区重构 ===== */
.auth-body { background: var(--bg); }
.auth-body .auth-container {
  min-width: 0;
  min-height: calc(100vh - 64px);
  align-items: flex-start;
  padding: 40px 32px 72px;
  background: var(--bg);
}
.auth-workspace { width: min(100%, 1120px); margin: 0 auto; }
.auth-page-header { padding-bottom: 30px; border-bottom: 1px solid var(--line-strong); }
.auth-page-header .portal-page-tools { min-height: 32px; }
.auth-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: 30px; }
.auth-page-heading > div { min-width: 0; }
.auth-page-heading h1 { margin: 10px 0 10px; color: var(--text); font-size: 38px; line-height: 1.12; letter-spacing: 0; }
.auth-page-heading p { max-width: 660px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.auth-page-heading .auth-mode-switch { width: 240px; flex: 0 0 240px; margin: 0; }
.auth-mode-switch { padding: 4px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-soft); }
.auth-mode-switch a { min-height: 38px; border-radius: 6px; }
.auth-mode-switch a.is-active { background: var(--surface); color: var(--brand); box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.auth-section-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 26px; }
.auth-section-index {
  display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center;
  border: 1px solid #9ddbd2; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.auth-section-heading h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.25; letter-spacing: 0; }
.auth-section-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.auth-submit { min-height: 46px; border-radius: 8px; font-weight: 800; }

.auth-login-layout { display: grid; grid-template-columns: minmax(360px, .9fr) minmax(0, 1.1fr); gap: 48px; padding-top: 38px; align-items: start; }
.auth-primary-panel { padding: 30px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.auth-primary-panel .field { margin-bottom: 20px; }
.auth-primary-panel .control { min-height: 46px; background: var(--surface); }
.auth-primary-panel .password-control .control,
.auth-register-form-surface .password-control .control { width: 100%; }
.auth-primary-panel .auth-footer { margin-top: 18px; }
.auth-security-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.auth-security-note > span { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 900; }
.auth-security-note p { display: grid; gap: 3px; margin: 0; }
.auth-security-note strong { color: var(--text); font-size: 11px; }
.auth-security-note small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.auth-context-rail { min-width: 0; padding-left: 40px; border-left: 1px solid var(--line-strong); }
.auth-destination h2 { max-width: 480px; margin: 10px 0 10px; font-size: 24px; line-height: 1.3; letter-spacing: 0; }
.auth-destination > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.auth-destination-list { margin-top: 24px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.auth-destination-list article { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 17px 0; }
.auth-destination-list article + article { border-top: 1px solid var(--line); }
.auth-destination-list article > span { padding-top: 2px; color: var(--brand); font: 800 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.auth-destination-list article > div, .auth-role-note p { display: grid; gap: 5px; margin: 0; }
.auth-destination-list strong { font-size: 13px; }
.auth-destination-list small { color: var(--muted); font-size: 11px; line-height: 1.55; }
.auth-role-note { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.auth-role-note > div { display: grid; grid-template-columns: 36px 1fr; gap: 10px; min-width: 0; padding: 14px; background: var(--surface-soft); }
.auth-role-note > div > span { padding-top: 3px; color: var(--blue); font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.auth-role-note strong { font-size: 11px; }
.auth-role-note small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.auth-context-rail .auth-help-panel { margin-top: 28px; padding-top: 24px; }
.auth-context-rail .auth-help-panel > div { align-items: flex-end; }
.auth-context-rail .auth-help-panel ul { grid-template-columns: repeat(3, 1fr); border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.auth-context-rail .auth-help-panel li { padding: 13px 12px 0 0; }
.auth-context-rail .auth-help-panel li + li { padding-left: 12px; border-top: 0; border-left: 1px solid var(--line); }

.auth-register-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 42px; padding-top: 38px; align-items: start; }
.register-overview { position: sticky; top: 102px; min-width: 0; }
.register-overview h2 { margin: 10px 0 9px; font-size: 22px; line-height: 1.35; letter-spacing: 0; }
.register-overview > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.register-overview .register-progress { display: grid; grid-template-columns: 1fr; gap: 0; margin: 28px 0 0; }
.register-overview .register-progress li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; min-height: 82px; color: var(--muted); }
.register-overview .register-progress li::after { top: 32px; right: auto; bottom: 0; left: 15px; width: 1px; height: auto; background: var(--line-strong); }
.register-overview .register-progress li:last-child { min-height: 58px; }
.register-overview .register-progress li > span { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); }
.register-overview .register-progress li p { display: grid; gap: 4px; margin: 2px 0 0; }
.register-overview .register-progress li strong { padding: 0; background: transparent; color: var(--text); font-size: 12px; white-space: normal; }
.register-overview .register-progress li small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.register-account-summary { margin: 26px 0 0; border-top: 1px solid var(--line-strong); }
.register-account-summary > div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.register-account-summary dt { color: var(--subtle); font-size: 10px; font-weight: 800; }
.register-account-summary dd { margin: 0; color: var(--text); font-size: 10px; font-weight: 700; line-height: 1.5; }
.auth-register-form-surface { min-width: 0; padding: 30px 34px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.auth-register-form-surface > .auth-section-heading { padding-bottom: 26px; border-bottom: 1px solid var(--line-strong); }
.auth-register-form-surface .auth-footer { margin: 22px 0 0; }
.register-form-section { padding: 28px 0; }
.register-form-section + .register-form-section { border-top: 1px solid var(--line-strong); }
.register-form-section > header { display: grid; grid-template-columns: 34px 1fr; gap: 12px; margin-bottom: 22px; }
.register-form-section > header > span { color: var(--brand); font: 850 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.register-form-section > header h3 { margin: 0 0 5px; font-size: 16px; line-height: 1.3; }
.register-form-section > header p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.auth-register-form-surface .register-form-grid { gap: 20px; }
.auth-register-form-surface .control { min-height: 44px; background: var(--surface); }
.auth-register-form-surface .account-type-options label > span { min-height: 69px; }
.auth-register-form-surface .register-rule-note { margin: 18px 0 0; border-radius: 8px; }
.register-agreement-block { margin-top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.register-agreement-block .agreement-row { margin: 0 0 15px; }
.register-agreement-block .agreement-error { margin-bottom: 12px; }
.register-next-steps { grid-template-columns: 280px 1fr; gap: 32px; margin-top: 42px; padding: 34px 0 0; }
.register-next-intro h2 { font-size: 22px; }
.register-next-steps ol { display: grid; grid-template-columns: repeat(3, 1fr); border: 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); border-radius: 0; }
.register-next-steps li { display: block; padding: 18px 20px; }
.register-next-steps li + li { border-top: 0; border-left: 1px solid var(--line); }
.register-next-steps li > span { display: block; margin-bottom: 18px; }

html[data-portal-theme="dark"] .auth-primary-panel,
html[data-portal-theme="dark"] .auth-register-form-surface,
html[data-portal-theme="dark"] .auth-mode-switch a.is-active,
html[data-portal-theme="dark"] .register-overview .register-progress li > span { background: var(--surface); }
html[data-portal-theme="dark"] .auth-role-note > div,
html[data-portal-theme="dark"] .register-agreement-block { background: var(--surface-soft); }
html[data-portal-theme="dark"] .auth-section-index { border-color: #235b53; }
html[data-portal-theme="dark"] .auth-primary-panel .control,
html[data-portal-theme="dark"] .auth-register-form-surface .control { color: var(--text); }

@media (max-width: 1050px) {
  .auth-login-layout { grid-template-columns: minmax(340px, .85fr) minmax(0, 1.15fr); gap: 32px; }
  .auth-context-rail { padding-left: 30px; }
  .auth-register-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 30px; }
}
@media (max-width: 900px) {
  .auth-body .auth-container { min-height: calc(100vh - 115px); padding: 30px 20px 60px; }
  .register-overview { top: 135px; }
}
@media (max-width: 780px) {
  .auth-page-heading { display: grid; gap: 24px; margin-top: 24px; }
  .auth-page-heading .auth-mode-switch { width: 100%; }
  .auth-page-heading h1 { font-size: 32px; }
  .auth-login-layout, .auth-register-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .auth-context-rail { padding: 28px 0 0; border-top: 1px solid var(--line-strong); border-left: 0; }
  .register-overview { position: static; }
  .register-overview .register-progress { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .register-overview .register-progress li { display: block; min-height: 0; padding-top: 0; }
  .register-overview .register-progress li::after { display: none; }
  .register-overview .register-progress li > span { margin-bottom: 10px; }
  .register-account-summary { display: grid; grid-template-columns: repeat(3, 1fr); }
  .register-account-summary > div { display: block; padding: 12px; border-bottom: 1px solid var(--line); }
  .register-account-summary > div + div { border-left: 1px solid var(--line); }
  .register-account-summary dd { margin-top: 5px; }
  .register-next-steps { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .auth-body .auth-container { padding: 24px 16px 48px; }
  .auth-page-header { padding-bottom: 24px; }
  .auth-page-heading h1 { font-size: 29px; }
  .auth-primary-panel, .auth-register-form-surface { padding: 24px 18px; }
  .auth-context-rail .auth-help-panel ul, .auth-role-note, .auth-register-form-surface .register-form-grid { grid-template-columns: 1fr; }
  .auth-context-rail .auth-help-panel li { padding: 12px 0; }
  .auth-context-rail .auth-help-panel li + li { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .auth-role-note > div + div { border-top: 1px solid var(--line); }
  .register-overview .register-progress { grid-template-columns: 1fr; }
  .register-overview .register-progress li { display: grid; grid-template-columns: 32px 1fr; margin-bottom: 12px; }
  .register-overview .register-progress li > span { margin: 0; }
  .register-account-summary { grid-template-columns: 1fr; }
  .register-account-summary > div { display: grid; }
  .register-account-summary > div + div { border-left: 0; }
  .register-span-2 { grid-column: auto; }
  .verification-code-row { grid-template-columns: 1fr; }
  .verification-code-btn { width: 100%; }
  .register-next-steps ol { grid-template-columns: 1fr; }
  .register-next-steps li + li { border-top: 1px solid var(--line); border-left: 0; }
}

/* ===== 2026-07-22 PC 注册页二次重构 ===== */
.register-page-header .auth-page-heading { margin-top: 0; }
.register-editor { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 42px; align-items: start; padding-top: 38px; }
.register-editor .auth-register-form-surface { padding: 0 34px 28px; }
.register-form-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 30px 0 25px; }
.register-form-intro h2 { margin: 8px 0 6px; font-size: 22px; line-height: 1.25; letter-spacing: 0; }
.register-form-intro p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.register-required-note { flex: 0 0 auto; padding-bottom: 2px; color: var(--red); font-size: 10px; font-weight: 750; }
.register-stagebar { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 -34px; padding: 0 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-soft); list-style: none; }
.register-stagebar li { position: relative; display: flex; min-height: 54px; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.register-stagebar li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.register-stagebar li > span { color: var(--brand); font: 850 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.register-stagebar li > strong { color: var(--text); font-size: 11px; }
.register-editor .form-banner-error { margin-top: 22px; }
.register-editor .register-form-section { padding: 30px 0; }
.register-editor .register-form-section > header { grid-template-columns: 38px 1fr; margin-bottom: 22px; }
.register-editor .register-form-section > header > span { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #9ddbd2; border-radius: 7px; background: var(--brand-soft); }
.register-editor .register-form-section > header h3 { font-size: 17px; }
.register-editor .register-form-grid { gap: 20px 18px; }
.register-editor .register-rule-note { background: color-mix(in srgb, var(--brand-soft) 68%, var(--surface)); }
.register-editor .register-agreement-block { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 18px; align-items: center; padding: 18px 20px; }
.register-editor .register-agreement-block .agreement-row { margin: 0; }
.register-editor .register-agreement-block .agreement-error { grid-column: 1; margin: -10px 0 0 24px; }
.register-editor .register-agreement-block .auth-submit { grid-column: 2; grid-row: 1 / span 2; }
.register-editor .auth-footer { padding-top: 20px; border-top: 1px solid var(--line); }

.register-side-rail { position: sticky; top: 102px; min-width: 0; padding-left: 30px; border-left: 1px solid var(--line-strong); }
.register-preflight h2 { margin: 10px 0 9px; font-size: 22px; line-height: 1.35; letter-spacing: 0; }
.register-preflight > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.register-facts { margin: 24px 0 0; border-top: 1px solid var(--line-strong); }
.register-facts > div { display: grid; grid-template-columns: 78px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.register-facts dt { color: var(--subtle); font-size: 9px; font-weight: 800; }
.register-facts dd { margin: 0; color: var(--text); font-size: 10px; font-weight: 750; line-height: 1.45; }
.register-checks { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line-strong); }
.register-checks h3 { margin: 0 0 16px; font-size: 14px; }
.register-checks ul, .register-after-panel ol { margin: 0; padding: 0; list-style: none; }
.register-checks li { display: grid; grid-template-columns: 30px 1fr; gap: 9px; padding: 11px 0; }
.register-checks li + li { border-top: 1px solid var(--line); }
.register-checks li > span { padding-top: 3px; color: var(--blue); font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.register-checks p, .register-after-panel li p { display: grid; gap: 4px; margin: 0; }
.register-checks strong { font-size: 11px; }
.register-checks small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.register-after-panel { margin-top: 28px; padding: 24px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.register-after-panel h3 { margin: 8px 0 18px; font-size: 16px; line-height: 1.35; }
.register-after-panel li { display: grid; grid-template-columns: 24px 1fr; gap: 9px; padding: 10px 0; }
.register-after-panel li + li { border-top: 1px solid var(--line); }
.register-after-panel li > span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--surface-soft); color: var(--brand); font-size: 9px; font-weight: 850; }
.register-after-panel strong { font-size: 10px; }
.register-after-panel small { color: var(--muted); font-size: 8px; line-height: 1.5; }
.register-after-panel > a { display: inline-flex; margin-top: 16px; color: var(--brand); font-size: 10px; font-weight: 800; }

html[data-portal-theme="dark"] .register-stagebar,
html[data-portal-theme="dark"] .register-after-panel { background: var(--surface-soft); }
html[data-portal-theme="dark"] .register-editor .register-form-section > header > span { border-color: #235b53; }

@media (max-width: 1050px) {
  .register-editor { grid-template-columns: minmax(0, 1fr) 270px; gap: 30px; }
  .register-side-rail { padding-left: 24px; }
  .register-editor .register-agreement-block { grid-template-columns: 1fr; }
  .register-editor .register-agreement-block .auth-submit { grid-column: 1; grid-row: auto; }
}
@media (max-width: 900px) {
  .register-editor { grid-template-columns: 1fr; }
  .register-side-rail { position: static; padding: 28px 0 0; border-top: 1px solid var(--line-strong); border-left: 0; }
}

/* ===== 2026-07-22 简洁注册表单 ===== */
.auth-login-workspace .auth-page-heading { margin-top: 0; }
.auth-register-workspace { width: min(100%, 1040px); }
.auth-register-workspace .register-page-header { padding-bottom: 26px; }
.simple-register-layout { display: grid; grid-template-columns: minmax(0, 680px) minmax(260px, 1fr); gap: 42px; align-items: start; margin-top: 32px; }
.simple-register-card { width: 100%; margin: 0; padding: 28px 34px 26px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.simple-register-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.simple-register-head h2 { margin: 0 0 6px; font-size: 21px; line-height: 1.3; letter-spacing: 0; }
.simple-register-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.register-info-link { display: inline-flex; min-height: 34px; flex: 0 0 auto; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--brand); font-size: 11px; font-weight: 800; }
.register-info-link > span:first-child { display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; background: var(--brand-soft); font-family: Georgia, serif; font-size: 10px; }
.register-info-link:hover { border-color: #8fd9ce; background: var(--brand-soft); }
.simple-register-form { display: grid; gap: 16px; }
.simple-register-form .field { margin: 0; }
.simple-register-form .field > span:first-child { margin-bottom: 6px; }
.simple-register-form .control { width: 100%; min-height: 44px; background: var(--surface); }
.simple-register-form select.control { padding-right: 36px; }
.simple-register-form .password-control .control { width: 100%; }
.simple-register-form .field-hint { margin-top: 5px; font-size: 12px; line-height: 1.5; }
/* P1-3：登录页与注册页同属认证页，hint 字号统一 12px */
.auth-primary-panel .field-hint { font-size: 12px; line-height: 1.5; }
.simple-register-form .verification-code-row { grid-template-columns: minmax(0, 1fr) 132px; }
.simple-register-form .verification-code-btn { width: 132px; min-width: 0; }
.simple-register-form .agreement-row { margin: 2px 0 0; }
.simple-register-form .agreement-error { margin: -10px 0 0 24px; }
.simple-register-form .auth-submit { margin-top: 2px; }
.simple-register-card .auth-footer { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.register-trial-aside { position: sticky; top: 102px; min-width: 0; padding: 30px 0 4px 32px; border-left: 1px solid var(--line-strong); }
.register-trial-aside h2 { margin: 10px 0 10px; font-size: 24px; line-height: 1.3; letter-spacing: 0; }
.register-trial-aside > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.register-trial-flow { margin: 26px 0; padding: 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); list-style: none; }
.register-trial-flow li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 15px 0; }
.register-trial-flow li + li { border-top: 1px solid var(--line); }
.register-trial-flow li > span { padding-top: 3px; color: var(--brand); font: 850 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.register-trial-flow li > div { display: grid; gap: 4px; }
.register-trial-flow strong { color: var(--text); font-size: 11px; }
.register-trial-flow small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.register-trial-cta { display: flex; width: 100%; min-height: 42px; align-items: center; justify-content: center; padding-inline: 14px; white-space: nowrap; }
.register-trial-note { display: block; margin-top: 12px; color: var(--subtle); font-size: 9px; line-height: 1.55; }

.register-info-modal { width: min(620px, calc(100vw - 32px)); }
.register-info-modal .modal-head { align-items: center; }
.register-info-modal .modal-head h3 { margin-top: 5px; font-size: 20px; }
.register-info-modal .modal-close { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted); font-size: 20px; line-height: 1; }
.register-info-modal .modal-close:hover { background: var(--surface-soft); color: var(--text); }
.register-info-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; }
.register-info-body > section { padding: 24px; }
.register-info-body > section + section { border-left: 1px solid var(--line); }
.register-info-body h4 { margin: 0 0 16px; font-size: 14px; }
.register-info-body ul, .register-info-body ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.register-info-body li { display: grid; gap: 4px; padding: 11px 0; }
.register-info-body li + li { border-top: 1px solid var(--line); }
.register-info-body strong, .register-info-body ol li { color: var(--text); font-size: 11px; font-weight: 750; line-height: 1.5; }
.register-info-body small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.register-info-body a { display: inline-flex; margin-top: 18px; color: var(--brand); font-size: 10px; font-weight: 800; }
html[data-portal-theme="dark"] .simple-register-card,
html[data-portal-theme="dark"] .register-info-link,
html[data-portal-theme="dark"] .register-info-modal,
html[data-portal-theme="dark"] .register-info-modal .modal-close { background: var(--surface); color: var(--text); }
html[data-portal-theme="dark"] .simple-register-form .field > span:first-child { color: var(--text); }

/* ===== API 文档工作台：左侧文档树 / 中间正文 / 右侧页内目录 ===== */
html { scroll-behavior: smooth; }
.docs-body { background: var(--surface); }
.docs-shell { grid-template-columns: 248px minmax(0, 1fr); }
.docs-sidebar {
  gap: 14px;
  padding: 16px 14px 14px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 96%, var(--bg));
}
.docs-brand {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
}
.docs-brand > span:last-child { display: grid; gap: 2px; min-width: 0; }
.docs-brand strong { font-size: 13px; line-height: 1.2; }
.docs-brand small { color: var(--subtle); font-size: 10px; line-height: 1.2; }
.docs-sidebar-search { position: relative; display: block; }
.docs-sidebar-search > span {
  position: absolute;
  top: 50%;
  left: 11px;
  z-index: 1;
  color: var(--subtle);
  font-size: 17px;
  transform: translateY(-50%);
}
.docs-sidebar-search input {
  width: 100%;
  height: 38px;
  padding: 0 38px 0 34px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  outline: none;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 12px;
}
.docs-sidebar-search input:hover { border-color: color-mix(in srgb, var(--line-strong) 55%, var(--text)); }
.docs-sidebar-search input:focus {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}
.docs-sidebar-search kbd {
  position: absolute;
  top: 50%;
  right: 9px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--subtle);
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  transform: translateY(-50%);
}
.docs-sidebar-shortcuts { display: grid; gap: 2px; padding: 5px 0 8px; border-bottom: 1px solid var(--line); }
.docs-sidebar-shortcuts a {
  display: grid;
  min-height: 34px;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border-radius: 6px;
  color: var(--muted);
}
.docs-sidebar-shortcuts a:hover,
.docs-sidebar-shortcuts a:focus-visible { background: var(--surface-soft); color: var(--text); outline: none; }
.docs-sidebar-shortcuts span { color: var(--subtle); font-size: 13px; text-align: center; }
.docs-sidebar-shortcuts strong { font-size: 12px; font-weight: 650; }
.docs-tree { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 0 14px; scrollbar-width: thin; }
.docs-tree-group { margin-bottom: 4px; }
.docs-tree-group[hidden] { display: none; }
.docs-tree-group summary {
  display: flex;
  min-height: 35px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 9px;
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  list-style: none;
}
.docs-tree-group summary::-webkit-details-marker { display: none; }
.docs-tree-group summary:hover { background: var(--surface-soft); }
.docs-tree-group summary i { color: var(--subtle); font-size: 18px; font-style: normal; transform: rotate(0); transition: transform 140ms ease; }
.docs-tree-group[open] summary i { transform: rotate(90deg); }
.docs-tree-group > div { display: grid; gap: 1px; padding: 2px 0 5px 12px; }
.docs-tree-group a {
  position: relative;
  display: flex;
  min-height: 32px;
  align-items: center;
  padding: 0 9px 0 15px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 580;
}
.docs-tree-group a::before {
  content: "";
  position: absolute;
  left: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}
.docs-tree-group a:hover,
.docs-tree-group a:focus-visible { background: var(--surface-soft); color: var(--text); outline: none; }
.docs-tree-group a[aria-current="location"] { background: var(--brand-soft); color: var(--brand-strong); font-weight: 750; }
.docs-tree-group a[aria-current="location"]::before { background: var(--brand); }
.docs-tree-group a.is-hidden { display: none; }
.docs-sidebar .discover-nav-footer { flex: 0 0 auto; gap: 1px; padding-top: 9px; }
.docs-sidebar .discover-nav-footer a:not(.btn) { padding: 6px 9px; border-radius: 6px; font-size: 11px; }

.docs-main {
  min-width: 0;
  padding: 0;
  background: var(--surface);
}
.docs-workspace {
  display: grid;
  width: min(100% - 76px, 1220px);
  grid-template-columns: minmax(0, 820px) 210px;
  justify-content: center;
  gap: 52px;
  margin: 0 auto;
  padding: 40px 0 96px;
}
.docs-content { min-width: 0; max-width: none; }
.docs-article-header {
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 92px;
}
.docs-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 30px; color: var(--subtle); font-size: 11px; }
.docs-breadcrumb a:hover { color: var(--brand); }
.docs-article-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: var(--brand); font-size: 12px; font-weight: 800; }
.docs-article-kicker span { padding: 3px 7px; border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--line)); border-radius: 5px; background: var(--brand-soft); font-size: 10px; }
.docs-article-header h1 { max-width: 760px; margin: 0; font-size: 34px; line-height: 1.2; letter-spacing: 0; }
.docs-article-header > p { max-width: 720px; margin: 18px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.docs-meta-line { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.docs-meta-line span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font: 650 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.docs-section {
  margin: 0 0 48px;
  padding: 0 0 48px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 92px;
}
.docs-section:last-of-type { margin-bottom: 0; }
.docs-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.docs-section-head h2 { margin: 0 0 8px; font-size: 23px; line-height: 1.3; letter-spacing: 0; }
.docs-section-head p { max-width: 670px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.docs-section-action {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 750;
}
.docs-section-action:hover { border-color: var(--brand); background: var(--brand-soft); }
.docs-overview { margin-bottom: 48px; padding: 0 0 48px; border-top: 0; border-bottom: 1px solid var(--line); background: transparent; }
.docs-jump-list { display: grid; border-top: 1px solid var(--line); }
.docs-jump-list > a {
  display: grid;
  min-height: 72px;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
}
.docs-jump-list > a:hover strong { color: var(--brand); }
.docs-jump-list > a > span { color: var(--brand); font: 750 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.docs-jump-list strong { display: block; margin-bottom: 4px; font-size: 13px; }
.docs-jump-list p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.docs-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; margin-bottom: 24px; }
.docs-steps li { min-height: 88px; padding: 16px 0; }
.docs-steps li > span { width: 23px; height: 23px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-strong); }
.docs-steps p { max-width: 31em; }
.docs-code-block { border: 1px solid #2f3a4c; border-radius: 7px; background: #101722; }
.docs-code-head { padding: 9px 10px 9px 16px; border-bottom-color: #2f3a4c; }
.docs-code-head > span { color: #7fe0d1; font-size: 10px; letter-spacing: 0; }
.docs-copy-btn { min-height: 28px; padding: 0 9px; border: 1px solid #465268; border-radius: 5px; background: #192334; color: #dbe3ee; font-size: 10px; font-weight: 750; }
.docs-copy-btn:hover,
.docs-copy-btn:focus-visible { border-color: #7fe0d1; color: #fff; outline: none; }
.docs-code-block pre { padding: 20px 22px; font-size: 12px; line-height: 1.75; }
.docs-code-note code,
.docs-table code,
.docs-formulas code { color: var(--text); }
.docs-callout { padding: 17px 18px; border-left: 3px solid var(--brand); border-radius: 0 6px 6px 0; background: var(--brand-soft); }
.docs-callout > span { display: block; margin-bottom: 8px; color: var(--brand); font-size: 10px; font-weight: 850; }
.docs-callout strong { margin-bottom: 7px; color: var(--brand-strong); }
.docs-callout p { color: color-mix(in srgb, var(--text) 72%, var(--brand)); }
.docs-table-wrap { border-radius: 7px; }
.docs-table { min-width: 700px; }
.docs-table th { background: var(--surface-soft); color: var(--subtle); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.docs-table th,
.docs-table td { padding: 12px 13px; }
.docs-table tbody tr:hover { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
.method-post { display: inline-flex; padding: 3px 6px; border-radius: 4px; background: var(--green-soft); color: var(--green); font: 800 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.docs-status-flow { padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); }
.docs-status-primary > div,
.docs-status-terminals > div { border-radius: 6px; background: var(--surface); }
.docs-status-branch span { background: var(--surface-soft); }
.docs-checklist li { color: var(--muted); font-size: 13px; }
.docs-checklist li::before { border-radius: 4px; }
.docs-billing-lifecycle > div { padding-block: 17px; }
.docs-formulas > div { grid-template-columns: 130px minmax(0, 1fr); }
.docs-billing-note { border-radius: 6px; }
.docs-support-row a { border-radius: 6px; }

.docs-page-outline {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-left: 17px;
  border-left: 1px solid var(--line);
}
.docs-outline-title { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; color: var(--muted); }
.docs-outline-title span { font-size: 15px; }
.docs-outline-title strong { font-size: 11px; }
.docs-page-outline nav { display: grid; }
.docs-page-outline nav a {
  position: relative;
  min-height: 31px;
  padding: 7px 8px 7px 11px;
  border-radius: 5px;
  color: var(--subtle);
  font-size: 11px;
  line-height: 1.45;
}
.docs-page-outline nav a::before { content: ""; position: absolute; top: 7px; bottom: 7px; left: -18px; width: 2px; background: transparent; }
.docs-page-outline nav a:hover { color: var(--text); }
.docs-page-outline nav a[aria-current="location"] { background: var(--brand-soft); color: var(--brand-strong); font-weight: 750; }
.docs-page-outline nav a[aria-current="location"]::before { background: var(--brand); }
.docs-outline-help { display: grid; gap: 5px; margin-top: 18px; padding: 16px 7px 0; border-top: 1px solid var(--line); font-size: 10px; }
.docs-outline-help span { color: var(--subtle); }
.docs-outline-help a { color: var(--brand); font-weight: 750; }
.docs-no-results { min-height: 420px; align-content: center; }

html[data-portal-theme="dark"] .docs-body,
html[data-portal-theme="dark"] .docs-main { background: var(--surface); }
html[data-portal-theme="dark"] .docs-sidebar { background: #0e1726; }
html[data-portal-theme="dark"] .docs-overview { border-color: var(--line); background: transparent; }
html[data-portal-theme="dark"] .docs-jump-list,
html[data-portal-theme="dark"] .docs-jump-list > a { border-color: var(--line); }
html[data-portal-theme="dark"] .docs-table th { background: var(--surface-soft); }
html[data-portal-theme="dark"] .docs-status-primary > div,
html[data-portal-theme="dark"] .docs-status-terminals > div { background: var(--surface); }
html[data-portal-theme="dark"] .docs-callout p { color: var(--muted); }

@media (max-width: 1180px) {
  .docs-workspace { width: min(100% - 56px, 900px); grid-template-columns: minmax(0, 1fr); }
  .docs-page-outline { display: none; }
}
@media (max-width: 900px) {
  .docs-sidebar { overflow-y: auto; }
  .docs-workspace { width: min(100% - 36px, 820px); padding-top: 28px; }
  .docs-steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .docs-tree-group summary i { transition: none; }
}

@media (max-width: 1100px) {
  .simple-register-layout { grid-template-columns: 1fr; }
  .register-trial-aside { position: static; padding: 28px 0 0; border-top: 1px solid var(--line-strong); border-left: 0; }
  .register-trial-cta { width: auto; justify-self: start; }
}

@media (max-width: 720px) {
  .simple-register-card { padding: 24px 18px; }
  .simple-register-head { display: grid; gap: 14px; }
  .register-info-link { justify-self: start; }
  .register-info-body { grid-template-columns: 1fr; }
  .register-info-body > section + section { border-top: 1px solid var(--line); border-left: 0; }
  /* P1-1：移动端步骤卡字号不得压到 9px 重叠（桌面/768 保持现状） */
  .register-trial-flow { margin: 20px 0; }
  .register-trial-flow li { padding: 12px 0; }
  .register-trial-flow li > span { font: 800 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; padding-top: 2px; }
  .register-trial-flow li > div { gap: 6px; }
  .register-trial-flow strong { font-size: 13px; line-height: 1.5; }
  .register-trial-flow small { font-size: 12px; line-height: 1.5; }
  /* P1-3：移动端长 hint 不贴边 */
  .simple-register-form .field-hint { padding-right: 4px; }
}

/* ===== 定价 / 商务合作 UI 交付稿 ===== */
.pricing-hero h1,
.business-hero h1,
.pricing-section-intro h2,
.business-section-head h2,
.business-brief-flow h2,
.business-faq h2,
.business-final-cta h2 { letter-spacing: 0; }
.compact-pricing-hero .portal-page-tools { margin-bottom: 52px; }
.compact-pricing-hero .pricing-hero-grid { align-items: stretch; }
.compact-pricing-hero .pricing-standard { align-self: stretch; border-radius: 8px; }
.compact-pricing-hero .pricing-standard-head { min-height: 62px; }
.compact-pricing-hero .pricing-standard dl div { min-height: 64px; }
.compact-pricing-hero .pricing-standard dd { max-width: 190px; text-align: right; line-height: 1.45; }
.pricing-principles .portal-eyebrow { display: inline-block; margin-bottom: 12px; }

.business-email-hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); align-items: stretch; }
.business-hero .portal-page-tools { margin-bottom: 46px; }
.business-hero { padding-bottom: 54px; }
.business-hero-copy { align-self: center; }
.business-hero h1 { font-size: 54px; }
.business-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.business-copy-email { white-space: nowrap; }
.business-email-panel {
  display: flex;
  min-height: 380px;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.business-email-panel h2 { margin: 12px 0 12px; font-size: 27px; letter-spacing: 0; }
.business-email-panel > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.business-email-address {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 25px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--text);
  font: 750 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.business-email-address:hover { border-color: var(--brand); color: var(--brand); }
.business-email-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.business-email-panel > small { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 11px; line-height: 1.65; }
.business-section-head {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(320px, .55fr);
  align-items: end;
  justify-content: space-between;
  gap: 64px;
  margin-bottom: 34px;
}
.business-section-head .portal-eyebrow { display: inline-block; margin-bottom: 12px; }
.business-section-head h2 { max-width: 650px; margin: 0; font-size: 34px; line-height: 1.2; }
.business-section-head > p { margin: 0; color: var(--muted); line-height: 1.75; }
.business-direction-grid-five { grid-template-columns: repeat(3, 1fr); }
.business-direction-grid-five article { min-height: 250px; }
.business-direction-grid-five article:nth-child(4) { border-top: 1px solid var(--line-strong); border-left: 0; }
.business-direction-grid-five article:nth-child(5) { border-top: 1px solid var(--line-strong); }

.business-scenes { padding: 84px 0; border-block: 1px solid var(--line); background: var(--surface-soft); }
.business-scene-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.business-scene-grid article { min-height: 230px; padding: 26px 24px; }
.business-scene-grid article + article { border-left: 1px solid var(--line-strong); }
.business-scene-grid article > span { color: var(--brand); font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.business-scene-grid h3 { margin: 48px 0 11px; font-size: 18px; letter-spacing: 0; }
.business-scene-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.business-brief-flow { padding: 88px 0; background: #101828; color: #fff; }
.business-brief-flow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.business-brief-flow .portal-eyebrow { color: #5eead4; }
.business-brief-flow h2 { margin: 13px 0 12px; font-size: 31px; line-height: 1.25; }
.business-brief-column > p,
.business-flow-column > p { margin: 0; color: #aeb8c7; line-height: 1.7; }
.business-brief-list,
.business-flow-list { margin: 30px 0 0; padding: 0; border-top: 1px solid #344054; list-style: none; }
.business-brief-list li { display: grid; min-height: 70px; grid-template-columns: 42px minmax(0, 1fr); align-items: start; gap: 12px; padding: 17px 0; border-bottom: 1px solid #344054; }
.business-brief-list span,
.business-flow-list li > span { padding-top: 3px; color: #5eead4; font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.business-brief-list p { margin: 0; color: #d0d5dd; font-size: 13px; line-height: 1.65; }
.business-flow-list li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid #344054; }
.business-flow-list strong { display: block; margin-bottom: 5px; font-size: 13px; }
.business-flow-list p { margin: 0; color: #98a2b3; font-size: 12px; line-height: 1.6; }

.business-faq { padding: 84px 0; }
.business-faq .pricing-faq-intro h2 { letter-spacing: 0; }
.business-final-cta { border-top: 1px solid var(--line); background: var(--surface-soft); }
.business-final-cta > .portal-content { display: flex; min-height: 220px; align-items: center; justify-content: space-between; gap: 48px; }
.business-final-cta .portal-eyebrow { display: inline-block; margin-bottom: 10px; }
.business-final-cta h2 { margin: 0 0 10px; font-size: 30px; }
.business-final-cta p { margin: 0; color: var(--muted); font: 700 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }

html[data-portal-theme="dark"] .business-email-panel,
html[data-portal-theme="dark"] .business-email-address { background: var(--surface); }
html[data-portal-theme="dark"] .business-scenes,
html[data-portal-theme="dark"] .business-final-cta { background: var(--surface-soft); }
html[data-portal-theme="dark"] .compact-pricing-hero .pricing-standard { background: #172033; }

@media (max-width: 1100px) {
  .business-email-hero-grid,
  .business-section-head,
  .business-brief-flow-grid { grid-template-columns: 1fr; gap: 42px; }
  .business-email-panel { min-height: 0; }
  .business-direction-grid-five { grid-template-columns: 1fr 1fr; }
  .business-direction-grid-five article:nth-child(3) { border-top: 1px solid var(--line-strong); border-left: 0; }
  .business-direction-grid-five article:nth-child(4) { border-left: 1px solid var(--line-strong); }
  .business-direction-grid-five article:nth-child(5) { border-left: 0; }
  .business-scene-grid { grid-template-columns: 1fr 1fr; }
  .business-scene-grid article:nth-child(3) { border-top: 1px solid var(--line-strong); border-left: 0; }
  .business-scene-grid article:nth-child(4) { border-top: 1px solid var(--line-strong); }
}
@media (max-width: 700px) {
  .business-hero h1 { font-size: 38px; }
  .business-email-panel { padding: 24px 20px; }
  .business-section-head h2,
  .business-brief-flow h2 { font-size: 27px; }
  .business-direction-grid-five,
  .business-scene-grid { grid-template-columns: 1fr; }
  .business-direction-grid-five article,
  .business-direction-grid-five article:nth-child(n),
  .business-scene-grid article,
  .business-scene-grid article:nth-child(n) { min-height: 190px; border-top: 1px solid var(--line-strong); border-left: 0; }
  .business-direction-grid-five article:first-child,
  .business-scene-grid article:first-child { border-top: 0; }
  .business-final-cta > .portal-content { align-items: flex-start; flex-direction: column; justify-content: center; gap: 24px; padding-block: 44px; }
}

/* ===== 商务合作视觉升级 2026-07-24 ===== */
.business-page {
  --business-bg: #ffffff;
  --business-soft: #f5f7f7;
  --business-ink: #14201f;
  --business-muted: #53625f;
  --business-line: #dce3e1;
  --business-hero: #102725;
  --business-hero-muted: #b8cbc7;
  --business-accent: #42d2b9;
  --business-blue: #dfeafb;
  --business-amber: #f7e7bd;
}
.business-page .business-main { background: var(--business-bg); color: var(--business-ink); }
.business-page .business-hero {
  position: relative;
  padding: 38px 0 72px;
  background: var(--business-hero);
  color: #fff;
}
.business-page .business-hero .portal-page-tools { margin-bottom: 58px; }
.business-page .business-hero .portal-eyebrow,
.business-page .business-hero .desktop-language { color: var(--business-accent); }
.business-page .business-email-hero-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  gap: 88px;
  align-items: center;
}
.business-page .business-hero-copy { max-width: 680px; }
.business-page .business-hero h1 {
  max-width: 660px;
  color: #fff;
  font-size: 56px;
  line-height: 1.06;
  letter-spacing: -.03em;
}
.business-page .business-hero-copy > p {
  max-width: 610px;
  margin: 24px 0 30px;
  color: var(--business-hero-muted);
  font-size: 17px;
  line-height: 1.75;
}
.business-page .business-hero-actions { gap: 12px; }
.business-page .business-hero .btn { min-height: 46px; border-radius: 8px; }
.business-page .business-hero .btn.primary {
  border-color: var(--business-accent);
  background: var(--business-accent);
  color: #09201c;
}
.business-page .business-hero .btn.primary:hover { border-color: #72e2ce; background: #72e2ce; }
.business-page .business-hero .business-copy-email {
  border-color: #536c68;
  background: transparent;
  color: #f2fbf9;
}
.business-page .business-hero .business-copy-email:hover { border-color: #89a29d; background: #193431; }
.business-page .business-email-panel {
  min-height: 0;
  padding: 34px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--business-ink);
  box-shadow: 0 4px 8px rgba(2, 18, 16, .2);
}
.business-page .business-email-panel .portal-eyebrow { color: #087a6d; }
.business-page .business-email-panel h2 { margin: 10px 0 12px; font-size: 26px; }
.business-page .business-email-panel > p { color: var(--business-muted); }
.business-page .business-email-address {
  min-height: 60px;
  margin-top: 26px;
  border-color: #cbd7d4;
  background: #f5f8f7;
  color: #14201f;
  transition: border-color 180ms cubic-bezier(.16, 1, .3, 1), background 180ms cubic-bezier(.16, 1, .3, 1), color 180ms cubic-bezier(.16, 1, .3, 1);
}
.business-page .business-email-address:hover { border-color: #158678; background: #eef8f5; color: #076e63; }
.business-page .business-email-panel > small { color: #667571; }

.business-section-nav {
  position: sticky;
  top: 62px;
  z-index: 20;
  border-bottom: 1px solid var(--business-line);
  background: rgba(255, 255, 255, .96);
}
.business-section-nav .portal-content {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: none;
}
.business-section-nav .portal-content::-webkit-scrollbar { display: none; }
.business-section-nav a {
  position: relative;
  display: inline-flex;
  min-height: 54px;
  flex: 0 0 auto;
  align-items: center;
  color: #5a6865;
  font-size: 13px;
  font-weight: 750;
}
.business-section-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #138678;
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity 180ms cubic-bezier(.16, 1, .3, 1), transform 180ms cubic-bezier(.16, 1, .3, 1);
}
.business-section-nav a:hover { color: #08786b; }
.business-section-nav a:hover::after,
.business-section-nav a:focus-visible::after { opacity: 1; transform: scaleX(1); }
.business-directions,
.business-scenes,
.business-brief-flow,
.business-faq { scroll-margin-top: 120px; }

.business-page .business-directions { padding: 88px 0 96px; }
.business-page .business-section-head { margin-bottom: 38px; }
.business-page .business-section-head .portal-eyebrow {
  margin-bottom: 10px;
  color: #0a7b6e;
  letter-spacing: 0;
  text-transform: none;
}
.business-page .business-section-head h2 {
  color: var(--business-ink);
  font-size: 34px;
  letter-spacing: -.02em;
}
.business-page .business-section-head > p { color: var(--business-muted); }
.business-page .business-direction-grid-five {
  display: block;
  border: 0;
  border-top: 1px solid var(--business-line);
}
.business-page .business-direction-grid-five article,
.business-page .business-direction-grid-five article:nth-child(n) {
  display: grid;
  min-height: 0;
  grid-template-columns: 52px minmax(180px, .55fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 22px 6px;
  border: 0;
  border-bottom: 1px solid var(--business-line);
  transition: background 180ms cubic-bezier(.16, 1, .3, 1), padding 180ms cubic-bezier(.16, 1, .3, 1);
}
.business-page .business-direction-grid-five article:hover { padding-inline: 14px; background: var(--business-soft); }
.business-page .direction-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #dff4ee;
  color: #0a7468;
  font: 800 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.business-page .business-direction-grid-five article:nth-child(2) .direction-symbol { background: var(--business-blue); color: #315b8b; }
.business-page .business-direction-grid-five article:nth-child(3) .direction-symbol { background: var(--business-amber); color: #8a6215; }
.business-page .business-direction-grid-five article:nth-child(4) .direction-symbol { background: #ece7f7; color: #65558a; }
.business-page .business-direction-grid-five article:nth-child(5) .direction-symbol { background: #e8eceb; color: #465451; }
.business-page .business-direction-grid-five h3 { margin: 0; color: var(--business-ink); font-size: 18px; }
.business-page .business-direction-grid-five p { margin: 0; color: var(--business-muted); font-size: 14px; line-height: 1.7; }

.business-page .business-scenes {
  padding: 88px 0;
  border-block: 1px solid var(--business-line);
  background: var(--business-soft);
}
.business-page .business-scenes > .portal-content {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 72px;
  align-items: start;
}
.business-page .business-scenes .business-section-head { display: block; margin: 0; }
.business-page .business-scenes .business-section-head > p { max-width: 36ch; margin-top: 20px; }
.business-page .business-scene-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--business-line);
  border-radius: 8px;
  background: var(--business-line);
  gap: 1px;
}
.business-page .business-scene-grid article,
.business-page .business-scene-grid article:nth-child(n) {
  min-height: 180px;
  padding: 24px;
  border: 0;
  background: var(--business-bg);
  transition: background 180ms cubic-bezier(.16, 1, .3, 1);
}
.business-page .business-scene-grid article:hover { background: #f9fbfa; }
.business-page .business-scene-grid article > span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  color: #0b786c;
  font-size: 10px;
  letter-spacing: .08em;
}
.business-page .business-scene-grid h3 { margin: 30px 0 8px; color: var(--business-ink); font-size: 17px; }
.business-page .business-scene-grid p { color: var(--business-muted); font-size: 13px; }

.business-page .business-brief-flow { padding: 90px 0; background: #17242d; }
.business-page .business-brief-flow-grid { grid-template-columns: 1fr 1fr; gap: 0; }
.business-page .business-brief-column { padding-right: 58px; }
.business-page .business-flow-column { padding-left: 58px; border-left: 1px solid #3b4a54; }
.business-page .business-brief-flow .portal-eyebrow { color: #75dfcd; letter-spacing: 0; text-transform: none; }
.business-page .business-brief-flow h2 { font-size: 30px; letter-spacing: -.02em; }
.business-page .business-brief-column > p,
.business-page .business-flow-column > p { color: #aebcc4; }
.business-page .business-brief-list,
.business-page .business-flow-list { border-top-color: #3b4a54; }
.business-page .business-brief-list li,
.business-page .business-flow-list li { border-bottom-color: #3b4a54; }
.business-page .business-brief-list span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #204b46;
  color: #8ce9d8;
  font-size: 11px;
}
.business-page .business-brief-list p { color: #dbe3e7; }
.business-page .business-flow-list li > span { color: #75dfcd; }
.business-page .business-flow-list p { color: #9facb3; }

.business-page .business-faq { padding: 92px 0; background: var(--business-bg); }
.business-page .business-faq .pricing-faq-grid { gap: 78px; }
.business-page .business-faq .pricing-faq-intro { position: sticky; top: 142px; }
.business-page .business-faq .portal-eyebrow { color: #0a7b6e; letter-spacing: 0; }
.business-page .business-faq h2 { color: var(--business-ink); font-size: 34px; letter-spacing: -.02em; }
.business-page .business-faq .pricing-faq-intro p { color: var(--business-muted); }
.business-page .business-faq .faq-item { border-color: var(--business-line); background: var(--business-bg); }
.business-page .business-faq .faq-item summary { color: var(--business-ink); }
.business-page .business-faq .faq-item p { color: var(--business-muted); }

.business-page .business-final-cta { border: 0; background: #0d776b; color: #fff; }
.business-page .business-final-cta > .portal-content { min-height: 224px; }
.business-page .business-final-cta .portal-eyebrow { color: #baf4e9; letter-spacing: 0; text-transform: none; }
.business-page .business-final-cta h2 { color: #fff; font-size: 31px; }
.business-page .business-final-cta p { color: #d3f1ec; }
.business-page .business-final-cta .btn { min-height: 46px; border-radius: 8px; }
.business-page .business-final-cta .btn.primary { border-color: #fff; background: #fff; color: #0b655c; }
.business-page .business-final-cta .business-copy-email { border-color: #78bdb4; background: transparent; color: #fff; }
.business-page .business-final-cta .business-copy-email:hover { border-color: #fff; background: #176e65; }

.business-page a:focus-visible,
.business-page button:focus-visible,
.business-page summary:focus-visible { outline: 3px solid rgba(66, 210, 185, .42); outline-offset: 3px; }

html[data-portal-theme="dark"] .business-page {
  --business-bg: #11191f;
  --business-soft: #172128;
  --business-ink: #eef5f3;
  --business-muted: #abb9b6;
  --business-line: #33403f;
}
html[data-portal-theme="dark"] .business-page .business-main { background: var(--business-bg); }
html[data-portal-theme="dark"] .business-page .business-section-nav { background: rgba(17, 25, 31, .96); }
html[data-portal-theme="dark"] .business-page .business-section-nav a { color: #b0bfbc; }
html[data-portal-theme="dark"] .business-page .business-scene-grid article,
html[data-portal-theme="dark"] .business-page .business-email-address { background: #151f24; }
html[data-portal-theme="dark"] .business-page .business-scene-grid article:hover,
html[data-portal-theme="dark"] .business-page .business-direction-grid-five article:hover { background: #1b282d; }
html[data-portal-theme="dark"] .business-page .business-email-panel { background: #f8fbfa; color: #14201f; }
html[data-portal-theme="dark"] .business-page .business-email-panel h2,
html[data-portal-theme="dark"] .business-page .business-email-address { color: #14201f; }
html[data-portal-theme="dark"] .business-page .business-email-panel .business-email-address {
  border-color: #cbd7d4;
  background: #f5f8f7;
  color: #14201f;
}
html[data-portal-theme="dark"] .business-page .business-email-panel > p { color: #53625f; }
html[data-portal-theme="dark"] .business-page .business-email-panel > small { color: #667571; }

@media (max-width: 1100px) {
  .business-page .business-email-hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .business-page .business-hero-copy { max-width: 760px; }
  .business-page .business-email-panel { max-width: 680px; }
  .business-page .business-scenes > .portal-content { grid-template-columns: 1fr; gap: 38px; }
  .business-page .business-scenes .business-section-head > p { max-width: 62ch; }
  .business-page .business-brief-flow-grid { grid-template-columns: 1fr; gap: 48px; }
  .business-page .business-brief-column { padding-right: 0; }
  .business-page .business-flow-column { padding: 48px 0 0; border-top: 1px solid #3b4a54; border-left: 0; }
}

@media (max-width: 900px) {
  .business-page .business-hero { padding-top: 28px; }
  .business-page .business-hero .portal-page-tools { margin-bottom: 44px; }
  .business-section-nav { top: 115px; }
  .business-directions,
  .business-scenes,
  .business-brief-flow,
  .business-faq { scroll-margin-top: 176px; }
}

@media (max-width: 700px) {
  .business-page .business-hero { padding-bottom: 56px; }
  .business-page .business-hero h1 { font-size: 40px; line-height: 1.08; }
  .business-page .business-hero-copy > p { font-size: 15px; }
  .business-page .business-email-panel { padding: 18px 20px; box-shadow: none; }
  .business-page .business-email-panel .portal-eyebrow,
  .business-page .business-email-panel > p { display: none; }
  .business-page .business-email-panel h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .business-page .business-email-address { margin-top: 0; }
  .business-page .business-email-panel > small { margin-top: 12px; padding-top: 12px; }
  .business-section-nav .portal-content { gap: 24px; }
  .business-page .business-directions,
  .business-page .business-scenes,
  .business-page .business-brief-flow,
  .business-page .business-faq { padding-block: 64px; }
  .business-page .business-section-head { grid-template-columns: 1fr; gap: 16px; }
  .business-page .business-section-head h2,
  .business-page .business-faq h2 { font-size: 28px; }
  .business-page .business-direction-grid-five article,
  .business-page .business-direction-grid-five article:nth-child(n) {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px 16px;
    padding: 20px 0;
  }
  .business-page .business-direction-grid-five article:hover { padding-inline: 8px; }
  .business-page .business-direction-grid-five p { grid-column: 2; }
  .business-page .business-scene-grid { grid-template-columns: 1fr; }
  .business-page .business-scene-grid article,
  .business-page .business-scene-grid article:nth-child(n) { min-height: 160px; }
  .business-page .business-brief-flow h2 { font-size: 27px; }
  .business-page .business-faq .pricing-faq-intro { position: static; }
  .business-page .business-faq .pricing-faq-grid { gap: 30px; }
  .business-page .business-final-cta > .portal-content { gap: 28px; padding-block: 48px; }
  .business-page .business-final-cta .business-hero-actions { width: 100%; }
  .business-page .business-final-cta .btn { flex: 1 1 180px; }
}

@media (max-width: 440px) {
  .business-page .business-hero h1 { font-size: 36px; }
  .business-page .business-hero-actions .btn { width: 100%; }
  .business-page .business-email-address { padding-inline: 13px; font-size: 12px; }
  .business-page .business-direction-grid-five h3 { font-size: 16px; }
  .business-page .business-scene-grid article { padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .business-page .business-email-address,
  .business-page .business-direction-grid-five article,
  .business-page .business-scene-grid article,
  .business-section-nav a::after { transition: none; }
}

/* P0 notification and platform alert surfaces */
.alert-center {
  border: 1px solid #f5c2c7;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.alert-center-head {
  min-height: 58px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fffafa;
}
.alert-center-head > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.alert-center-head .alert-center-actions { flex: 0 0 auto; }
.alert-center-head h2 { margin: 0; font-size: 15px; }
.alert-center-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #dc2626;
  color: #fff;
  font-weight: 900;
}
.alert-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}
.alert-list { padding: 0 14px 14px; display: grid; gap: 8px; }
.alert-list[hidden] { display: none; }
.platform-alert {
  min-height: 68px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid #f59e0b;
  border-radius: 6px;
  background: #fffbeb;
}
.platform-alert.critical { border-left-color: #dc2626; background: #fef2f2; }
.platform-alert.warning { border-left-color: #f59e0b; }
.platform-alert > div { min-width: 0; }
.platform-alert strong { display: block; margin-bottom: 3px; font-size: 13px; }
.platform-alert p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.alert-severity {
  min-height: 24px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  background: #d97706;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}
.platform-alert.critical .alert-severity { background: #dc2626; }

.alert-task-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.failure-rate-metric .value { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.failure-rate-metric .status { font-size: 10px; }
.user-filter-toolbar { grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(125px, .7fr)) auto; }
.admin-data-table tr.low-balance > td { background: #fef2f2; }
.admin-data-table tr.low-balance:hover > td { background: #fee2e2; }
.balance-zero { color: #dc2626 !important; font-weight: 850; }
.stats-card.bad { border-color: #fecaca; background: #fff7f7; }
.stats-card.bad .metric-main strong { color: #b91c1c; }
.notification-entry {
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: #344054;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}
.notification-entry:hover { border-color: #86cfc4; background: #f5fcfa; color: var(--brand); }
.notification-entry:focus-visible { outline: 3px solid rgba(15, 118, 110, .18); outline-offset: 2px; }
.notification-entry b {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  line-height: 1;
}
.admin-notification-nav > span:nth-child(2) { min-width: 0; }
.notification-nav-count {
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 850;
}
.notification-nav-count[hidden] { display: none; }

@media (max-width: 1080px) {
  .alert-task-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-filter-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-filter-toolbar .actions { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .alert-center-head { align-items: center; }
  .alert-center-head .alert-center-actions { gap: 6px; }
  .platform-alert { grid-template-columns: auto minmax(0, 1fr); }
  .platform-alert .btn { grid-column: 2; justify-self: start; }
  .alert-task-metrics,
  .user-filter-toolbar { grid-template-columns: 1fr; }
  .user-filter-toolbar .actions { grid-column: auto; }
}

/* Pricing v2 capability availability */
.coming-soon-link {
  color: var(--subtle) !important;
  cursor: not-allowed !important;
}
.discover-nav-sub.coming-soon-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.discover-nav-sub.coming-soon-link::after {
  content: "即将上线";
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--subtle);
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}
.coming-soon-panel {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 32px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  text-align: center;
}
.coming-soon-panel h2,
.coming-soon-panel p { margin: 0; }
.coming-soon-panel p { color: var(--muted); }
.capability-card { position: relative; }
.capability-card.is-coming-soon {
  cursor: not-allowed;
  opacity: .72;
}
.capability-card.is-coming-soon:hover { transform: none; box-shadow: none; }
.capability-soon-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}
.discover-card.is-coming-soon img { filter: saturate(.45); }
.discover-card.is-coming-soon .create-similar {
  opacity: 1;
  transform: none;
  cursor: not-allowed;
}

/* Shared finance navigation: module parent followed by its child pages. */
.admin-finance-subnav { display: grid; gap: 4px; }
.admin-finance-subnav .nav-item { margin: 0; }
.admin-finance-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 500; }
.admin-finance-breadcrumb a { color: inherit; text-decoration: none; }
.admin-finance-breadcrumb a:hover { color: var(--brand); }
.admin-recharge-tabs { display: flex; gap: 8px; margin: 0 24px 18px; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.admin-recharge-tabs a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.admin-recharge-tabs a:hover { color: var(--brand); background: var(--brand-soft); }
.admin-recharge-tabs a.active { color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 -2px var(--brand); }
.admin-operations-subnav { display: grid; gap: 4px; margin-top: 2px; }
.admin-operations-subnav .nav-item { margin: 0; }
