:root {
  --page: #f4f6f9;
  --surface: #ffffff;
  --ink: #18212f;
  --muted: #667085;
  --line: #e3e8ef;
  --green: #168765;
  --green-soft: #e9f6f1;
  --blue: #2563b9;
  --blue-soft: #edf4ff;
  --amber: #b76b16;
  --amber-soft: #fff6e8;
  --red: #b33b35;
  --red-soft: #fff0ef;
  --shadow: 0 12px 30px rgba(25, 38, 56, .08);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--page); font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 900; }
.brand img { width: 40px; height: 40px; border-radius: 8px; }
.brand small { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; font-weight: 700; }
.text-link, .text-button { border: 0; color: var(--blue); background: transparent; font-size: 14px; font-weight: 800; }

.auth-screen { min-height: 100vh; background: linear-gradient(160deg, #f6f8fb 0 60%, #edf6f1 60% 100%); }
.auth-header { min-height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 12px clamp(20px, 5vw, 72px); border-bottom: 1px solid rgba(227, 232, 239, .85); background: rgba(255, 255, 255, .9); }
.auth-main { width: min(1040px, calc(100% - 32px)); min-height: calc(100vh - 126px); margin: 0 auto; display: grid; grid-template-columns: 1fr 420px; gap: 72px; align-items: center; padding: 48px 0; }
.auth-copy h1 { max-width: 600px; margin: 0; font-size: 48px; line-height: 1.15; letter-spacing: 0; }
.auth-copy > p:not(.eyebrow) { max-width: 560px; margin: 20px 0 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.eyebrow, .section-kicker { margin: 0 0 8px; color: var(--green); font-size: 12px; font-weight: 900; }
.auth-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.auth-points span { padding: 8px 11px; border: 1px solid #cfe3da; border-radius: 6px; color: #28624e; background: #f7fcfa; font-size: 13px; font-weight: 800; }
.auth-panel { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.auth-tabs, .segmented { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 4px; border-radius: 7px; background: #eef1f5; }
.auth-tab, .segmented button { min-height: 40px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-size: 14px; font-weight: 800; }
.auth-tab.active, .segmented button.active { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(28, 40, 55, .08); }
.auth-panel h2 { margin: 24px 0 18px; font-size: 22px; }
label { display: block; color: #344054; font-size: 13px; font-weight: 800; }
input, select, textarea { width: 100%; margin-top: 7px; border: 1px solid #d4dbe5; border-radius: 6px; color: var(--ink); background: #fff; outline: 0; }
input, select { min-height: 44px; padding: 0 12px; }
textarea { padding: 11px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 185, .1); }
.auth-panel label + label { margin-top: 15px; }
.consent-row { display: flex; align-items: flex-start; gap: 9px; margin: 18px 0 !important; color: var(--muted); line-height: 1.55; }
.consent-row input { flex: 0 0 auto; width: 17px; min-height: 17px; margin: 2px 0 0; accent-color: var(--green); }
.consent-row a { color: var(--blue); }
.primary, .secondary, .danger-button, .wechat-pay { min-height: 42px; padding: 0 18px; border-radius: 6px; font-weight: 900; }
.primary { border: 1px solid var(--green); color: #fff; background: var(--green); }
.secondary { border: 1px solid #ccd5e1; color: #344054; background: #fff; }
.danger-button { border: 1px solid var(--red); color: #fff; background: var(--red); }
.wide { width: 100%; }
.small { min-height: 36px; padding: 0 13px; font-size: 13px; }
button:disabled { cursor: not-allowed; opacity: .48; }
.form-message { min-height: 20px; margin: 12px 0 0; color: var(--red); font-size: 13px; text-align: center; }
.simple-footer { min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 24px; color: var(--muted); font-size: 12px; }

.app-shell { min-height: 100vh; padding: 70px 0 0 220px; }
.app-header { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(14px); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: #475467; background: #fff; font-size: 22px; }
.account-button { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 5px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff; }
.account-button span, .profile-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: var(--green); font-size: 13px; font-weight: 900; }
.account-button strong { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.side-nav { position: fixed; z-index: 40; top: 70px; left: 0; bottom: 0; width: 220px; display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; border-right: 1px solid var(--line); background: #fff; }
.nav-item { min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 13px; border: 0; border-radius: 6px; color: #596579; background: transparent; font-size: 14px; font-weight: 800; text-align: left; }
.nav-item span { width: 22px; color: #7d899b; font-size: 18px; text-align: center; }
.nav-item:hover { background: #f4f6f9; }
.nav-item.active { color: #126d52; background: var(--green-soft); }
.nav-item.active span { color: var(--green); }
.workspace { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0 70px; }
.workspace-toolbar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.workspace-toolbar h1 { margin: 0; font-size: 28px; line-height: 1.2; }
.child-picker { min-width: 220px; color: var(--muted); }
.child-picker select { margin-top: 4px; }
.view { display: none; }
.view.active { display: block; }
.status-band, .profile-band, .membership-status, .records-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.child-identity { min-width: 0; display: flex; align-items: center; gap: 12px; }
.child-identity > div, .profile-band > div { min-width: 0; }
.child-identity strong, .profile-band strong { display: block; overflow-wrap: anywhere; font-size: 18px; }
.child-identity small, .child-identity span:not(.avatar), .profile-band small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.avatar { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--blue); font-weight: 900; }
.status-pill { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.status-pill.online { color: #126d52; background: var(--green-soft); }
.status-pill.offline { color: var(--red); background: var(--red-soft); }
.status-pill.neutral { color: #596579; background: #eef1f5; }
.metric-grid, .location-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.metric { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.metric span, .metric small { display: block; color: var(--muted); font-size: 12px; }
.metric strong { display: block; min-height: 26px; margin: 9px 0 5px; overflow-wrap: anywhere; font-size: 20px; }
.metric small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-section { margin-top: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 17px; }
.section-head p, .section-head > span { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.action-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.command-button { min-height: 116px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fafbfc; text-align: left; }
.command-button > span { color: #596579; font-size: 20px; }
.command-button strong { font-size: 14px; }
.command-button small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.command-button.danger { border-color: #f0cfcc; background: var(--red-soft); }
.command-button.danger > span { color: var(--red); }
.command-button.success { border-color: #cce5db; background: var(--green-soft); }
.command-button.success > span { color: var(--green); }
.command-button.blue { border-color: #d6e3f7; background: var(--blue-soft); }
.command-button.blue > span { color: var(--blue); }
.command-button.amber { border-color: #efdfc6; background: var(--amber-soft); }
.command-button.amber > span { color: var(--amber); }
.alert-list { display: grid; gap: 8px; }
.alert-row { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #edf0f4; }
.alert-row:first-child { border-top: 0; }
.alert-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.alert-row strong { display: block; overflow-wrap: anywhere; font-size: 13px; }
.alert-row small, .alert-row time { color: var(--muted); font-size: 11px; }
.muted-empty { width: 100%; margin: 20px 0; color: var(--muted); font-size: 13px; text-align: center; }
.empty-state { margin-top: 12px; padding: 54px 20px; border: 1px dashed #cdd5df; border-radius: 8px; background: #fff; text-align: center; }
.empty-state strong { font-size: 18px; }
.empty-state p { color: var(--muted); }

.segmented { width: min(360px, 100%); grid-template-columns: repeat(3, 1fr); margin-bottom: 12px; }
.records-summary strong { display: block; margin-top: 4px; font-size: 28px; }
.records-summary span { color: var(--muted); font-size: 12px; }
.usage-chart { height: 190px; display: grid; grid-template-columns: repeat(24, minmax(4px, 1fr)); align-items: end; gap: 4px; padding-top: 16px; }
.chart-bar { position: relative; min-height: 4px; border-radius: 3px 3px 0 0; background: #b9c8dc; }
.chart-bar.active { background: var(--blue); }
.chart-bar span { position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%); color: var(--muted); font-size: 9px; }
.app-list { display: grid; gap: 2px; }
.app-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid #edf0f4; }
.app-row:first-child { border-top: 0; }
.app-rank { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; color: var(--blue); background: var(--blue-soft); font-size: 12px; font-weight: 900; }
.app-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.app-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.app-duration { color: #344054; font-size: 12px; font-weight: 900; white-space: nowrap; }
.limit-button { min-height: 34px; padding: 0 10px; border: 1px solid #d2dae5; border-radius: 5px; color: #475467; background: #fff; font-size: 11px; font-weight: 800; }
.limit-button.active { border-color: #edc4c1; color: var(--red); background: var(--red-soft); }

.guard-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; }
.guard-layout .tool-section { margin-top: 0; }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.mode-button { min-height: 86px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fafbfc; text-align: left; }
.mode-button strong { font-size: 14px; }
.mode-button span { color: var(--muted); font-size: 11px; }
.mode-button.danger { border-left: 4px solid var(--red); }.mode-button.success { border-left: 4px solid var(--green); }.mode-button.blue { border-left: 4px solid var(--blue); }.mode-button.amber { border-left: 4px solid var(--amber); }
.mode-button.release-all { grid-column: 1 / -1; min-height: 66px; border-left: 4px solid var(--ink); }
.setting-list, .permission-list { display: grid; }
.setting-row { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #edf0f4; }
.setting-row:first-child { border-top: 0; }
.setting-row strong, .setting-row small { display: block; }
.setting-row strong { font-size: 13px; }.setting-row small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.switch { appearance: none; flex: 0 0 auto; width: 42px; min-height: 24px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: #c7ced8; transition: .18s; }
.switch::after { content: ""; display: block; width: 20px; height: 20px; margin: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: .18s; }
.switch:checked { background: var(--green); }.switch:checked::after { transform: translateX(18px); }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row button { min-height: 38px; padding: 0 13px; border: 1px solid #d4dce7; border-radius: 6px; color: #475467; background: #fff; font-size: 12px; font-weight: 800; }
.permission-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 11px 0; border-top: 1px solid #edf0f4; font-size: 13px; }
.permission-item:first-child { border-top: 0; }.permission-item span:last-child { color: var(--red); font-size: 12px; font-weight: 900; }.permission-item.ok span:last-child { color: var(--green); }

.membership-gate { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; border: 1px solid #ead7af; border-radius: 8px; background: var(--amber-soft); }
.map-frame { height: min(52vh, 520px); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #dfe6ea; }
.map-frame { position: relative; isolation: isolate; }
.map-tiles { position: absolute; inset: 0; overflow: hidden; background: #dfe6ea; }
.map-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; }
.map-marker { position: absolute; z-index: 2; left: 50%; top: 50%; width: 18px; height: 18px; border: 3px solid #fff; border-radius: 50% 50% 50% 0; background: #e5484d; box-shadow: 0 2px 7px rgba(50, 30, 30, .35); transform: translate(-50%, -75%) rotate(-45deg); }
.map-marker::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.map-empty { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; color: #667085; background: #e6ebef; font-size: 14px; }
.map-fallback { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; gap: 7px; padding: 20px; color: #344054; text-align: center; background: repeating-linear-gradient(0deg, rgba(255,255,255,.35) 0 1px, transparent 1px 48px), repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, transparent 1px 48px), #dfe9df; }
.map-fallback strong { font-size: 17px; }.map-fallback span { color: #16704c; font-size: 14px; font-weight: 900; }.map-fallback small { color: #667085; font-size: 12px; }
.map-attribution { position: absolute; right: 6px; bottom: 5px; z-index: 4; padding: 2px 5px; border-radius: 3px; color: #46505d; background: rgba(255, 255, 255, .82); font-size: 10px; }
.location-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.screen-toolbar { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.screen-stage { position: relative; width: min(430px, 100%); min-height: 580px; display: grid; place-items: center; margin: 0 auto; overflow: hidden; border: 1px solid #2c3747; border-radius: 8px; background: #111820; }
.screen-stage img { display: block; max-width: 100%; max-height: 74vh; }
.screen-placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; color: #d7dce3; text-align: center; }
.screen-actions { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }

.community-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; margin-bottom: 12px; }.community-toolbar input { margin: 0; }
.community-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.post-card { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.post-card header { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }.post-card h2 { margin: 12px 0 7px; overflow-wrap: anywhere; font-size: 16px; }.post-card p { margin: 0; color: #4d596b; font-size: 13px; line-height: 1.65; white-space: pre-wrap; }.post-card footer { display: flex; justify-content: space-between; margin-top: 14px; color: var(--muted); font-size: 11px; }

.membership-status { border-color: #e7d5b0; background: var(--amber-soft); }.membership-status strong { display: block; margin: 6px 0; font-size: 24px; }.membership-status span, .membership-status small { color: #75511f; font-size: 12px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.product { min-height: 164px; display: flex; flex-direction: column; padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: left; }
.product.selected { border: 2px solid var(--green); padding: 16px; background: #f7fcfa; }.product span { color: var(--muted); font-size: 11px; }.product strong { margin-top: 8px; font-size: 16px; }.product b { margin-top: auto; color: var(--ink); font-size: 25px; }.product small { margin-top: 5px; color: var(--green); font-size: 11px; font-weight: 900; }
.payment-bar { position: sticky; z-index: 10; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 12px; padding: 14px 16px; border: 1px solid #cdd8d3; border-radius: 8px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }.payment-bar span { display: block; color: var(--muted); font-size: 11px; }.payment-bar strong { display: block; margin-top: 4px; font-size: 14px; }.wechat-pay { min-width: 130px; border: 1px solid #07a65a; color: #fff; background: #07a65a; }
.inline-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }.inline-form input { margin: 0; }
.order-state { padding: 12px; border-radius: 6px; color: #75511f; background: var(--amber-soft); font-size: 13px; font-weight: 800; }

.profile-band { justify-content: flex-start; }.profile-avatar { flex: 0 0 auto; width: 48px; height: 48px; font-size: 17px; }.profile-band .secondary { margin-left: auto; }
.children-list { display: grid; gap: 8px; }.child-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid #edf0f4; }.child-row:first-child { border-top: 0; }.child-row strong, .child-row small { display: block; }.child-row small { margin-top: 4px; color: var(--muted); font-size: 11px; }.child-row button { min-height: 34px; padding: 0 10px; border: 1px solid #d2dae5; border-radius: 5px; color: #475467; background: #fff; font-size: 12px; font-weight: 800; }
.link-list { padding: 0 18px; }.link-list a { min-height: 52px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #edf0f4; font-size: 13px; font-weight: 800; }.link-list a:first-child { border-top: 0; }.link-list strong { color: #98a2b3; font-size: 20px; }

dialog { width: min(480px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 8px; color: var(--ink); box-shadow: 0 24px 70px rgba(21,32,48,.25); }dialog::backdrop { background: rgba(17,24,39,.55); }.dialog-form { padding: 22px; }.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }.dialog-head h2 { margin: 0; font-size: 19px; }.dialog-form > label { margin-top: 15px; }.dialog-form > p { color: #4d596b; font-size: 14px; line-height: 1.7; }.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.loading { position: fixed; z-index: 100; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: #fff; background: rgba(17,24,39,.45); }.loading span { width: 32px; height: 32px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }.loading strong { font-size: 13px; }.toast { position: fixed; z-index: 110; left: 50%; bottom: 24px; max-width: min(440px, calc(100% - 28px)); padding: 11px 15px; border-radius: 6px; color: #fff; background: #263142; font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: .2s; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
.bottom-nav { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1040px) {
  .action-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .auth-main { grid-template-columns: 1fr; gap: 28px; padding: 34px 0 72px; }.auth-copy h1 { font-size: 34px; }.auth-copy > p:not(.eyebrow) { font-size: 14px; }.simple-footer { flex-wrap: wrap; gap: 10px 20px; padding: 12px 20px; }
  .app-shell { padding: 62px 0 calc(76px + env(safe-area-inset-bottom)); }.app-header { height: 62px; padding: 8px 14px; }.app-header .brand span { display: none; }.account-button strong { display: none; }.side-nav { display: none; }.workspace { width: min(100% - 24px, 680px); padding: 18px 0 32px; }.workspace-toolbar { align-items: flex-end; margin-bottom: 14px; }.workspace-toolbar h1 { font-size: 23px; }.child-picker { min-width: 152px; max-width: 48%; }.child-picker select { min-height: 40px; font-size: 12px; }
  .bottom-nav { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; min-height: calc(62px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); padding: 5px 4px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); }.bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; color: #7a8698; background: transparent; font-size: 10px; font-weight: 800; }.bottom-nav button span { font-size: 18px; }.bottom-nav button.active { color: var(--green); }
  .status-band, .profile-band, .membership-status, .records-summary { padding: 14px; }.metric-grid, .location-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.metric { padding: 14px; }.metric strong { font-size: 17px; }.tool-section { padding: 16px; }.action-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.command-button { min-height: 96px; }.guard-layout { grid-template-columns: 1fr; }.product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.community-list { grid-template-columns: 1fr; }.usage-chart { gap: 2px; }.app-row { grid-template-columns: 30px minmax(0,1fr) auto; }.app-row .limit-button { grid-column: 2 / 4; width: 100%; }.screen-stage { min-height: 480px; }.payment-bar { bottom: calc(70px + env(safe-area-inset-bottom)); }.toast { bottom: calc(78px + env(safe-area-inset-bottom)); }
}

@media (max-width: 420px) {
  .auth-panel { padding: 22px 18px; }.auth-points { display: grid; grid-template-columns: repeat(2, 1fr); }.workspace { width: calc(100% - 18px); }.workspace-toolbar { display: grid; grid-template-columns: 1fr 150px; }.metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }.metric { min-height: 112px; }.location-grid { grid-template-columns: 1fr; }.mode-grid { grid-template-columns: 1fr 1fr; }.product-grid { grid-template-columns: 1fr 1fr; gap: 8px; }.product { min-height: 150px; padding: 14px; }.product.selected { padding: 13px; }.payment-bar { align-items: stretch; }.payment-bar > div { min-width: 0; }.payment-bar strong { overflow-wrap: anywhere; }.wechat-pay { min-width: 106px; padding: 0 12px; }.membership-gate { align-items: stretch; flex-direction: column; }.inline-form { grid-template-columns: 1fr; }
}

.legal-page { background: #f6f7f9; }
.legal-header { position: sticky; z-index: 20; top: 0; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px clamp(18px, 5vw, 70px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.legal-header nav { display: flex; gap: 20px; color: var(--blue); font-size: 13px; font-weight: 800; }
.legal-layout { width: min(1080px, calc(100% - 32px)); display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 28px; margin: 28px auto 56px; }
.legal-nav { position: sticky; top: 96px; align-self: start; display: grid; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.legal-nav a { min-height: 42px; display: flex; align-items: center; padding: 0 11px; border-radius: 6px; color: #596579; font-size: 13px; font-weight: 800; }
.legal-nav a:hover { color: #126d52; background: var(--green-soft); }
.legal-content { display: grid; gap: 14px; }
.legal-content section { scroll-margin-top: 88px; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.legal-content h1 { margin: 0 0 18px; font-size: 28px; }
.legal-content h2 { margin: 24px 0 8px; font-size: 16px; }
.legal-content p, .legal-content li { color: #4d596b; font-size: 14px; line-height: 1.85; }
.legal-content ul { padding-left: 22px; }
.legal-footer { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 24px; border-top: 1px solid var(--line); color: var(--muted); background: #fff; font-size: 12px; }
@media (max-width: 720px) {
  .legal-header nav { gap: 10px; }.legal-layout { grid-template-columns: 1fr; margin-top: 16px; }.legal-nav { position: static; grid-template-columns: repeat(4, 1fr); overflow-x: auto; }.legal-nav a { justify-content: center; min-width: 76px; padding: 0 6px; text-align: center; }.legal-content section { padding: 20px 17px; }.legal-content h1 { font-size: 23px; }
}
