:root { color-scheme: light; --ink: #21352c; --muted: #68796d; --green: #285b43; --pale: #edf3e9; --line: #dbe3d8; --paper: #fffef9; --gold: #ad7836; --red: #aa3d32; font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: #f5f6ef; color: var(--ink); line-height: 1.65; }
button, input, select, textarea { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--green); border-radius: 9px; padding: .65rem 1.1rem; background: var(--green); color: white; text-decoration: none; cursor: pointer; min-height: 44px; white-space: nowrap; }
button:hover, .button:hover { filter: brightness(.94); }
button:disabled { cursor: not-allowed; opacity: .5; }
button.secondary, .button.secondary { background: transparent; color: var(--green); border-color: var(--line); }
button.danger { background: var(--red); border-color: var(--red); }
button.small { padding: .35rem .7rem; font-size: .85rem; }
:focus-visible { outline: 3px solid #c18b35; outline-offset: 3px; }
a { color: var(--green); }
[hidden] { display: none !important; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: auto; }
header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 86px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; font-weight: 700; }
.mark { width: 38px; height: 38px; border-radius: 12px 12px 12px 2px; background: var(--green); color: #e6edca; display: grid; place-items: center; font-size: 1.2rem; }
.eyebrow { color: var(--muted); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.identity { display: flex; align-items: center; gap: 12px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
main { padding-top: 32px; padding-bottom: 48px; min-height: 70vh; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.35; margin: .3rem 0 .7rem; font-weight: 650; }
h2 { font-size: 1.2rem; margin: 0 0 12px; }
h3 { font-size: 1rem; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.muted, .hint { color: var(--muted); }
.hint { font-size: .85rem; }
.intro { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin: 24px 0; padding-bottom: 12px; overflow-x: auto; }
.tabs button { flex-shrink: 0; background: transparent; color: var(--muted); border-color: transparent; }
.tabs button[aria-selected="true"] { color: var(--green); background: #e5eddf; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); padding: 24px; }
.hero { background: var(--green); color: white; border: 0; }
.hero .muted, .hero .hint { color: #d3e0d2; }
.metric-label { font-size: .85rem; color: var(--muted); }
.hero .metric-label { color: #d3e0d2; }
.metric { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 650; letter-spacing: -.03em; margin: 8px 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.metric small { font-size: .85rem; font-weight: 400; margin-left: 6px; }
.space { margin-top: 20px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.notice { padding: 14px 18px; border-radius: 10px; background: #fff1d7; color: #704f1d; border: 1px solid #ead7af; margin-bottom: 18px; overflow-wrap: anywhere; }
.notice.error { color: #852c25; background: #ffede7; border-color: #edc3b7; }
.notice.success { color: var(--green); background: #e5efdf; border-color: #cadac0; }
.badge { display: inline-block; background: var(--pale); color: var(--green); padding: 3px 9px; border-radius: 5px; font-size: .8rem; white-space: nowrap; }
.table-scroll { overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 90px; }
th { background: #edf1e8; color: var(--muted); font-weight: 500; white-space: nowrap; }
td { overflow-wrap: anywhere; max-width: 320px; }
td .actions { flex-wrap: nowrap; }
tr:last-child td { border-bottom: 0; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin: 16px 0; }
label { display: block; margin-bottom: 14px; font-size: .9rem; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; background: white; color: var(--ink); border: 1px solid #b9c8b8; border-radius: 7px; padding: 10px 12px; }
input:read-only { background: #f0f2ed; }
textarea { min-height: 80px; resize: vertical; }
.login-panel { max-width: 560px; margin: 36px auto; padding: 36px; }
.login-panel h1 { margin-top: 18px; }
.login-panel .actions { margin-top: 24px; }
.subtle-line { border-top: 1px solid var(--line); margin: 22px 0; }
.search { display: flex; gap: 10px; align-items: end; }
.search label { flex: 1; margin: 0; }
.search input { max-width: 400px; }
.stat-list { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 16px; color: var(--muted); font-size: .9rem; }
.rules { max-width: 780px; }
.rules p { margin-bottom: 20px; }
.code { font-family: ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
dialog { width: min(520px, calc(100% - 32px)); padding: 28px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); box-shadow: 0 20px 100px #132b2240; }
dialog::backdrop { background: #17291d66; }
dialog .actions { justify-content: flex-end; margin-top: 24px; }
dialog p { white-space: pre-line; overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .8rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.loading { padding: 40px 0; color: var(--muted); }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 28px); }
  .header-row { min-height: 78px; align-items: flex-start; padding: 16px 0; }
  .brand { font-size: 1rem; white-space: nowrap; }
  .identity { justify-content: flex-end; font-size: .75rem; gap: 5px; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .intro { align-items: flex-start; flex-direction: column; gap: 10px; }
  .login-panel { margin: 12px auto; }
  .tabs { gap: 0; }
  .tabs button { padding: .6rem .8rem; }
  .search { align-items: stretch; flex-direction: column; }
}
