/* sport-feed-web · Swiss / International 极简：强类型层级、网格、单一强调色、设计态。 */

:root {
  --ink: oklch(18% 0.01 260);
  --paper: oklch(97% 0.004 95);
  --surface: oklch(100% 0 0);
  --muted: oklch(55% 0.01 260);
  --line: oklch(88% 0.01 260);
  --accent: oklch(54% 0.2 256);          /* 钴蓝 */
  --accent-ink: oklch(99% 0 0);
  --accent-soft: oklch(94% 0.04 256);

  --text-h1: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  --space: clamp(1.5rem, 1rem + 2vw, 3rem);
  --radius: 4px;
  --dur: 160ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, "Helvetica Neue", "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main, .masthead, .colophon {
  max-width: 960px;
  margin-inline: auto;
  padding-inline: var(--space);
}

/* ── 报头 ───────────────────────────────────────────── */
.masthead {
  padding-top: clamp(2rem, 1rem + 4vw, 4.5rem);
  padding-bottom: var(--space);
  border-bottom: 2px solid var(--ink);
}
.kicker {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--accent);
}
.masthead h1 {
  margin: 0;
  font-size: var(--text-h1);
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.lede {
  margin: 0.9rem 0 0;
  max-width: 46ch;
  color: var(--muted);
}

/* ── 面板 ───────────────────────────────────────────── */
main { padding-block: var(--space); display: grid; gap: var(--space); }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
}
.panel--muted { background: var(--paper); border-style: dashed; }
.panel[hidden] { display: none; }
.panel h2 {
  margin: 0 0 1.4rem;
  font-size: 1.15rem;
  font-weight: 680;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
.step-no {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
}

/* ── 表单 ───────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem 1.25rem;
  align-items: end;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--grow { grid-column: 1 / -1; }
@media (min-width: 620px) { .field--grow { grid-column: span 2; } }
label { font-size: 0.82rem; font-weight: 620; color: var(--muted); }
input[type="text"], input:not([type]), select {
  font: inherit;
  padding: 0.7rem 0.85rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
input:focus-visible, select:focus-visible, .btn:focus-visible, .chip:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.86rem;
  color: var(--ink);
  cursor: pointer;
}
.toggle input { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; }

/* ── 按钮 ───────────────────────────────────────────── */
.btn {
  font: inherit;
  font-weight: 640;
  cursor: pointer;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  padding: 0.7rem 1.2rem;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
    color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: oklch(48% 0.2 256); }
.btn--primary:disabled { background: var(--muted); cursor: progress; }
.btn--ghost { background: transparent; color: var(--accent); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn--lg { padding: 0.85rem 1.6rem; margin-top: 1.4rem; }

.status { margin: 1rem 0 0; font-size: 0.88rem; min-height: 1.25rem; }
.status[data-tone="error"] { color: oklch(55% 0.2 25); }
.status[data-tone="busy"] { color: var(--muted); }

/* ── 选择条 + 公司 chip ─────────────────────────────── */
.select-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.count { font-variant-numeric: tabular-nums; font-weight: 680; color: var(--muted); }
.select-actions { display: flex; gap: 0.5rem; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chip:hover { transform: translateY(-1px); border-color: var(--accent); }
.chip[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.chip[aria-pressed="true"]::before { content: "✓"; font-size: 0.8em; }

.hint { margin: 1rem 0 0; font-size: 0.82rem; color: var(--muted); }

/* ── 页脚 ───────────────────────────────────────────── */
.colophon {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: var(--space);
  margin-top: auto;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.colophon a { color: var(--accent); text-decoration: none; }
.colophon a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .btn:active, .chip:hover { transform: none; }
}
