/* =========================================================
   星云直播 - 前台样式（PC + H5 自适应）
   ========================================================= */
:root {
    --bg: #0e0c15;
    --bg-soft: #14101f;
    --panel: #181322;
    --panel-2: #1f1830;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .14);
    --text: #f6f3ff;
    --muted: #a49cb9;
    --muted-2: #7d7492;
    --pink: #ff3b6b;
    --pink-2: #ff7694;
    --pink-soft: rgba(255, 59, 107, .12);
    --purple: #7c5cff;
    --green: #36d399;
    --yellow: #fbbf24;
    --red: #ff5d7d;
    --radius: 16px;
    --shadow: 0 24px 70px rgba(0, 0, 0, .42);
    --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(900px 520px at 88% -12%, rgba(124, 92, 255, .18), transparent 62%),
        radial-gradient(720px 440px at 4% -4%, rgba(255, 59, 107, .10), transparent 60%),
        var(--bg);
}

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

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.page-wrap { min-height: 62vh; }

.mono { font-family: Consolas, Monaco, "SFMono-Regular", monospace; font-size: 12px; }
.text-muted { color: var(--muted); }
.text-success { color: var(--green); }
.text-danger { color: var(--red); }
.nowrap { white-space: nowrap; }

.grad-text {
    background: linear-gradient(120deg, var(--pink) 0%, #c46bff 55%, var(--purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------------- 顶部导航 ---------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(14, 12, 21, .78);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 26px;
    height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: .4px;
    flex-shrink: 0;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 8px 22px rgba(255, 59, 107, .32);
}

.brand-text { white-space: nowrap; display: inline-block; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }

.nav-link {
    padding: 8px 13px;
    border-radius: 9px;
    font-size: 14px;
    color: var(--muted);
    white-space: nowrap;
    transition: .2s;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-link.is-active { color: var(--text); background: rgba(255, 59, 107, .12); }

.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.balance-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 59, 107, .1);
    border: 1px solid rgba(255, 59, 107, .22);
    font-size: 12px;
    color: var(--pink-2);
}
.balance-chip strong { color: #ffd3dd; font-size: 13px; }
.balance-label { color: var(--muted); }

.user-link { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.user-name {
    font-size: 13px;
    color: #e6e0f4;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.link-quiet { font-size: 13px; color: var(--muted-2); }
.link-quiet:hover { color: var(--text); }

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #2a2340;
    border: 1px solid rgba(255, 255, 255, .1);
    flex-shrink: 0;
}
.avatar-xs { width: 22px; height: 22px; border-width: 0; }
.avatar-sm { width: 30px; height: 30px; border-width: 0; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 88px; height: 88px; }

/* ---------------- 通用按钮 ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 42px;
    padding: 0 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, opacity .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-primary {
    background: linear-gradient(135deg, var(--pink), #ff6b8a);
    color: #fff;
    box-shadow: 0 10px 26px rgba(255, 59, 107, .26);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(255, 59, 107, .36); }

.btn-ghost {
    background: rgba(255, 255, 255, .035);
    border-color: var(--line);
    color: #e6e0f3;
}
.btn-ghost:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .06); }

.btn-danger { background: rgba(255, 93, 125, .14); border-color: rgba(255, 93, 125, .35); color: #ffb3c2; }

.btn-gift {
    background: linear-gradient(135deg, #ff9a4c, var(--pink));
    color: #fff;
    box-shadow: 0 8px 22px rgba(255, 120, 70, .25);
}

.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn-lg { height: 50px; padding: 0 28px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------------- 徽标 ---------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 23px;
    padding: 0 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(255, 255, 255, .08);
    color: var(--muted);
}
.badge-live { background: rgba(255, 59, 107, .16); color: #ff9db1; }
.badge-idle { background: rgba(255, 255, 255, .07); color: #a49cb9; }
.badge-muted { background: rgba(255, 255, 255, .06); color: var(--muted-2); }
.badge-danger { background: rgba(255, 93, 125, .14); color: #ffa3b5; }
.badge-success { background: rgba(54, 211, 153, .12); color: #7ee8bd; }
.badge-warning { background: rgba(251, 191, 36, .13); color: #ffd77a; }
.badge-role { background: rgba(124, 92, 255, .16); color: #c3b3ff; }

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 0 0 rgba(255, 59, 107, .55);
    animation: livePulse 1.8s infinite;
    display: inline-block;
    flex-shrink: 0;
}
@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 107, .5); }
    70% { box-shadow: 0 0 0 7px rgba(255, 59, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 107, 0); }
}

/* ---------------- 提示 / 表单 ---------------- */
.flash-wrap { padding-top: 18px; }
.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    animation: fadeUp .35s ease both;
}
.flash-success { background: rgba(54, 211, 153, .1); border-color: rgba(54, 211, 153, .28); color: #a7f3d0; }
.flash-error { background: rgba(255, 93, 125, .1); border-color: rgba(255, 93, 125, .3); color: #ffbcc8; }
.flash-info { background: rgba(124, 92, 255, .1); border-color: rgba(124, 92, 255, .3); color: #cfc4ff; }
.flash-close { background: none; border: 0; cursor: pointer; font-size: 18px; line-height: 1; color: inherit; opacity: .6; }
.flash-close:hover { opacity: 1; }

.form-stack { display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 13px; color: #d6cfe6; }
.field.full, .field-span-2 { grid-column: 1 / -1; }

.input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #120e1c;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}
.input:focus { border-color: rgba(255, 59, 107, .65); box-shadow: 0 0 0 3px rgba(255, 59, 107, .11); }
.input::placeholder { color: #6d6584; }
.input:disabled { opacity: .6; cursor: not-allowed; }
.textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.7; }
.input-file {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px dashed var(--line-strong);
    background: #120e1c;
    color: var(--muted);
    font-size: 13px;
}
.input-file::file-selector-button {
    border: 0;
    background: rgba(255, 255, 255, .08);
    color: var(--text);
    padding: 7px 12px;
    border-radius: 7px;
    margin-right: 10px;
    cursor: pointer;
}
.hint { font-size: 12px; color: var(--muted-2); line-height: 1.75; }
.form-alert {
    padding: 12px 15px;
    border-radius: 10px;
    background: rgba(255, 93, 125, .1);
    border: 1px solid rgba(255, 93, 125, .3);
    color: #ffbcc8;
    font-size: 13px;
    line-height: 1.7;
}
.check-inline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #d6cfe6; }
.check-inline input { width: 15px; height: 15px; accent-color: var(--pink); }

/* ---------------- 卡片 / 表格 ---------------- */
.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)), var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
}

.panel { padding: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-head h2 { font-size: 17px; }
.panel-head h3 { font-size: 15px; }
.panel-divider { height: 1px; background: var(--line); margin: 22px 0; }
.link-more { font-size: 12px; color: var(--muted); }
.link-more:hover { color: var(--pink-2); }
.link-primary { color: var(--pink-2); }
.link-primary:hover { text-decoration: underline; }
.link-quiet:hover { color: var(--text); }

.table-wrap { overflow-x: auto; border-radius: 10px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
    text-align: left;
    padding: 11px 10px;
    font-weight: 500;
    color: var(--muted-2);
    font-size: 12px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.table td { padding: 13px 10px; border-bottom: 1px solid rgba(255, 255, 255, .05); color: #ddd7eb; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, .025); }

.empty-mini {
    padding: 24px;
    text-align: center;
    color: var(--muted-2);
    font-size: 13px;
    background: rgba(255, 255, 255, .02);
    border-radius: 10px;
}

.empty-state { text-align: center; padding: 60px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border-radius: 22px;
    background: rgba(255, 59, 107, .1);
    color: var(--pink-2);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 18px;
}
.empty-state h3 { font-size: 18px; margin-bottom: 6px; }
.empty-state p { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.empty-state.compact { padding: 30px 16px; border: 0; }

/* ---------------- 分页 ---------------- */
.pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    background: rgba(255, 255, 255, .025);
}
a.page-link:hover { color: var(--text); border-color: var(--line-strong); }
.page-link.is-current { background: linear-gradient(135deg, var(--pink), #ff6b8a); border-color: transparent; color: #fff; font-weight: 600; }
.page-link.is-disabled { opacity: .4; cursor: not-allowed; }
.page-dots { color: var(--muted-2); padding: 0 2px; }
.page-summary { margin-left: auto; font-size: 12px; color: var(--muted-2); }

/* ---------------- 首页 Hero ---------------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 56px; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hero-glow-a { width: 460px; height: 460px; background: rgba(255, 59, 107, .18); top: -160px; right: 6%; }
.hero-glow-b { width: 420px; height: 420px; background: rgba(124, 92, 255, .2); bottom: -220px; left: -80px; }

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.06fr .94fr;
    gap: 40px;
    align-items: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(255, 59, 107, .1);
    border: 1px solid rgba(255, 59, 107, .22);
    color: #ffa8bb;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 54px;
    line-height: 1.12;
    letter-spacing: -1.4px;
    font-weight: 800;
    margin-bottom: 18px;
}
.hero-sub { color: var(--muted); font-size: 15px; line-height: 1.85; max-width: 540px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat strong { font-size: 24px; letter-spacing: -.5px; }
.hero-stat span { font-size: 12px; color: var(--muted-2); }
.hero-stat + .hero-stat { padding-left: 30px; border-left: 1px solid var(--line); }

.hero-visual { position: relative; min-height: 400px; display: flex; align-items: center; justify-content: center; }
.hero-card {
    position: relative;
    width: min(410px, 100%);
    padding: 13px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)), #1b1528;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: var(--shadow);
    transform: rotate(-2.5deg);
    transition: transform .4s;
}
.hero-card:hover { transform: rotate(0deg) translateY(-4px); }

.hero-screen {
    position: relative;
    height: 220px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, .22), transparent 40%),
        linear-gradient(135deg, #5523a8, #eb3d72 60%, #ff9a62);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}
.hero-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 6, 16, .05), rgba(9, 6, 16, .55));
}
.hero-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    margin: -29px 0 0 -29px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}
.hero-play::after {
    content: "";
    position: absolute;
    left: 23px;
    top: 19px;
    border-left: 16px solid #1a1128;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}
.hero-live-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 9px;
    border-radius: 6px;
    background: rgba(10, 8, 16, .55);
    color: #ffdfe5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    backdrop-filter: blur(6px);
}
.hero-screen-title {
    position: relative;
    z-index: 1;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}
.hero-card-foot { display: flex; align-items: center; gap: 10px; padding: 13px 4px 5px; }
.hero-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb56b, #ff4d7a);
    border: 2px solid rgba(255, 255, 255, .2);
    flex-shrink: 0;
}
.hero-card-foot strong { display: block; font-size: 13px; }
.hero-card-foot span { font-size: 11px; color: var(--muted-2); }

.hero-bullet {
    position: absolute;
    left: 12%;
    bottom: 80px;
    max-width: 78%;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(10, 8, 16, .62);
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: 11px;
    color: #f0eaf9;
    backdrop-filter: blur(8px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-bullet-2 { left: auto; right: 8%; bottom: 122px; opacity: .82; }

.hero-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 13px;
    background: rgba(24, 19, 35, .9);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    backdrop-filter: blur(12px);
    animation: floatY 5s ease-in-out infinite;
}
.hero-float-gift { right: -4%; top: 12%; }
.hero-float-online { left: -5%; bottom: 16%; animation-delay: 1.4s; font-size: 12px; color: #e9e3f7; }
.hero-gift-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffb75c, var(--pink));
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}
.hero-float-gift strong { display: block; font-size: 12px; }
.hero-float-gift span { font-size: 11px; color: var(--muted-2); }
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

.home-body { padding-bottom: 60px; }
.site-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    margin-bottom: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    border: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}
.notice-tag {
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(255, 59, 107, .14);
    color: #ffa8bb;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: 26px; letter-spacing: -.4px; margin-bottom: 4px; }
.section-head p { font-size: 13px; color: var(--muted); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.tab { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 7px; font-size: 13px; color: var(--muted); }
.tab:hover { color: var(--text); }
.tab.is-active { background: rgba(255, 59, 107, .16); color: #ffadbe; font-weight: 600; }
.tab-count { font-size: 10px; background: rgba(0, 0, 0, .25); padding: 1px 6px; border-radius: 5px; }

.room-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.room-card {
    display: block;
    border-radius: 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform .22s, border-color .22s, box-shadow .22s;
}
.room-card:hover { transform: translateY(-4px); border-color: rgba(255, 59, 107, .32); box-shadow: 0 18px 44px rgba(0, 0, 0, .35); }
.room-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #221a30;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.room-cover.has-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 9, 18, .05), rgba(12, 9, 18, .55)); }
.cover-fallback { background: linear-gradient(135deg, #3a1f63, #7a2a5f 55%, #b6435e); }
.room-card:nth-child(4n+2) .cover-fallback { background: linear-gradient(135deg, #1e335e, #4a2c7a 55%, #8a3a70); }
.room-card:nth-child(4n+3) .cover-fallback { background: linear-gradient(135deg, #5c2b22, #8a3b4d 55%, #c46684); }
.room-card:nth-child(4n+4) .cover-fallback { background: linear-gradient(135deg, #1d4a4a, #2f5a7d 55%, #5b4a95); }
.cover-letter { font-size: 44px; font-weight: 800; color: rgba(255, 255, 255, .26); pointer-events: none; }
.cover-badge { position: absolute; top: 10px; left: 10px; z-index: 2; backdrop-filter: blur(6px); }
.cover-viewers {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 24px;
    padding: 0 8px;
    border-radius: 6px;
    background: rgba(8, 6, 13, .55);
    color: #f2edff;
    font-size: 11px;
    backdrop-filter: blur(4px);
}
.room-card-body { padding: 12px 13px 14px; }
.room-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.room-meta { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 11px; color: var(--muted-2); min-width: 0; }
.room-anchor { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 96px; }
.room-dot { opacity: .55; }

/* ---------------- 登录 / 注册 ---------------- */
.page-auth .page-wrap { padding: 48px 0 72px; }
.auth-shell {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    background: var(--panel);
    box-shadow: var(--shadow);
}
.auth-visual {
    position: relative;
    padding: 52px 46px;
    background:
        radial-gradient(circle at 80% 8%, rgba(255, 255, 255, .16), transparent 38%),
        linear-gradient(150deg, #40206f, #872552 55%, #c9496d);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.auth-visual::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .12);
    right: -120px;
    bottom: -140px;
}
.auth-visual h1 { font-size: 38px; line-height: 1.22; letter-spacing: -1px; margin-bottom: 16px; }
.auth-visual .hero-kicker { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); color: #ffe4ea; }
.auth-visual p { color: rgba(255, 255, 255, .72); font-size: 13px; line-height: 1.9; max-width: 360px; }
.auth-points { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.auth-points li { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255, 255, 255, .86); }
.auth-points span {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}
.auth-visual-foot { margin-top: auto; padding-top: 36px; font-size: 11px; color: rgba(255, 255, 255, .48); }
.auth-card { padding: 44px 42px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.auth-card h2 { font-size: 25px; margin-bottom: 6px; letter-spacing: -.4px; }
.auth-sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.auth-switch { margin-top: 20px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-switch a { color: var(--pink-2); font-weight: 600; }

/* ---------------- 直播间 ---------------- */
.page-room .page-wrap { padding: 22px 0 44px; }
.room-page { max-width: 1380px; }
.room-layout { display: grid; grid-template-columns: minmax(0, 1fr) 356px; gap: 20px; align-items: start; }
.room-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.room-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #08060d;
    border: 1px solid var(--line);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .4);
}
.player-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    opacity: 0;
    transition: opacity .3s;
    z-index: 2;
}
.player-shell.is-playing .player-video { opacity: 1; }
.player-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-color: #221a30;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .3s;
}
.player-placeholder.is-hidden { opacity: 0; pointer-events: none; }
.player-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(75, 38, 120, .7), rgba(138, 35, 74, .7));
    z-index: 0;
}
.player-placeholder[style]::before { background: rgba(10, 7, 16, .3); }
.placeholder-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 7, 16, .45), rgba(10, 7, 16, .82)); z-index: 1; }
.placeholder-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
    padding: 20px;
}
.placeholder-letter {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 5px;
}
.placeholder-inner strong { font-size: 16px; font-weight: 600; }
.placeholder-inner > span:not(.placeholder-letter):not(.placeholder-warn) { font-size: 12px; color: rgba(255, 255, 255, .65); }
.placeholder-warn { margin-top: 6px; font-size: 11px; color: #ffd0a3; background: rgba(0, 0, 0, .35); padding: 5px 10px; border-radius: 6px; }
.placeholder-action { margin-top: 8px; }
.player-top {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}
.player-online {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 9px;
    border-radius: 6px;
    background: rgba(8, 6, 13, .55);
    color: #eee8fa;
    font-size: 11px;
    backdrop-filter: blur(4px);
}
.player-sound-tip {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 5;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(8, 6, 13, .6);
    color: rgba(255, 255, 255, .7);
    font-size: 11px;
    backdrop-filter: blur(4px);
    transition: opacity .3s;
}
.player-sound-tip.is-hidden { opacity: 0; }
.player-shell.is-playing .player-sound-tip { opacity: 0; }
.player-shell.is-playing:hover .player-sound-tip { opacity: 1; }

.bullet-layer { position: absolute; inset: 58px 0 22% 0; z-index: 3; overflow: hidden; pointer-events: none; }
.bullet {
    position: absolute;
    left: 100%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(8, 6, 13, .55);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    animation: bulletMove linear forwards;
    will-change: transform;
}
.bullet-name { color: #ffb9c8; font-size: 11px; }
@keyframes bulletMove {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100vw - 100%)); }
}

