:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  --bg: #0d1016;
  --panel: #161c25;
  --panel-2: #1d2430;
  --ink: #f4f1ea;
  --muted: #aab1bd;
  --line: #2b3442;
  --red: #db6250;
  --gold: #d7a45b;
  --blue: #4f83c2;
  --green: #4b8f78;
  --shadow: 0 18px 42px rgba(0, 0, 0, .34);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(79,131,194,.18), transparent 32%),
    radial-gradient(circle at top right, rgba(219,98,80,.14), transparent 24%),
    linear-gradient(180deg, #11161f, var(--bg));
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
h1,h2,h3,p { margin-top: 0; }
button,input,select { font: inherit; }

.header {
  padding: 18px 0 0;
}
.header-bar,.mini-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 66px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 12px;
  background: rgba(14,18,25,.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.mini-header { margin-top: 16px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.18rem;
  font-weight: 950;
  white-space: nowrap;
}
.brand::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--gold));
}
.nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
}
.nav a,.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 900;
}
.nav a.active,.nav a:hover {
  color: #fff;
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
}
.header-action {
  color: #fff;
  background: linear-gradient(135deg, var(--red), #c94d40);
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(320px, .84fr) minmax(0, 1.16fr);
  gap: 16px;
  width: min(1380px, calc(100% - 32px));
  margin: 16px auto 0;
}
.hero-copy,.hero-poster,.channel-board,.rank-panel,.strip-panel,.fresh-panel,.collection,.section,.page-title,.filters,.detail-cover,.detail-copy,.footer {
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)), var(--panel);
  box-shadow: var(--shadow);
}
.hero-copy {
  padding: 28px;
  min-height: 390px;
}
.hero-copy h1 {
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: .92;
  letter-spacing: 0;
}
.hero-copy p,.section-head p,.tile-copy p,.page-title p,.detail-copy p,.footer p {
  color: var(--muted);
  line-height: 1.6;
}
.label {
  margin-bottom: 10px;
  color: var(--gold);
  font-weight: 950;
}
.home-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 22px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
}
.home-search input,.home-search button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}
.home-search input {
  min-width: 0;
  padding: 0 14px;
  color: #fff;
  background: transparent;
}
.home-search button {
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), #b97c2b);
}

.hero-poster {
  min-height: 390px;
  overflow: hidden;
}
.hero-poster a {
  position: relative;
  display: block;
  height: 100%;
}
.hero-poster a::after,.cover::after,.detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(0,0,0,.86));
  pointer-events: none;
}
.hero-copy .button { margin-top: 10px; }
.hero-poster .hero-copy {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.hero-poster .hero-copy p {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
}
.hero-poster .hero-copy h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 4rem);
}
.hero-poster .hero-copy span {
  color: rgba(255,255,255,.92);
  font-weight: 900;
}

main {
  display: grid;
  gap: 16px;
  width: min(1380px, calc(100% - 32px));
  margin: 16px auto 0;
}
.channel-board,.rank-panel,.strip-panel,.fresh-panel,.collection,.section { padding: 18px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.section-head h2 { margin-bottom: 3px; font-size: 1.18rem; }
.section-head a,#resultCount { color: var(--gold); font-weight: 950; }

.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.channel {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 112px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}
.channel img { height: 92px; border-radius: 10px; }
.channel b,.channel small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.channel b { margin-bottom: 5px; font-size: 1rem; white-space: nowrap; }
.channel small { color: var(--muted); font-size: .78rem; line-height: 1.4; }

.feature-columns {
  display: grid;
  grid-template-columns: minmax(260px, .76fr) minmax(0, 1.18fr) minmax(250px, .7fr);
  gap: 16px;
}
.text-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  border-top: 1px solid var(--line);
}
.text-link span { color: var(--red); font-weight: 950; }
.text-link b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-link em { color: var(--gold); font-style: normal; font-weight: 950; }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.strip-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 96px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}
.strip-art {
  height: 80px;
  overflow: hidden;
  border-radius: 10px;
  background: #202837;
}
.strip-copy b,.strip-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.strip-copy b { margin-bottom: 5px; font-size: .9rem; line-height: 1.3; }
.strip-copy small { color: var(--muted); font-size: .75rem; line-height: 1.4; }

.collection.accent {
  background:
    linear-gradient(135deg, rgba(79,131,194,.10), rgba(215,164,91,.08)),
    var(--panel);
}
.collection-grid,.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.tile {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tile:hover {
  transform: translateY(-4px);
  border-color: rgba(215,164,91,.38);
  box-shadow: 0 16px 30px rgba(0,0,0,.32);
}
.cover {
  position: relative;
  aspect-ratio: 3 / 4.08;
  overflow: hidden;
  background: #202837;
}
.cover span {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15,17,22,.78);
  font-size: .72rem;
  font-weight: 950;
}
.tile-copy { padding: 10px; }
.tile-copy h3 {
  margin-bottom: 5px;
  min-height: 2.42em;
  font-size: .92rem;
  line-height: 1.25;
}
.tile-copy p {
  margin-bottom: 7px;
  font-size: .75rem;
  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; }

.page-title {
  padding: clamp(24px, 5vw, 52px);
}
.page-title h1 {
  margin-bottom: 10px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1;
}
.filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
}
.search-form { display: flex; gap: 8px; }
.search-form input,.search-form button,.filter-buttons button,.filters select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  color: #fff;
  font-weight: 900;
}
.search-form input { width: 100%; padding: 0 14px; }
.search-form button,.filter-buttons button,.filters select { padding: 0 14px; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.search-form button,.filter-buttons button:hover {
  background: var(--blue);
}

.detail {
  display: grid;
  grid-template-columns: minmax(260px, 350px) minmax(0,1fr);
  gap: 16px;
}
.detail-cover {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}
.detail-copy { padding: clamp(24px, 5vw, 54px); }
.detail-copy h1 {
  margin-bottom: 10px;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 1;
}
.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: 999px;
  color: #fff;
  background: var(--blue);
  font-weight: 950;
}

.footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(4, minmax(130px, .72fr));
  gap: 18px;
  width: min(1380px, calc(100% - 32px));
  margin: 16px auto 28px;
  padding: 22px;
}
.footer strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 1.18rem;
}
.footer h3 { margin-bottom: 9px; font-size: .95rem; }
.footer a {
  display: block;
  margin: 7px 0;
  color: var(--muted);
}
.footer a:hover { color: #fff; }
.footer-copy {
  padding: 14px;
  border: 1px solid rgba(219,98,80,.32);
  border-left: 5px solid var(--red);
  border-radius: 14px;
  background: rgba(219,98,80,.08);
}
.footer-copy h3 { color: #fff; }
.footer-copy p {
  margin-bottom: 6px;
  color: #e8d9d5;
  font-weight: 850;
}
.footer-copy p:first-of-type { font-weight: 950; }
.image-missing { outline: 2px solid var(--red); }

@media (max-width: 1240px) {
  .hero-band,.feature-columns,.detail { grid-template-columns: 1fr; }
  .channel-grid,.collection-grid,.mosaic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr; }
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .header-bar,.mini-header {
    grid-template-columns: 1fr;
    gap: 8px;
    width: calc(100% - 24px);
    padding: 12px 14px;
  }
  .nav { justify-content: start; }
  .hero-band,main,.footer { width: calc(100% - 24px); }
  .home-search,.quick-grid,.channel-grid,.collection-grid,.mosaic-grid,.footer { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-cover { min-height: auto; aspect-ratio: 2 / 2.8; }
}
