/* ============================================================
   一起树官网 · Bento Design System
   ============================================================ */

:root {
  --bg: #08090f;
  --bg-soft: #0d0f18;
  --surface: #141721;
  --surface-2: #1b1f2c;
  --surface-3: #242939;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f5fa;
  --text-2: #a9adbf;
  --text-3: #73788d;

  --violet: #7c5cff;
  --violet-2: #a78bfa;
  --cyan: #22d3ee;
  --pink: #ff4d8d;
  --mint: #34d399;
  --amber: #fbbf24;

  --grad-violet: linear-gradient(135deg, #7c5cff 0%, #a78bfa 55%, #c4b5fd 100%);
  --grad-cyan: linear-gradient(135deg, #22d3ee 0%, #38bdf8 100%);
  --grad-pink: linear-gradient(135deg, #ff4d8d 0%, #fb7185 100%);
  --grad-mint: linear-gradient(135deg, #34d399 0%, #6ee7b7 100%);
  --grad-amber: linear-gradient(135deg, #fbbf24 0%, #fb923c 100%);
  --grad-hero: linear-gradient(120deg, #7c5cff 0%, #5b6cff 40%, #22d3ee 100%);

  --radius-xl: 32px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 30px 70px rgba(0, 0, 0, 0.5);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1240px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(124, 92, 255, .20), transparent 65%),
    radial-gradient(760px 460px at 92% 2%, rgba(34, 211, 238, .13), transparent 62%),
    radial-gradient(700px 500px at 50% 108%, rgba(255, 77, 141, .10), transparent 65%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: var(--violet); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2c3145; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3d4360; }

/* ---------- Layout ---------- */
.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.section { padding: 96px 0 0; }
.section-sm { padding: 64px 0 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background .3s var(--ease), border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8, 9, 15, .82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
  padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 13px;
  background: var(--grad-hero);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(124, 92, 255, .35);
  position: relative; overflow: hidden;
}
.brand-mark svg { width: 23px; height: 23px; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -.5px; }
.brand-name span { color: var(--violet-2); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav .mobile-only { display: none; }
.nav a {
  padding: 9px 15px; border-radius: 12px; font-size: 14px; font-weight: 600;
  color: var(--text-2); transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav a.active { color: #fff; background: rgba(124,92,255,.16); }
.nav a.active::after {
  content: ""; display: block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--violet-2); margin: 4px auto -6px;
}

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); align-items: center; justify-content: center; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform .25s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, top .25s; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; border-radius: 14px; font-size: 14px; font-weight: 700;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s;
  white-space: nowrap; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-primary { background: var(--grad-hero); color: #fff; box-shadow: 0 10px 30px rgba(124,92,255,.30); }
.btn-primary:hover { box-shadow: 0 16px 38px rgba(124,92,255,.45); }
.btn-ghost { background: rgba(255,255,255,.05); border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); }
.btn-sm { padding: 9px 15px; font-size: 13px; border-radius: 11px; }
.btn-lg { padding: 16px 26px; font-size: 15px; border-radius: 16px; }
.btn-block { width: 100%; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--violet-2); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--violet); border-radius: 2px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.section-title { font-size: clamp(28px, 4vw, 44px); line-height: 1.18; font-weight: 850; letter-spacing: -1.4px; }
.section-title .accent { background: var(--grad-hero); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-desc { color: var(--text-2); font-size: 15px; max-width: 560px; margin-top: 12px; }
.text-link { color: var(--violet-2); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.text-link:hover { gap: 10px; }
.text-link svg { width: 15px; height: 15px; transition: transform .2s; }

/* ---------- Bento grid ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.bento > .span-12 { grid-column: span 12; }
.bento > .span-8  { grid-column: span 8; }
.bento > .span-7  { grid-column: span 7; }
.bento > .span-6  { grid-column: span 6; }
.bento > .span-5  { grid-column: span 5; }
.bento > .span-4  { grid-column: span 4; }
.bento > .span-3  { grid-column: span 3; }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
  min-width: 0;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-hover); }
.card-flat:hover { transform: none; }
.card-body { position: relative; z-index: 2; }
.card-title { font-size: 20px; font-weight: 800; letter-spacing: -.4px; line-height: 1.3; }
.card-sub { color: var(--text-2); font-size: 14px; margin-top: 9px; line-height: 1.7; }

/* Decoration helpers */
.glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0; }
.glow-1 { width: 300px; height: 300px; background: rgba(124,92,255,.28); top: -120px; right: -90px; }
.glow-2 { width: 260px; height: 260px; background: rgba(34,211,238,.18); bottom: -130px; left: -80px; }
.glow-pink { background: rgba(255,77,141,.22); }
.glow-mint { background: rgba(52,211,153,.20); }
.grid-lines {
  position: absolute; inset: 0; z-index: 0; opacity: .35; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 70% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 70% 20%, #000, transparent 75%);
}

/* ---------- Hero ---------- */
.hero { padding: 66px 0 0; }
.hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.hero-main {
  grid-column: span 7; min-height: 480px; padding: 52px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(24,27,40,.9) 55%), var(--surface);
}
.hero-main::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(600px 340px at 88% 8%, rgba(124,92,255,.45), transparent 65%);
}
.hero-side { grid-column: span 5; display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 9px; width: fit-content;
  padding: 7px 14px; border-radius: 100px; font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,.08); border: 1px solid var(--line-strong); color: #e8e6ff;
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(52,211,153,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } }
.hero-title { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.08; font-weight: 900; letter-spacing: -2.6px; margin-top: 26px; }
.hero-title .gradient-text { background: linear-gradient(100deg, #fff 10%, #c4b5fd 50%, #67e8f9 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc { color: #c3c6d6; font-size: 16px; line-height: 1.85; max-width: 500px; margin-top: 20px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line); }
.stat-num { font-size: 24px; font-weight: 850; letter-spacing: -.5px; }
.stat-num small { font-size: 14px; color: var(--violet-2); margin-left: 2px; }
.stat-label { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* Hero side cards */
.hero-visual { border-radius: var(--radius-lg); position: relative; overflow: hidden; border: 1px solid var(--line); }
.hero-visual .visual-bg { position: absolute; inset: 0; }
.hero-visual:first-child .visual-bg { background: linear-gradient(145deg, #ff4d8d 0%, #7c5cff 55%, #22d3ee 100%); }
.hero-visual:last-child .visual-bg { background: linear-gradient(145deg, #0ea5e9 0%, #22d3ee 45%, #34d399 100%); }
.hero-visual .visual-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.28), transparent 45%), repeating-linear-gradient(115deg, rgba(255,255,255,.07) 0 2px, transparent 2px 22px);
}
.hero-visual-content { position: relative; z-index: 2; height: 100%; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.visual-tag { align-self: flex-start; padding: 6px 12px; border-radius: 100px; background: rgba(0,0,0,.28); backdrop-filter: blur(8px); font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.visual-tag.live { display: inline-flex; align-items: center; gap: 6px; }
.visual-tag.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
.visual-title { font-size: 20px; font-weight: 850; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.visual-meta { font-size: 12px; color: rgba(255,255,255,.85); margin-top: 4px; }
.play-orb {
  position: absolute; right: 26px; bottom: 26px; z-index: 3;
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: grid; place-items: center; color: #171928;
  box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .3s var(--ease);
}
.hero-visual:hover .play-orb { transform: scale(1.12); }
.play-orb svg { width: 20px; height: 20px; margin-left: 2px; }

/* ---------- Live room cards ---------- */
.room-card { padding: 0; cursor: pointer; display: block; }
.room-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.room-cover::before { content: ""; position: absolute; inset: 0; background: var(--cover, var(--grad-violet)); transition: transform .6s var(--ease); }
.room-card:hover .room-cover::before { transform: scale(1.06); }
.room-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.72) 100%); }
.room-cover-inner { position: absolute; inset: 0; z-index: 2; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.live-badge { align-self: flex-start; padding: 5px 10px; border-radius: 8px; background: var(--pink); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .6px; }
.viewers { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 8px; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); font-size: 11px; font-weight: 700; }
.viewers svg { width: 12px; height: 12px; }
.room-info { padding: 16px 18px 19px; }
.room-title { font-size: 15px; font-weight: 750; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-host { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--text-2); }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; flex-shrink: 0; background: var(--av, var(--grad-violet)); }
.room-tags { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.tag { padding: 4px 9px; border-radius: 7px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: 11px; color: var(--text-2); }
.tag.violet { color: var(--violet-2); background: rgba(124,92,255,.12); border-color: rgba(124,92,255,.25); }

/* ---------- Feature / mini cards ---------- */
.feature-icon {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center;
  background: rgba(124,92,255,.14); color: var(--violet-2); margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-icon.cyan { background: rgba(34,211,238,.13); color: var(--cyan); }
.feature-icon.pink { background: rgba(255,77,141,.13); color: var(--pink); }
.feature-icon.mint { background: rgba(52,211,153,.13); color: var(--mint); }
.feature-icon.amber { background: rgba(251,191,36,.13); color: var(--amber); }
.feature-list { margin-top: 20px; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); }
.feature-list li svg { width: 17px; height: 17px; color: var(--mint); flex-shrink: 0; margin-top: 2px; }

.card-link { position: absolute; inset: 0; z-index: 5; }

/* Highlight card with big number */
.big-number { font-size: clamp(46px, 7vw, 78px); font-weight: 900; letter-spacing: -3px; line-height: 1; background: var(--grad-hero); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big-label { font-size: 14px; color: var(--text-2); margin-top: 10px; }

/* Progress bar */
.progress { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 14px; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--grad-hero); }

/* Steps */
.steps { display: grid; gap: 0; counter-reset: step; }
.step { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step-num { width: 34px; height: 34px; border-radius: 11px; background: rgba(124,92,255,.15); color: var(--violet-2); display: grid; place-items: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.step h4 { font-size: 15px; font-weight: 750; }
.step p { font-size: 13px; color: var(--text-2); margin-top: 4px; }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; align-items: center; }
.filter-chip {
  padding: 9px 17px; border-radius: 100px; font-size: 13px; font-weight: 700;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text-2);
  transition: all .25s var(--ease);
}
.filter-chip:hover { color: #fff; border-color: var(--line-strong); }
.filter-chip.active { background: var(--grad-hero); color: #fff; border-color: transparent; box-shadow: 0 8px 22px rgba(124,92,255,.28); }
.search-box { margin-left: auto; display: flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 100px; background: rgba(255,255,255,.045); border: 1px solid var(--line); min-width: 230px; }
.search-box svg { width: 16px; height: 16px; color: var(--text-3); }
.search-box input { background: none; border: 0; outline: 0; color: var(--text); font-size: 13px; width: 100%; }
.search-box input::placeholder { color: var(--text-3); }

/* ---------- Form ---------- */
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 700; color: #d9dbe8; }
.field label span { color: var(--pink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text);
  outline: none; transition: border-color .2s, background .2s; font-size: 14px;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); background: rgba(124,92,255,.07); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field select option { background: var(--surface-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--text-2); margin: 6px 0 20px; }
.check-row input { accent-color: var(--violet); margin-top: 3px; width: 15px; height: 15px; }
.check-row a { color: var(--violet-2); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-q { width: 100%; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; font-size: 15px; font-weight: 700; }
.faq-q svg { width: 18px; height: 18px; color: var(--text-3); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-q svg { transform: rotate(45deg); color: var(--violet-2); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); color: var(--text-2); font-size: 14px; }
.faq-item.open .faq-a { max-height: 260px; }
.faq-a p { padding-bottom: 20px; line-height: 1.8; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(3,4,8,.78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  width: min(100%, 520px); max-height: 90vh; overflow-y: auto;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); padding: 30px;
  transform: translateY(20px) scale(.97); transition: transform .35s var(--ease);
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
}
.modal-overlay.open .modal { transform: none; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.modal-head h3 { font-size: 21px; font-weight: 850; }
.modal-head p { font-size: 13px; color: var(--text-2); margin-top: 5px; }
.modal-close { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; transition: background .2s; flex-shrink: 0; }
.modal-close:hover { background: rgba(255,255,255,.13); }
.modal-close svg { width: 16px; height: 16px; }

/* Simulated player */
.player-screen {
  aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #3b2b7a, #1d5f7a 60%, #155e63);
  display: grid; place-items: center; margin-bottom: 18px;
}
.player-screen::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.16), transparent 60%); }
.player-center { position: relative; z-index: 2; text-align: center; }
.player-center .big-play { width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.94); color: #181928; display: grid; place-items: center; margin: 0 auto 12px; }
.player-center .big-play svg { width: 26px; height: 26px; margin-left: 3px; }
.player-center p { font-size: 13px; color: rgba(255,255,255,.9); font-weight: 600; }
.player-bottom { position: absolute; z-index: 2; bottom: 12px; left: 14px; right: 14px; display: flex; align-items: center; gap: 10px; font-size: 11px; color: rgba(255,255,255,.9); }
.player-bottom .bar { flex: 1; height: 4px; border-radius: 99px; background: rgba(255,255,255,.3); }
.player-bottom .bar i { display: block; width: 34%; height: 100%; border-radius: 99px; background: #fff; }
.chat-demo { background: rgba(255,255,255,.035); border-radius: 14px; padding: 14px; max-height: 120px; overflow: hidden; }
.chat-line { font-size: 12px; color: var(--text-2); padding: 3px 0; }
.chat-line b { color: var(--violet-2); margin-right: 6px; }

/* QR code (decorative, deterministic pattern) */
.qr-box { width: 150px; height: 150px; padding: 12px; border-radius: 16px; background: #fff; flex-shrink: 0; }
.qr-box svg { width: 100%; height: 100%; display: block; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 400; display: grid; gap: 10px; width: min(92vw, 420px); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 11px; padding: 14px 18px; border-radius: 14px;
  background: rgba(28,32,46,.96); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  font-size: 13px; font-weight: 600; color: var(--text);
  transform: translateY(18px); opacity: 0; transition: transform .35s var(--ease), opacity .35s;
}
.toast.show { transform: none; opacity: 1; }
.toast svg { width: 18px; height: 18px; color: var(--mint); flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 100px; border-top: 1px solid var(--line); padding: 56px 0 34px; background: rgba(13,15,24,.6); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-brand p { color: var(--text-2); font-size: 13px; margin-top: 16px; max-width: 300px; line-height: 1.8; }
.footer-col h4 { font-size: 13px; font-weight: 800; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-2); padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--violet-2); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 42px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 44px; height: 44px; border-radius: 14px; background: var(--surface-2);
  border: 1px solid var(--line-strong); display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s;
  box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--violet); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Reveal animation ---------- */
/* Content is visible by default so it works without JS; the js class enables the animation. */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 20px 20px; background: rgba(12,14,22,.98); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 16px; font-size: 15px; }
  .nav a.active::after { display: none; }
  .nav .mobile-only { display: block; }
  .menu-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }
  .hero-main, .hero-side { grid-column: span 12; }
  .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .bento > .span-7, .bento > .span-8 { grid-column: span 12; }
  .bento > .span-6, .bento > .span-5, .bento > .span-4, .bento > .span-3 { grid-column: span 6; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--max)); }
  .section { padding-top: 68px; }
  .hero { padding-top: 34px; }
  .hero-main { padding: 30px 24px; min-height: auto; }
  .hero-title { font-size: clamp(34px, 10vw, 48px); letter-spacing: -1.8px; margin-top: 18px; }
  .hero-desc { font-size: 14px; }
  .hero-stats { gap: 22px; margin-top: 30px; }
  .stat-num { font-size: 20px; }
  .hero-side { grid-template-columns: 1fr; }
  .hero-visual { min-height: 180px; }
  .bento { gap: 12px; }
  .bento > [class*="span-"] { grid-column: span 12 !important; }
  .card { padding: 24px; border-radius: var(--radius-md); }
  .room-cover { aspect-ratio: 16/9; }
  .section-head { margin-bottom: 24px; }
  .filter-bar { gap: 7px; }
  .filter-chip { padding: 8px 13px; font-size: 12px; }
  .search-box { margin-left: 0; width: 100%; min-width: 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .modal { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .to-top { right: 14px; bottom: 14px; }
  .btn-lg { padding: 14px 20px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
