/* 糖果直播官网 — 作品集画廊风格共享样式 */
:root {
  --bg: #f7f5f2;
  --surface: #ffffff;
  --surface-2: #f1eeea;
  --ink: #17141d;
  --muted: #716b78;
  --line: #e6e1dd;
  --accent: #e11d74;
  --accent-2: #6d28d9;
  --accent-soft: #fff0f6;
  --dark: #120c1d;
  --dark-2: #1d1430;
  --radius: 22px;
  --radius-lg: 30px;
  --shadow: 0 18px 50px rgba(23, 20, 29, 0.08);
  --shadow-hover: 0 26px 70px rgba(23, 20, 29, 0.16);
  --wrap: 1240px;
  --header-h: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.nav-open, body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(225, 29, 116, 0.45); outline-offset: 3px; border-radius: 8px; }
::selection { background: #ffd6e8; color: var(--ink); }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 9999;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(calc(100% - 48px), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 820px; }
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section--tight { padding: clamp(52px, 7vw, 84px) 0; }
.section--dark { background: var(--dark); color: #fff; }
.section--soft { background: var(--surface-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 42px; }
.section-head > div { max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow { color: #ff8cc0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.18; letter-spacing: -0.03em; font-weight: 800; }
h1 { font-size: clamp(38px, 5.8vw, 76px); }
h2 { font-size: clamp(30px, 4.2vw, 52px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
h4 { font-size: 18px; }
p { margin: 0; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); line-height: 1.85; }
.section--dark .lead { color: #c8bfd8; }
.text-accent { color: var(--accent); }
.section-link { font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.section-link:hover { color: var(--accent); border-color: var(--accent); }
.section-link::after { content: "↗"; font-size: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(247, 245, 242, 0.86);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(230, 225, 221, 0.85);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #fff; font-size: 20px; font-weight: 900;
  box-shadow: 0 8px 20px rgba(225, 29, 116, 0.28);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 18px; letter-spacing: -0.02em; }
.brand-text small { font-size: 9px; letter-spacing: 0.24em; color: var(--muted); font-weight: 800; margin-top: 4px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 9px 14px; border-radius: 10px; font-size: 14px; font-weight: 650; color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover { color: var(--ink); background: var(--surface); }
.main-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(4px); }
body.nav-open .menu-toggle span { background: transparent; }
body.nav-open .menu-toggle span::before { transform: translateY(0) rotate(45deg); }
body.nav-open .menu-toggle span::after { transform: translateY(-2px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border-radius: 14px;
  border: 1px solid transparent; background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 750; letter-spacing: 0.01em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(23, 20, 29, 0.18); }
.btn:active { transform: translateY(0); }
.btn--primary { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 24px rgba(225, 29, 116, 0.24); }
.btn--light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.38); }
.btn--small { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(44px, 6vw, 84px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .eyebrow { margin-bottom: 18px; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy h1 em { font-style: normal; background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy .lead { max-width: 560px; margin-bottom: 30px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 13px; color: var(--muted); }
.avatar-stack { display: flex; align-items: center; }
.avatar-stack i { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -9px; display: block; }
.avatar-stack i:first-child { margin-left: 0; }
.avatar-stack i:nth-child(1) { background: linear-gradient(135deg,#f9a8d4,#7c3aed); }
.avatar-stack i:nth-child(2) { background: linear-gradient(135deg,#67e8f9,#1d4ed8); }
.avatar-stack i:nth-child(3) { background: linear-gradient(135deg,#fcd34d,#ea580c); }
.avatar-stack i:nth-child(4) { background: linear-gradient(135deg,#a7f3d0,#0f766e); }
.hero-visual { position: relative; }
.hero-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-hover); aspect-ratio: 4 / 4.4; background: var(--dark);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(9,5,18,0.82) 100%); }
.hero-caption { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 26px; color: #fff; }
.hero-caption .tag { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; background: var(--accent); padding: 5px 10px; border-radius: 99px; margin-bottom: 10px; }
.hero-caption strong { display: block; font-size: 20px; }
.hero-caption span { font-size: 13px; color: #e7dff2; }
.float-card {
  position: absolute; z-index: 3; right: -22px; top: 12%;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.7); border-radius: 16px;
  padding: 14px 18px; box-shadow: var(--shadow-hover); min-width: 168px;
}
.float-card b { display: block; font-size: 22px; line-height: 1; }
.float-card small { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.float-card--bottom { right: auto; left: -26px; top: auto; bottom: 22%; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b6b; display: inline-block; box-shadow: 0 0 0 0 rgba(255,59,107,0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,59,107,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,107,0); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats > div { background: var(--surface); padding: 26px 28px; }
.stats b { display: block; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.04em; line-height: 1.1; }
.stats span { font-size: 13px; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.work { grid-column: span 4; min-width: 0; }
.work--wide { grid-column: span 8; }
.work--tall { grid-column: span 4; }
.work__media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--dark); aspect-ratio: 4 / 3; }
.work--wide .work__media { aspect-ratio: 16 / 10; }
.work--tall .work__media { aspect-ratio: 3 / 4; }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(.2,.8,.2,1); }
.work:hover .work__media img { transform: scale(1.055); }
.work__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,4,16,0.04) 30%, rgba(8,4,16,0.72) 100%); opacity: 0.92; }
.work__cat { position: absolute; z-index: 2; top: 16px; left: 16px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: #fff; background: rgba(18,12,29,0.58); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.24); padding: 6px 11px; border-radius: 99px; }
.work__live { position: absolute; z-index: 2; top: 16px; right: 16px; display: flex; align-items: center; gap: 6px; color: #fff; background: rgba(225,29,116,0.92); padding: 6px 11px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; }
.work__play { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.82); width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.94); color: var(--ink); font-size: 20px; opacity: 0; transition: opacity 0.25s, transform 0.25s; }
.work:hover .work__play, .work:focus-within .work__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.work__overlay { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; color: #fff; }
.work__overlay strong { display: block; font-size: clamp(17px, 1.7vw, 22px); line-height: 1.3; }
.work__overlay small { font-size: 12px; color: #e8e0f0; }
.work__body { padding: 16px 2px 0; display: flex; align-items: start; gap: 12px; }
.work__body h3 { font-size: 16px; letter-spacing: -0.01em; line-height: 1.4; }
.work__body h3 a:hover { color: var(--accent); }
.work__body p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.work__body .arrow { margin-left: auto; color: var(--muted); font-size: 18px; line-height: 1; transition: transform 0.2s, color 0.2s; }
.work:hover .arrow { transform: translate(3px, -3px); color: var(--accent); }

/* ---------- Quote band ---------- */
.quote-band { background: var(--dark); color: #fff; border-radius: var(--radius-lg); padding: clamp(34px, 6vw, 72px); position: relative; overflow: hidden; }
.quote-band::before { content: "“"; position: absolute; right: 4%; top: -50px; font-size: 300px; font-family: Georgia, serif; color: rgba(255,255,255,0.05); line-height: 1; }
.quote-band blockquote { margin: 0; font-size: clamp(24px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.35; max-width: 900px; position: relative; }
.quote-band blockquote em { font-style: normal; color: #ff8cc0; }
.quote-band footer { margin-top: 22px; color: #b9afc9; font-size: 13px; letter-spacing: 0.08em; }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d9cfd6; }
.feature__icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 22px; margin-bottom: 22px; background: linear-gradient(135deg,#ffe4f0,#f3e8ff); }
.feature h3 { font-size: 20px; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 14px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 54px; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0; font-size: 38px; font-weight: 900; letter-spacing: -0.06em; color: var(--accent); opacity: 0.25; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- Watch page ---------- */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 0; }
.page-hero__inner { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding-bottom: 34px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 64px); }
.page-hero .lead { max-width: 620px; margin-top: 14px; }
.breadcrumb { display: flex; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--accent); }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px 0 30px; border-top: 1px solid var(--line); }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn { border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: 9px 18px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.filter-btn:hover { color: var(--ink); border-color: #cfc5cc; }
.filter-btn[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-count { margin-left: auto; font-size: 13px; color: var(--muted); }
.player {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--dark);
  aspect-ratio: 16 / 8.2; box-shadow: var(--shadow-hover);
}
.player img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; }
.player::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,4,16,0.15), rgba(8,4,16,0.72)); }
.player__center { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; }
.player__play { width: 84px; height: 84px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.95); color: var(--ink); font-size: 28px; display: grid; place-items: center; box-shadow: 0 12px 40px rgba(0,0,0,0.3); transition: transform 0.2s; }
.player__play:hover { transform: scale(1.08); }
.player__info { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 24px; color: #fff; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.player__info h2 { font-size: clamp(22px, 3vw, 36px); }
.player__info p { color: #ded5ea; font-size: 13px; margin-top: 6px; }
.live-room { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 22px; }
.room-stage { border-radius: var(--radius-lg); overflow: hidden; background: var(--dark); position: relative; aspect-ratio: 16 / 9; }
.room-stage img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.room-stage__label { position: absolute; z-index: 2; top: 18px; left: 18px; display: inline-flex; align-items: center; gap: 8px; background: rgba(225,29,116,0.92); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; padding: 7px 12px; border-radius: 99px; }
.chat-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; min-height: 420px; overflow: hidden; }
.chat-panel__head { padding: 18px 20px; border-bottom: 1px solid var(--line); font-weight: 800; display: flex; align-items: center; justify-content: space-between; }
.chat-panel__head small { font-weight: 500; color: var(--muted); }
.chat-messages { flex: 1; padding: 18px 20px; overflow-y: auto; max-height: 300px; display: flex; flex-direction: column; gap: 14px; }
.chat-msg { font-size: 13px; line-height: 1.6; }
.chat-msg b { color: var(--accent); margin-right: 6px; }
.chat-msg span { color: var(--muted); }
.chat-form { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--bg); border-radius: 11px; padding: 0 14px; font-size: 13px; }
.chat-form input:focus { outline: none; border-color: var(--accent); background: #fff; }

/* ---------- Creator page ---------- */
.creator-hero { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.creator-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-hover); aspect-ratio: 4 / 5; }
.creator-photo img { width: 100%; height: 100%; object-fit: cover; }
.creator-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; font-size: 12px; font-weight: 700; color: var(--muted); }
.chip--accent { background: var(--accent-soft); border-color: #ffd0e4; color: var(--accent); }
.follow-btn.is-following { background: var(--surface); color: var(--ink); border-color: var(--line); }
.creator-stats { display: flex; flex-wrap: wrap; gap: 34px; margin: 28px 0; }
.creator-stats div b { display: block; font-size: 26px; letter-spacing: -0.03em; }
.creator-stats div span { font-size: 12px; color: var(--muted); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 42px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 750; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 12px;
  padding: 12px 14px; font-size: 14px; color: var(--ink); min-height: 48px;
}
.field textarea { min-height: 108px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field small { color: var(--muted); font-size: 11px; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 14px; }

/* ---------- AI page ---------- */
.compare { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--dark); box-shadow: var(--shadow-hover); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__top { clip-path: inset(0 50% 0 0); transition: clip-path 0.1s linear; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 12px rgba(0,0,0,0.35); pointer-events: none; }
.compare__handle::after { content: "↔"; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 18px; box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.compare__label { position: absolute; z-index: 3; top: 16px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: #fff; background: rgba(18,12,29,0.6); padding: 6px 12px; border-radius: 99px; }
.compare__label--left { left: 16px; }
.compare__label--right { right: 16px; }
.compare-range { position: absolute; z-index: 5; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger { width: 100%; background: transparent; border: 0; padding: 22px 4px; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left; font-weight: 750; font-size: 16px; }
.accordion-trigger span { font-size: 22px; color: var(--accent); transition: transform 0.25s; }
.accordion-item.is-open .accordion-trigger span { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.accordion-panel p { padding: 0 4px 22px; color: var(--muted); font-size: 14px; }

/* ---------- Download page ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.platform-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; min-height: 280px; }
.platform-card__icon { width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg,#ffe4f0,#ede9fe); display: grid; place-items: center; font-size: 26px; margin-bottom: 20px; }
.platform-card h3 { margin-bottom: 8px; }
.platform-card p { color: var(--muted); font-size: 14px; flex: 1; }
.platform-card .btn { margin-top: 22px; }
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.entry-card { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 26px; display: block; transition: transform 0.25s, background 0.25s; }
.entry-card:hover { transform: translateY(-4px); background: var(--dark-2); }
.entry-card small { display: block; color: #b9afc9; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
.entry-card strong { font-size: 19px; }
.entry-card span { display: block; margin-top: 14px; color: #ff9bc8; font-size: 13px; }
.qr-box { width: 132px; height: 132px; border-radius: 14px; background: #fff; padding: 8px; margin: 18px auto 0; display: grid; place-items: center; }
.qr-box svg { width: 100%; height: 100%; }

/* ---------- Modal & toast ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(12, 7, 20, 0.62); backdrop-filter: blur(6px); }
.modal.is-open { display: flex; }
.modal__dialog { width: min(100%, 460px); max-height: calc(100vh - 36px); overflow-y: auto; background: var(--surface); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 36px); position: relative; box-shadow: 0 30px 90px rgba(0,0,0,0.3); }
.modal__close { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 20px; line-height: 1; }
.modal h2 { font-size: 28px; margin-bottom: 8px; }
.modal p { color: var(--muted); font-size: 14px; }
.modal__tabs { display: flex; gap: 8px; margin: 22px 0 18px; border-bottom: 1px solid var(--line); }
.modal__tab { border: 0; background: transparent; padding: 10px 4px; font-weight: 750; color: var(--muted); border-bottom: 2px solid transparent; }
.modal__tab.is-active { color: var(--accent); border-color: var(--accent); }
.modal__form { display: flex; flex-direction: column; gap: 14px; }
.modal__result, .form-result { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #ecfdf5; color: #065f46; font-size: 13px; }
.modal__result.is-show, .form-result.is-show { display: block; }
.modal__meta { margin-top: 18px; font-size: 12px; color: var(--muted); }
.toast { position: fixed; z-index: 400; left: 50%; bottom: 30px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 12px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; box-shadow: 0 14px 40px rgba(0,0,0,0.28); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #fff; padding: 70px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-bottom: 52px; }
.footer-brand p { color: #a99fba; font-size: 13px; max-width: 290px; margin-top: 16px; }
.footer-col h4 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-col a { display: block; color: #a99fba; font-size: 13px; padding: 5px 0; }
.footer-col a:hover { color: #ff9bc8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: #887e99; font-size: 12px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .main-nav { gap: 0; }
  .main-nav a { padding: 9px 10px; font-size: 13px; }
  .header-actions .btn--ghost { display: none; }
  .work, .work--tall { grid-column: span 6; }
  .work--wide { grid-column: span 12; }
  .feature-grid, .steps, .platform-grid, .entry-grid { grid-template-columns: repeat(2, 1fr); }
  .creator-hero { grid-template-columns: 0.9fr 1.1fr; }
  .live-room { grid-template-columns: 1fr; }
  .chat-panel { min-height: 360px; }
}

@media (max-width: 768px) {
  :root { --header-h: 66px; }
  .wrap { width: min(calc(100% - 32px), var(--wrap)); }
  .header-actions .btn--primary { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px;
    transform: translateY(-120%); opacity: 0; pointer-events: none; transition: transform 0.28s, opacity 0.28s;
    box-shadow: var(--shadow);
  }
  body.nav-open .main-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 13px 14px; font-size: 15px; border-radius: 10px; }
  .hero-grid, .creator-hero { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-frame { aspect-ratio: 16 / 12; }
  .float-card { right: 10px; top: 10px; min-width: 140px; padding: 10px 13px; }
  .float-card b { font-size: 18px; }
  .float-card--bottom { left: 10px; right: auto; bottom: 10px; }
  .section-head { flex-direction: column; align-items: start; gap: 16px; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { padding: 18px 22px; }
  .work, .work--wide, .work--tall { grid-column: span 12; }
  .work__media, .work--wide .work__media, .work--tall .work__media { aspect-ratio: 16 / 11; }
  .feature-grid, .steps, .platform-grid, .entry-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .page-hero__inner { flex-direction: column; align-items: start; }
  .filter-count { margin-left: 0; }
  .player { aspect-ratio: 4 / 3; }
  .player__info { left: 18px; right: 18px; bottom: 18px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .creator-photo { aspect-ratio: 16 / 13; }
}

@media (max-width: 520px) {
  h1 { font-size: 38px; }
  .hero-copy h1 { font-size: 40px; }
  .hero-copy .lead { font-size: 15px; }
  .btn-row .btn { flex: 1 1 100%; }
  .hero-frame { aspect-ratio: 4 / 3.4; border-radius: 22px; }
  .float-card { display: none; }
  .work__media, .work--wide .work__media, .work--tall .work__media { aspect-ratio: 4 / 3; }
  .player__play { width: 64px; height: 64px; font-size: 22px; }
  .player__info p { display: none; }
  .chat-messages { max-height: 240px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .compare { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
