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

:root {
  --bg-primary: #2C3E50;
  --bg-primary-deep: #233240;
  --bg-section-a: #E67E22;
  --bg-section-b: #8E44AD;
  --bg-card: #F5F5F5;
  --border-card: #F1C40F;
  --accent: #2ECC71;
  --status-new: #E74C3C;
  --status-updating: #3498DB;
  --status-done: #95A5A6;
  --tag-genre: #1ABC9C;
  --tag-region: #F39C12;
  --tag-year: #9B59B6;
  --tag-quality: #3498DB;
  --tag-subtitle: #E67E22;
  --text-main: #ECF0F1;
  --text-dark: #2C3E50;
  --text-muted: #BDC3C7;
  --text-muted-on-light: #718093;
  --header-height: 64px;
  --container-width: 1200px;
  --radius-chamfer: 12px;
  --font-head: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans CJK SC', sans-serif;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.18);
  --shadow-lift: 0 8px 32px rgba(0, 0, 0, 0.24);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

address {
  font-style: normal;
}

#main-content {
  flex: 1;
}

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

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

.section {
  padding: 56px 0;
}

.section-sm {
  padding: 32px 0;
}

.text-muted {
  color: var(--text-muted);
}

.page-top-space {
  padding-top: calc(var(--header-height) + 32px);
}

.btn {
  display: inline-block;
  padding: 11px 24px;
  background: var(--bg-section-a);
  color: var(--text-dark);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: filter 0.2s ease, transform 0.2s var(--ease-out);
}

.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border: 2px solid rgba(236, 240, 241, 0.5);
  clip-path: none;
}

.btn-ghost:hover {
  border-color: var(--text-main);
  filter: none;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1100;
  background: var(--bg-section-a);
  color: var(--text-dark);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  padding: 10px 20px;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: top 0.25s var(--ease-out);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(35, 50, 64, 0.55), rgba(35, 50, 64, 0.12));
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.site-header[data-scrolled] {
  background: rgba(35, 50, 64, 0.94);
  border-bottom-color: rgba(241, 196, 15, 0.3);
  box-shadow: var(--shadow-soft);
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--bg-section-a), var(--border-card));
  z-index: 5;
  pointer-events: none;
  transition: width 0.1s linear;
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-height);
  position: relative;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  text-decoration: none;
  flex-shrink: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--bg-section-a);
  color: var(--text-main);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 17px;
  line-height: 1;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.brand-mark-highlight {
  color: var(--border-card);
}

.brand-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.05em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 16px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: auto;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-list a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 3px;
  background: var(--bg-section-a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-list a[aria-current="page"] {
  color: var(--border-card);
  background: rgba(230, 126, 34, 0.16);
}

.header-search {
  position: relative;
  flex-shrink: 0;
}

.search-input {
  width: 190px;
  padding: 7px 12px;
  background: rgba(236, 240, 241, 0.1);
  border: 1px solid rgba(236, 240, 241, 0.28);
  border-radius: 0;
  color: var(--text-main);
  font-size: 13px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--border-card);
  background: rgba(236, 240, 241, 0.16);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(236, 240, 241, 0.08);
  border: 1px solid rgba(236, 240, 241, 0.2);
  border-radius: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

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

.site-footer {
  margin-top: auto;
  background: var(--bg-primary-deep);
  border-top: 4px solid var(--bg-section-a);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 24px;
  width: 96px;
  height: 4px;
  background: var(--border-card);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 40px;
}

.footer-brand-panel {
  position: relative;
  background: var(--bg-section-a);
  color: var(--text-dark);
  padding: 26px 24px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.footer-brand {
  display: block;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.footer-tagline {
  margin-top: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(44, 62, 80, 0.75);
}

.footer-contact {
  display: grid;
  gap: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dark);
}

.footer-contact a {
  color: var(--text-dark);
  font-weight: 700;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-nav-col h4 {
  margin-bottom: 16px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--border-card);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--bg-section-a);
}

.footer-bottom {
  background: var(--bg-primary);
  border-top: 1px solid rgba(236, 240, 241, 0.12);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.section-head h2 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
}

.section-note {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-muted);
}

.seq-marker {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  color: var(--bg-section-a);
  letter-spacing: -0.02em;
  min-width: 0.8em;
}

.section-orange {
  background: var(--bg-section-a);
  color: var(--text-dark);
}

.section-orange h1,
.section-orange h2,
.section-orange h3,
.section-orange h4 {
  color: var(--text-dark);
}

.section-orange .seq-marker {
  color: var(--text-dark);
}

.section-orange .section-note,
.section-orange .text-muted {
  color: rgba(44, 62, 80, 0.72);
}

.section-purple {
  background: var(--bg-section-b);
  color: var(--text-main);
}

