/* HY短视频 PC 独立首页 · 抖音黑 / 响应式 / 无阴影无边框 */
:root {
  --bg: #000;
  --card: #161823;
  --inset: #1c1c24;
  --line: #2a2a32;
  --text: #fff;
  --muted: #b0b0ba;
  --dim: #7a7a86;
  --grad: linear-gradient(135deg, #fff 0%, #e6e6ea 100%);
  --on-light: #101014;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.bg-video {
  position: fixed; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; opacity: .62;
  filter: saturate(1.05) contrast(1.04);
}
.bg-video.hide { display: none; }
.bg-mask {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 10%, rgba(0,0,0,.12) 0%, rgba(0,0,0,.55) 60%, #000 100%),
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.62) 62%, #000 100%);
}
.page { position: relative; z-index: 2; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

.topbar {
  width: min(1200px, 100% - 48px); margin: 0 auto;
  padding: 22px 0 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: .02em; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; display: none; background: var(--card); }
.brand-logo.on { display: block; }
.top-actions, .hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.ghost-btn, .solid-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px;
  font-size: 14px; font-weight: 600; line-height: 1.1;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.ghost-btn { background: rgba(255,255,255,.10); color: var(--text); }
.ghost-btn:hover { background: rgba(255,255,255,.18); }
.solid-btn { background: var(--grad); color: var(--on-light); }
.solid-btn:hover { filter: brightness(1.08); }
.ghost-btn:active, .solid-btn:active { transform: scale(.97); }
.icon-btn { width: 40px; padding: 0; flex: 0 0 auto; }
.icon-btn svg { display: block; }
.icon-btn .ic-sound-off { display: none; }
.icon-btn.muted .ic-sound-on { display: none; }
.icon-btn.muted .ic-sound-off { display: block; }
.large { min-height: 50px; padding: 0 26px; font-size: 15px; }

main { flex: 1; }
.hero {
  width: min(1200px, 100% - 48px); margin: 0 auto;
  min-height: min(72vh, 720px);
  padding: clamp(60px, 12vh, 140px) 0 70px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.eyebrow {
  margin: 0 0 18px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
.hero h1 {
  margin: 0; max-width: 16em;
  font-size: clamp(38px, 6.2vw, 88px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em;
  text-wrap: balance;
}
.subtitle {
  margin: 22px 0 0; max-width: 42em;
  font-size: clamp(15px, 1.6vw, 19px); line-height: 1.75; color: var(--muted);
}
.hero-actions { margin-top: 34px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chips span {
  padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08);
  color: var(--muted); font-size: 12px; letter-spacing: .02em;
}

.download {
  width: min(1200px, 100% - 48px); margin: 0 auto;
  padding: 40px 0 90px;
}
.section-head h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.01em; }
.muted { color: var(--muted); }
.section-head .muted { margin: 10px 0 0; font-size: 14px; line-height: 1.7; }
.qr-grid {
  margin-top: 28px; display: grid; gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.qr-card {
  background: var(--card); border-radius: 20px;
  padding: 26px; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.qr-frame {
  width: 176px; height: 176px; padding: 12px; border-radius: 14px;
  background: #fff; display: flex; align-items: center; justify-content: center;
}
.qr-frame img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; display: block; }
.qr-card h3 { margin: 18px 0 0; font-size: 17px; }
.qr-card .muted { margin: 7px 0 18px; font-size: 13px; }
.qr-card .ghost-btn { margin-top: auto; min-width: 150px; }
.foot-note { margin: 18px 0 0; text-align: center; color: var(--dim); font-size: 12px; }

.footer {
  width: min(1200px, 100% - 48px); margin: 0 auto;
  padding: 24px 0 34px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--dim); font-size: 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
}
.footer a { color: var(--muted); }

.modal { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.86); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-inner { background: var(--inset); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 100%; }
.modal-inner img { width: min(68vw, 340px); height: min(68vw, 340px); object-fit: contain; background: #fff; border-radius: 12px; padding: 12px; }

@media (max-width: 900px) {
  .topbar, .hero, .download, .footer { width: min(100% - 32px, 720px); }
  .hero { min-height: 62vh; padding: 70px 0 50px; }
  .qr-grid { gap: 12px; }
  .qr-card { padding: 20px 14px; }
  .qr-frame { width: 148px; height: 148px; }
}
@media (max-width: 620px) {
  .topbar { padding-top: 16px; }
  .brand { font-size: 17px; }
  .brand-logo { width: 30px; height: 30px; }
  .ghost-btn, .solid-btn { min-height: 38px; padding: 0 14px; font-size: 13px; }
  .large { min-height: 46px; padding: 0 20px; }
  .hero { min-height: 58vh; padding: 54px 0 42px; }
  .hero h1 { font-size: clamp(34px, 10vw, 52px); }
  .hero-actions { width: 100%; }
  .hero-actions > a { flex: 1 1 140px; }
  .chips { margin-top: 24px; }
  .chips span { font-size: 11px; padding: 7px 11px; }
  .download { padding: 20px 0 60px; }
  .qr-grid { grid-template-columns: 1fr; }
  .qr-card { padding: 22px 16px; }
  .qr-frame { width: 168px; height: 168px; }
  .footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .top-actions { gap: 6px; }
  .brand { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-video { display: none; }
}
