:root {
  --ink: #12325f;
  --forest: #2c73d2;
  --forest-dark: #0043b0;
  --paper: #fbfdff;
  --warm: #edf6ff;
  --orange: #538def;
  --line: #cbdcf1;
  --muted: #607593;
  --danger: #a63a2e;
}
* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { max-width: 100%; overflow-x: hidden; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: linear-gradient(90deg, #edf6ff 0 46%, #2c73d2 46% 76%, #0043b0 100%); font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
button, input { font: inherit; }
button { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
[hidden] { display: none !important; }
.site-header { height: 76px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(83,141,239,.18); background: rgba(251,253,255,.96); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid var(--orange); color: var(--orange); font: 25px "STKaiti", serif; transform: rotate(-3deg); }
.brand b, .brand small { display: block; }
.brand b { font: 700 19px "STSong", "SimSun", serif; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 8px; letter-spacing: .14em; }
.admin-entry { width: max-content; margin: 18px auto 0; display: block; color: var(--muted); font-size: 12px; text-underline-offset: 4px; }
.admin-entry:hover { color: var(--forest); }
.query-page { width: min(1180px, calc(100% - 40px)); min-height: 100vh; margin: 0 auto; padding: 60px 0 80px; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 70px; align-items: center; }
.eyebrow, .kicker { margin: 0 0 14px; color: var(--orange); font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.query-intro h1 { margin: 0; font: 700 58px/1.16 "STSong", "SimSun", serif; letter-spacing: 0; }
.query-intro h1 span, .query-intro h1 em { display: block; white-space: nowrap; }
.page-mascot { width: min(260px, 72%); max-height: 210px; margin: 0 auto 24px; display: block; object-fit: contain; object-position: center; border: 0; outline: 0; color: transparent; background: transparent; box-shadow: none; filter: none; }
.query-intro h1 em { color: var(--forest); font-style: normal; }
.query-intro > p:not(.eyebrow) { max-width: 430px; margin: 28px 0 34px; color: #53645d; font-size: 15px; line-height: 1.9; }
.query-notes { display: flex; flex-wrap: wrap; gap: 18px; }
.query-notes span { color: var(--muted); font-size: 12px; }
.query-notes b { margin-right: 6px; color: var(--orange); font-family: Georgia, serif; }
.query-panel { min-width: 0; margin-left: 48px; padding: 42px; border-top: 5px solid var(--orange); border-radius: 5px; background: var(--paper); box-shadow: 0 28px 80px rgba(12,35,28,.25); }
#query-form { width: 100%; min-width: 0; max-width: 100%; }
.panel-heading { margin-bottom: 30px; display: flex; align-items: center; justify-content: space-between; }
.panel-heading h2, .results h2 { margin: 0; font: 700 32px "STSong", "SimSun", serif; }
.panel-seal { width: 50px; height: 50px; display: grid; place-items: center; border: 2px solid var(--orange); color: var(--orange); font: 26px "STKaiti", serif; transform: rotate(4deg); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { min-width: 0; margin: 0; display: grid; gap: 8px; }
.field > span, .date-range legend { font-size: 12px; font-weight: 800; }
input { display: block; width: 100%; min-width: 0; max-width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px; outline: none; color: var(--ink); background: #faf8f2; }
input[type="date"] { display: block; width: 100%; min-width: 0; max-width: 100%; inline-size: 100%; min-inline-size: 0; max-inline-size: 100%; -webkit-appearance: none; appearance: none; line-height: normal; }
input[type="date"]::-webkit-date-and-time-value { width: 100%; min-width: 0; min-height: 48px; line-height: 48px; padding: 0; text-align: left; }
input[type="date"]::-webkit-datetime-edit { display: flex; width: 100%; min-width: 0; min-height: 48px; align-items: center; overflow: hidden; padding: 0; }
input:focus { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(83,141,239,.16); background: white; }
.date-range { width: 100%; min-width: 0; max-width: 100%; min-inline-size: 0; max-inline-size: 100%; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); gap: 10px; align-items: end; border: 0; }
.date-range > .field { width: 100%; min-width: 0; max-width: 100%; overflow: hidden; }
.date-range legend { margin-bottom: 9px; }
.date-divider { height: 48px; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.form-error { min-height: 19px; margin: 12px 0 7px; color: var(--danger); font-size: 12px; }
#query-button { width: 100%; height: 54px; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; border: 0; border-radius: 4px; color: white; background: var(--forest); font-weight: 800; cursor: pointer; }
#query-button:hover { background: var(--forest-dark); }
#query-button:disabled { opacity: .55; cursor: wait; }
.results { grid-column: 1 / -1; margin-top: 4px; scroll-margin-top: 24px; border-top: 5px solid var(--orange); border-radius: 5px; overflow: hidden; background: var(--paper); box-shadow: 0 24px 65px rgba(12,35,28,.2); }
.results-heading { padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #e9e3d8; }
#result-period { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.result-summary { display: flex; gap: 10px; }
.result-summary span { min-width: 120px; padding: 12px 15px; color: var(--muted); background: var(--warm); font-size: 12px; }
.result-summary b { margin-right: 4px; color: var(--ink); font: 700 23px Georgia, serif; }
.result-summary .total { color: white; background: var(--forest); }
.result-summary .total b { color: white; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 680px; border-collapse: collapse; }
th { padding: 13px 24px; color: var(--muted); background: #f7f4ed; font-size: 11px; text-align: left; }
td { padding: 16px 24px; border-top: 1px solid #eee9df; font-size: 13px; }
tbody tr:hover { background: #fbf8f1; }
.badge-count { display: inline-block; min-width: 54px; padding: 5px 9px; border-radius: 16px; color: var(--forest); background: #e1eee8; text-align: center; }
.empty-result { padding: 55px 20px; display: grid; gap: 8px; place-items: center; color: var(--muted); }
.empty-result b { color: var(--ink); }
@media (max-width: 860px) {
  body { background: linear-gradient(180deg, #edf6ff 0 60%, #74a8ff 60% 78%, #0043b0 100%); }
  .query-page { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .query-panel { margin-left: 0; }
  .query-intro { max-width: 650px; }
  .results { grid-column: 1; }
}
@media (max-width: 560px) {
  .query-page { width: min(100% - 24px, 1180px); min-height: 100vh; padding: 34px 0 50px; gap: 32px; }
  .query-intro { padding: 0 10px; }
  .query-intro h1 { font-size: clamp(34px, 10vw, 43px); }
  .query-panel { padding: 28px 20px; }
  .identity-grid { grid-template-columns: 1fr; gap: 16px; }
  .date-range { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); }
  input[type="date"] { width: 100%; min-width: 0; max-width: 100%; inline-size: 100%; height: 48px; padding-top: 0; padding-right: 8px; padding-bottom: 0; font-size: 16px; line-height: normal; }
  .date-divider { display: none; }
  .results-heading { align-items: stretch; flex-direction: column; }
  .result-summary { width: 100%; }
  .result-summary span { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.support-contact { margin-top: 18px; color: var(--muted); font-size: 13px; }
.support-contact b { color: var(--forest); font-family: Consolas, monospace; }
[class="support-watermark"] {
  position: fixed;
  right: 10px;
  bottom: 8px;
  z-index: 50;
  color: rgba(90, 98, 94, 0.42);
  font-size: 11px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
