:root {
  color-scheme: light;
  --ink: #262328;
  --muted: #747078;
  --green: #7257f5;
  --green-dark: #563bd6;
  --green-soft: #eeebff;
  --line: #e7e4eb;
  --surface: #fbfafc;
  --card: #fff;
  --red: #b54861;
  --amber: #896310;
  --shadow: 0 22px 60px rgba(48, 37, 66, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 88% 2%, #eee9ff 0, transparent 28%), var(--surface); }
button, input { font: inherit; }
[hidden] { display: none !important; }
.environment-bar { height: 34px; display: grid; place-items: center; padding: 0 18px; color: #4d3ca0; background: #eeeaff; border-bottom: 1px solid #ded6ff; font-size: 12px; font-weight: 650; letter-spacing: .03em; text-align: center; }
.login-shell { min-height: calc(100vh - 34px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr); }
.login-brand { padding: clamp(48px, 8vw, 110px); color: #29242e; background: radial-gradient(circle at 82% 18%, rgba(255,255,255,.78) 0 8%, transparent 9%), radial-gradient(circle at 84% 82%, #ffddec 0 13%, transparent 14%), linear-gradient(145deg, #e8e2ff, #f6f2ff 54%, #e6f2ff); display: flex; flex-direction: column; justify-content: center; }
.brand-mark { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 22px; color: #fff; background: linear-gradient(145deg, #8d79ff, #6548e8); font-weight: 850; font-size: 34px; box-shadow: 0 18px 40px rgba(89,65,181,.2); transform: rotate(-3deg); }
.brand-mark.small { width: 42px; height: 42px; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #8d79ff, #6548e8); font-size: 20px; box-shadow: 0 6px 16px rgba(91,65,210,.18); }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: 11px; font-weight: 850; letter-spacing: .16em; }
.login-brand .eyebrow { margin-top: 46px; color: #654ed6; }
.login-brand h1 { margin: 8px 0 24px; max-width: 760px; font-size: clamp(42px, 5.5vw, 74px); line-height: 1.05; letter-spacing: -.045em; }
.login-brand > p:not(.eyebrow) { max-width: 650px; color: #665f6e; font-size: 16px; line-height: 1.85; }
.security-points { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.security-points span { padding: 8px 12px; border: 1px solid rgba(100,76,190,.15); background: rgba(255,255,255,.58); border-radius: 999px; font-size: 12px; }
.login-card { align-self: center; margin: 42px clamp(28px, 6vw, 86px); padding: 38px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.login-card h2 { margin: 5px 0 8px; font-size: 30px; }
.muted { color: var(--muted); }
label { display: block; margin-top: 20px; font-size: 13px; font-weight: 750; }
input { width: 100%; margin-top: 8px; padding: 13px 14px; border: 1px solid #dedbe2; border-radius: 9px; color: var(--ink); background: #fff; }
input:focus { outline: 3px solid #e4deff; border-color: #8d78ee; }
.button { width: 148px; height: 42px; padding: 0 12px; border: 0; border-radius: 9px; font-size: 14px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.login-card .button { margin-top: 24px; }
.primary { color: #fff; background: #333133; box-shadow: 0 0 0 1px rgba(0,0,0,.75), 0 1px 3px rgba(0,0,0,.3), 1px 4px 8px rgba(0,0,0,.12); }
.secondary { color: var(--green-dark); background: var(--green-soft); }
.ghost { color: var(--green-dark); background: var(--green-soft); }
.error { min-height: 20px; color: var(--red); font-size: 13px; }
.app-shell { min-height: calc(100vh - 34px); display: grid; grid-template-columns: 240px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: calc(100vh - 34px); padding: 28px 14px; border-right: 1px solid var(--line); background: rgba(247,245,252,.92); }
.brand { display: flex; align-items: center; gap: 12px; margin: 0 8px 34px; color: inherit; text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand small { margin-top: 2px; color: var(--muted); }
.nav { width: 100%; margin-bottom: 6px; padding: 11px 12px; border: 0; border-radius: 10px; color: #625e66; background: transparent; font-weight: 650; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav:hover { color: #4b4550; background: #f0edf8; }
.nav.active { color: #5e46d6; background: #fff; box-shadow: 0 1px 3px rgba(54,45,66,.08), 0 0 0 1px rgba(222,217,230,.7); }
.boundary { margin-top: 34px; padding: 15px; border: 1px solid #ead7b9; border-radius: 14px; background: #fff9ef; }
.boundary p { margin-bottom: 0; color: #765f3b; font-size: 12px; line-height: 1.55; }
.workspace { min-width: 0; padding: 34px clamp(24px, 4.5vw, 68px) 70px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.topbar h1 { margin: 3px 0 0; font-size: 36px; letter-spacing: -.03em; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.session-pill, .pill { display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.session-pill { color: var(--green-dark); background: var(--green-soft); }
.notice { min-height: 0; margin-bottom: 16px; padding: 0; border-radius: 10px; color: var(--green-dark); background: var(--green-soft); font-size: 13px; }
.notice.visible { min-height: 40px; padding: 11px 14px; }
.notice.error-notice { color: var(--red); background: #fbe9e7; }
.view { display: none; }
.view.active { display: block; }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; }
.metric { min-height: 132px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.metric span { color: var(--muted); font-size: 12px; }
.metric strong { font-size: 30px; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.97); box-shadow: 0 6px 22px rgba(47,39,58,.045); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 20px; }
.card-head h2 { margin: 4px 0 0; }
.pill { color: var(--amber); background: #fff3dc; }
.pill.good { color: var(--green-dark); background: var(--green-soft); }
.pill.bad { color: var(--red); background: #fbe9e7; }
.pill.neutral { color: #5a6560; background: #eef1ef; }
.definition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--line); }
.definition-grid div { min-height: 72px; padding: 14px; background: #fff; }
.definition-grid dt { color: var(--muted); font-size: 11px; }
.definition-grid dd { margin: 7px 0 0; font-weight: 760; word-break: break-word; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 12px; color: var(--muted); background: #f5f8f6; text-align: left; white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid #edf0ee; vertical-align: top; }
td code { color: var(--green-dark); font-size: 11px; }
.empty { padding: 38px; color: var(--muted); text-align: center; }
.status-good { color: var(--green); font-weight: 800; }
.status-bad { color: var(--red); font-weight: 800; }
.billing-table-card { margin-top: 16px; }
#seedBillingForm label { margin-top: 0; }
#seedBillingForm .button { margin-top: 18px; }
.fund-test, .fund-real { display: inline-flex; padding: 3px 7px; border-radius: 999px; font-size: 10px; font-weight: 850; }
.fund-test { color: #795313; background: #fff1d6; }
.fund-real { color: var(--green-dark); background: var(--green-soft); }
@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(3,1fr); }
  .app-shell { grid-template-columns: 190px minmax(0,1fr); }
}
@media (max-width: 760px) {
  .environment-bar { height: auto; min-height: 42px; }
  .login-shell { display: block; }
  .login-brand { padding: 50px 28px; }
  .login-brand h1 { font-size: 42px; }
  .login-card { margin: 24px 16px 60px; }
  .app-shell { display: block; }
  .sidebar { position: fixed; inset: auto 0 0; z-index: 10; width: auto; height: auto; padding: 7px; border: 0; border-top: 1px solid var(--line); }
  .sidebar .brand, .sidebar .boundary { display: none; }
  .sidebar nav { display: grid; grid-template-columns: repeat(8,1fr); gap: 3px; }
  .nav { margin: 0; padding: 10px 3px; font-size: 10px; text-align: center; }
  .workspace { padding: 24px 16px 100px; }
  .topbar { display: block; }
  .top-actions { margin-top: 16px; flex-wrap: wrap; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .two-column { grid-template-columns: 1fr; }
  .definition-grid { grid-template-columns: 1fr; }
}

/* 2026-08 蓝色城市展示体系：管理后台 */
:root { --green:#1597d1; --green-dark:#0879ad; --green-soft:#e2f5fd; --surface:#f6fbfd; --line:#dce7ec; --amber:#8a6200; }
body { background:radial-gradient(circle at 90% 0,#dff4fc 0,transparent 30%),var(--surface); }
.environment-bar { color:#145a78; background:#dff3fb; border-color:#c8e8f5; }
.login-brand { color:#fff; background:linear-gradient(rgba(25,157,214,.74),rgba(23,147,202,.68)),url("../official/assets/hero-china-anime-v2.png") center/cover no-repeat; }
.brand-mark,.brand-mark.small { color:#26272a; background:#ffcb3f; box-shadow:0 12px 30px rgba(152,108,0,.17); }
.login-brand .eyebrow,.login-brand>p:not(.eyebrow) { color:#fff; text-shadow:0 1px 8px rgba(0,72,110,.2); }
.sidebar { background:rgba(238,248,252,.94); }
.nav:hover { color:#185a76; background:#e4f4fa; }
.nav.active { color:#0879ad; }
.secondary,.ghost { color:#252527; background:#ffcb3f; }
input:focus { outline-color:#d9f2fc; border-color:#1597d1; }