.gift-effect-layer {
    position: absolute;
    top: 52px;
    right: 14px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
}
.gift-effect {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    background: linear-gradient(120deg, rgba(255, 59, 107, .88), rgba(255, 138, 76, .82));
    border: 1px solid rgba(255, 255, 255, .25);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
    animation: giftIn .4s cubic-bezier(.2, .9, .3, 1.2) both;
    max-width: 300px;
}
.gift-effect.is-out { animation: giftOut .45s ease forwards; }
.gift-effect-icon { width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.gift-effect-icon .gift-img { width: 32px; height: 32px; }
.gift-effect-icon .gift-letter { width: 32px; height: 32px; border-radius: 9px; font-size: 14px; }
.gift-effect-text { font-size: 12px; line-height: 1.5; color: #fff; }
.gift-effect-text strong { display: block; font-size: 12px; }
@keyframes giftIn { from { opacity: 0; transform: translateX(24px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes giftOut { to { opacity: 0; transform: translateY(-10px); } }

.room-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 22px; }
.room-head-main { min-width: 0; }
.room-title-row h1 { font-size: 22px; line-height: 1.35; letter-spacing: -.3px; overflow-wrap: anywhere; }
.room-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted-2); margin-top: 7px; }
.room-anchor-name { color: var(--muted); }
.room-head-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }

.room-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 18px 8px;
}
.room-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 10px; }
.room-stat + .room-stat { border-left: 1px solid var(--line); }
.room-stat span { font-size: 11px; color: var(--muted-2); }
.room-stat strong { font-size: 18px; letter-spacing: -.2px; }

