/* ==========================================================================
   黄果片刻 · 落地页样式
   顺序：变量 → 重置 → 顶栏 → Hero → 卡片 → 页脚 → 响应式
   断点：640px / 768px / 1024px（与原站 Tailwind 断点一致）
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #0a0a0c;
  --card: #121216;
  --yellow: #ffc82c;
  --yellow-hover: #ffe066;
  --border: #22222a;
  --muted: #8e8e9a;
  --red: #ff4d4d;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: #fff;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

h1,
h2,
h3,
p {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

img,
svg,
video {
  display: block;
  vertical-align: middle;
}

img,
video {
  max-width: 100%;
  height: auto;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

::selection {
  background: var(--yellow);
  color: #000;
}

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

/* ============================== 顶栏 ============================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 12, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-mark {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--yellow);
  border-radius: 9999px;
  color: var(--yellow);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.brand-mark svg {
  width: 12px;
  height: 12px;
  margin-left: 2px;
}

.brand:hover .brand-mark {
  background: var(--yellow);
  color: #000;
}

.brand-name {
  overflow: hidden;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 28px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav {
  display: none;
  align-items: center;
  gap: 32px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.nav a {
  transition: color 0.15s ease;
}

.nav a:hover {
  color: #fff;
}

.btn-ghost {
  flex: 0 0 auto;
  padding: 6px 14px;
  border: 1px solid rgba(255, 200, 44, 0.6);
  border-radius: 9999px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-ghost:hover {
  background: var(--yellow);
  color: #000;
}

/* ============================== Hero ============================== */

.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.hero-media {
  order: 1;
  min-width: 0;
}

.hero-copy {
  order: 2;
  min-width: 0;
}

.media-stack > * + * {
  margin-top: 8px;
}

.trailer-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.pulse-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--red);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.player {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
}

.player-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4), transparent);
  pointer-events: none;
}

.badge {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--yellow);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
}

.player-title {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 28px;
}

.mute-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color 0.15s ease;
}

.mute-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

.mute-btn .icon {
  width: 12px;
  height: 12px;
}

.mute-btn .icon-sound-on {
  display: none;
}

.mute-btn:not(.is-muted) .icon-sound-off {
  display: none;
}

.mute-btn:not(.is-muted) .icon-sound-on {
  display: block;
}

.player-status {
  padding-left: 4px;
  color: rgba(142, 142, 154, 0.7);
  font-size: 11px;
  line-height: 1.5;
}

.hero-copy > * + * {
  margin-top: 16px;
}

.age-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.age-tag {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--yellow);
  color: #000;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.5;
}

.age-notice {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.hero-title {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.title-accent {
  position: relative;
  display: inline-block;
  margin: 0 4px;
  color: var(--yellow);
}

.title-accent::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background-color: var(--red);
}

.hero-desc {
  max-width: 32rem;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.625;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 9999px;
  font-size: 12px;
  line-height: 20px;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--yellow);
  box-shadow: 0 10px 15px -3px rgba(255, 200, 44, 0.1), 0 4px 6px -4px rgba(255, 200, 44, 0.1);
  color: #000;
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--yellow-hover);
}

.btn-primary .icon {
  width: 14px;
  height: 14px;
}

.btn-secondary {
  border: 1px solid var(--border);
  background: var(--card);
  color: #fff;
  font-weight: 500;
  line-height: 16px;
}

.btn-secondary:hover {
  border-color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 28rem;
  padding-top: 16px;
  border-top: 1px solid rgba(34, 34, 42, 0.6);
}

.stat-value {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 28px;
}

.stat-label {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

/* ============================== 卡片列表 ============================== */

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 16px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 80px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.section-title {
  padding-left: 12px;
  border-left: 4px solid var(--yellow);
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
}

.section-count {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}

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

.card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.card:hover {
  border-color: rgba(255, 200, 44, 0.6);
}

.card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: rgba(0, 0, 0, 0.4);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.card-watch {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--yellow);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 15px;
}

.card-body {
  padding: 14px;
}

.card-body > * + * {
  margin-top: 6px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-title {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.card:hover .card-title {
  color: var(--yellow);
}

.card-arrow {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--yellow);
  transition: transform 0.2s ease;
}

.card:hover .card-arrow {
  transform: translate(2px, -2px);
}

.card-intro {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.625;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ============================== 页脚 ============================== */

.site-footer {
  padding: 24px 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

/* ============================== 响应式 ============================== */

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@media (min-width: 640px) {
  .site-header {
    padding-right: 24px;
    padding-left: 24px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-mark svg {
    width: 14px;
    height: 14px;
  }

  .brand-name {
    font-size: 20px;
  }

  .btn-ghost {
    padding: 8px 20px;
    font-size: 14px;
    line-height: 20px;
  }

  .hero {
    padding: 32px 24px 40px;
  }

  .trailer-label {
    font-size: 12px;
    line-height: 16px;
  }

  .player {
    border-radius: 16px;
  }

  .player-caption {
    padding: 24px;
  }

  .badge {
    font-size: 11px;
  }

  .player-title {
    font-size: 24px;
    line-height: 32px;
  }

  .mute-btn {
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    font-size: 12px;
    line-height: 16px;
  }

  .mute-btn .icon {
    width: 14px;
    height: 14px;
  }

  .player-status {
    font-size: 12px;
    line-height: 16px;
  }

  .hero-copy > * + * {
    margin-top: 24px;
  }

  .age-tag {
    padding: 2px 8px;
    font-size: 12px;
    line-height: 16px;
  }

  .age-notice {
    font-size: 12px;
    line-height: 16px;
  }

  .hero-title {
    font-size: 48px;
    line-height: 48px;
  }

  .hero-desc {
    font-size: 16px;
    line-height: 24px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 28px;
    font-size: 14px;
  }

  .btn-primary {
    line-height: 24px;
  }

  .btn-secondary {
    line-height: 20px;
  }

  .btn-primary .icon {
    width: 16px;
    height: 16px;
  }

  .stat-value {
    font-size: 24px;
    line-height: 32px;
  }

  .stat-label {
    font-size: 12px;
    line-height: 16px;
  }

  .section {
    padding: 48px 24px;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: 20px;
  }

  .section-count {
    font-size: 14px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .card-rank {
    top: 12px;
    left: 12px;
    padding: 4px 10px;
  }

  .card-watch {
    right: 12px;
    bottom: 12px;
    padding: 4px 10px;
  }

  .card-body {
    padding: 16px;
  }

  .card-body > * + * {
    margin-top: 8px;
  }

  .card-title {
    font-size: 16px;
    line-height: 24px;
  }
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 48px;
  }

  .hero-media {
    grid-column: span 6;
    order: 2;
  }

  .hero-copy {
    grid-column: span 6;
    order: 1;
  }

  .hero-title {
    font-size: 60px;
    line-height: 60px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pulse-dot,
  .card-img,
  .card-arrow,
  .card-title,
  .card,
  .mute-btn,
  .btn-primary,
  .btn-secondary,
  .brand-mark {
    animation: none;
    transition: none;
  }
}
