:root {
  --bg: #F5F0E6;
  --ink: #212121;
  --paper: #FFFFFF;
  --yellow: #FFD54F;
  --cyan: #26C6DA;
  --coral: #FF7043;
  --purple: #AB47BC;
  --red: #E53935;
  --green: #66BB6A;
  --gray: #BDBDBD;
  --blue: #1E88E5;
  --yellow-tag: #FDD835;
  --purple-tag: #8E24AA;
  --max: 1280px;
  --radius: 8px;
  --shadow: 6px 6px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
table { border-collapse: collapse; width: 100%; }

::selection { background: var(--yellow); color: var(--ink); }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

a[aria-current="page"] { font-weight: 900; }

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 200;
  display: inline-flex;
  padding: 8px 16px;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-300%);
  transition: transform 0.12s ease;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 4px solid var(--ink);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  text-decoration: none;
}

.brand-kicker {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--yellow);
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.header-batch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--bg);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
}

.nav-toggle-icon {
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: background-color 0.12s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.12s ease, top 0.12s ease;
}

.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { top: 0; transform: rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 4px 4px 0 rgba(33,33,33,0.25);
}

.nav-list {
  display: flex;
  gap: 2px;
}

.nav-list a {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.12s ease;
}

.nav-list a:hover { background: var(--yellow); }

.site-nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--yellow);
}

.header-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  margin-left: 4px;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 0.875rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.12s ease, transform 0.12s ease;
}

.header-search:hover {
  background: var(--cyan);
  transform: translate(-1px, -1px);
}

.header-progress {
  position: absolute;
  left: 0;
  bottom: 4px;
  height: 4px;
  width: 0;
  background: var(--red);
  z-index: 10;
}

.site-footer {
  background: var(--yellow);
  color: var(--ink);
  border-top: 4px solid var(--ink);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 24px;
  border-left: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}

.footer-brand .brand--footer .brand-kicker { color: var(--red); }
.brand--footer .brand-name { color: var(--ink); }

.footer-tagline {
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.footer-heading {
  margin-bottom: 12px;
  padding-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
}

.footer-nav ul { display: grid; gap: 8px; }

.footer-nav a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.footer-nav a:hover { border-bottom-color: var(--ink); }
.footer-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.footer-contact p { font-size: 0.9rem; font-weight: 600; margin-top: 4px; }

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.section { padding: 48px 24px; }
.section--yellow { background: var(--yellow); }
.section--cyan { background: var(--cyan); }
.section--coral { background: var(--coral); }
.section--purple { background: var(--purple); color: var(--paper); }
.section--paper { background: var(--paper); }

.paper-stack {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px 0;
  font-size: 0.875rem;
  font-weight: 700;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--red);
  font-weight: 900;
}

.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn--primary { background: var(--coral); }
.btn--yellow { background: var(--yellow); }
.btn--cyan { background: var(--cyan); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 20px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}

