:root {
  color-scheme: light;
  --paper: #f6efe3;
  --cream: #fffbf3;
  --ink: #34271e;
  --muted: #68523f;
  --line: #d6c3ab;
  --accent: #874517;
  font: 16px/1.55 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .54; }
:focus-visible { outline: 3px solid #2d5480; outline-offset: 3px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: fixed; inset: 10px auto auto 10px; z-index: 10; padding: 10px; background: var(--cream); transform: translateY(-160%); }
.skip:focus { transform: none; }
.top { height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.top-link { font-size: .875rem; font-weight: 650; color: #734120; }
.hero { display: grid; grid-template-columns: 1.16fr 1fr; border-radius: 15px; overflow: hidden; background: #36271f; color: #fff4df; min-height: 232px; }
.hero-copy { padding: clamp(24px, 4.6vw, 54px); align-self: center; }
.kicker { color: var(--accent); margin: 0; font-weight: 750; font-size: .76rem; letter-spacing: .13em; }
.hero .kicker { color: #f3c686; }
h1, h2, p { margin-block: 0; }
h1 { font: 800 clamp(2.7rem, 5.4vw, 4.65rem)/1.2 "STZhongsong", "SimSun", "Songti SC", serif; letter-spacing: .055em; margin-block: 5px 12px; }
.hero-copy > p:not(.kicker) { max-width: 28em; color: #f1dfc9; }
.hero-link { display: inline-block; margin-top: 17px; color: #ffdf9e; font-weight: 700; font-size: .88rem; }
.hero-link:focus-visible { outline-color: #ffdf9e; }
.window { display: block; width: 100%; height: 100%; min-height: 232px; object-fit: cover; background: #a86b34; }
.window { overflow: hidden; }
.observation, .summary, .delivery { border: 1px solid var(--line); border-radius: 14px; background: var(--cream); padding: 23px clamp(14px, 2.8vw, 32px); }
.observation { margin-top: 21px; scroll-margin-top: 12px; }
.section-head, .fields, .actions, .legend, .footer { display: flex; align-items: center; }
.section-head { justify-content: space-between; gap: 10px; }
h2 { font: 800 clamp(1.45rem, 3vw, 2rem)/1.3 "STZhongsong", "SimSun", "Songti SC", serif; margin: 3px 0 10px; }
.badge { flex: none; align-self: flex-start; border: 1px solid #d8ab72; border-radius: 20px; padding: 4px 10px; color: #734120; background: #faebd2; font-size: .78rem; font-weight: 700; }
.fields { align-items: flex-end; flex-wrap: wrap; gap: 10px 16px; margin-top: 2px; }
.fields label, .delivery label { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); font-weight: 650; }
.fields label:first-child { width: min(100%, 213px); }
input, select { min-width: 0; width: 100%; padding: 6px 9px; min-height: 40px; border: 1px solid #ad9780; border-radius: 6px; background: #fffdf9; }
.actions { gap: 8px; flex-wrap: wrap; }
.actions button { min-height: 40px; padding: 6px 11px; font-size: .86rem; font-weight: 700; border: 1px solid #ad9780; border-radius: 6px; background: #fff9ee; }
.actions button:not(:disabled):hover { background: #f2e4cc; }
.help { font-size: .8rem; color: var(--muted); margin-top: 12px; }
.key-extra { margin-left: .35em; }
.legend { margin-top: 8px; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; }
.legend span { display: inline-flex; gap: 5px; align-items: center; }
.swatch { display: inline-block; width: 14px; height: 12px; border: 1px solid #806b54; border-radius: 2px; }
.slots { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.slot { border: 1px solid #927859; border-radius: 6px; min-width: 0; min-height: 49px; padding: 3px 0; display: grid; place-content: center; align-content: center; justify-items: center; }
.slot:hover { box-shadow: inset 0 0 0 1px currentColor; }
.slot-time { font: 650 .74rem/1.2 ui-monospace, Consolas, monospace; }
.slot-state { font-size: .78rem; font-weight: 750; }
.direct { background: #ce934a; color: #30200f; }
.diffuse { background: #eed5a1; color: #492f17; }
.dark { background: #514942; color: #fff7e8; }
.unknown { background: repeating-linear-gradient(135deg, #fbf6ed 0 5px, #f1e8da 5px 7px); color: #504132; }
.footnote { margin-top: 9px; }
.lower { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 16px; margin-top: 16px; }
.metrics { font-weight: 700; }
.metrics strong { font: 750 2.4rem/1.2 ui-monospace, Consolas, monospace; color: #874517; }
.metrics span { margin-inline: .3em; color: #a58a70; }
.ranges { margin-top: 6px; line-height: 1.8; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.secondary { font-size: .82rem; color: var(--muted); }
.summary .secondary, .delivery .secondary { margin-top: 7px; }
.offer { margin: 2px 0 5px; color: var(--accent); }
.offer strong { font-size: 1.55rem; }
.offer span { font-size: .81rem; color: var(--muted); margin-left: .55em; }
.delivery > p:not(.kicker, .offer, .secondary, .status, .error) { font-size: .9rem; }
.delivery-actions, .delivery label { margin-top: 10px; }
.actions .primary { background: #824517; color: #fff9ef; border-color: #824517; }
.actions .primary:not(:disabled):hover { background: #693610; }
.status, .error { font-size: .85rem; }
.status:not(:empty), .error:not([hidden]) { margin-top: 7px; }
.error { color: #782716; font-weight: 650; overflow-wrap: anywhere; }
.footer { justify-content: space-between; gap: 10px; padding-block: 18px; color: var(--muted); font-size: .75rem; }
@media (max-width: 770px) {
  .slots { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (max-width: 590px) {
  .wrap { width: calc(100% - 26px); }
  .top { height: 57px; }
  .brand img { width: 27px; height: 27px; }
  .hero, .lower { grid-template-columns: 1fr; }
  .hero-copy { padding: 22px; }
  .window { height: 154px; min-height: 0; }
  .slots { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .observation, .summary, .delivery { padding-block: 16px; }
  .fields label:first-child { width: auto; flex: 1 0 120px; }
  .fields label:nth-child(2) { flex: 1 1 135px; }
}
@media print {
  :root { background: white; }
  .top, .hero, .delivery, .actions, .footer { display: none; }
  .wrap { width: 100%; }
  .slots { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .slot { print-color-adjust: exact; }
}
