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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-y: scroll; }

body {
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #111111;
  background: #2C3E50;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul, ol { list-style: none; }

:root {
  --bg-deep: #2C3E50;
  --bg-green: #1F4E3D;
  --card-warm: #F8F1E4;
  --card-orange: #FCE4D6;
  --accent-yellow: #F4D03F;
  --accent-coral: #E74C3C;
  --status-updated: #1ABC9C;
  --status-hot: #9B59B6;
  --status-expired: #BDC3C7;
  --text-dark: #111111;
  --text-light: #FFFFFF;
  --border-light: #ECF0F1;
  --text-muted: rgba(255, 255, 255, 0.72);
  --line-soft: rgba(255, 255, 255, 0.14);
  --shadow-main: rgba(0, 0, 0, 0.25);
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Arial Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --container: 1240px;
  --cut-small: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  --cut-corner: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  --ease: 150ms ease;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; font-weight: 900; }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--accent-yellow);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  clip-path: var(--cut-small);
  transition: top 150ms ease;
}
.skip-link:focus { top: 10px; }

.section { padding-block: 48px; background: var(--bg-deep); }
.section--alt { background: var(--bg-green); }

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 100;
  background: var(--bg-green);
  color: var(--text-light);
  border-bottom: 3px solid rgba(0, 0, 0, 0.3);
}

.site-progress {
  height: 3px;
  background: rgba(0, 0, 0, 0.35);
  position: relative;
}
.site-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent-coral);
  transition: width 80ms linear;
}

.site-header__accent {
  height: 6px;
  background: linear-gradient(90deg, var(--accent-yellow) 0%, var(--accent-yellow) 68%, var(--accent-coral) 68%, var(--accent-coral) 100%);
}

.site-masthead {
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 8px, transparent 8px 16px);
}

.site-masthead__inner {
  position: relative;
  text-align: center;
  padding-top: 28px;
  padding-bottom: 22px;
}

.site-masthead__edition {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  color: var(--accent-yellow);
  border: 1px solid rgba(244, 208, 63, 0.45);
  background: rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-light);
  transition: opacity 150ms ease;
}
.site-brand:hover { opacity: 0.88; }

.site-brand__emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--accent-yellow);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  clip-path: var(--cut-small);
  flex-shrink: 0;
}

.site-brand__text { text-align: left; }

.site-brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.08em;
  color: var(--accent-yellow);
  white-space: nowrap;
}

.site-brand__tagline {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 5px;
  padding: 9px 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}
.nav-toggle:hover { background: rgba(0, 0, 0, 0.4); }
.nav-toggle[aria-expanded="true"] { border-color: var(--accent-yellow); }

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-light);
  transition: transform 150ms ease, opacity 150ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid var(--line-soft);
}

.site-nav__inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: color 150ms ease, background 150ms ease;
}
.site-nav__link::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  background: var(--accent-yellow);
  transform: scaleX(0);
  transition: transform 150ms ease;
}
.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  background: rgba(244, 208, 63, 0.1);
  color: var(--accent-yellow);
}
.site-nav__link:hover::before,
.site-nav__link[aria-current="page"]::before { transform: scaleX(1); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-deep);
  border-top: 4px solid var(--accent-yellow);
  position: relative;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1.6fr 1.6fr 1.4fr;
  gap: 36px;
  padding-top: 44px;
  padding-bottom: 44px;
}

.site-footer__brand { display: flex; flex-direction: column; gap: 12px; }

.site-footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  text-decoration: none;
  transition: opacity 150ms ease;
}
.site-footer__brand-link:hover { opacity: 0.85; }

.site-brand__emblem--footer {
  width: 34px;
  height: 34px;
  font-size: 16px;
}

.site-footer__brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--accent-yellow);
}

.site-footer__tagline {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.site-footer__heading {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-yellow);
  text-transform: uppercase;
}

.site-footer__nav-list {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 7px 28px;
  align-content: start;
}

