:root {
  color-scheme: light;
  --ink: #16324f;
  --muted: #5d6d7e;
  --line: #c0d0d2;
  --panel: #fffefa;
  --page: #dfe9e8;
  --accent: #d76f5e;
  --accent-dark: #a9473c;
  --focus: #2a6f97;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-height: 1.5;
}

button,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 0.85rem;
  color: #fff;
  background: var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

.page-shell,
.site-footer {
  width: min(1440px, calc(100% - 2rem));
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 0.35rem;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2,
p {
  margin-top: 0;
}

.page-shell {
  position: relative;
  padding: 1.6rem 0 3rem;
}

.week-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.week-controls {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.week-picker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

select {
  min-width: 6.6rem;
  padding: 0.65rem 2rem 0.65rem 0.75rem;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  cursor: pointer;
}

.icon-button {
  display: inline-grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.icon-button:hover:not(:disabled) {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

button:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 55%, white);
  outline-offset: 3px;
}

.schedule-stage {
  position: relative;
  z-index: 1;
  padding: clamp(0.6rem, 2vw, 1rem);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 1.2rem 3rem rgba(22, 50, 79, 0.08);
}

.schedule-figure {
  margin: 0;
}

.schedule-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #c5d1dc;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 700px) {
  .week-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .week-controls {
    width: 100%;
    justify-content: space-between;
  }

  .week-picker {
    flex: 1;
    justify-content: center;
  }

  select {
    flex: 1;
    max-width: 10rem;
  }


  .site-footer {
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