.card-title { font-size: 1.05rem; font-weight: 900; margin-bottom: 4px; }
.card-meta { font-size: 0.8125rem; font-weight: 700; color: #424242; }

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

.tile {
  display: flex;
  min-height: 110px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.tile:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.tile-count {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tile-label { font-weight: 800; letter-spacing: 0.02em; }
.tile--yellow { background: var(--yellow); }
.tile--cyan { background: var(--cyan); }
.tile--coral { background: var(--coral); }
.tile--purple { background: var(--purple); color: var(--paper); }
.tile--paper { background: var(--paper); }

.list-rows { border-top: 2px solid var(--ink); }

.list-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 2fr) minmax(100px, 1fr) minmax(100px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 8px;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  transition: background-color 0.12s ease;
}

.list-row:hover { background: var(--yellow); }
.list-row__title { font-weight: 800; }
.list-row__meta { font-size: 0.8125rem; font-weight: 600; color: #424242; }

.tag-group { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  transition: transform 0.12s ease;
}

.tag:hover { transform: translateY(-2px); }
.tag--yellow { background: var(--yellow-tag); }
.tag--blue { background: var(--blue); color: var(--paper); }
.tag--purple { background: var(--purple-tag); color: var(--paper); }
.tag--gray { background: var(--gray); }
.tag--lg { padding: 8px 14px; font-size: 1rem; }
.tag--sm { padding: 2px 8px; font-size: 0.75rem; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: var(--gray);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge--ok { background: var(--green); color: var(--ink); }
.status-badge--pending { background: var(--gray); color: var(--ink); }
.status-badge--new { background: var(--red); color: var(--paper); }

.index-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.index-number--yellow { background: var(--yellow); color: var(--ink); }

.metric-bar {
  display: block;
  height: 10px;
  background: rgba(33,33,33,0.12);
  border: 1px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}

.metric-bar__fill {
  display: block;
  height: 100%;
  width: var(--metric, 50%);
  background: var(--coral);
  border-radius: 999px;
}

.metric-bar__fill--cyan { background: var(--cyan); }
.metric-bar__fill--red { background: var(--red); }

.index-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.index-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
  font-size: 0.875rem;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.index-bar a:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--yellow);
}

.slider {
  display: block;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.slider__track {
  display: flex;
  gap: 16px;
  width: max-content;
}

.slider__item {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

.table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ink);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-table tbody tr:nth-child(even) { background: var(--bg); }
.data-table tbody tr:hover { background: var(--yellow); }

.timetable {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  border: 2px solid var(--ink);
  background: var(--ink);
}

.timetable__cell {
  min-height: 72px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  background: var(--paper);
}

.timetable__time {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #424242;
}

.timetable__value {
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.2;
}

.timetable__cell--yellow { background: var(--yellow); }
.timetable__cell--cyan { background: var(--cyan); }
.timetable__cell--coral { background: var(--coral); }
.timetable__cell--purple { background: var(--purple); color: var(--paper); }

.timeline {
  position: relative;
  margin: 0;
  padding-left: 24px;
  border-left: 3px solid var(--ink);
}

.timeline__item {
  position: relative;
  padding: 0 0 24px 20px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--ink);
}

.timeline__title { font-weight: 900; }
.timeline__meta { font-size: 0.8125rem; font-weight: 600; color: #424242; }

.layout-with-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}

.layout-side {
  position: sticky;
  top: 96px;
}

.image-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
}

.image-placeholder::before,
.image-placeholder::after {
  content: "";
  position: absolute;
  display: block;
}

.image-placeholder::before {
  width: 55%;
  height: 55%;
  top: -15%;
  right: -10%;
  background: var(--yellow);
  transform: rotate(18deg);
}

.image-placeholder::after {
  width: 35%;
  height: 35%;
  bottom: -8%;
  left: -8%;
  background: var(--cyan);
  transform: rotate(-12deg);
}

.image-placeholder > * { position: relative; z-index: 1; }

.image-placeholder--grid {
  background-color: rgba(38, 198, 218, 0.18);
  background-image: linear-gradient(var(--ink) 1px, transparent 1px), linear-gradient(90deg, var(--ink) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: center;
}

@media (max-width: 920px) {
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 16px;
    box-shadow: 6px 6px 0 var(--ink);
    padding: 12px;
    z-index: 200;
  }

  .site-nav[data-open] { display: flex; }

  .nav-toggle { display: inline-flex; }

  .nav-list {
    flex-direction: column;
    gap: 6px;
  }

  .nav-list li { width: 100%; }

  .nav-list a {
    display: block;
    text-align: center;
    padding: 10px;
  }

  .header-search {
    justify-content: center;
    width: 100%;
    margin: 8px 0 0;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-meta { grid-column: 1 / -1; }

  .layout-with-side { grid-template-columns: 1fr; }
  .layout-side { position: static; }
}

@media (max-width: 720px) {
  .header-inner { padding: 10px 16px; }
  .header-batch { display: none; }

  .section { padding: 32px 16px; }
  .container { width: min(100% - 24px, var(--max)); }

  .list-row {
    grid-template-columns: 36px 1fr;
    gap: 8px;
  }

  .list-row__meta { grid-column: 2; }

  .timetable { grid-template-columns: repeat(6, 1fr); }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 32px 20px 20px;
  }

  .footer-meta { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .card:hover,
  .tile:hover,
  .btn:hover,
  .header-search:hover,
  .index-bar a:hover {
    transform: none;
    box-shadow: 4px 4px 0 var(--ink);
  }
}