.section-purple .seq-marker {
  color: var(--border-card);
}

.section-purple .section-note,
.section-purple .text-muted {
  color: rgba(236, 240, 241, 0.62);
}

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

.card {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--border-card);
  color: var(--text-dark);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--bg-section-a);
}

.card-body {
  padding: 14px 16px 16px;
}

.card-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted-on-light);
  margin-bottom: 10px;
}

.corner-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 3px 9px;
  background: var(--status-new);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.corner-tag[data-status="updating"] {
  background: var(--status-updating);
  color: #fff;
}

.corner-tag[data-status="done"] {
  background: var(--status-done);
  color: var(--text-dark);
}

.image-frame {
  position: relative;
  display: block;
  background-color: var(--bg-primary-deep);
  background-image:
    linear-gradient(135deg, rgba(26, 188, 156, 0.25) 0%, transparent 40%),
    linear-gradient(225deg, rgba(142, 68, 173, 0.3) 0%, transparent 45%),
    linear-gradient(45deg, transparent 49%, rgba(241, 196, 15, 0.2) 50%, transparent 51%);
  background-size: 64px 64px, 80px 80px, 32px 32px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 2px solid var(--border-card);
}

.image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(44, 62, 80, 0.45));
  pointer-events: none;
}

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

.tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 92px;
  padding: 16px 14px;
  background: var(--bg-card);
  border-left: 5px solid var(--tag-genre);
  color: var(--text-dark);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.tile[data-tile="region"] {
  border-left-color: var(--tag-region);
}

.tile[data-tile="year"] {
  border-left-color: var(--tag-year);
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.tile[data-current] {
  background: var(--bg-section-a);
  color: var(--text-dark);
  border-left-color: var(--text-dark);
}

.tile-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted-on-light);
}

.tile[data-current] .tile-count {
  color: rgba(44, 62, 80, 0.75);
}

.entry-list {
  display: grid;
  gap: 0;
}

.entry-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(236, 240, 241, 0.12);
  text-decoration: none;
  color: var(--text-main);
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.entry-row:hover {
  background: rgba(236, 240, 241, 0.06);
  padding-left: 10px;
}

.entry-row:last-child {
  border-bottom: 0;
}

.entry-row .seq-marker {
  font-size: 22px;
  min-width: 36px;
}

.entry-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
}

.entry-meta {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.card .entry-row {
  color: var(--text-dark);
  border-bottom-color: rgba(44, 62, 80, 0.12);
}

.card .entry-row:hover {
  background: rgba(44, 62, 80, 0.06);
}

.card .entry-meta {
  color: var(--text-muted-on-light);
}

.section-orange .entry-row {
  color: var(--text-dark);
  border-bottom-color: rgba(44, 62, 80, 0.12);
}

.section-orange .entry-row:hover {
  background: rgba(44, 62, 80, 0.07);
}

.section-orange .entry-meta {
  color: rgba(44, 62, 80, 0.7);
}

.section-orange .entry-row .seq-marker {
  color: rgba(44, 62, 80, 0.55);
}

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

.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  background: var(--tag-genre);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.02em;
  transition: filter 0.2s ease;
}

.tag:hover {
  filter: brightness(1.12);
}

.tag[data-tag="region"] {
  background: var(--tag-region);
}

.tag[data-tag="year"] {
  background: var(--tag-year);
}

.tag[data-tag="quality"] {
  background: var(--tag-quality);
}

.tag[data-tag="subtitle"] {
  background: var(--tag-subtitle);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}

.status-badge[data-status="new"] {
  background: var(--status-new);
  color: #fff;
}

.status-badge[data-status="updating"] {
  background: var(--status-updating);
  color: #fff;
}

.status-badge[data-status="done"] {
  background: var(--status-done);
  color: var(--text-dark);
}

.status-badge[data-status="hot"] {
  background: var(--bg-section-a);
  color: var(--text-dark);
}

.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  animation: pulse-glow 1.8s ease-out infinite;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(46, 204, 113, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}

.metric-bar {
  height: 6px;
  background: rgba(236, 240, 241, 0.15);
  overflow: hidden;
}

.metric-bar > span {
  display: block;
  height: 100%;
  background: var(--status-updating);
}

.metric-bar[data-tone="accent"] > span {
  background: var(--accent);
}

.metric-bar[data-tone="orange"] > span {
  background: var(--bg-section-a);
}

.metric-bar[data-tone="purple"] > span {
  background: var(--bg-section-b);
}

.card .metric-bar {
  background: rgba(44, 62, 80, 0.18);
}

.section-orange .metric-bar {
  background: rgba(44, 62, 80, 0.2);
}

