:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  --bg: #0a0d12;
  --panel: #121821;
  --panel-2: #171f2a;
  --ink: #f5f7fb;
  --muted: #9aa7b8;
  --line: rgba(255,255,255,.12);
  --gold: #f2c15b;
  --rose: #ff5f7a;
  --cyan: #65d6d1;
  --shadow: 0 22px 58px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(242,193,91,.12), transparent 310px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    #0a0d12;
  background-size: auto, 96px 96px;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
h1,h2,h3,p { margin-top: 0; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 66px;
  padding: 0 clamp(16px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(10,13,18,.88);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.24rem;
  font-weight: 950;
  color: var(--gold);
  white-space: nowrap;
}
.brand::before {
  content: "";
  width: 10px;
  height: 26px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--rose), var(--gold));
}
.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
}
.nav a,.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 900;
}
.nav a.active,.nav a:hover {
  color: var(--ink);
  border-color: rgba(242,193,91,.38);
  background: rgba(242,193,91,.14);
}
.pill {
  color: #091016;
  background: var(--gold);
}

.hero,.channels,.dashboard,.collection,.section,.page-title,.filters,.detail,.footer {
  width: min(1380px, calc(100% - 36px));
  margin: 22px auto 0;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(290px, .58fr);
  gap: 14px;
}
.hero-main {
  min-height: 0;
  aspect-ratio: 16 / 7.25;
  overflow: hidden;
  border: 1px solid rgba(242,193,91,.22);
  border-radius: 6px;
  background: #111822;
  box-shadow: var(--shadow);
}
.hero-main a { position: relative; display: block; height: 100%; }
.hero-main a::after,.cover::after,.detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(0,0,0,.82));
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  left: clamp(18px, 3vw, 40px);
  right: clamp(18px, 3vw, 40px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 2;
}
.hero-copy p {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 4px;
  color: #091016;
  background: var(--gold);
  font-weight: 950;
}
.hero-copy h1 {
  margin-bottom: 9px;
  font-size: clamp(2.2rem, 5vw, 5.6rem);
  line-height: .94;
  letter-spacing: 0;
}
.hero-copy span { color: rgba(255,255,255,.86); font-weight: 950; }
.hero-side {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.channels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.channel {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
}
.channel img {
  height: 74px;
  border-radius: 4px;
}
.channel b,.channel small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel b { font-size: 1rem; }
.channel small { margin-top: 5px; color: var(--muted); }

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.list-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: 0 16px 38px rgba(0,0,0,.26);
}
.list-panel.accent {
  background: linear-gradient(135deg, rgba(101,214,209,.13), rgba(18,24,33,1));
}
.list-panel h2 {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 1.12rem;
}
.text-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  border-top: 1px solid var(--line);
}
.text-link span { color: var(--rose); font-weight: 950; }
.text-link b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.text-link em {
  color: var(--cyan);
  font-style: normal;
  font-weight: 950;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.section-head h2 { margin-bottom: 3px; font-size: 1.35rem; }
.section-head p,.tile-copy p,.page-title p,.detail-copy p,.footer p {
  color: var(--muted);
  line-height: 1.64;
}
.section-head a,#resultCount {
  color: var(--gold);
  font-weight: 950;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.feature-tile { grid-column: span 2; grid-row: span 2; }
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 10px;
}
.tile {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(242,193,91,.48);
  box-shadow: 0 14px 34px rgba(0,0,0,.34);
}
.side-tile { min-height: 0; }
.side-tile a {
  display: grid;
  grid-template-columns: 1fr;
  height: 100%;
  position: relative;
}
.cover {
  position: relative;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  background: #151c26;
}
.feature-tile .cover { aspect-ratio: 16 / 10.5; }
.hero-side .side-tile .cover {
  height: 100%;
  aspect-ratio: auto;
}
.cover span {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 4px 7px;
  border-radius: 4px;
  color: #081017;
  background: var(--gold);
  font-size: .72rem;
  font-weight: 950;
}
.tile-copy {
  padding: 9px;
}
.tile-copy h3 {
  margin-bottom: 4px;
  min-height: 2.42em;
  font-size: .94rem;
  line-height: 1.21;
}
.tile-copy p {
  margin-bottom: 7px;
  font-size: .76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile-copy div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: .73rem;
}
.tile-copy b { color: var(--gold); }
.tile-copy em { font-style: normal; }
.hero-side .side-tile .tile-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 46px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.9));
}
.hero-side .side-tile .tile-copy h3 {
  min-height: auto;
  font-size: 1.12rem;
}

.page-title {
  padding: clamp(30px, 5vw, 68px);
  border: 1px solid rgba(242,193,91,.24);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(242,193,91,.18), rgba(255,95,122,.09), rgba(18,24,33,.96));
  box-shadow: var(--shadow);
}
.label {
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 950;
}
.page-title h1 {
  margin-bottom: 10px;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: .98;
}
.filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}
.search-form { display: flex; gap: 8px; }
.search-form input,.search-form button,.filter-buttons button,.filters select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d1219;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
}
.search-form input { width: 100%; padding: 0 13px; }
.search-form button,.filter-buttons button,.filters select { padding: 0 12px; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.search-form button,.filter-buttons button:hover {
  color: #081017;
  background: var(--gold);
}

.detail {
  display: grid;
  grid-template-columns: minmax(280px, 410px) minmax(0,1fr);
  gap: 16px;
  align-items: stretch;
}
.detail-cover {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 6px;
  background: #151c26;
  box-shadow: var(--shadow);
}
.detail-copy {
  padding: clamp(24px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.detail-copy h1 {
  margin-bottom: 10px;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: .98;
}
.origin { font-weight: 950; color: var(--gold); }
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.badges span {
  padding: 7px 10px;
  border-radius: 4px;
  color: #081017;
  background: var(--gold);
  font-weight: 950;
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 6px;
  color: #081017;
  background: var(--cyan);
  font-weight: 950;
}

.footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(130px, .65fr));
  gap: 20px;
  margin-bottom: 26px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}
.footer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 1.18rem;
}
.footer h3 { margin-bottom: 9px; font-size: .95rem; }
.footer a {
  display: block;
  margin: 7px 0;
  color: var(--muted);
}
.image-missing { outline: 2px solid #ff3355; }

@media (max-width: 1080px) {
  .hero,.dashboard,.detail { grid-template-columns: 1fr; }
  .hero-main { aspect-ratio: 16 / 9; }
  .hero-side { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .hero-side .side-tile .cover { height: auto; aspect-ratio: 16 / 8.2; }
  .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-tile { grid-column: span 2; grid-row: auto; }
  .filters { grid-template-columns: 1fr; }
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .header { grid-template-columns: 1fr; gap: 8px; padding: 12px 16px; }
  .nav { justify-content: start; }
  .hero,.channels,.dashboard,.collection,.section,.page-title,.filters,.detail,.footer { width: calc(100% - 24px); }
  .hero-main { aspect-ratio: 16 / 11; }
  .hero-side,.channels,.collection-grid,.footer { grid-template-columns: 1fr; }
  .feature-tile { grid-column: auto; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-cover { min-height: auto; aspect-ratio: 2 / 2.8; }
}
