:root {
  color-scheme: light;
  --bg: #f3f6fa;
  --text: #1e2a38;
  --muted: #6a7788;
  --line: #dfe7ef;
  --panel: #ffffff;
  --blue: #2488bd;
  --blue-dark: #27598d;
  --yellow: #e7c94a;
  --green: #25c46f;
  --red: #db304d;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

button {
  font: inherit;
}

.page {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.status {
  min-width: 176px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-align: right;
  box-shadow: 0 8px 22px rgba(31, 58, 88, 0.07);
}

.status span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.status strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
}

.notice {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(31, 58, 88, 0.06);
}

.notice-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #eaf6fb;
  color: var(--blue);
  font-size: 26px;
  font-weight: 900;
}

.notice p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
}

.time-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px 0 16px;
}

.time-tabs button {
  min-width: 74px;
  height: 40px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: #2d3a48;
  font-size: 18px;
  cursor: pointer;
}

.time-tabs button:hover {
  background: #e9f0f7;
}

.time-tabs .active {
  background: var(--blue-dark);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(39, 89, 141, 0.24);
}

.copy-all-bar {
  display: flex;
  justify-content: center;
  margin: 0 0 18px;
}

.history-box {
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(31, 58, 88, 0.06);
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.history-head h2 {
  margin: 0;
  font-size: 24px;
}

.history-head p,
.history-day p {
  margin: 6px 0 0;
  color: var(--muted);
}

.history-controls {
  display: flex;
  gap: 10px;
}

.history-controls input,
.history-controls button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  padding: 0 12px;
}

.history-controls button {
  border: 0;
  background: var(--blue-dark);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.history-result {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.history-day {
  display: grid;
  gap: 10px;
}

.history-day h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 21px;
}

.content {
  display: grid;
  gap: 28px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(31, 58, 88, 0.06);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 28px 14px;
  border-bottom: 3px solid var(--blue);
}

.panel[data-accent="yellow"] .panel-head {
  border-bottom-color: var(--blue);
}

.panel h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.meta {
  margin: 8px 0 0;
  color: #4c97ad;
  font-size: 15px;
  font-weight: 700;
  word-break: break-all;
}

.copy-button {
  min-width: 118px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #3ee184, var(--green));
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 9px 18px rgba(37, 196, 111, 0.25);
}

.groups {
  display: grid;
  gap: 20px;
  padding: 26px 28px 30px;
}

.group {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: start;
  gap: 14px;
}

.group h3 {
  margin: 11px 0 0;
  color: var(--blue);
  font-size: 19px;
  line-height: 1.2;
}

.items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 16px;
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(30, 42, 56, 0.08);
}

.panel[data-accent="yellow"] .item {
  border-left-color: var(--yellow);
}

.label {
  min-width: 0;
  color: #3d4b5b;
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.value {
  color: #101820;
  font-size: 21px;
  line-height: 1.1;
}

.item.highlight .value {
  color: var(--red);
}

.error {
  padding: 22px;
  border: 1px solid #ffd1d9;
  border-radius: 8px;
  background: #fff5f7;
  color: #b21835;
  font-weight: 700;
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 20px, 1240px);
    padding-top: 16px;
  }

  .topbar,
  .history-head,
  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .history-controls {
    flex-direction: column;
  }

  .status {
    width: 100%;
    text-align: left;
  }

  .time-tabs {
    justify-content: flex-start;
    gap: 8px;
  }

  .time-tabs button {
    min-width: 64px;
    height: 36px;
    font-size: 15px;
  }

  .panel-head,
  .groups {
    padding-left: 14px;
    padding-right: 14px;
  }

  .panel h2 {
    font-size: 25px;
  }

  .group {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .group h3 {
    margin-top: 0;
  }

  .items {
    grid-template-columns: 1fr;
  }
}