.site-footer__nav-link,
.site-footer__legal-link {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: none;
  transition: color 150ms ease;
}
.site-footer__nav-link:hover,
.site-footer__legal-link:hover { color: var(--accent-yellow); }

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.site-footer__bottom {
  background: var(--text-dark);
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer__copyright,
.site-footer__icp {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  background: var(--accent-yellow);
  color: var(--text-dark);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  clip-path: var(--cut-corner);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--accent-coral); color: var(--text-light); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  clip-path: var(--cut-corner);
  transition: filter 150ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn:hover { filter: brightness(0.92); }
.btn:active { filter: brightness(1.05); }

.btn--primary { background: var(--accent-yellow); color: var(--text-dark); }
.btn--ghost { background: transparent; color: var(--text-light); border-color: var(--text-light); }
.btn--ghost:hover { background: var(--text-light); color: var(--text-dark); }
.btn--coral { background: var(--accent-coral); color: var(--text-light); }

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
  font-size: 14px;
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__item:not(:last-child)::after { content: "/"; color: var(--status-expired); }
.breadcrumb__link { color: var(--accent-yellow); text-decoration: none; }
.breadcrumb__link:hover { text-decoration: underline; }
.breadcrumb__current { color: rgba(255, 255, 255, 0.72); }

/* ---------- Card Grid ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  background: var(--card-warm);
  color: var(--text-dark);
  padding: 20px 18px;
  border-top: 4px solid var(--accent-yellow);
  clip-path: var(--cut-corner);
  transition: transform 150ms ease, filter 150ms ease;
}
.card:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.3));
}
.card--alt { background: var(--card-orange); border-top-color: var(--accent-coral); }
.card--deep { background: var(--bg-deep); color: var(--text-light); border-top-color: var(--accent-coral); }
.card__title { font-size: 17px; font-weight: 900; margin-bottom: 6px; }
.card__meta { font-size: 13px; color: rgba(17, 17, 17, 0.62); margin-bottom: 10px; }
.card--deep .card__meta { color: rgba(255, 255, 255, 0.6); }
.card__body { font-size: 14px; line-height: 1.6; }

/* ---------- Tile Matrix ---------- */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 14px;
  background: var(--card-warm);
  color: var(--text-dark);
  text-decoration: none;
  clip-path: var(--cut-corner);
  transition: transform 150ms ease, filter 150ms ease;
}
.tile:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.28));
}
.tile__label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; }
.tile__count { font-family: var(--font-display); font-size: 24px; font-weight: 900; line-height: 1; }
.tile--yellow { background: var(--accent-yellow); color: var(--text-dark); }
.tile--coral { background: var(--accent-coral); color: var(--text-light); }
.tile--green { background: var(--bg-green); color: var(--text-light); }

/* ---------- List Rows ---------- */

.list-rows {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--accent-yellow);
}

.list-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: var(--card-warm);
  border-bottom: 1px solid var(--border-light);
  transition: background 150ms ease;
}
.list-row:hover { background: var(--card-orange); }

.list-row__index {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--accent-coral);
  line-height: 1;
}

.list-row__main {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
}

.list-row__meta {
  font-size: 13px;
  color: rgba(17, 17, 17, 0.6);
  text-align: right;
}

/* ---------- Tags ---------- */

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

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  background: var(--bg-deep);
  color: var(--text-light);
  text-decoration: none;
  clip-path: var(--cut-small);
  transition: background 150ms ease, color 150ms ease;
}
.tag:hover { background: var(--accent-yellow); color: var(--text-dark); }
.tag--updated { background: var(--status-updated); color: var(--text-dark); }
.tag--updated:hover { background: var(--accent-yellow); }
.tag--hot { background: var(--status-hot); color: var(--text-light); }
.tag--expired { background: var(--status-expired); color: var(--text-dark); }

/* ---------- Badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  clip-path: var(--cut-small);
}
.badge--updated { background: var(--status-updated); color: var(--text-dark); }
.badge--hot { background: var(--status-hot); color: var(--text-light); }
.badge--expired { background: var(--status-expired); color: var(--text-dark); }

/* ---------- Metric Bars ---------- */

.metric-bar {
  display: block;
  height: 8px;
  background: rgba(17, 17, 17, 0.12);
  overflow: hidden;
}
.metric-bar__fill {
  display: block;
  height: 100%;
  background: var(--accent-coral);
  min-width: 2px;
}

/* ---------- Index Bars ---------- */

.index-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.index-bar__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 5px 9px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  text-decoration: none;
  clip-path: var(--cut-small);
  transition: background 150ms ease, color 150ms ease;
}
.index-bar__link:hover,
.index-bar__link[aria-current="true"] { background: var(--accent-yellow); color: var(--text-dark); }

/* ---------- Scroll Rail ---------- */

.scroll-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: x mandatory;
}
.scroll-rail__item {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

/* ---------- Data Table ---------- */

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-warm);
  color: var(--text-dark);
  font-size: 14px;
}
.data-table th,
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}
.data-table th {
  background: var(--bg-deep);
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.data-table tbody tr { transition: background 150ms ease; }
.data-table tbody tr:hover { background: var(--card-orange); }

/* ---------- Image Containers ---------- */

.visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(244, 208, 63, 0.08) 0%, transparent 55%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 10px, transparent 10px 20px),
    var(--bg-deep);
  overflow: hidden;
}
.visual--wide { aspect-ratio: 16 / 9; }
.visual--square { aspect-ratio: 1 / 1; }
.visual--tall { aspect-ratio: 3 / 4; }

/* ---------- Decorative ---------- */

.vector-line {
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent-yellow) 0 10px, transparent 10px 20px);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .site-masthead__inner { text-align: center; padding-top: 22px; padding-bottom: 18px; }
  .site-brand__name { font-size: 22px; letter-spacing: 0.04em; }
  .site-masthead__edition { display: none; }

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-deep);
    border-top: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
  }
  .site-nav[data-open] { display: block; }

  .site-nav__inner {
    flex-direction: column;
    padding: 8px 16px 16px;
  }
  .site-nav__link {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line-soft);
  }
  .site-nav__link::before { display: none; }

  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__nav-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .list-row { grid-template-columns: 36px 1fr; }
  .list-row__meta { grid-column: 2; text-align: left; }
  .site-footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .back-to-top { right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .site-progress__bar { transition: none; }
  .back-to-top { transition: none; }
}
