:root {
    color-scheme: dark;
    --page: #0b1220;
    --panel: #111c2e;
    --panel-strong: #16253a;
    --text: #e5edf7;
    --muted: #9aa9bc;
    --line: #2b3a50;
    --accent: #22d3ee;
    --accent-dark: #0e7490;
    --violet: #8b5cf6;
    --danger: #fda4af;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
}

/* 用户可选的三档文字大小：中等（默认 14px）/ 大（16px）/ 超大（18px），由 <html data-font-size> 切换 */
:root[data-font-size="large"] { font-size: 16px; }
:root[data-font-size="xlarge"] { font-size: 18px; }

* { box-sizing: border-box; }
body { margin: 0; min-width: 960px; background: var(--page); color: var(--text); line-height: 1.6; }
a { color: inherit; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip-link { position: fixed; top: 0.75rem; left: 0.75rem; padding: 0.6rem 1rem; background: var(--accent); color: var(--page); transform: translateY(-180%); z-index: 20; }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 76px; padding: 0 4vw; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; font-family: DengXian, "Microsoft YaHei", sans-serif; font-size: 1.25rem; font-weight: 700; letter-spacing: 0.08em; }
.brand-sub { color: var(--muted); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.12em; white-space: nowrap; }
.brand-mark { display: block; width: 44px; height: 44px; flex: 0 0 auto; }
.account-nav { display: flex; align-items: center; gap: 1.25rem; }
.account-email { color: var(--muted); font-size: 0.9rem; }
.account-nav form { margin: 0; }
main { width: min(1440px, 92vw); margin: 0 auto; }
.site-footer { width: min(1440px, 92vw); margin: 2rem auto; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--text); font-size: 1rem; }
.site-footer-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer-slogan { margin: 0; font-weight: 600; }
.site-footer-links { display: flex; gap: 16px; }
.site-footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.site-footer-links a:hover { color: var(--accent); }
.site-footer-copyright { margin: 0.75rem 0 0; color: var(--muted); font-size: 13px; }
.site-footer-copyright a { color: inherit; text-decoration: none; }
.site-footer-copyright a:hover { color: var(--accent); }
.site-footer-note { margin: 0.5rem 0 0; color: var(--muted); font-size: 13px; }
.eyebrow { margin: 0 0 1rem; color: var(--accent); font-family: Consolas, monospace; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; }
body.login-page { background: radial-gradient(640px 420px at 50% -180px, rgba(34,211,238,.14), transparent 65%), linear-gradient(160deg, #0a0f1c 0%, #0c1428 55%, #101b36 100%); }
.login-stage { min-height: calc(100vh - 180px); display: flex; align-items: center; justify-content: center; }
.login-card { width: min(400px, 100%); padding: 2rem 0; text-align: center; }
.login-brand-name { margin: -0.5rem 0 0.75rem; color: var(--accent); font-size: 1.35rem; font-weight: 700; letter-spacing: 0.08em; }
.login-logo { width: 52px; height: 52px; margin: 0 auto 1.25rem; border-radius: 14px; background: linear-gradient(135deg, #22d3ee, #8b5cf6); display: flex; align-items: center; justify-content: center; color: #06121f; font-size: 1.45rem; font-weight: 800; box-shadow: 0 12px 32px rgba(34,211,238,.30); }
.login-card h1 { margin: 0 0 1.75rem; font-size: 1.5rem; font-weight: 600; letter-spacing: .02em; }
.login-card .field { margin-bottom: 1.25rem; text-align: left; }
.login-card .field input { min-height: 50px; background: rgba(255,255,255,.04); border: 1px solid rgba(148,163,184,.18); border-radius: 12px; padding: 0.7rem 1rem; transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.login-card .field input:focus { outline: none; background: rgba(255,255,255,.07); border-color: rgba(34,211,238,.6); box-shadow: 0 0 0 4px rgba(34,211,238,.12); }
.login-card .password-toggle { min-height: 36px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.login-card .button-primary { min-height: 50px; margin-top: 0.5rem; border-radius: 12px; background: linear-gradient(135deg, #22d3ee, #0ea5b7); color: #04222b; box-shadow: 0 12px 30px rgba(34,211,238,.28); transition: box-shadow .2s ease; }
.login-card .auth-links { justify-content: center; gap: 1.5rem; }
.field { margin-bottom: 1.5rem; }
.field label { display: block; margin-bottom: 0.45rem; font-weight: 700; }
.field input { width: 100%; min-height: 48px; padding: 0.7rem 0.85rem; border: 1px solid #52647c; border-radius: 3px; background: var(--page); color: var(--text); }
.field-hint { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.8rem; }
.password-control { position: relative; }
#password { padding-right: 3.25rem; }
.password-toggle { position: absolute; inset-inline-end: 0.35rem; top: 50%; transform: translateY(-50%); min-width: 36px; min-height: 36px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.password-toggle:hover { color: var(--accent); }
.password-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle .eye-closed { display: none; }
.password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: block; }
.button-primary { width: 100%; min-height: 48px; padding: 0.75rem 1rem; border: 0; border-radius: 3px; background: var(--accent); color: #082f3a; font-weight: 700; cursor: pointer; }
.button-primary:disabled { opacity: 0.65; cursor: wait; }
.button-secondary { min-height: 38px; padding: 0.4rem 0.8rem; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.form-error { margin-bottom: 1.5rem; padding: 0.8rem 1rem; border-left: 3px solid var(--danger); background: #3b1d2a; color: var(--danger); }
.reports-heading { padding: 4rem 0 2.5rem; display: grid; grid-template-columns: 1fr 1fr; align-items: end; border-bottom: 1px solid var(--line); }
.reports-heading .eyebrow { grid-column: 1 / -1; }
.reports-heading h1 { margin: 0; font-family: DengXian, "Microsoft YaHei", sans-serif; font-size: 3.4rem; font-weight: 500; }
.reports-heading > p:last-child { margin: 0; color: var(--muted); }
.report-archive { padding: 1rem 0 3rem; }
.report-list { margin: 0; padding: 0; list-style: none; }
.report-row { display: grid; grid-template-columns: 240px 1fr; border-bottom: 1px solid var(--line); }
.report-row time { padding: 1.6rem 0; display: flex; flex-direction: column; }
.report-date { font-family: Consolas, monospace; font-size: 1.05rem; color: var(--accent); }
.report-weekday { color: var(--muted); font-size: 0.8rem; }
.report-link { padding: 1.6rem 0 1.6rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; text-decoration: none; border-left: 1px solid var(--line); }
.report-link:hover { background: var(--panel); color: var(--accent); }
.empty-state { margin-top: 2rem; padding: 3rem; background: var(--panel); border-left: 3px solid var(--accent); }
.empty-state h2 { margin-top: 0; }
.empty-state p { color: var(--muted); }
.report-reader-heading { padding: 1.5rem 0; display: flex; align-items: center; justify-content: space-between; }
.report-reader-heading h1 { margin: 0; font-size: 1.5rem; }
.report-reader-heading .eyebrow { margin-bottom: 0.25rem; }
.back-link { color: var(--accent); }
.report-frame { display: block; width: 100%; height: calc(100vh - 190px); min-height: 700px; border: 1px solid var(--line); background: #1a1a2e; }
.simple-auth { width: min(520px, 100%); margin: 5rem auto; padding: 2.5rem; background: var(--panel); border-top: 3px solid var(--accent); }
.simple-auth > p { color: var(--muted); }
.simple-auth h1 { margin-top: 0; }
.auth-links { margin-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; }
.auth-links a { color: var(--accent); }
.visually-hidden:where(:not(:focus-within, :active)) { position: absolute !important; clip-path: inset(50%) !important; overflow: hidden !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; border: 0 !important; white-space: nowrap !important; }
@media (prefers-reduced-motion: no-preference) {
    .report-link, .button-primary { transition: background-color 140ms ease, color 140ms ease; }
}
