/* ============================================================
   Hiya Live - 全站样式
   结构：
   1. 变量与基础
   2. 顶部滚动横幅
   3. 导航栏
   4. 主内容与通用区块
   5. Hero 区域
   6. 功能图标行
   7. 主播卡片
   8. 搜索与筛选
   9. AI短剧乐园
   10. 热门推荐
   11. 四步流程
   12. 底部 CTA
   13. 页脚
   14. 登录注册页
   15. 直播间
   16. 弹窗
   17. 个人中心
   18. 移动端底部 Tab
   19. 移动端适配（核心）
============================================================ */

/* ============================================================
   1. 变量与基础
============================================================ */
:root {
  --bg: #0A0A14;
  --purple: #B24BF3;
  --pink: #FF4D8D;
  --blue: #4DE1FF;
  --card: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.09);
  --border-hi: rgba(255,255,255,.16);
  --t1: #fff;
  --t2: rgba(255,255,255,.66);
  --t3: rgba(255,255,255,.42);
  --grad: linear-gradient(135deg,#B24BF3 0%,#FF4D8D 100%);
  --grad-3: linear-gradient(120deg,#B24BF3 0%,#FF4D8D 48%,#4DE1FF 100%);
  --marquee-h: 32px;
  --nav-h: 64px;
  --maxw: 1320px;
  --r: 20px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --mobile-tab-h: 60px;
  --mobile-nav-h: 56px;
  --mobile-marquee-h: 28px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--t1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-overflow-scrolling: touch;
}
body.no-scroll { overflow: hidden; }
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 620px at 10% -6%, rgba(178,75,243,.22), transparent 62%),
    radial-gradient(820px 540px at 92% 6%, rgba(255,77,141,.18), transparent 62%),
    radial-gradient(760px 760px at 50% 112%, rgba(77,225,255,.11), transparent 62%);
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; outline: none; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(178,75,243,.55); }

/* ============================================================
   2. 顶部滚动横幅
============================================================ */
.marquee {
  position: fixed; top: 0; left: 0; right: 0; height: var(--marquee-h); z-index: 90;
  display: flex; align-items: center; overflow: hidden;
  background: linear-gradient(90deg, rgba(178,75,243,.20), rgba(255,77,141,.20), rgba(77,225,255,.20));
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.marquee::before, .marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, #0A0A14 10%, transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, #0A0A14 10%, transparent); }
.marquee-track { display: flex; white-space: nowrap; animation: marq 42s linear infinite; will-change: transform; }
.marquee-track span {
  padding: 0 34px; font-size: 12px; font-weight: 600; letter-spacing: .03em;
  color: rgba(255,255,255,.88); text-shadow: 0 0 18px rgba(178,75,243,.5);
}
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   3. 导航栏
============================================================ */
.nav {
  position: fixed; top: var(--marquee-h); left: 0; right: 0; height: var(--nav-h); z-index: 85;
  display: flex; align-items: center; gap: 20px; padding: 0 26px;
  background: rgba(10,10,20,.72);
  backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(178,75,243,.25), rgba(255,77,141,.25));
  border: 1px solid rgba(178,75,243,.4);
  box-shadow: 0 0 22px rgba(178,75,243,.35);
}
.logo-text { font-family: 'Poppins','Inter',sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.logo-text em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 6px; margin: 0 auto; }
.nav-links a {
  position: relative; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.7);
  padding: 8px 14px; border-radius: 10px; transition: color .25s, background .25s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-ghost {
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--t2);
  border: 1px solid var(--border-hi); transition: .25s;
}
.btn-ghost:hover { color: #fff; border-color: rgba(178,75,243,.6); background: rgba(178,75,243,.12); }
.btn-ghost.gold { color: #FFD166; border-color: rgba(255,209,102,.4); }
.btn-grad {
  position: relative; padding: 9px 20px; border-radius: 999px; font-size: 13px; font-weight: 800;
  color: #fff; background: var(--grad); box-shadow: 0 6px 26px rgba(178,75,243,.42);
  transition: transform .25s, box-shadow .25s; overflow: hidden;
}
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255,77,141,.55); }
.btn-grad.sm { padding: 7px 15px; font-size: 12px; }

