:root {
  --brand: #0891b2;
  --brand-deep: #0f766e;
  --brand-light: #67e8f9;
  --emerald: #059669;
  --ink: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0f172a;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #10b981);
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.28);
  font-size: 14px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  color: #334155;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.main-nav a:hover {
  color: #0e7490;
  background: #ecfeff;
}

.menu-toggle {
  display: none;
  border: 0;
  background: #ecfeff;
  color: #0e7490;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 22px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 20%, rgba(103, 232, 249, 0.34), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(16, 185, 129, 0.28), transparent 32%),
    linear-gradient(135deg, #0891b2 0%, #0f766e 52%, #059669 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  gap: 56px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #cffafe;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero h1 span {
  display: block;
  color: #a5f3fc;
}

.hero p {
  margin: 0 0 30px;
  max-width: 720px;
  font-size: 20px;
  color: #ecfeff;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary,
.btn-ghost,
.detail-actions a,
.filter-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 14px 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #0e7490;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover,
.detail-actions a:hover,
.filter-panel button:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-panel {
  position: relative;
}

.hero-slide {
  display: none;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.23);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.hero-slide.active {
  display: block;
  animation: fadeIn 0.55s ease both;
}

.hero-slide .poster-frame {
  height: 560px;
  border-radius: 0;
  background:
    radial-gradient(circle at 25% 15%, rgba(255, 255, 255, 0.32), transparent 24%),
    linear-gradient(145deg, rgba(8, 145, 178, 0.86), rgba(5, 150, 105, 0.92));
}

.hero-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(16px);
}

.hero-caption h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.hero-caption p {
  margin: 0 0 14px;
  font-size: 14px;
  color: #dffafe;
}

.hero-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dots button.active {
  width: 34px;
  background: #ffffff;
}

.glass-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.metric-card {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
}

.metric-card strong {
  display: block;
  font-size: 24px;
  margin-bottom: 4px;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(103, 232, 249, 0.28), transparent 28%),
    linear-gradient(135deg, #0891b2, #0f766e 54%, #059669);
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
}

.page-hero p {
  margin: 0;
  max-width: 760px;
  color: #ecfeff;
  font-size: 18px;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.section.alt {
  width: 100%;
  max-width: none;
  background: var(--soft);
}

.section.alt > .section-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 32px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.18;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-action {
  color: var(--brand);
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 24px;
}

.video-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.video-grid.compact-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.category-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.video-card,
.category-card,
.rank-card,
.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover,
.category-card:hover,
.rank-card:hover,
.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  height: 270px;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(103, 232, 249, 0.28), transparent 30%),
    linear-gradient(145deg, #0e7490, #059669);
}

.compact .poster-frame,
.compact-grid .poster-frame {
  height: 210px;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.poster-link:hover img {
  transform: scale(1.08);
}

.year-badge,
.heat-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  color: #ffffff;
  background: rgba(8, 145, 178, 0.94);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 18px;
}

.card-meta {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.video-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.36;
}

.compact h3 {
  font-size: 15px;
}

.video-card p {
  color: var(--muted);
  margin: 0 0 12px;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 28px;
}

.tag-row span {
  color: #0e7490;
  background: #ecfeff;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}

.watch-link {
  display: inline-flex;
  color: var(--brand);
  font-weight: 800;
  margin-top: 14px;
}

.category-card {
  padding: 24px;
  min-height: 210px;
}

.category-card .icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #10b981);
  font-weight: 900;
  margin-bottom: 18px;
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.category-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 180px 160px 110px;
  gap: 14px;
  align-items: end;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
  margin-bottom: 34px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 800;
  font-size: 13px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  outline: none;
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.16);
}

.filter-panel button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #0891b2, #059669);
  cursor: pointer;
}

.empty-state {
  display: none;
  padding: 34px;
  color: var(--muted);
  background: #ffffff;
  border-radius: 20px;
  border: 1px dashed #cbd5e1;
  text-align: center;
}

.detail-hero {
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 118, 110, 0.84)),
    var(--detail-bg);
  background-size: cover;
  background-position: center;
}

.detail-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
  background:
    radial-gradient(circle at 30% 20%, rgba(103, 232, 249, 0.24), transparent 28%),
    linear-gradient(145deg, #0e7490, #059669);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.detail-info p {
  margin: 0 0 24px;
  color: #ecfeff;
  font-size: 18px;
}

.player-section {
  background: #0f172a;
  color: #ffffff;
}

.player-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.player-box {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 42%, rgba(8, 145, 178, 0.46), transparent 22%),
    linear-gradient(rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.72));
  display: grid;
  place-items: center;
  cursor: pointer;
}

.play-overlay span {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #06b6d4, #10b981);
  box-shadow: 0 18px 48px rgba(6, 182, 212, 0.36);
  font-size: 34px;
  padding-left: 6px;
}

.play-overlay.is-hidden {
  display: none;
}

.player-status {
  margin-top: 14px;
  color: #cbd5e1;
}

.content-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
}

.article-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 30px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.article-card h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

.article-card p {
  margin: 0;
  color: #334155;
  white-space: pre-line;
}

.side-list {
  display: grid;
  gap: 14px;
}

.side-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.side-item img {
  width: 76px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  background:
    linear-gradient(145deg, #0e7490, #059669);
}

.side-item strong {
  display: block;
  line-height: 1.35;
}

.side-item span {
  color: var(--muted);
  font-size: 13px;
}

.rank-list {
  display: grid;
  gap: 16px;
}

.rank-card {
  display: grid;
  grid-template-columns: 86px 120px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 18px;
  padding: 14px;
}

.rank-number {
  font-size: 30px;
  font-weight: 900;
  color: var(--brand);
  text-align: center;
}

.rank-card img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 18px;
  background:
    linear-gradient(145deg, #0e7490, #059669);
}

.rank-card h3 {
  margin: 0 0 8px;
}

.rank-card p {
  margin: 0;
  color: var(--muted);
}

.rank-heat {
  color: #ffffff;
  text-align: center;
  border-radius: 18px;
  padding: 12px;
  background: linear-gradient(135deg, #0891b2, #059669);
  font-weight: 900;
}

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  color: #ffffff;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: #67e8f9;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .video-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .video-grid.compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-inner,
  .detail-hero-inner,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero-slide .poster-frame {
    height: 460px;
  }
}

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

  .main-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .hero-inner {
    padding: 60px 0 54px;
  }

  .hero-slide .poster-frame {
    height: 380px;
  }

  .glass-metrics,
  .video-grid,
  .video-grid.compact-grid,
  .category-grid,
  .filter-panel,
  .rank-card {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-hero-inner {
    padding: 44px 0;
  }

  .detail-poster {
    max-width: 280px;
  }

  .rank-number {
    text-align: left;
  }
}