.room-about { padding: 20px 22px; }
.room-about h2 { font-size: 15px; margin-bottom: 8px; }
.room-about p { font-size: 13px; color: var(--muted); line-height: 1.85; }
.room-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.room-tags span { font-size: 11px; color: var(--muted); padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .05); }

.anchor-card { overflow: hidden; }
.anchor-banner { height: 78px; background: linear-gradient(135deg, #43236e, #7a2a5f 60%, #b6435e); }
.anchor-body { position: relative; padding: 0 20px 20px; text-align: center; }
.anchor-avatar { margin: -32px auto 10px; border: 3px solid var(--panel); position: relative; }
.anchor-name-row { display: flex; align-items: center; justify-content: center; gap: 8px; }
.anchor-name-row h3 { font-size: 16px; }
.anchor-meta { font-size: 11px; color: var(--muted-2); margin-top: 3px; }
.anchor-actions { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.anchor-actions .btn { flex: 1; }

.chat-panel {
    display: flex;
    flex-direction: column;
    height: min(680px, calc(100vh - 108px));
    min-height: 420px;
    position: sticky;
    top: 88px;
    overflow: hidden;
}
.chat-panel .panel-head { padding: 16px 18px 12px; margin: 0; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.chat-online { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted-2); }
.chat-list { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 11px; scroll-behavior: smooth; }
.chat-system { font-size: 11px; color: var(--muted-2); padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .035); line-height: 1.7; }
.chat-item { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.6; animation: chatIn .25s ease both; }
.chat-body { min-width: 0; overflow-wrap: anywhere; }
.chat-name { color: #a99cd0; margin-right: 6px; font-size: 11px; }
.chat-text { color: #ece7f8; }
.chat-item.chat-gift .chat-text { color: #ffb46b; }
.chat-item.chat-gift { background: rgba(255, 138, 76, .08); border: 1px solid rgba(255, 138, 76, .18); border-radius: 8px; padding: 7px 9px; }
@keyframes chatIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.chat-tip { padding: 8px 16px; font-size: 11px; color: var(--muted-2); border-top: 1px solid var(--line); flex-shrink: 0; }
.chat-tip a { color: var(--pink-2); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); flex-shrink: 0; }
.chat-input { height: 38px; font-size: 12px; background: #120e1c; }
.chat-send { height: 38px; padding: 0 14px; font-size: 12px; flex-shrink: 0; }
.chat-actions { display: flex; align-items: center; gap: 10px; padding: 0 12px 12px; flex-shrink: 0; }
.chat-balance { font-size: 11px; color: var(--muted-2); margin-left: auto; }
.chat-balance strong { color: #ffd2dc; font-size: 12px; }
.chat-recharge { font-size: 11px; color: var(--pink-2); }

/* ---------------- 礼物弹窗 ---------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(6, 4, 10, .72); backdrop-filter: blur(6px); }
.modal-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    max-height: 86vh;
    overflow-y: auto;
    background: var(--panel);
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 22px;
    animation: fadeUp .25s ease both;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.modal-head h3 { font-size: 17px; }
.modal-close { background: none; border: 0; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.gift-balance { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted-2); margin-bottom: 16px; }
.gift-balance strong { color: #ffd2dc; font-size: 14px; }
.gift-balance a { color: var(--pink-2); font-size: 12px; }
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gift-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 13px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
    border: 1px solid var(--line);
    cursor: pointer;
    transition: .2s;
    color: var(--text);
}
.gift-item:hover { border-color: rgba(255, 59, 107, .4); background: rgba(255, 59, 107, .07); transform: translateY(-1px); }
.gift-item:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.gift-icon-wrap { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.gift-img { width: 42px; height: 42px; object-fit: contain; }
.gift-letter {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 59, 107, .25), rgba(124, 92, 255, .25));
    border: 1px solid rgba(255, 255, 255, .12);
    color: #ffd7df;
    font-size: 17px;
    font-weight: 700;
}
.gift-name { font-size: 12px; }
.gift-price { font-size: 11px; color: var(--pink-2); }
.gift-hint { font-size: 11px; color: var(--muted-2); line-height: 1.7; margin-top: 16px; }

/* ---------------- 个人中心 ---------------- */
.page-profile .page-wrap { padding: 28px 0 56px; }
.profile-page { display: flex; flex-direction: column; gap: 18px; }
.profile-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px; }
.profile-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(500px 220px at 88% 0, rgba(124, 92, 255, .28), transparent 60%),
        linear-gradient(120deg, rgba(255, 59, 107, .12), transparent 55%);
    pointer-events: none;
}
.profile-identity { position: relative; display: flex; align-items: center; gap: 18px; min-width: 0; }
.profile-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-name-row h1 { font-size: 24px; letter-spacing: -.4px; }
.profile-identity p { font-size: 12px; color: var(--muted-2); margin-top: 4px; }
.profile-apply-status { font-size: 12px; color: var(--muted); }
.profile-apply-status a { color: var(--pink-2); }
.profile-balance {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border-radius: 12px;
    background: rgba(10, 8, 16, .45);
    border: 1px solid var(--line);
    flex-shrink: 0;
}
.profile-balance span { font-size: 11px; color: var(--muted-2); }
.profile-balance strong { font-size: 20px; color: #ffd6df; }
.profile-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-tile {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.stat-tile span { font-size: 11px; color: var(--muted-2); }
.stat-tile strong { font-size: 19px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.simple-list { display: flex; flex-direction: column; gap: 8px; }
.simple-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.simple-list li:last-child { border-bottom: 0; }
.simple-list a { color: #ddd6ef; }
.simple-list a:hover { color: var(--pink-2); }

/* ---------------- 主播申请 ---------------- */
.page-apply .page-wrap { padding: 40px 0 60px; }
.apply-page { display: flex; flex-direction: column; gap: 24px; }
.apply-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 30px;
    padding: 38px 36px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background:
        radial-gradient(500px 260px at 90% 0, rgba(124, 92, 255, .28), transparent 60%),
        linear-gradient(130deg, rgba(255, 59, 107, .12), rgba(24, 19, 34, .7));
    overflow: hidden;
}
.apply-hero h1 { font-size: 38px; line-height: 1.2; letter-spacing: -1px; margin-bottom: 14px; }
.apply-hero p { font-size: 13px; color: var(--muted); line-height: 1.9; max-width: 520px; }
.apply-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: center; }
.apply-step { padding: 13px 14px; border-radius: 11px; background: rgba(10, 8, 16, .38); border: 1px solid var(--line); }
.apply-step span { font-size: 10px; color: var(--pink-2); font-weight: 700; letter-spacing: 1px; }
.apply-step strong { display: block; font-size: 13px; margin: 3px 0 2px; }
.apply-step p { font-size: 11px; color: var(--muted-2); line-height: 1.6; }
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.status-box { padding: 16px 18px; border-radius: 11px; margin-bottom: 16px; font-size: 13px; line-height: 1.8; border: 1px solid transparent; }
.status-box strong { display: block; margin-bottom: 4px; font-size: 14px; }
.status-box p { color: inherit; opacity: .85; margin: 0; }
.status-pending { background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .28); color: #ffdf9c; }
.status-rejected { background: rgba(255, 93, 125, .08); border-color: rgba(255, 93, 125, .26); color: #ffb8c5; }
.status-success { background: rgba(54, 211, 153, .08); border-color: rgba(54, 211, 153, .26); color: #a7f3d0; }
.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.check-list strong { font-size: 13px; }
.check-list span { color: var(--muted); line-height: 1.75; }
.check-list.compact { gap: 11px; }
.info-callout { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: rgba(124, 92, 255, .08); border: 1px solid rgba(124, 92, 255, .22); font-size: 12px; color: var(--muted); line-height: 1.8; }
.info-callout strong { color: #d8ceff; display: block; margin-bottom: 3px; }

/* ---------------- 充值 / 支付 ---------------- */
.page-recharge .page-wrap, .page-pay .page-wrap { padding: 34px 0 60px; }
.recharge-page, .pay-page { display: flex; flex-direction: column; gap: 18px; }
.page-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.page-title-row h1 { font-size: 28px; letter-spacing: -.6px; }
.page-title-row p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.balance-card-inline { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 10px; background: rgba(255, 59, 107, .08); border: 1px solid rgba(255, 59, 107, .2); }
.balance-card-inline span { font-size: 11px; color: var(--muted); }
.balance-card-inline strong { font-size: 18px; color: #ffd6df; }
.recharge-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
.amount-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.amount-preset {
    height: 38px;
    padding: 0 16px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
    transition: .18s;
}
.amount-preset:hover, .amount-preset.is-active { border-color: rgba(255, 59, 107, .5); color: #ffd0da; background: rgba(255, 59, 107, .09); }
.input-amount { font-size: 18px; height: 50px; letter-spacing: .5px; }

.pay-card { max-width: 660px; margin: 0 auto; width: 100%; padding: 30px; }
.pay-head { text-align: center; margin-bottom: 22px; }
.pay-kicker { font-size: 11px; color: var(--muted-2); letter-spacing: 2px; }
.pay-head h1 { font-size: 42px; letter-spacing: -1px; margin: 6px 0 10px; }
.pay-actions { margin: 20px 0; }
.info-list { background: rgba(10, 8, 16, .28); border: 1px solid var(--line); border-radius: 10px; padding: 4px 16px; }
.info-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: 13px; }
.info-row:last-child { border-bottom: 0; }
.info-row span { color: var(--muted-2); }
.info-row strong { font-weight: 500; color: #e7e2f3; text-align: right; }
.pay-foot { display: flex; justify-content: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.pay-note { margin-top: 18px; text-align: center; font-size: 11px; color: var(--muted-2); line-height: 1.7; }

/* ---------------- 提示页 / 错误页 ---------------- */
.page-message, .page-error { display: flex; align-items: center; justify-content: center; padding: 24px; min-height: 100vh; }
.message-card { width: 100%; max-width: 520px; text-align: center; padding: 38px 30px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.brand-center { justify-content: center; margin-bottom: 24px; }
.message-card h1 { font-size: 25px; margin-bottom: 10px; }
.message-card p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.message-actions { display: flex; gap: 10px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.error-box { max-width: 620px; padding: 36px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); text-align: center; }
.error-box h1 { font-size: 24px; margin-bottom: 10px; }
.error-box p { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.error-box .detail { text-align: left; font-size: 11px; color: #ffb8c5; background: #0b0912; padding: 12px; border-radius: 8px; overflow-x: auto; white-space: pre-wrap; }

/* ---------------- 页脚 ---------------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; margin-top: 30px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted-2); }
.footer-inner strong { color: var(--muted); }
.footer-dot { padding: 0 4px; opacity: .5; }
.footer-meta { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }

/* ---------------- 全局 Toast ---------------- */
.app-toast {
    position: fixed;
    left: 50%;
    top: 84px;
    transform: translateX(-50%) translateY(-8px);
    z-index: 200;
    padding: 10px 18px;
    border-radius: 9px;
    background: rgba(24, 19, 35, .96);
    border: 1px solid var(--line-strong);
    color: #f3effa;
    font-size: 13px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .4);
    opacity: 0;
    transition: .25s;
    pointer-events: none;
    max-width: 86vw;
    text-align: center;
}
.app-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.app-toast.is-error { border-color: rgba(255, 93, 125, .4); color: #ffc0cc; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1180px) {
    .room-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .room-layout { grid-template-columns: minmax(0, 1fr) 330px; }
}

@media (max-width: 980px) {
    .hero { padding: 46px 0 40px; }
    .hero-inner { grid-template-columns: 1fr; gap: 34px; }
    .hero h1 { font-size: 46px; }
    .hero-visual { min-height: 360px; max-width: 460px; margin: 0 auto; width: 100%; }
    .hero-float-gift { right: 0; }
    .hero-float-online { left: 0; }
    .auth-shell { grid-template-columns: 1fr; max-width: 560px; }
    .auth-visual { display: none; }
    .auth-card { padding: 36px 30px; }
    .room-layout { grid-template-columns: 1fr; }
    .chat-panel { position: static; height: 460px; }
    .apply-hero { grid-template-columns: 1fr; padding: 28px; }
    .apply-hero h1 { font-size: 32px; }
    .apply-grid { grid-template-columns: 1fr; }
    .recharge-grid { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .topbar-inner { height: auto; min-height: 58px; flex-wrap: wrap; gap: 8px 14px; padding: 9px 16px 7px; }
    .brand-text { font-size: 16px; max-width: 150px; }
    .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
    .brand-mark svg { width: 22px; height: 22px; }
    .main-nav { display: flex; flex: 1 0 100%; order: 3; width: 100%; padding: 2px 0 0; gap: 2px; }
    .nav-link { padding: 6px 10px; font-size: 12px; border-radius: 7px; }
    .topbar-user { margin-left: auto; }
    .user-name { display: none; }
    .balance-label { display: none; }
    .balance-chip { height: 31px; padding: 0 9px; }
    .container { padding: 0 16px; }
    .input, .chat-input, select.input, textarea.input { font-size: 16px; }
    .app-toast { top: 112px; }
    .hero h1 { font-size: 38px; }
    .hero-sub { font-size: 14px; }
    .hero-stats { gap: 18px; }
    .hero-stat strong { font-size: 20px; }
    .hero-stat + .hero-stat { padding-left: 18px; }
    .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .room-title { font-size: 13px; height: 38px; }
    .room-card-body { padding: 10px 11px 12px; }
    .section-head h2 { font-size: 22px; }
    .profile-hero { flex-direction: column; align-items: flex-start; }
    .profile-tiles { grid-template-columns: repeat(2, 1fr); }
    .profile-grid { gap: 14px; }
    .profile-identity { align-items: flex-start; }
    .avatar-xl { width: 72px; height: 72px; }
    .room-page { padding: 0; }
    .page-room .page-wrap { padding: 12px 0 30px; }
    .room-head { flex-direction: column; gap: 12px; }
    .room-head-actions { width: 100%; }
    .room-head-actions .btn { flex: 1; }
    .room-title-row h1 { font-size: 18px; }
    .room-stats { grid-template-columns: 1fr 1fr; padding: 14px 6px; row-gap: 14px; }
    .room-stat:nth-child(3) { border-left: 0; }
    .player-shell { border-radius: 12px; }
    .bullet-layer { inset: 48px 0 20% 0; }
    .gift-effect-layer { top: 42px; right: 8px; }
    .gift-effect { max-width: 240px; padding: 7px 9px; }
    .room-about { padding: 16px 18px; }
    .anchor-card { display: none; }
    .chat-panel { min-height: 420px; height: 440px; }
    .site-footer { padding: 22px 0; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
    .apply-steps { grid-template-columns: 1fr 1fr; }
    .pay-card { padding: 22px 18px; }
    .pay-head h1 { font-size: 36px; }
    .form-grid { grid-template-columns: 1fr; }
    .modal-card { padding: 18px; }
    .gift-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .gift-item { padding: 10px 6px; }
}

@media (max-width: 520px) {
    .room-grid { grid-template-columns: 1fr; }
    .room-cover { aspect-ratio: 16 / 9; }
    .room-title { height: auto; }
    .hero h1 { font-size: 32px; letter-spacing: -.8px; }
    .hero-actions .btn { flex: 1; }
    .hero-visual { display: none; }
    .auth-card { padding: 28px 20px; }
    .amount-preset { flex: 1; }
    .apply-steps { grid-template-columns: 1fr; }
    .profile-tiles { grid-template-columns: 1fr 1fr; }
    .room-head-actions .btn { font-size: 12px; padding: 0 10px; }
    .gift-grid { grid-template-columns: repeat(2, 1fr); }
    .chat-panel { height: 420px; }
    .pagination { gap: 6px; }
    .page-link { min-width: 32px; height: 32px; font-size: 12px; }
    .page-summary { display: none; }
}
