:root {
  --primary: #245b93;
  --primary-dark: #194674;
  --primary-soft: #edf3f9;
  --accent: #245b93;
  --bg: #f5f6f8;
  --card: #fff;
  --text: #17212f;
  --muted: #667180;
  --border: #dfe3e8;
  --success: #28734f;
  --danger: #b83b38;
  --warn: #986522;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(22, 34, 48, .025);
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
html { scroll-padding-top: 84px; }
body { font-family: var(--font-ui); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.4; font-weight: 600; }
p { margin: 0 0 .85em; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
input, select, textarea { min-width: 0; }
input::placeholder, textarea::placeholder { color: #959da7; }
textarea { resize: vertical; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.topnav { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--border); }
.topnav-inner { display: flex; align-items: center; gap: 20px; max-width: 1200px; min-height: 64px; margin: 0 auto; padding: 10px 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 5px; background: #223d58; color: #fff; display: grid; place-items: center; font-weight: 650; font-size: 13px; letter-spacing: -.4px; }
.brand-title { font-weight: 650; font-size: 17px; letter-spacing: -.35px; }
.brand-sub { display: block; font-size: 10px; color: var(--muted); letter-spacing: 1px; line-height: 1.3; }
.topnav-links { display: flex; align-items: center; gap: 28px; margin-left: 32px; font-size: 13px; }
.topnav-links a { color: #4e5967; }
.topnav-links a:hover, .topnav-links a[aria-current="page"] { color: var(--primary); text-decoration: none; }
.topnav-spacer { flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 5px; padding: 9px 16px; min-height: 38px; font-size: 13px; font-weight: 500; cursor: pointer; line-height: 1.4; transition: background .15s, border-color .15s; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary, .btn-accent { background: var(--primary); color: #fff; }
.btn-primary:hover, .btn-accent:hover { background: var(--primary-dark); }
.btn-quiet { background: #fff; color: #455261; border-color: #d4dae1; }
.btn-quiet:hover { background: #f5f7f9; border-color: #aeb9c6; }
.btn-danger { background: #fff; color: var(--danger); border-color: #e7cecd; }
.btn-danger:hover { background: #fdf3f2; }
.btn-small { padding: 5px 11px; min-height: 30px; font-size: 12px; border-radius: 4px; }
button:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12px; font-weight: 500; color: #566170; }
.field input, .field select, .field textarea { border: 1px solid #d5dbe2; border-radius: 4px; padding: 8px 10px; min-height: 36px; font-size: 13px; background: #fff; color: var(--text); width: 100%; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #aeb9c6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #245b931a; border-color: var(--primary); outline-offset: 0; }
.field input[readonly] { background: #f5f7f9; color: #626e7c; border-color: #e5e8ed; }
input[type="checkbox"] { accent-color: var(--primary); width: 15px; height: 15px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.grid { display: grid; gap: 20px; }
.table-wrap { min-width: 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 5px; background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; padding: 11px 14px; font-size: 12px; color: #657180; background: #f6f7f9; border-bottom: 1px solid var(--border); white-space: nowrap; font-weight: 500; }
.table td { padding: 13px 14px; border-bottom: 1px solid #edf0f3; vertical-align: middle; overflow-wrap: anywhere; }
.table tbody tr:hover { background: #fafbfc; }
.table tr:last-child td { border-bottom: 0; }
.table .num, .num { text-align: right; font-variant-numeric: tabular-nums; }
.table td:last-child .btn + .btn { margin-left: 6px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.muted { color: var(--muted); font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; border-radius: 3px; padding: 2px 7px; white-space: nowrap; background: #f0f2f5; color: var(--muted); }
.badge-ok { background: #edf6f0; color: #28734f; }
.badge-warn { background: #faf3e8; color: #946522; }
.badge-danger { background: #faeeee; color: #b03e3b; }
.badge-info { background: var(--primary-soft); color: var(--primary); }
.notice { border-radius: 4px; padding: 12px 14px; font-size: 13px; border: 1px solid; overflow-wrap: anywhere; }
.notice-info { background: #f1f6fb; border-color: #d5e3f0; color: #315c85; }
.notice-warn { background: #fdf8ee; border-color: #eadcc0; color: #86602c; }
.notice-danger { background: #fcf2f1; border-color: #edd3d0; color: #a53a35; }
.notice-ok { background: #f1f8f3; border-color: #cfe4d5; color: #286a45; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(12px); background: #253444; color: #fff; border-radius: 5px; padding: 12px 20px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; max-width: min(90vw, 600px); text-align: center; }
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.site-footer { border-top: 1px solid var(--border); background: #fff; margin-top: 64px; }
.site-footer-inner { max-width: 1200px; margin: 0 auto; padding: 36px 32px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.site-footer a { color: var(--muted); }
.site-footer-columns { display: flex; gap: 64px; flex-wrap: wrap; }
.site-footer-columns b { display: block; color: var(--text); margin-bottom: 10px; font-size: 12px; font-weight: 600; }
.site-footer-columns a { display: block; margin-bottom: 7px; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; font-size: 13px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--primary); animation: spin .7s linear infinite; display: inline-block; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .topnav-inner { gap: 12px; padding: 12px 20px; flex-wrap: wrap; }
  .topnav-links { order: 5; width: 100%; margin: 0; gap: 24px; border-top: 1px solid #edf0f3; padding-top: 10px; }
  .brand-title { font-size: 16px; }
  .card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