/* 语言下拉 */
.lang-dropdown { position: relative; display: inline-block; }
.lang-current {
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  color: var(--t2); background: rgba(255,255,255,.06); border: 1px solid var(--border);
  cursor: pointer; transition: .24s; white-space: nowrap;
}
.lang-current:hover { color: #fff; border-color: rgba(178,75,243,.6); background: rgba(178,75,243,.12); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 200;
  min-width: 220px; max-height: 70vh; overflow-y: auto; padding: 8px;
  border-radius: 16px; background: rgba(18,16,30,.98); backdrop-filter: blur(24px);
  border: 1px solid rgba(178,75,243,.35); box-shadow: 0 20px 60px rgba(0,0,0,.7);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .25s;
}
.lang-dropdown:hover .lang-menu, .lang-dropdown.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-group { margin-bottom: 6px; }
.lang-group:last-child { margin-bottom: 0; }
.lang-group-title { padding: 8px 12px 4px; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); }
.lang-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; font-size: 13px; color: var(--t2); transition: .2s; text-decoration: none; }
.lang-item:hover { color: #fff; background: rgba(178,75,243,.18); }
.lang-item.active { color: #fff; background: var(--grad); box-shadow: 0 4px 16px rgba(178,75,243,.4); }
.lang-flag { font-size: 16px; line-height: 1; }

/* 用户 chip */
.user-chip {
  display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px;
  border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--border);
  transition: .22s; text-decoration: none;
}
.user-chip:hover { background: rgba(178,75,243,.16); border-color: rgba(178,75,243,.5); }
.user-avatar-sm { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.user-avatar-sm svg { width: 100%; height: 100%; }
.user-name-sm { font-size: 12.5px; font-weight: 700; color: #fff; max-width: 90px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   4. 主内容与通用区块
============================================================ */
main { position: relative; z-index: 1; padding-top: calc(var(--marquee-h) + var(--nav-h)); }
.section { max-width: var(--maxw); margin: 0 auto; padding: 54px 24px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-title { display: flex; align-items: center; gap: 10px; font-family: 'Poppins','Inter',sans-serif; font-weight: 800; font-size: clamp(20px,2.6vw,28px); letter-spacing: -.02em; }
.section-title .dot-live { width: 9px; height: 9px; border-radius: 50%; background: #FF2D55; box-shadow: 0 0 12px #FF2D55; animation: blink 1.4s ease-in-out infinite; }
.section-sub { margin-top: 8px; font-size: 13.5px; color: var(--t3); max-width: 640px; line-height: 1.7; }
.more-link { font-size: 13.5px; font-weight: 700; color: var(--blue); transition: .22s; flex-shrink: 0; }
.more-link:hover { color: #fff; text-shadow: 0 0 16px rgba(77,225,255,.8); }
.tag-new { font-size: 10px; font-weight: 900; letter-spacing: .1em; padding: 3px 8px; border-radius: 999px; background: linear-gradient(135deg,#4DE1FF,#B24BF3); color: #fff; box-shadow: 0 0 18px rgba(77,225,255,.6); }
@keyframes blink { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.72); } }

/* ============================================================
   5. Hero 区域（桌面端）
============================================================ */
.hero-new { position: relative; padding: 20px 24px 40px; overflow: hidden; max-width: var(--maxw); margin: 0 auto; }
.hero-bg-blob { position: absolute; top: -30%; left: -10%; width: 760px; height: 760px; border-radius: 50%; background: radial-gradient(circle, rgba(178,75,243,.28), transparent 62%); filter: blur(50px); pointer-events: none; z-index: 0; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr 260px; gap: 26px; align-items: center; }
.hero-left { display: flex; flex-direction: column; gap: 16px; }
.hero-title { font-family: 'Poppins',sans-serif; font-weight: 900; line-height: 1; letter-spacing: -.04em; margin-bottom: 6px; }
.ht-line1 { display: block; font-size: clamp(40px,7vw,78px); background: linear-gradient(135deg,#B24BF3 0%,#FF4D8D 60%,#4DE1FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(178,75,243,.45)); }
.ht-line2 { display: block; font-size: clamp(40px,7vw,78px); color: #fff; }
.hero-desc { font-size: 14px; color: var(--t3); margin-bottom: 4px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.hb { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,.85); background: rgba(255,255,255,.06); border: 1px solid var(--border); }
.hb:nth-child(1) { border-color: rgba(178,75,243,.4); background: rgba(178,75,243,.1); }
.hb:nth-child(2) { border-color: rgba(77,225,255,.4); background: rgba(77,225,255,.1); }
.hb:nth-child(3) { border-color: rgba(255,77,141,.4); background: rgba(255,77,141,.1); }

/* 新用户福利卡（桌面端） */
.new-user-card { position: relative; padding: 22px 22px 18px; border-radius: 22px; background: linear-gradient(140deg, rgba(255,77,141,.18), rgba(178,75,243,.16)); border: 1px solid rgba(255,77,141,.4); box-shadow: 0 20px 60px rgba(178,75,243,.32), inset 0 0 40px rgba(255,77,141,.08); max-width: 400px; }
.nuc-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.nuc-fire { font-size: 16px; }
.nuc-label { font-size: 12.5px; font-weight: 700; color: #FFD166; }
.nuc-amount { font-family: 'Poppins',sans-serif; font-size: 52px; font-weight: 900; line-height: 1; letter-spacing: -.04em; background: linear-gradient(135deg,#FF4D8D,#B24BF3 70%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 26px rgba(255,77,141,.6)); margin: 4px 0; }
.nuc-sub { font-size: 12.5px; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.nuc-btn { display: block; width: 100%; padding: 14px; border-radius: 999px; font-size: 14px; font-weight: 800; color: #fff; background: linear-gradient(135deg,#FF4D8D,#B24BF3); box-shadow: 0 10px 30px rgba(255,77,141,.5); transition: .24s; cursor: pointer; border: 0; text-align: center; }
.nuc-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255,77,141,.65); }
.nuc-note { font-size: 11px; color: var(--t3); text-align: center; margin-top: 10px; }

/* 中间人物图 */
.hero-center { display: flex; justify-content: center; position: relative; }
.hero-photo-wrap { position: relative; width: 100%; aspect-ratio: 3/4; max-width: 400px; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 80px rgba(178,75,243,.4); }
.hero-photo-wrap svg { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-glow { position: absolute; inset: -20px; border-radius: 26px; background: radial-gradient(circle at 50% 50%, rgba(255,77,141,.28), transparent 62%); filter: blur(30px); z-index: -1; pointer-events: none; }

/* 右侧正在直播 */
.hero-live-sidebar { position: relative; padding: 16px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid var(--border); backdrop-filter: blur(14px); align-self: center; }
.hls-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.hls-title { font-size: 13px; font-weight: 800; }
.hls-dot { width: 8px; height: 8px; border-radius: 50%; background: #FF2D55; box-shadow: 0 0 10px #FF2D55; animation: blink 1.4s infinite; }
.hls-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.hls-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; transition: .22s; text-decoration: none; }
.hls-item:hover { background: rgba(178,75,243,.14); }
.hls-avatar { width: 36px; height: 36px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.hls-avatar svg { width: 100%; height: 100%; }
.hls-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.hls-info b { font-size: 12.5px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hls-info i { font-style: normal; font-size: 10.5px; color: var(--t3); margin-top: 2px; }
.hls-live { padding: 2px 6px; border-radius: 6px; font-size: 9px; font-weight: 900; letter-spacing: .08em; color: #fff; background: linear-gradient(135deg,#FF2D55,#FF4D8D); }
.hls-more { display: block; padding: 9px; border-radius: 10px; text-align: center; font-size: 11.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg,#B24BF3,#FF4D8D); text-decoration: none; transition: .22s; }
.hls-more:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(178,75,243,.5); }

/* ============================================================
   6. 功能图标行
============================================================ */
.feature-icons { max-width: var(--maxw); margin: 0 auto; padding: 16px 24px 30px; display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; }
.fi-item { display: flex; align-items: center; gap: 8px; padding: 12px 10px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--border); transition: .24s; justify-content: center; }
.fi-item:hover { border-color: rgba(178,75,243,.5); background: rgba(178,75,243,.1); transform: translateY(-3px); }
.fi-ico { font-size: 18px; }
.fi-label { font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,.8); white-space: nowrap; }

/* ============================================================
   7. 主播卡片
============================================================ */
.hscroll { display: flex; gap: 18px; overflow-x: auto; padding: 6px 2px 20px; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll .card { flex: 0 0 214px; scroll-snap-align: start; }
.streamer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 18px; }
.card { position: relative; border-radius: 20px; overflow: hidden; cursor: pointer; background: var(--card); border: 1px solid var(--border); backdrop-filter: blur(12px); transition: transform .38s cubic-bezier(.2,.8,.2,1), box-shadow .38s, border-color .38s; will-change: transform; }
.card:hover { transform: translateY(-7px); border-color: rgba(178,75,243,.6); box-shadow: 0 20px 54px rgba(178,75,243,.3), 0 0 0 1px rgba(255,77,141,.22); }
.card:active { transform: translateY(-3px) scale(.985); }
.card-media { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #120e1c; }
.card-media svg { width: 100%; height: 100%; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.card:hover .card-media svg { transform: scale(1.07); }
.card-media::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10,10,20,.34) 0%, transparent 32%, transparent 58%, rgba(10,10,20,.72) 100%); }
.live-badge { position: absolute; top: 10px; left: 10px; z-index: 5; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .09em; color: #fff; background: linear-gradient(135deg,#FF2D55,#FF4D8D); box-shadow: 0 0 18px rgba(255,45,85,.75); }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.25s ease-in-out infinite; }
.viewer-badge { position: absolute; right: 10px; bottom: 10px; z-index: 5; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); }
.card-body { padding: 11px 13px 14px; }
.card-body h3 { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-body p { margin-top: 3px; font-size: 11.5px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   8. 搜索与筛选
============================================================ */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 22px; }
.search-box { flex: 1 1 260px; max-width: 380px; }
.search-box input { width: 100%; padding: 11px 16px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--border); color: #fff; font-size: 13.5px; transition: .25s; }
.search-box input::placeholder { color: var(--t3); }
.search-box input:focus { border-color: rgba(178,75,243,.7); background: rgba(178,75,243,.09); box-shadow: 0 0 0 4px rgba(178,75,243,.12); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--t2); background: rgba(255,255,255,.05); border: 1px solid var(--border); transition: .25s; cursor: pointer; }
.chip:hover { color: #fff; border-color: var(--border-hi); background: rgba(255,255,255,.09); }
.chip.active { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 6px 22px rgba(178,75,243,.42); }

/* ============================================================
   9. AI短剧乐园
============================================================ */
.drama-block { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 26px; border-radius: 26px; background: linear-gradient(140deg, rgba(178,75,243,.14), rgba(255,77,141,.09) 45%, rgba(77,225,255,.09)); border: 1px solid rgba(178,75,243,.24); }
.drama-poster-big { position: relative; width: 100%; height: 100%; min-height: 260px; border-radius: 20px; background: radial-gradient(circle at 40% 40%, #FF4D8D, transparent 60%), radial-gradient(circle at 70% 70%, #B24BF3, transparent 62%), linear-gradient(150deg, #4a1544, #2a0d4a); display: grid; place-items: center; overflow: hidden; }
.dp-emoji { font-size: 86px; filter: drop-shadow(0 10px 40px rgba(0,0,0,.6)); }
.dp-live { position: absolute; top: 14px; left: 14px; padding: 4px 10px; border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .1em; background: #FF2D55; color: #fff; }
.drama-right { display: flex; flex-direction: column; justify-content: center; }
.drama-right .section-title { font-size: 26px; }
.drama-right .section-sub { margin-bottom: 16px; }
.drama-cta { padding: 12px 28px; border-radius: 999px; font-size: 13.5px; font-weight: 800; color: #fff; background: var(--grad); box-shadow: 0 10px 30px rgba(178,75,243,.45); transition: .25s; align-self: flex-start; margin-bottom: 18px; }
.drama-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255,77,141,.55); }
.drama-mini-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.drama-mini { position: relative; aspect-ratio: 16/10; border-radius: 12px; display: grid; place-items: center; font-size: 26px; overflow: hidden; }
.drama-mini i { position: absolute; right: 6px; bottom: 6px; font-style: normal; font-size: 10px; padding: 2px 6px; border-radius: 5px; background: rgba(0,0,0,.6); color: #fff; }

/* ============================================================
   10. 四步流程
============================================================ */
.steps-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.step-item { position: relative; padding: 24px 16px; border-radius: 18px; text-align: center; background: rgba(255,255,255,.05); border: 1px solid var(--border); transition: .3s; }
.step-item:hover { transform: translateY(-5px); border-color: rgba(178,75,243,.5); }
.step-ico { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: linear-gradient(135deg, rgba(178,75,243,.28), rgba(255,77,141,.2)); border: 1px solid rgba(178,75,243,.4); box-shadow: 0 0 24px rgba(178,75,243,.25); }
.step-item h4 { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.step-item p { font-size: 11.5px; color: var(--t3); line-height: 1.55; }
.step-arrow { position: absolute; top: 50%; right: -12px; transform: translateY(-50%); font-size: 18px; color: rgba(178,75,243,.7); z-index: 2; }
.step-item:last-child .step-arrow { display: none; }

/* ============================================================
   11. 底部 CTA
============================================================ */
.bottom-cta { max-width: var(--maxw); margin: 40px auto 30px; padding: 0 24px; }
.bc-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 32px; border-radius: 24px; background: linear-gradient(120deg, rgba(255,77,141,.28), rgba(178,75,243,.32)); border: 1px solid rgba(255,77,141,.4); box-shadow: 0 20px 60px rgba(178,75,243,.35); }
.bc-left { display: flex; align-items: center; gap: 16px; }
.bc-fire { font-size: 34px; }
.bc-title { font-family: 'Poppins',sans-serif; font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.bc-sub { font-size: 12.5px; color: rgba(255,255,255,.72); margin-top: 2px; }
.bc-btn { padding: 14px 34px; border-radius: 999px; font-size: 15px; font-weight: 800; color: #fff; background: linear-gradient(135deg,#FF4D8D,#B24BF3); box-shadow: 0 10px 30px rgba(255,77,141,.5); transition: .24s; cursor: pointer; border: 0; white-space: nowrap; display: inline-block; text-align: center; }
.bc-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(255,77,141,.7); }

/* ============================================================
   12. 页脚
============================================================ */
footer { position: relative; z-index: 1; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, transparent, rgba(178,75,243,.05)); }
.foot-inner { max-width: var(--maxw); margin: 0 auto; padding: 52px 24px 34px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 28px; }
.foot-brand p { margin-top: 14px; font-size: 12.5px; color: var(--t3); line-height: 1.85; max-width: 320px; }
.foot-col h5 { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.foot-col a, .foot-col span { display: block; font-size: 13px; color: var(--t2); margin-bottom: 11px; transition: .22s; }
.foot-col a:hover { color: var(--pink); transform: translateX(3px); }
.download-btn { display: block; padding: 8px 12px; margin-bottom: 8px; border-radius: 10px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.06); border: 1px solid var(--border); color: var(--t2); cursor: pointer; transition: .22s; }
.download-btn:hover { color: #fff; background: rgba(178,75,243,.16); border-color: rgba(178,75,243,.5); }
.foot-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.07); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot-bottom p { font-size: 12px; color: var(--t3); }
.foot-tags { display: flex; gap: 10px; }
.foot-tags span { font-size: 11px; color: var(--t3); padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--border); }

/* ============================================================
   13. 登录注册页
============================================================ */
.auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.auth-card { width: 100%; max-width: 420px; padding: 38px 32px; border-radius: 26px; background: linear-gradient(160deg, rgba(24,20,42,.98), rgba(14,12,24,.98)); border: 1px solid rgba(178,75,243,.34); box-shadow: 0 30px 100px rgba(0,0,0,.8); }
.auth-card h2 { font-family: 'Poppins',sans-serif; font-size: 24px; font-weight: 800; text-align: center; margin-bottom: 10px; }
.auth-bonus { font-family: 'Poppins',sans-serif; font-size: 42px; font-weight: 800; text-align: center; background: var(--grad-3); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 10px 0; }
.auth-sub { text-align: center; font-size: 13px; color: var(--t3); margin-bottom: 24px; }
.auth-error { text-align: center; font-size: 13px; color: #FF6B6B; margin-bottom: 14px; padding: 10px; border-radius: 12px; background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.3); }
.invite-banner { padding: 12px 16px; border-radius: 14px; background: rgba(107,255,184,.08); border: 1px solid rgba(107,255,184,.28); font-size: 13px; color: #6BFFB8; text-align: center; margin-bottom: 18px; line-height: 1.6; }
.invite-banner b { color: #fff; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 11.5px; font-weight: 700; color: var(--t3); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 16px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--border); font-size: 13.5px; color: #fff; transition: .24s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(178,75,243,.75); background: rgba(178,75,243,.1); }
.field select option { background: #1a1528; color: #fff; }
.field-hint { font-size: 11px; color: var(--t3); margin-top: 6px; }
.field-hint.error { color: #e0416b; }
.agree-row { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: var(--t2); margin: 16px 0 20px; cursor: pointer; }
.agree-row input { width: auto; accent-color: var(--purple); margin-top: 2px; }
.agree-row a { color: var(--pink); font-weight: 700; text-decoration: underline; }
.m-submit { display: block; width: 100%; padding: 15px; border-radius: 999px; font-size: 15px; font-weight: 800; color: #fff; background: var(--grad); box-shadow: 0 12px 36px rgba(178,75,243,.5); cursor: pointer; transition: .24s; border: 0; text-align: center; }
.m-submit:hover { transform: translateY(-2px); }
.m-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.auth-foot { text-align: center; font-size: 12px; color: var(--t3); margin-top: 18px; }
.auth-foot a { color: var(--blue); }

/* ============================================================
   14. 直播间
============================================================ */
.room-body { background: #08080f; padding-bottom: 40px; }
.room-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 12px 20px; background: rgba(10,10,20,.86); backdrop-filter: blur(22px); border-bottom: 1px solid rgba(255,255,255,.08); }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; color: var(--t2); background: rgba(255,255,255,.06); border: 1px solid var(--border); transition: .24s; flex-shrink: 0; }
.icon-btn:hover { color: #fff; background: rgba(178,75,243,.2); }
.room-host { display: flex; align-items: center; gap: 11px; }
.room-avatar { width: 44px; height: 44px; border-radius: 14px; overflow: hidden; border: 1.5px solid rgba(178,75,243,.55); }
.room-avatar svg { width: 100%; height: 100%; }
.room-name { font-size: 15px; font-weight: 800; }
.room-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 11.5px; color: var(--t3); }
.room-top .spacer { flex: 1; }
.room-balance { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: #FFD166; background: rgba(255,209,102,.1); border: 1px solid rgba(255,209,102,.28); }
.room-layout { display: grid; grid-template-columns: minmax(0,1fr) 356px; gap: 20px; max-width: 1520px; margin: 0 auto; padding: 20px; }
.player { position: relative; aspect-ratio: 16/9; border-radius: 22px; overflow: hidden; background: #0d0a16; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 24px 70px rgba(0,0,0,.6); }
.player-media { position: absolute; inset: 0; }
.player-media svg { width: 100%; height: 100%; }
.player-scrim { position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, transparent 22%, rgba(8,8,15,.78) 100%); }
.player-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; transition: opacity .6s, visibility .6s; z-index: 3; }
.player.ready .player-loading { opacity: 0; visibility: hidden; }
.spinner { width: 52px; height: 52px; border-radius: 50%; border: 3px solid rgba(255,255,255,.1); border-top-color: var(--purple); border-right-color: var(--pink); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-tag { position: absolute; top: 16px; left: 16px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 900; color: #fff; background: linear-gradient(135deg,#FF2D55,#FF4D8D); }
.player-tag i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.25s infinite; }
.player-hint { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 5; padding: 8px 18px; border-radius: 999px; font-size: 12px; color: rgba(255,255,255,.75); background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.12); white-space: nowrap; }
.player-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pbtn { display: inline-flex; align-items: center; gap: 7px; padding: 11px 20px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--t2); background: rgba(255,255,255,.06); border: 1px solid var(--border); transition: .25s; cursor: pointer; }
.pbtn:hover { color: #fff; background: rgba(178,75,243,.18); }
.pbtn.hot { color: #fff; background: var(--grad); border-color: transparent; }
.room-desc { margin-top: 16px; padding: 18px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); font-size: 13px; color: var(--t2); line-height: 1.8; }
.room-desc b { color: #fff; }
.chat-panel { display: flex; flex-direction: column; height: calc(100vh - 84px - 40px); border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--border); backdrop-filter: blur(14px); position: sticky; top: 84px; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 13.5px; font-weight: 800; }
.chat-online { font-size: 11.5px; font-weight: 700; color: var(--blue); }
.chat-list { flex: 1; overflow-y: auto; padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 11px; }
.chat-msg { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.8); padding: 9px 13px; border-radius: 14px; max-width: 92%; word-break: break-word; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.06); animation: msgIn .32s; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.chat-msg.host { background: linear-gradient(135deg, rgba(178,75,243,.18), rgba(255,77,141,.12)); border-color: rgba(178,75,243,.3); color: #fff; }
.chat-msg.user { background: rgba(77,225,255,.1); border-color: rgba(77,225,255,.24); }
.chat-msg.sys { align-self: center; font-size: 11.5px; color: var(--t3); background: transparent; border: 0; }
.chat-input { display: flex; gap: 9px; padding: 13px 14px; border-top: 1px solid rgba(255,255,255,.07); }
.chat-input input { flex: 1; min-width: 0; padding: 11px 15px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--border); font-size: 13px; color: #fff; }
.chat-input button { padding: 0 20px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #fff; background: var(--grad); cursor: pointer; }

/* 礼物面板 */
.gift-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 210; padding: 22px; background: rgba(14,12,24,.96); backdrop-filter: blur(26px); border-top: 1px solid rgba(178,75,243,.3); border-radius: 26px 26px 0 0; transform: translateY(105%); transition: transform .4s; max-height: 70vh; overflow-y: auto; }
.gift-panel.open { transform: translateY(0); }
.gift-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.gift-panel-head h4 { font-size: 15px; font-weight: 800; }
.gift-balance { font-size: 12.5px; font-weight: 800; color: #FFD166; padding: 6px 14px; border-radius: 999px; background: rgba(255,209,102,.1); border: 1px solid rgba(255,209,102,.28); }
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px,1fr)); gap: 12px; }
.gift-item { padding: 16px 8px 12px; border-radius: 16px; text-align: center; cursor: pointer; background: rgba(255,255,255,.05); border: 1px solid var(--border); transition: .26s; }
.gift-item:hover { transform: translateY(-4px); background: rgba(178,75,243,.16); border-color: rgba(178,75,243,.6); }
.gift-item .g-ico { font-size: 30px; margin-bottom: 8px; display: block; }
.gift-item .g-name { font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,.86); margin-bottom: 4px; }
.gift-item .g-price { font-size: 11px; font-weight: 800; color: #FFD166; }

/* 飘屏 */
.fly-layer { position: fixed; inset: 0; pointer-events: none; z-index: 220; overflow: hidden; }
.fly-item { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 22px; border-radius: 999px; font-size: 15px; font-weight: 800; color: #fff; white-space: nowrap; background: linear-gradient(135deg, rgba(178,75,243,.9), rgba(255,77,141,.9)); box-shadow: 0 0 34px rgba(178,75,243,.75); animation: flyAcross 3.2s linear forwards; }
@keyframes flyAcross { 0% { left: -40%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 110%; opacity: 0; transform: translateY(-40px); } }
.gift-burst { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: 110px; z-index: 230; pointer-events: none; animation: burst 1.5s forwards; }
@keyframes burst { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.3); } 35% { opacity: 1; transform: translate(-50%,-50%) scale(1.15); } 70% { opacity: 1; transform: translate(-50%,-50%) scale(1); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.5); } }
.heart-float { position: absolute; bottom: 70px; font-size: 26px; pointer-events: none; z-index: 8; animation: heartUp 2.6s ease-out forwards; }
@keyframes heartUp { 0% { opacity: 0; transform: translateY(0) scale(.5); } 15% { opacity: 1; transform: translateY(-30px) scale(1); } 100% { opacity: 0; transform: translateY(-260px) scale(1.15); } }

/* ============================================================
   15. 弹窗
============================================================ */
.modal-overlay { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(10,8,20,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.modal-overlay.open { display: flex; animation: fadeIn .28s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card { position: relative; width: 100%; border-radius: 26px; padding: 34px 32px 28px; background: linear-gradient(160deg, #ffffff, #f6f4ff); color: #1a1030; box-shadow: 0 30px 100px rgba(0,0,0,.7), 0 0 80px rgba(178,75,243,.28); animation: modalPop .38s cubic-bezier(.2,.8,.2,1); }
@keyframes modalPop { from { opacity: 0; transform: translateY(20px) scale(.94); } to { opacity: 1; transform: none; } }
.modal-x { position: absolute; top: 16px; right: 20px; font-size: 12.5px; color: #8a7fa8; background: none; border: 0; cursor: pointer; padding: 6px 10px; border-radius: 8px; transition: .2s; }
.modal-x:hover { color: #1a1030; background: rgba(0,0,0,.05); }
.modal-title { font-family: 'Poppins',sans-serif; font-size: 22px; font-weight: 800; color: #1a1030; margin-bottom: 24px; text-align: left; letter-spacing: -.02em; }
.modal-register { max-width: 440px; }
.modal-register .field { margin-bottom: 16px; }
.modal-register .field label { display: block; font-size: 12.5px; font-weight: 700; color: #4a3d6b; margin-bottom: 8px; }
.modal-register .field input { width: 100%; padding: 14px 16px; border-radius: 14px; background: #f3f0fb; border: 1.5px solid #e2dbf3; color: #1a1030; font-size: 14px; transition: .22s; }
.modal-register .field input:focus { border-color: #B24BF3; background: #fff; box-shadow: 0 0 0 4px rgba(178,75,243,.12); }
.modal-submit { width: 100%; padding: 16px; border-radius: 999px; font-size: 16px; font-weight: 800; color: #fff; background: linear-gradient(135deg,#FF4D8D,#B24BF3); box-shadow: 0 12px 34px rgba(255,77,141,.45); transition: .24s; cursor: pointer; border: 0; }
.modal-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(255,77,141,.6); }
.modal-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.modal-foot { text-align: center; font-size: 12px; color: #8a7fa8; margin-top: 14px; }
.modal-foot a { color: #B24BF3; font-weight: 700; }
.modal-progress { max-width: 440px; text-align: center; }
.progress-ring { width: 70px; height: 70px; margin: 4px auto 18px; }
.progress-ring svg { width: 100%; height: 100%; animation: spinSlow 1.8s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.progress-title { font-family: 'Poppins',sans-serif; font-size: 18px; font-weight: 800; color: #1a1030; margin-bottom: 16px; letter-spacing: -.01em; }
.progress-bar { width: 100%; height: 8px; border-radius: 999px; background: #f0ebfa; overflow: hidden; margin-bottom: 14px; }
.progress-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg,#FF4D8D,#B24BF3); transition: width .25s linear; }
.progress-remaining { font-size: 13px; color: #4a3d6b; margin-bottom: 10px; }
.progress-remaining b { color: #FF4D8D; font-weight: 900; font-size: 15px; }
.progress-sub { font-size: 12.5px; color: #8a7fa8; line-height: 1.6; margin-bottom: 20px; }
.progress-cancel { padding: 11px 40px; border-radius: 999px; font-size: 13.5px; font-weight: 800; color: #B24BF3; background: #fff; border: 1.5px solid #e2dbf3; cursor: pointer; transition: .22s; }
.progress-cancel:hover { border-color: #B24BF3; background: #faf7ff; }
.progress-tip { font-size: 11px; color: #9a90b8; margin-top: 14px; }
.modal-success { max-width: 440px; text-align: center; }
.success-check { margin: 4px auto 16px; display: flex; justify-content: center; }
.success-title { font-family: 'Poppins',sans-serif; font-size: 22px; font-weight: 800; color: #1a1030; margin-bottom: 10px; }
.success-sub { font-size: 13px; color: #6b5e87; line-height: 1.7; margin-bottom: 24px; }
.success-btn { width: 100%; padding: 15px; border-radius: 999px; font-size: 15px; font-weight: 800; color: #fff; background: linear-gradient(135deg,#FF4D8D,#B24BF3); box-shadow: 0 12px 34px rgba(255,77,141,.45); cursor: pointer; border: 0; transition: .24s; }
.success-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(255,77,141,.6); }

/* ============================================================
   16. 个人中心
============================================================ */
.profile-main { max-width: var(--maxw); margin: 0 auto; padding: 30px 24px 80px; position: relative; z-index: 1; }
.profile-hero { display: flex; align-items: center; gap: 24px; padding: 26px; border-radius: 24px; background: linear-gradient(140deg, rgba(178,75,243,.16), rgba(255,77,141,.1)); border: 1px solid rgba(178,75,243,.3); flex-wrap: wrap; }
.ph-avatar { width: 88px; height: 88px; border-radius: 24px; overflow: hidden; flex-shrink: 0; border: 2px solid rgba(255,255,255,.14); box-shadow: 0 10px 30px rgba(178,75,243,.4); }
.ph-avatar svg { width: 100%; height: 100%; }
.ph-info { flex: 1; min-width: 0; }
.ph-name { font-family: 'Poppins',sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.ph-email { font-size: 13px; color: var(--t3); margin-top: 4px; }
.ph-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ph-tag { padding: 5px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700; border: 1px solid; }
.ph-tag.gold { color: #FFD166; background: rgba(255,209,102,.1); border-color: rgba(255,209,102,.3); }
.ph-tag.green { color: #6BFFB8; background: rgba(107,255,184,.1); border-color: rgba(107,255,184,.3); }
.ph-tag.orange { color: #FFB74D; background: rgba(255,183,77,.1); border-color: rgba(255,183,77,.3); }
.ph-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.ph-actions .btn-grad, .ph-actions .btn-ghost { padding: 11px 22px; text-align: center; white-space: nowrap; }
.profile-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 20px; }
.ps-item { padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); text-align: center; transition: .3s; }
.ps-item:hover { border-color: rgba(178,75,243,.5); transform: translateY(-3px); }
.ps-num { font-family: 'Poppins',sans-serif; font-size: 28px; font-weight: 800; letter-spacing: -.03em; background: var(--grad-3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ps-label { font-size: 12px; color: var(--t3); margin-top: 4px; }
.profile-section { margin-top: 24px; padding: 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--border); }
.invite-card { background: linear-gradient(140deg, rgba(255,77,141,.14), rgba(178,75,243,.1)); border-color: rgba(255,77,141,.3); }
.invite-head { margin-bottom: 22px; }
.invite-head h2 { font-family: 'Poppins',sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.invite-head p { font-size: 13px; color: var(--t3); line-height: 1.6; }
.invite-field { margin-bottom: 16px; }
.invite-field label { display: block; font-size: 11.5px; font-weight: 700; color: var(--t3); margin-bottom: 7px; letter-spacing: .03em; }
.invite-input-row { display: flex; gap: 8px; }
.invite-input-row input { flex: 1; min-width: 0; padding: 13px 16px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid var(--border-hi); color: #fff; font-size: 13.5px; font-family: 'Courier New', monospace; letter-spacing: .02em; }
.invite-input-row input:focus { outline: none; border-color: rgba(178,75,243,.7); }
.invite-input-row button { padding: 0 22px; border-radius: 14px; font-size: 13px; font-weight: 800; color: #fff; background: var(--grad); border: 0; cursor: pointer; transition: .24s; white-space: nowrap; }
.invite-input-row button:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,77,141,.45); }
.invite-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.invite-share button { padding: 9px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--t2); background: rgba(255,255,255,.06); border: 1px solid var(--border); cursor: pointer; transition: .22s; }
.invite-share button:hover { color: #fff; background: rgba(178,75,243,.18); border-color: rgba(178,75,243,.5); transform: translateY(-2px); }
.invite-tip { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(255,209,102,.08); border: 1px solid rgba(255,209,102,.25); font-size: 12px; color: rgba(255,209,102,.95); line-height: 1.7; }
.invite-tip b { color: #FFD166; }
.invite-list, .withdraw-list { display: flex; flex-direction: column; gap: 10px; }
.invite-row, .withdraw-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); transition: .22s; }
.invite-row:hover, .withdraw-row:hover { background: rgba(255,255,255,.06); border-color: rgba(178,75,243,.3); }
.ir-left, .wr-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.ir-avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: 'Poppins',sans-serif; font-size: 16px; font-weight: 800; color: #fff; background: linear-gradient(135deg,#B24BF3,#FF4D8D); flex-shrink: 0; }
.ir-info, .wr-left b { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.ir-info b { font-size: 13.5px; font-weight: 800; color: #fff; }
.ir-info i { font-style: normal; font-size: 11.5px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wr-left b { font-size: 15px; font-weight: 800; color: #FFD166; }
.wr-left i { font-style: normal; font-size: 11.5px; color: var(--t3); margin-top: 3px; }
.ir-badge, .wr-badge { padding: 5px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800; flex-shrink: 0; white-space: nowrap; }
.ir-badge.ok, .wr-badge.ok { color: #6BFFB8; background: rgba(107,255,184,.12); border: 1px solid rgba(107,255,184,.3); }
.ir-badge.no, .wr-badge.no { color: #FF6B6B; background: rgba(255,107,107,.12); border: 1px solid rgba(255,107,107,.3); }
.wr-badge.pending { color: #FFD166; background: rgba(255,209,102,.12); border: 1px solid rgba(255,209,102,.3); }
.empty-tip { text-align: center; padding: 30px 20px; font-size: 13px; color: var(--t3); }

/* ============================================================
   17. 移动端底部 Tab（默认隐藏，768px 以下显示）
============================================================ */
.mobile-tabs { display: none; }

/* ============================================================
   18. 移动端适配（核心 · max-width: 768px）
============================================================ */
@media (max-width: 768px) {

  /* ---------- 全局 ---------- */
  ::-webkit-scrollbar { display: none; }
  .hscroll { -ms-overflow-style: none; scrollbar-width: none; }

  /* ---------- 顶部横幅 ---------- */
  .marquee { height: var(--mobile-marquee-h); }
  .marquee-track span { font-size: 10.5px; padding: 0 20px; }

  /* ---------- 导航栏 ---------- */
  .nav {
    height: var(--mobile-nav-h);
    padding: 0 12px;
    gap: 8px;
    top: var(--mobile-marquee-h);
  }
  .logo-mark { width: 30px; height: 30px; border-radius: 9px; }
  .logo-mark svg { width: 17px; height: 17px; }
  .logo-text { font-size: 15px; }
  .nav-links { display: none; }
  .nav-right { gap: 6px; }
  .lang-dropdown .lang-current { padding: 6px 10px; font-size: 11px; }
  .lang-menu { position: fixed; top: var(--mobile-nav-h); left: 8px; right: 8px; width: auto; max-height: 60vh; overflow-y: auto; border-radius: 14px; }
  .btn-ghost, .btn-grad { padding: 7px 13px; font-size: 11.5px; }
  .btn-ghost.gold { padding: 6px 10px; font-size: 11px; }
  .user-chip { padding: 4px 8px 4px 4px; }
  .user-avatar-sm { width: 24px; height: 24px; }
  .user-name-sm { display: none; }

  /* 主内容区顶部留白 + 底部 Tab 留白 */
  main {
    padding-top: calc(var(--mobile-marquee-h) + var(--mobile-nav-h));
    padding-bottom: calc(var(--mobile-tab-h) + var(--safe-bottom));
  }

  /* ---------- Hero ---------- */
  .hero-new { padding: 16px 16px 28px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-center { order: -1; display: flex; justify-content: center; }
  .hero-photo-wrap { max-width: 100%; aspect-ratio: 16/10; border-radius: 20px; }
  .hero-photo-wrap svg { width: 100%; height: 100%; object-fit: cover; }
  .hero-left { gap: 10px; text-align: left; }
  .hero-title { margin-bottom: 2px; }
  .ht-line1 { display: inline; font-size: clamp(28px,9vw,40px); margin-right: 6px; }
  .ht-line2 { display: inline; font-size: clamp(28px,9vw,40px); }
  .hero-desc { font-size: 12.5px; margin-bottom: 6px; }

  /* 徽章：2×2 网格 */
  .hero-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
  .hb { padding: 8px 10px; font-size: 11px; justify-content: center; text-align: center; border-radius: 12px; }

  /* ============================================================
     新用户福利卡（移动端 · 核心模块）
     参考图：全宽白色卡片、大号金额、渐变按钮、礼物图标
  ============================================================ */
  .new-user-card {
    max-width: 100%;
    padding: 20px 18px 16px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(178,75,243,.15);
    box-shadow: 0 8px 30px rgba(178,75,243,.18);
    color: #1a1030;
    position: relative;
    overflow: hidden;
  }
  .new-user-card::after {
    content: '🎁';
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    font-size: 52px;
    opacity: .85;
    pointer-events: none;
  }
  .nuc-top { margin-bottom: 4px; }
  .nuc-label { font-size: 13px; font-weight: 700; color: #4a3d6b; }
  .nuc-fire { font-size: 14px; }
  .nuc-amount {
    font-size: clamp(44px,14vw,60px);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1;
    background: linear-gradient(135deg,#FF4D8D,#B24BF3 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 20px rgba(255,77,141,.45));
    margin: 4px 0 6px;
    max-width: 65%;
  }
  .nuc-sub { font-size: 12.5px; color: #8a7fa8; margin-bottom: 14px; max-width: 65%; }
  .nuc-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg,#FF8C42,#FF4D8D 50%,#B24BF3);
    box-shadow: 0 8px 26px rgba(255,77,141,.45);
    transition: transform .2s, box-shadow .2s;
    text-align: center;
    border: 0;
    cursor: pointer;
    margin-top: 4px;
  }
  .nuc-btn:active { transform: scale(.97); box-shadow: 0 4px 14px rgba(255,77,141,.35); }
  .nuc-note { font-size: 11px; color: #9a90b8; text-align: center; margin-top: 10px; }

  /* 正在直播侧栏：移动端横向滚动 */
  .hero-live-sidebar { grid-column: auto; margin-top: 0; padding: 14px; border-radius: 16px; }
  .hls-list {
    display: flex; flex-direction: row; gap: 10px; overflow-x: auto;
    padding-bottom: 6px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  }
  .hls-list::-webkit-scrollbar { display: none; }
  .hls-item {
    flex: 0 0 160px; scroll-snap-align: start; flex-direction: column;
    text-align: center; padding: 10px 8px;
    background: rgba(255,255,255,.05); border-radius: 14px;
  }
  .hls-avatar { width: 48px; height: 48px; border-radius: 14px; }
  .hls-info { align-items: center; }
  .hls-info b { font-size: 12px; }
  .hls-info i { font-size: 10px; }
  .hls-more { margin-top: 10px; font-size: 12px; padding: 10px; }

  /* ---------- 功能图标行 ---------- */
  .feature-icons { grid-template-columns: repeat(3,1fr); gap: 8px; padding: 14px 16px 22px; }
  .fi-item { padding: 12px 6px; border-radius: 12px; flex-direction: column; gap: 6px; justify-content: center; }
  .fi-ico { font-size: 20px; }
  .fi-label { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

  /* ---------- 全球直播大厅 ---------- */
  .section { padding: 32px 16px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 16px; }
  .section-title { font-size: clamp(18px,5.5vw,22px); }
  .section-sub { font-size: 12px; line-height: 1.6; }
  .more-link { font-size: 12px; align-self: flex-end; }
  .streamer-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .card { border-radius: 16px; }
  .card-body { padding: 10px 12px 12px; }
  .card-body h3 { font-size: 13px; }
  .card-body p { font-size: 11px; }
  .viewer-badge { font-size: 10px; padding: 3px 7px; }
  .live-badge { font-size: 9px; padding: 3px 7px; }
  .hscroll { gap: 12px; padding: 4px 0 16px; }
  .hscroll .card { flex: 0 0 160px; }

  /* ---------- AI短剧乐园 ---------- */
  .drama-block { grid-template-columns: 1fr; gap: 16px; padding: 20px 16px; border-radius: 20px; }
  .drama-poster-big { min-height: 180px; border-radius: 16px; }
  .dp-emoji { font-size: 64px; }
  .drama-right { text-align: center; }
  .drama-right .section-title { font-size: 20px; justify-content: center; }
  .drama-right .drama-cta { align-self: center; width: 100%; padding: 14px; font-size: 14px; }
  .drama-mini-grid { grid-template-columns: repeat(3,1fr); gap: 8px; }
  .drama-mini { border-radius: 10px; }
  .drama-mini span { font-size: 22px; }

  /* ---------- 热门推荐 ---------- */
  #recommend .hscroll .card { flex: 0 0 150px; }

  /* ---------- 四步流程 ---------- */
  .steps-row { grid-template-columns: 1fr; gap: 12px; }
  .step-item { padding: 18px 16px; border-radius: 16px; text-align: left; display: flex; align-items: flex-start; gap: 14px; }
  .step-ico { width: 44px; height: 44px; margin: 0; flex-shrink: 0; border-radius: 14px; font-size: 20px; }
  .step-item h4 { font-size: 14px; margin-bottom: 3px; }
  .step-item p { font-size: 11.5px; }
  .step-arrow { display: none; }

  /* ---------- 底部 CTA ---------- */
  .bottom-cta { margin: 24px auto 20px; padding: 0 16px; }
  .bc-inner { flex-direction: column; text-align: center; padding: 20px 18px; border-radius: 20px; gap: 14px; }
  .bc-left { flex-direction: column; gap: 8px; align-items: center; }
  .bc-fire { font-size: 28px; }
  .bc-title { font-size: 17px; line-height: 1.3; }
  .bc-sub { font-size: 11.5px; }
  .bc-btn { width: 100%; padding: 14px; font-size: 14px; border-radius: 999px; }

  /* ---------- 页脚 ---------- */
  footer { margin-top: 30px; }
  .foot-inner { padding: 30px 16px calc(20px + var(--mobile-tab-h) + var(--safe-bottom)); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .foot-brand { grid-column: 1 / -1; text-align: center; }
  .foot-brand p { max-width: 100%; font-size: 11.5px; }
  .foot-col h5 { font-size: 11px; margin-bottom: 10px; }
  .foot-col a, .foot-col span { font-size: 12px; margin-bottom: 8px; }
  .download-btn { padding: 7px 10px; font-size: 11.5px; }
  .foot-bottom { flex-direction: column; gap: 10px; text-align: center; margin-top: 24px; padding-top: 18px; }
  .foot-bottom p { font-size: 11px; }
  .foot-tags { justify-content: center; flex-wrap: wrap; }
  .foot-tags span { font-size: 10px; padding: 3px 8px; }

  /* ---------- 移动端底部 Tab ---------- */
  .mobile-tabs {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    height: calc(var(--mobile-tab-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(10,10,20,.96);
    backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .mobile-tabs button {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; font-size: 10px; font-weight: 700;
    color: rgba(255,255,255,.45); background: none; border: 0; cursor: pointer;
    transition: color .2s; padding: 0; position: relative;
  }
  .mobile-tabs button .ti { font-size: 20px; line-height: 1; transition: transform .2s; }
  .mobile-tabs button.active { color: #fff; }
  .mobile-tabs button.active .ti { transform: scale(1.1); filter: drop-shadow(0 0 10px rgba(178,75,243,.9)); }
  .mobile-tabs button.active::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 24px; height: 3px; border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, #B24BF3, #FF4D8D);
  }
  .mobile-tabs a { flex: 1; display: flex; text-decoration: none; }
  .mobile-tabs a button { flex: 1; }

  /* ---------- 弹窗 ---------- */
  .modal-card { border-radius: 22px; padding: 28px 20px 22px; max-height: 85vh; overflow-y: auto; }
  .modal-title { font-size: 19px; margin-bottom: 20px; }
  .modal-register .field input { padding: 13px 14px; font-size: 14px; }
  .modal-submit { padding: 15px; font-size: 15px; }
  .modal-x { font-size: 12px; padding: 5px 8px; }
  .progress-ring { width: 60px; height: 60px; }
  .progress-title { font-size: 16px; }
  .progress-cancel { width: 100%; padding: 13px; }
  .success-title { font-size: 19px; }
  .success-btn { padding: 15px; font-size: 15px; }

  /* ---------- 个人中心 ---------- */
  .profile-main { padding: 20px 16px calc(var(--mobile-tab-h) + var(--safe-bottom) + 20px); }
  .profile-hero { flex-direction: column; text-align: center; align-items: center; padding: 22px 18px; border-radius: 20px; }
  .ph-avatar { width: 72px; height: 72px; border-radius: 20px; }
  .ph-name { font-size: 20px; }
  .ph-email { font-size: 12px; }
  .ph-tags { justify-content: center; }
  .ph-actions { flex-direction: row; width: 100%; gap: 10px; }
  .ph-actions .btn-grad, .ph-actions .btn-ghost { flex: 1; text-align: center; padding: 12px; font-size: 13px; }
  .profile-stats { grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 16px; }
  .ps-item { padding: 16px 12px; border-radius: 14px; }
  .ps-num { font-size: 22px; }
  .ps-label { font-size: 11px; }
  .profile-section { padding: 20px 16px; border-radius: 18px; margin-top: 18px; }
  .invite-head h2 { font-size: 17px; }
  .invite-head p { font-size: 12px; }
  .invite-input-row { flex-wrap: wrap; }
  .invite-input-row input { font-size: 12px; padding: 12px 14px; }
  .invite-input-row button { width: 100%; padding: 12px; border-radius: 12px; margin-top: 2px; }
  .invite-share { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .invite-share button { padding: 10px; font-size: 12px; border-radius: 10px; }
  .invite-tip { font-size: 11px; padding: 12px 14px; line-height: 1.6; }
  .invite-row, .withdraw-row { padding: 12px 14px; border-radius: 12px; }
  .ir-avatar { width: 34px; height: 34px; font-size: 14px; border-radius: 10px; }
  .ir-info b { font-size: 12.5px; }
  .ir-info i { font-size: 10.5px; }
  .ir-badge, .wr-badge { font-size: 10.5px; padding: 4px 10px; }
  .wr-left b { font-size: 14px; }

  /* ---------- 注册/登录页 ---------- */
  .auth-body { padding: 80px 16px calc(var(--mobile-tab-h) + var(--safe-bottom) + 20px); }
  .auth-card { padding: 28px 20px; border-radius: 22px; max-width: 100%; }
  .auth-card h2 { font-size: 20px; }
  .auth-bonus { font-size: 34px; }
  .auth-sub { font-size: 12px; margin-bottom: 20px; }
  .field input, .field select, .field textarea { padding: 13px 14px; font-size: 14px; }
  .m-submit { padding: 15px; font-size: 15px; }

  /* ---------- 直播间 ---------- */
  .room-layout { grid-template-columns: 1fr; padding: 14px; }
  .chat-panel { position: static; height: 460px; }
  .room-top { padding: 10px 14px; gap: 10px; }
  .room-balance { display: none; }
  .player-hint { font-size: 11px; padding: 7px 14px; bottom: 14px; }
  .gift-grid { grid-template-columns: repeat(3,1fr); gap: 10px; }
  .gift-item { padding: 13px 6px 10px; }
  .gift-item .g-ico { font-size: 25px; }
}

/* ============================================================
   19. 桌面端隐藏底部 Tab
============================================================ */
@media (min-width: 769px) {
  .mobile-tabs { display: none !important; }
}

/* ============================================================
   20. 超小屏（iPhone SE 等）
============================================================ */
@media (max-width: 390px) {
  .ht-line1, .ht-line2 { font-size: 26px; }
  .nuc-amount { font-size: 40px; }
  .streamer-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .hscroll .card { flex: 0 0 140px; }
  .feature-icons { grid-template-columns: repeat(3,1fr); gap: 6px; }
  .fi-label { font-size: 9.5px; }
  .foot-grid { grid-template-columns: 1fr; gap: 18px; }
  .foot-brand { text-align: left; }
  .bc-title { font-size: 15px; }
}

/* ============================================================
   21. 横屏手机
============================================================ */
@media (max-width: 900px) and (orientation: landscape) {
  .hero-new { padding-top: 10px; }
  .hero-center { display: none; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-left { grid-column: 1; }
  .hero-live-sidebar { grid-column: 2; }
}

/* ============================================================
   直播间页面（有 header 后调整）
============================================================ */
body.room-body {
  background: #08080f;
  padding-bottom: calc(var(--mobile-tab-h) + var(--safe-bottom));
}

.room-page-main {
  position: relative;
  z-index: 1;
  padding-bottom: 40px;
}

.room-top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(10,10,20,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: sticky;
  top: calc(var(--marquee-h) + var(--nav-h));
  z-index: 20;
}
.room-top-bar .spacer { flex: 1; }

/* ============================================================
   个人中心 - 头像编辑
============================================================ */
.ph-avatar {
  position: relative; /* 用于定位编辑按钮 */
}
.avatar-edit {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  background: linear-gradient(135deg, #B24BF3, #FF4D8D);
  border: 2px solid rgba(255,255,255,.14);
  box-shadow: 0 4px 14px rgba(178,75,243,.55);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  z-index: 5;
  padding: 0;
}
.avatar-edit:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(255,77,141,.7);
}
.avatar-edit:active { transform: scale(.95); }

/* 上传成功动画 */
@keyframes avatarPulse {
  0%   { box-shadow: 0 10px 30px rgba(178,75,243,.4), 0 0 0 0 rgba(107,255,184,.6); }
  100% { box-shadow: 0 10px 30px rgba(178,75,243,.4), 0 0 0 22px rgba(107,255,184,0); }
}
.ph-avatar.avatar-success {
  animation: avatarPulse 1.4s ease-out;
  border-color: #6BFFB8 !important;
}

/* ============================================================
   移动端：直播间
============================================================ */
@media (max-width: 768px) {
  .room-top-bar {
    padding: 10px 14px;
    top: calc(var(--mobile-marquee-h) + var(--mobile-nav-h));
  }
  .room-top-bar .btn-grad.sm {
    padding: 7px 12px;
    font-size: 11.5px;
  }
  .room-layout {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 12px 12px calc(var(--mobile-tab-h) + var(--safe-bottom) + 20px);
  }
  .room-main { gap: 12px; }
  .room-desc { font-size: 12px; padding: 14px 16px; }
  .chat-panel { position: static; height: 400px; }
}

/* ============================================================
   移动端：个人中心（修复头像遮挡）
============================================================ */
@media (max-width: 768px) {
  /* 增大顶部留白，防止头像被固定导航遮挡 */
  .profile-main {
    padding-top: calc(var(--mobile-marquee-h) + var(--mobile-nav-h) + 24px) !important;
    padding-bottom: calc(var(--mobile-tab-h) + var(--safe-bottom) + 24px);
    padding-left: 16px;
    padding-right: 16px;
  }

  /* 用户卡片：垂直排列，头像居中 */
  .profile-hero {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 26px 18px 22px;
    gap: 16px;
    margin-top: 0;
  }
  .ph-avatar {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    margin-top: 0;
    position: relative;
  }
  .avatar-edit {
    width: 30px;
    height: 30px;
    font-size: 14px;
    right: -2px;
    bottom: -2px;
  }
  .ph-name { font-size: 20px; }
  .ph-email { font-size: 12px; }
  .ph-tags { justify-content: center; }
  .ph-actions {
    flex-direction: row;
    width: 100%;
    gap: 10px;
    margin-top: 6px;
  }
  .ph-actions .btn-grad,
  .ph-actions .btn-ghost {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 13px;
  }
}

/* ============================================================
   移动端：首页/直播间的导航栏（右侧按钮往右平移靠边）
============================================================ */
@media (max-width: 768px) {
  .nav {
    padding-left: 12px;
    padding-right: 8px;
  }
  .nav-right {
    margin-left: auto;
    justify-content: flex-end;
    gap: 5px;
    padding-right: 0;
  }
  /* 语言下拉靠左一点，余额+用户图标靠右 */
  .nav-right .lang-dropdown {
    margin-right: 2px;
  }
}

/* ============================================================
   签到 + 抽奖 卡片
============================================================ */
.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px}
.action-card{position:relative;padding:22px 20px;border-radius:20px;text-align:center;transition:.3s;overflow:hidden}
.action-card:hover{transform:translateY(-4px)}
.checkin-card{background:linear-gradient(140deg,rgba(107,255,184,.16),rgba(77,225,255,.1));border:1px solid rgba(107,255,184,.3)}
.lottery-card{background:linear-gradient(140deg,rgba(255,209,102,.16),rgba(255,77,141,.12));border:1px solid rgba(255,209,102,.32)}
.ac-icon{font-size:34px;margin-bottom:8px}
.action-card h3{font-size:16px;font-weight:800;margin-bottom:6px}
.action-card p{font-size:12.5px;color:var(--t3);margin-bottom:14px;line-height:1.6}
.action-card p b{color:#FFD166;font-weight:900}
.ac-btn{width:100%;padding:12px;border-radius:999px;font-size:13.5px;font-weight:800;color:#fff;border:0;cursor:pointer;transition:.24s}
.checkin-card .ac-btn{background:linear-gradient(135deg,#22C55E,#6BFFB8);box-shadow:0 8px 24px rgba(34,197,94,.35)}
.lottery-card .ac-btn{background:linear-gradient(135deg,#FFD166,#FF8C42);box-shadow:0 8px 24px rgba(255,141,66,.4)}
.ac-btn:hover:not(:disabled){transform:translateY(-2px)}
.ac-btn:disabled,.ac-btn.disabled{opacity:.55;cursor:not-allowed;transform:none!important}

/* 未登录拦截：链接点击提示 */
[data-require-login]{cursor:pointer}

/* 移动端适配 */
@media (max-width:768px){
  .action-grid{grid-template-columns:1fr;gap:12px}
  .action-card{padding:18px 16px}
  .ac-icon{font-size:28px}
  .action-card h3{font-size:15px}
}
/* ============================================================
   充值弹窗
============================================================ */
.modal-deposit{background:linear-gradient(160deg,#fff,#f6f4ff);color:#1a1030}
.modal-deposit .modal-title{color:#1a1030}
.modal-deposit .field label{color:#4a3d6b;font-weight:700}
.modal-deposit .field input,
.modal-deposit .field select{width:100%;padding:12px 14px;border-radius:12px;border:1.5px solid #e2dbf3;background:#f8f6ff;color:#1a1030;font-size:14px;box-sizing:border-box}
.modal-deposit .field input:focus,
.modal-deposit .field select:focus{border-color:#B24BF3;background:#fff;box-shadow:0 0 0 4px rgba(178,75,243,.12);outline:none}

.deposit-info-box{
  display:grid;
  grid-template-columns:140px 1fr;
  gap:14px;
  padding:14px;
  border-radius:16px;
  background:#f8f6ff;
  border:1.5px solid #e2dbf3;
  margin-bottom:16px;
}
.deposit-qr-wrap{
  width:140px;height:140px;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  display:grid;place-items:center;
  border:1px dashed #cbbfe8;
}
.deposit-qr-wrap img{width:100%;height:100%;object-fit:contain;display:block}
.deposit-qr-placeholder{display:grid;place-items:center;font-size:11.5px;color:#9a90b8;text-align:center;line-height:1.5;padding:8px}
.deposit-address-wrap{display:flex;flex-direction:column;justify-content:center;min-width:0}
.deposit-address-wrap label{display:block;font-size:11.5px;font-weight:700;color:#4a3d6b;margin-bottom:6px}
.deposit-address-row{display:flex;gap:6px}
.deposit-address-row input{flex:1;min-width:0;padding:10px 12px;border-radius:10px;border:1.5px solid #e2dbf3;background:#fff;color:#1a1030;font-size:12px;font-family:monospace}
.deposit-address-row button{padding:0 14px;border-radius:10px;border:0;background:linear-gradient(135deg,#B24BF3,#FF4D8D);color:#fff;font-weight:800;font-size:12px;cursor:pointer}
.deposit-tip{font-size:10.5px;color:#9a90b8;margin-top:6px;line-height:1.4}
.deposit-foot-note{font-size:11.5px;color:#8a7fa8;margin-top:14px;line-height:1.6;text-align:center}

/* 移动端适配 */
@media (max-width:520px){
  .deposit-info-box{grid-template-columns:1fr}
  .deposit-qr-wrap{width:100%;height:200px;margin:0 auto}
  .deposit-address-row{flex-wrap:wrap}
  .deposit-address-row button{width:100%;padding:10px}
}

/* ============================================================
   直播间 - 真视频播放器
============================================================ */
.live-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  background:#000;
  z-index:1;
  display:block;
}
.player-scrim{
  z-index:2;
  pointer-events:none;
  opacity:.6;
}
.player-tag,
.player-hint,
.player-loading,
.player-error{
  z-index:5;
}
.player-error{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  background:rgba(10,8,20,.86);
  z-index:6;
  padding:20px;
  text-align:center;
  color:#fff;
}
.player-error .pe-icon{font-size:48px;line-height:1}
.player-error p{font-size:13.5px;color:rgba(255,255,255,.75);max-width:320px;line-height:1.6}
.player-error .pe-btn{
  padding:10px 24px;
  border-radius:999px;
  border:0;
  font-size:13.5px;
  font-weight:800;
  color:#fff;
  background:linear-gradient(135deg,#B24BF3,#FF4D8D);
  cursor:pointer;
  box-shadow:0 8px 26px rgba(255,77,141,.45);
}
.player-error .pe-btn:hover{transform:translateY(-2px)}

.video-desc{
  margin-top:10px;
  padding-top:10px;
  border-top:1px dashed rgba(255,255,255,.1);
  font-size:12px;
  color:var(--t3);
  line-height:1.6;
}

.btn-ghost.sm{
  padding:7px 14px;
  font-size:12px;
}

/* 移动端 */
@media (max-width:768px){
  .player-error .pe-icon{font-size:38px}
  .player-error p{font-size:12.5px}
  .room-top-bar .btn-ghost.sm{padding:6px 10px;font-size:11px}
}

/* ============================================================
   自定义图片显示
============================================================ */
/* Hero 主图 */
.hero-photo-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:inherit;
}

/* 短剧主海报 */
.drama-poster-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:20px;
}
.drama-poster-big:has(.drama-poster-img){
  padding:0!important;
  background:none!important;
}

/* 短剧缩略图 */
.drama-thumb-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:12px;
  display:block;
}
.drama-mini:has(.drama-thumb-img){
  padding:0!important;
}
.drama-mini:has(.drama-thumb-img) i{
  z-index:2;
}

/* 卡片内头像图片 */
.card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .7s cubic-bezier(.2,.8,.2,1);
}
.card:hover .card-media img{
  transform:scale(1.07);
}

/* 正在直播列表里的头像 */
.hls-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:inherit;
}

/* 直播间主播头像 */
.room-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:inherit;
}

/* 后台错误提示 */
.admin-error{
  padding:12px 18px;
  border-radius:12px;
  font-size:13px;
  font-weight:700;
  color:#FF6B6B;
  background:rgba(255,107,107,.1);
  border:1px solid rgba(255,107,107,.3);
  margin-bottom:20px;
}
/* ============================================================
   图库图片显示
============================================================ */
.card-media img,
.hls-avatar img,
.room-avatar img,
.player-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:inherit;
}
.card:hover .card-media img{
  transform:scale(1.07);
}
.card-media img{
  transition:transform .7s cubic-bezier(.2,.8,.2,1);
}

/* ============================================================
   自定义图片显示
============================================================ */
/* Hero 主图 */
.hero-photo-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:inherit;
}

/* 短剧主海报 */
.drama-poster-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:20px;
}
.drama-poster-big:has(.drama-poster-img){
  padding:0!important;
  background:none!important;
}

/* 短剧缩略图 */
.drama-thumb-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:12px;
  display:block;
}
.drama-mini:has(.drama-thumb-img){
  padding:0!important;
}
.drama-mini:has(.drama-thumb-img) i{
  z-index:2;
}

/* 卡片头像 */
.card-media img,
.hls-avatar img,
.room-avatar img,
.player-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:inherit;
}
.card-media img{
  transition:transform .7s cubic-bezier(.2,.8,.2,1);
}
.card:hover .card-media img{
  transform:scale(1.07);
}
/* ============================================================
   右侧漂浮按钮（邀请好友 + 客服）
============================================================ */
.floating-actions{
  position:fixed;
  right:22px;
  bottom:38%;
  z-index:80;
  display:flex;
  flex-direction:column;
  gap:14px;
  pointer-events:none;
}
.fa-btn{
  position:relative;
  width:56px;
  height:56px;
  border-radius:50%;
  border:0;
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow:0 8px 24px rgba(0,0,0,.35);
  transition:transform .28s cubic-bezier(.2,.8,.2,1),box-shadow .28s;
  pointer-events:auto;
}
.fa-btn .fa-icon{
  font-size:24px;
  line-height:1;
  display:block;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.25));
}
.fa-btn .fa-tip{
  position:absolute;
  right:70px;
  top:50%;
  transform:translateY(-50%) translateX(8px);
  background:rgba(10,10,20,.96);
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  padding:8px 14px;
  border-radius:10px;
  font-size:12.5px;
  font-weight:700;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:opacity .24s,transform .24s;
  box-shadow:0 8px 24px rgba(0,0,0,.35);
}
.fa-btn .fa-tip::after{
  content:'';
  position:absolute;
  right:-5px;
  top:50%;
  transform:translateY(-50%) rotate(45deg);
  width:10px;height:10px;
  background:rgba(10,10,20,.96);
  border-right:1px solid rgba(255,255,255,.14);
  border-top:1px solid rgba(255,255,255,.14);
}
.fa-btn:hover .fa-tip{
  opacity:1;
  transform:translateY(-50%) translateX(0);
}
.fa-btn:hover{
  transform:scale(1.1);
}

/* 邀请按钮（紫粉渐变 + 脉冲动画） */
.fa-invite{
  background:linear-gradient(135deg,#B24BF3,#FF4D8D);
  color:#fff;
  animation:faPulse 2.6s ease-in-out infinite;
}
@keyframes faPulse{
  0%,100%{
    box-shadow:0 8px 24px rgba(178,75,243,.5), 0 0 0 0 rgba(178,75,243,.6);
  }
  50%{
    box-shadow:0 8px 24px rgba(178,75,243,.5), 0 0 0 14px rgba(178,75,243,0);
  }
}

/* 客服按钮（蓝绿渐变） */
.fa-cs{
  background:linear-gradient(135deg,#4DE1FF,#22C55E);
  color:#fff;
}
.fa-cs:hover{
  box-shadow:0 8px 26px rgba(77,225,255,.6);
}

/* 邀请按钮上的小红点（表示有奖励可领） */
.fa-invite::after{
  content:'';
  position:absolute;
  right:2px;
  top:2px;
  width:12px;
  height:12px;
  border-radius:50%;
  background:#FF3B30;
  border:2px solid #0A0A14;
  box-shadow:0 0 8px rgba(255,59,48,.8);
}

/* 移动端适配 */
@media (max-width:768px){
  .floating-actions{
    right:12px;
    bottom:calc(60px + env(safe-area-inset-bottom) + 20px);
    gap:10px;
  }
  .fa-btn{
    width:46px;
    height:46px;
    box-shadow:0 6px 18px rgba(0,0,0,.4);
  }
  .fa-btn .fa-icon{
    font-size:20px;
  }
  .fa-btn .fa-tip{
    display:none;
  }
  .fa-invite::after{
    width:10px;
    height:10px;
    border-width:1.5px;
  }
}

/* 超小屏 */
@media (max-width:390px){
  .floating-actions{
    right:10px;
    bottom:calc(60px + env(safe-area-inset-bottom) + 14px);
    gap:8px;
  }
  .fa-btn{
    width:42px;
    height:42px;
  }
  .fa-btn .fa-icon{
    font-size:18px;
  }
}
/* 直播间真视频 */
.live-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  background:#000;
  z-index:1;
  display:block;
}
.player-scrim{ z-index:2; pointer-events:none; opacity:.6; }
.player-tag,
.player-hint,
.player-loading,
.player-error{ z-index:5; }
.player-error{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  background:rgba(10,8,20,.86);
  z-index:6;
  padding:20px;
  text-align:center;
  color:#fff;
}
.player-error .pe-icon{font-size:48px;line-height:1}
.player-error p{font-size:13.5px;color:rgba(255,255,255,.75);max-width:320px;line-height:1.6}
.player-error .pe-btn{
  padding:10px 24px;
  border-radius:999px;
  border:0;
  font-size:13.5px;
  font-weight:800;
  color:#fff;
  background:linear-gradient(135deg,#B24BF3,#FF4D8D);
  cursor:pointer;
  box-shadow:0 8px 26px rgba(255,77,141,.45);
}
.video-desc{
  margin-top:10px;
  padding-top:10px;
  border-top:1px dashed rgba(255,255,255,.1);
  font-size:12px;
  color:var(--t3);
  line-height:1.6;
}