.index-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.index-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 5px 10px;
  background: rgba(236, 240, 241, 0.06);
  border: 1px solid rgba(236, 240, 241, 0.15);
  border-radius: 0;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.index-bar a:hover {
  background: var(--bg-section-a);
  color: var(--text-dark);
  border-color: var(--bg-section-a);
}

.index-bar a[aria-current="true"] {
  background: var(--border-card);
  color: var(--text-dark);
  border-color: var(--border-card);
}

.track-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-section-a) rgba(236, 240, 241, 0.1);
}

.track-scroll > * {
  flex: 0 0 220px;
  scroll-snap-align: start;
}

.track-scroll::-webkit-scrollbar {
  height: 4px;
}

.track-scroll::-webkit-scrollbar-track {
  background: rgba(236, 240, 241, 0.1);
}

.track-scroll::-webkit-scrollbar-thumb {
  background: var(--bg-section-a);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th {
  background: rgba(44, 62, 80, 0.6);
  color: var(--text-main);
  font-family: var(--font-head);
  font-weight: 800;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid var(--border-card);
}

.compare-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(236, 240, 241, 0.12);
  color: var(--text-main);
}

.compare-table tr:hover td {
  background: rgba(236, 240, 241, 0.04);
}

.card .compare-table th {
  background: var(--text-dark);
  color: var(--text-main);
  border-bottom-color: var(--border-card);
}

.card .compare-table td {
  color: var(--text-dark);
  border-bottom-color: rgba(44, 62, 80, 0.1);
}

.card .compare-table tr:hover td {
  background: rgba(44, 62, 80, 0.06);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  padding: 14px 0;
}

.breadcrumb a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--bg-section-a);
}

.breadcrumb a::after {
  content: '/';
  margin-left: 6px;
  color: var(--text-muted);
}

.breadcrumb span:last-child {
  color: var(--text-muted);
}

.content-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px;
}

.content-wrap h1,
.content-wrap h2,
.content-wrap h3,
.content-wrap h4 {
  font-family: var(--font-head);
  color: var(--text-main);
}

.content-wrap h1 {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
}

.content-wrap h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 44px 0 16px;
}

.content-wrap h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 36px 0 12px;
}

.content-wrap h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 8px;
}

.content-wrap p {
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 16px;
  color: var(--text-main);
}

.content-wrap ul,
.content-wrap ol {
  margin: 0 0 16px 20px;
}

.content-wrap li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: var(--text-main);
}

.content-wrap a {
  color: var(--tag-region);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-wrap a:hover {
  color: var(--bg-section-a);
}

.section-orange .content-wrap a {
  color: var(--text-dark);
  text-decoration: underline;
}

.expander-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px;
  background: rgba(236, 240, 241, 0.06);
  border: 1px solid rgba(236, 240, 241, 0.12);
  border-radius: 0;
  color: var(--text-main);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.expander-trigger:hover {
  background: rgba(236, 240, 241, 0.1);
}

.expander-trigger[aria-expanded="true"] {
  border-color: var(--bg-section-a);
}

.expander-trigger::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out), color 0.2s ease;
}

.expander-trigger[aria-expanded="true"]::after {
  transform: rotate(45deg);
  color: var(--bg-section-a);
}

.expander-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);
  border: 1px solid transparent;
  border-top: 0;
}

.expander-panel[data-open] {
  grid-template-rows: 1fr;
  border-color: rgba(236, 240, 241, 0.1);
}

.expander-panel > * {
  min-height: 0;
  overflow: hidden;
}

.expander-panel-inner {
  padding: 16px;
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.75;
}

.entry-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--bg-section-a);
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: calc(var(--header-height) + 3px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(35, 50, 64, 0.98);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease-out);
  }

  .site-nav[data-open] {
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    box-shadow: var(--shadow-lift);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 16px;
  }

  .nav-list a {
    padding: 14px 12px;
    font-size: 16px;
    border-bottom: 1px solid rgba(236, 240, 241, 0.08);
    text-shadow: none;
  }

  .nav-list a::after {
    display: none;
  }

  .nav-list a[aria-current="page"] {
    background: rgba(230, 126, 34, 0.24);
    color: var(--border-card);
  }

  .header-search {
    padding: 16px;
  }

  .search-input {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 40px;
  }

  .footer-brand-panel {
    grid-column: 1 / -1;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .seq-marker {
    font-size: 36px;
  }
}

@media (max-width: 520px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-brand-panel {
    padding: 22px 18px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 8px;
  }

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

  .site-header-inner {
    gap: 12px;
  }

  .brand-text {
    font-size: 18px;
  }

  .section {
    padding: 40px 0;
  }

  .entry-row {
    gap: 10px;
    padding: 10px 2px;
  }

  .entry-row .seq-marker {
    min-width: 28px;
    font-size: 18px;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .seq-marker {
    font-size: 30px;
  }
}

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