:root {
  --ink: #1b1613;
  --ink-2: #453f38;
  --muted: #7a7269;
  --line: #e8e2d9;
  --line-strong: #d5ccbe;
  --surface: #ffffff;
  --bg: #f6f4f1;
  --brand: #8c6117;
  --brand-dark: #6e4b10;
  --brand-soft: #fbf4e6;
  --ok: #2f7d4f;
  --ok-soft: #eaf6ee;
  --warn: #a8620f;
  --warn-soft: #fdf3e3;
  --danger: #b3261e;
  --danger-soft: #fdecec;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(27, 22, 19, 0.06), 0 10px 26px rgba(27, 22, 19, 0.05);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 17px;
}

h4 {
  font-size: 13px;
  color: var(--muted);
}

ul,
ol,
dl,
dd,
p {
  margin: 0;
}

/* ------------------------------- 顶部栏 ------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-block;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 13px;
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--bg);
  color: var(--brand);
}

.nav-link-ghost {
  border: 1px solid var(--line);
}

/* -------------------------------- 主视觉 -------------------------------- */

.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: #171310;
  min-height: 320px;
  display: flex;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("/assets/hero-portrait.jpg?v=1.3.0");
  background-repeat: no-repeat;
  background-position: 52% 10%;
  background-size: cover;
  filter: saturate(1.04) contrast(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    92deg,
    rgba(16, 12, 8, 0.96) 0%,
    rgba(18, 14, 10, 0.9) 24%,
    rgba(21, 16, 11, 0.62) 46%,
    rgba(24, 18, 13, 0.2) 68%,
    rgba(24, 18, 13, 0.04) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 20px 38px;
}

.hero-copy {
  max-width: min(520px, 46%);
}

.hero-copy::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  border-radius: 2px;
  background: #d9b46a;
  margin-bottom: 14px;
}

.hero-inner h1 {
  font-size: 34px;
  letter-spacing: 0;
}

.hero-inner p {
  margin-top: 8px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 520px;
}

.hero-badges {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 12.5px;
  white-space: nowrap;
}

/* -------------------------------- 布局 -------------------------------- */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 20px 40px;
}

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

.side {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.panel-muted {
  background: #fbf9f6;
  box-shadow: none;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-hint {
  color: var(--muted);
  font-size: 12.5px;
  text-align: right;
}

.plain-list {
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 13px;
}

.plain-list li + li {
  margin-top: 6px;
}

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

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(140, 97, 23, 0.14);
}

input::placeholder {
  color: #a89e93;
}

.input-group {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.input-group input {
  flex: 1 1 auto;
  min-width: 0;
}

.input-suffix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.icon-btn {
  width: 40px;
  height: 40px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.field-hint {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.field-hint.is-ok {
  color: var(--ok);
}

.field-hint.is-warn {
  color: var(--warn);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip {
  min-width: 56px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.chip.is-active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-dark);
  font-weight: 500;
}

.form-foot {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-outline {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink-2);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-danger {
  background: #fff;
  border-color: #eec5c1;
  color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger-soft);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  height: 44px;
  font-size: 15px;
}

.btn-sm {
  height: 30px;
  padding: 0 10px;
  font-size: 12.5px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

.alert {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid #ecdcbc;
}

.alert-error {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #f2c9c5;
}

.alert-ok {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: #c6e4d0;
}

.alert-warn {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: #f0dcbb;
}

.notice-bar {
  margin-bottom: 16px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--warn-soft);
  border: 1px solid #f0dcbb;
  color: var(--warn);
  font-size: 13px;
}

/* ------------------------------- 结果面板 ------------------------------- */

.result-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--ok-soft);
  border: 1px solid #c6e4d0;
}

.result-banner-icon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.result-banner-icon svg {
  width: 22px;
  height: 22px;
}

.result-banner-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.result-banner-text strong {
  font-size: 17px;
  color: var(--ok);
}

.result-banner-text span {
  font-size: 13px;
  color: var(--ink-2);
}

.result-banner.is-running {
  background: var(--brand-soft);
  border-color: #ecdcbc;
}

.result-banner.is-running .result-banner-icon {
  background: var(--brand);
}

.result-banner.is-running .result-banner-text strong {
  color: var(--brand-dark);
}

.result-banner.is-failed {
  background: var(--danger-soft);
  border-color: #f2c9c5;
}

.result-banner.is-failed .result-banner-icon {
  background: var(--danger);
}

.result-banner.is-failed .result-banner-text strong {
  color: var(--danger);
}

.result-banner.is-cancelled {
  background: #f4f1ec;
  border-color: var(--line);
}

.result-banner.is-cancelled .result-banner-icon {
  background: var(--muted);
}

.result-banner.is-cancelled .result-banner-text strong {
  color: var(--ink-2);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 16px 0 14px;
  display: flex;
  gap: 8px;
}

.step {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbf9f6;
  color: var(--muted);
  font-size: 12.5px;
  min-width: 0;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
  flex: none;
}

.step-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step.is-done {
  border-color: #c6e4d0;
  background: var(--ok-soft);
  color: var(--ok);
}

.step.is-done .step-dot {
  background: var(--ok);
}

.step.is-active {
  border-color: #ecdcbc;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.step.is-active .step-dot {
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(140, 97, 23, 0.18);
}

.step.is-error {
  border-color: #f2c9c5;
  background: var(--danger-soft);
  color: var(--danger);
}

.step.is-error .step-dot {
  background: var(--danger);
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.meta-list > div {
  min-width: 0;
}

.meta-list dt {
  font-size: 12px;
  color: var(--muted);
}

.meta-list dd {
  font-size: 14px;
  color: var(--ink);
  word-break: break-all;
}

.log-box {
  margin-top: 14px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.log-box ul {
  list-style: none;
  padding: 0;
  margin-top: 8px;
  max-height: 200px;
  overflow: auto;
  font-size: 12.5px;
  color: var(--ink-2);
}

.log-box li {
  display: flex;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #f4f1ec;
}

.log-box li time {
  color: var(--muted);
  flex: none;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------- 记录列表 ------------------------------- */

.lookup-quota {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
}

.record-list {
  list-style: none;
  padding: 0;
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.record-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.record-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.record-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  color: var(--ink-2);
}

.record-meta {
  font-size: 12.5px;
  color: var(--muted);
}

.empty {
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* -------------------------------- 徽标 -------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.badge-queued {
  background: #f4f1ec;
  color: var(--ink-2);
  border-color: var(--line);
}

.badge-running {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-color: #ecdcbc;
}

.badge-success {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: #c6e4d0;
}

.badge-failed {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #f2c9c5;
}

.badge-cancelled {
  background: #f4f1ec;
  color: var(--muted);
  border-color: var(--line);
}

.badge-info {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-color: #ecdcbc;
}

.badge-warning {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: #f0dcbb;
}

.badge-error {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #f2c9c5;
}

/* ------------------------------- 页脚 ------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 18px 20px 26px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
}

.footer-dot {
  margin: 0 8px;
}

/* ------------------------------ 登录页 ------------------------------ */

.page-centered {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  background-color: #171310;
  background-image: linear-gradient(180deg, rgba(16, 12, 8, 0.8) 0%, rgba(16, 12, 8, 0.94) 100%),
    url("/assets/hero-portrait.jpg?v=1.3.0");
  background-repeat: no-repeat, no-repeat;
  background-position: center, 54% 12%;
  background-size: cover, cover;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px 22px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.auth-brand h1 {
  font-size: 19px;
}

.auth-brand p {
  font-size: 12.5px;
  color: var(--muted);
}

.auth-back {
  display: block;
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ------------------------------ 管理后台 ------------------------------ */

.admin-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 20px 40px;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-head-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.tab {
  border: none;
  background: transparent;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}

.tab:hover {
  color: var(--brand);
}

.tab.is-active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--brand);
}

.tab-panel[hidden] {
  display: none;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.stat-card .stat-label {
  font-size: 12.5px;
  color: var(--muted);
}

.stat-card .stat-value {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.stat-card .stat-foot {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}

.toolbar .field {
  margin-bottom: 0;
}

.toolbar input,
.toolbar select {
  height: 36px;
  min-width: 130px;
}

.toolbar .toolbar-grow {
  flex: 1 1 200px;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 720px;
}

thead th {
  position: sticky;
  top: 0;
  background: #faf8f5;
  text-align: left;
  font-weight: 600;
  color: var(--ink-2);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f4f1ec;
  color: var(--ink-2);
  vertical-align: middle;
}

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

tbody tr:hover td {
  background: #fdfbf8;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
}

.nowrap {
  white-space: nowrap;
}

.cell-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.pagination button {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
}

.pagination button:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.trend {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  height: 176px;
  padding: 14px 6px 0;
}

.trend-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 6px;
  min-width: 0;
}

.trend-bar {
  width: 100%;
  max-width: 46px;
  border-radius: 5px 5px 0 0;
  background: var(--brand);
  min-height: 3px;
  position: relative;
}

.trend-bar.is-empty {
  background: var(--line);
}

.trend-value {
  font-size: 12px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.trend-label {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 18px;
}

.detail-grid .meta-label {
  font-size: 12px;
  color: var(--muted);
}

.detail-grid .meta-value {
  font-size: 13.5px;
  word-break: break-all;
}

.credential-box {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbf9f6;
}

.credential-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.credential-body {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.credential-value {
  flex: 1 1 220px;
  min-width: 0;
  padding: 7px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--ink);
  word-break: break-all;
}

.credential-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 16px;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.switch {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 24px;
  flex: none;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-track {
  position: absolute;
  inset: 0;
  background: var(--line-strong);
  border-radius: 999px;
  transition: background 0.15s;
  cursor: pointer;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}

.switch input:checked + .switch-track {
  background: var(--brand);
}

.switch input:checked + .switch-track::after {
  transform: translateX(18px);
}

.section-title {
  margin: 22px 0 12px;
  font-size: 15px;
  font-weight: 600;
}

.inline-note {
  font-size: 12.5px;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: #1b1613;
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  box-shadow: 0 10px 30px rgba(27, 22, 19, 0.24);
  z-index: 60;
  max-width: 90vw;
}

.toast[hidden] {
  display: none;
}

/* ------------------------------ 响应式 ------------------------------ */

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

  /* 窄屏改成「上方照片带 + 下方深色文字区」，避免文字压在人物脸上 */
  .hero {
    display: block;
    min-height: 0;
    padding-top: clamp(132px, 24vw, 220px);
  }

  .hero-media {
    inset: 0 0 auto 0;
    height: clamp(132px, 24vw, 220px);
    background-position: 50% 6%;
    background-size: cover;
  }

  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(16, 12, 8, 0) 0%,
      rgba(16, 12, 8, 0.3) 56%,
      rgba(16, 12, 8, 0.9) 86%,
      #171310 100%
    );
  }

  .hero-inner {
    padding-top: 16px;
    padding-bottom: 26px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-copy::before {
    display: none;
  }

  .hero-inner h1 {
    font-size: 26px;
  }
}

@media (max-width: 640px) {
  .topbar-inner,
  .wrap,
  .admin-shell {
    padding-left: 14px;
    padding-right: 14px;
  }
  .hero-inner {
    padding: 24px 14px 28px;
  }
  .hero-inner h1 {
    font-size: 24px;
  }
  .hero-inner p {
    font-size: 13.5px;
  }
  .meta-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps {
    flex-direction: column;
  }
  .toolbar-actions {
    margin-left: 0;
    width: 100%;
  }
  .toolbar-actions .btn {
    flex: 1 1 auto;
  }
  .trend {
    height: 150px;
  }
}
