/* 全局样式与变量 */
:root {
    --bg-dark: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    /* 动态主题色：每次抽奖或卡片自身都会覆盖该变量 */
    --theme-color: #ec4899;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    /* 高级深空背景与轻微渐变光晕 */
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 0%, #1e1b4b 0%, var(--bg-dark) 60%);
    background-attachment: fixed;
}

/* 顶部全站进度条 */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 24px;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
}

.energy-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.energy-label {
    font-weight: 800;
    font-size: 1.15rem;
    color: #fca5a5;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(252, 165, 165, 0.4);
}

.energy-track {
    flex-grow: 1;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.energy-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f43f5e, #ec4899, #d946ef);
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* bounce effect */
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.7);
}

.energy-text {
    font-family: 'Inter', monospace;
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 150px;
    text-align: right;
}

/* 主体内容区 */
.wall-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 20px;
}

.header-titles {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-titles h1 {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fca5a5, #f472b6, #e879f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    letter-spacing: 2px;
}

.header-titles p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* 瀑布流/网格布局 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 35px;
    align-items: start;
}

/* 明星打榜卡片 */
.star-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #1e293b;
    height: 420px;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.star-card:hover {
    transform: translateY(-10px) scale(1.02);
    /* 悬浮时光效依据自身主题色 */
    box-shadow: 0 25px 45px var(--theme-color-transparent, rgba(236, 72, 153, 0.3));
}

.star-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.star-card:hover .star-image {
    transform: scale(1.1);
}

/* 半透明毛玻璃底座 */
.card-info-glass {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.star-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.star-name {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.likes-count {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--theme-color, #fca5a5);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* 卡片按钮区 */
.actions-row {
    display: flex;
    gap: 12px;
    position: relative;
}

.btn {
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #fff;
    outline: none;
}

.btn:active {
    transform: scale(0.92);
}

.like-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--theme-color);
    box-shadow: 0 4px 15px var(--theme-color-transparent, rgba(236, 72, 153, 0.1));
}

.like-btn:hover {
    background: var(--theme-color);
    box-shadow: 0 8px 25px var(--theme-color-transparent, rgba(236, 72, 153, 0.5));
}

.lottery-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lottery-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* 有抽奖次数时的按钮动效 */
.lottery-btn.has-draws {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-color: #fbbf24;
    color: #000;
    animation: goldPulse 2s infinite;
}

@keyframes goldPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.8);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(251, 191, 36, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    }
}

/* 漂浮爱心特效 */
#hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.floating-heart {
    position: fixed;
    font-size: 28px;
    pointer-events: none;
    animation: floatUpAndFade 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    z-index: 9999;
}

@keyframes floatUpAndFade {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }

    15% {
        opacity: 1;
        transform: translate(-50%, calc(-50% - 30px)) scale(1.3) rotate(var(--rot1));
    }

    100% {
        transform: translate(calc(-50% + var(--tx)), calc(-50% - 180px)) scale(0.8) rotate(var(--rot2));
        opacity: 0;
    }
}

/* 抽奖盲盒弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: linear-gradient(145deg, #1a2540, #0d1526);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 80px -12px rgba(0, 0, 0, 0.9), 0 0 50px var(--theme-color-transparent, rgba(236, 72, 153, 0.2));
    transform: translateY(30px) scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.3);
    overflow: visible;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-btn {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.close-btn:hover {
    background: rgba(239, 68, 68, 0.85);
    border-color: #ef4444;
    color: #fff;
    transform: scale(1.1);
}

.lottery-title {
    margin-bottom: 12px;
    font-size: 2rem;
    font-weight: 900;
    /* 标题颜色与当前明星主题色呼应 */
    color: var(--theme-color, #fff);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.lottery-info {
    color: #94a3b8;
    margin-bottom: 35px;
    font-size: 1.1rem;
}

#available-draws {
    color: #fbbf24;
    font-weight: 900;
    font-size: 1.4rem;
}

/* 盲盒 3D 效果容器 */
.blind-box-container {
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 35px;
    perspective: 1000px;
}

.blind-box {
    width: 130px;
    height: 130px;
    /* 箱体基于主题色 */
    background: linear-gradient(135deg, var(--theme-color, #ec4899), #831843);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(255, 255, 255, 0.25);
    transform-style: preserve-3d;
}

.box-lid {
    position: absolute;
    top: -15px;
    left: -5%;
    width: 110%;
    height: 45px;
    background: linear-gradient(to bottom, #f8fafc, #cbd5e1);
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    transform-origin: top center;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.box-body {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    position: relative;
}

.box-star-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 14px;
    border-radius: 12px;
}

/* 盲盒动态：震动与打开 */
.shaking .blind-box {
    animation: boxShake 0.4s ease-in-out infinite alternate;
}

.opening .box-lid {
    transform: rotateX(115deg) translateY(-25px);
}

.opening .blind-box {
    animation: boxPop 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes boxShake {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(-6deg) scale(1.05);
    }

    50% {
        transform: translateY(0) rotate(6deg);
    }

    75% {
        transform: translateY(-8px) rotate(-6deg) scale(1.05);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes boxPop {
    0% {
        transform: scale(1) translateY(0);
    }

    50% {
        transform: scale(1.2) translateY(-30px);
        box-shadow: 0 25px 50px var(--theme-color-transparent);
    }

    100% {
        transform: scale(1) translateY(0);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 60px var(--theme-color-transparent);
    }
}

/* 抽奖按钮 */
.draw-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--theme-color, #ec4899), #d946ef);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px var(--theme-color-transparent, rgba(236, 72, 153, 0.4));
}

.draw-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px var(--theme-color-transparent, rgba(236, 72, 153, 0.6));
}

.draw-btn:disabled {
    background: #334155;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.draw-result {
    margin-top: 25px;
    min-height: 30px;
    font-size: 1.2rem;
    font-weight: 800;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.draw-result.show {
    opacity: 1;
    animation: bounceInUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceInUp {
    0% {
        transform: translateY(20px) scale(0.8);
        opacity: 0;
    }

    80% {
        transform: translateY(-5px) scale(1.05);
        opacity: 1;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}


/* ===== 用户中心按钮 (全局) ===== */
.user-center-btn {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    margin-left: auto;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.user-center-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

/* ===== Auth & 地址表单输入框 (全局) ===== */
.auth-input {
    width: 100%;
    padding: 13px 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.auth-input:focus {
    border-color: var(--theme-color, #ec4899);
    background: rgba(255, 255, 255, 0.08);
}

.addr-textarea {
    resize: vertical;
    min-height: 80px;
}

.auth-tip {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #64748b;
}

/* ===== 个人中心 (全局) ===== */
.user-stats {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    text-align: left;
    line-height: 1.6;
}

.records-title {
    font-size: 1.05rem;
    margin-bottom: 12px;
    text-align: left;
    color: #e2e8f0;
    font-weight: 700;
}

.prize-records {
    max-height: 260px;
    overflow-y: auto;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    padding: 8px;
}

.prize-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    gap: 10px;
}

.prize-item:last-child {
    border-bottom: none;
}

.fill-addr-btn {
    background: linear-gradient(135deg, #ec4899, #d946ef);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    transition: opacity 0.2s;
    font-family: inherit;
}

.fill-addr-btn:hover {
    opacity: 0.85;
}

.dist-badge {
    color: #34d399;
    font-size: 0.85rem;
    font-weight: bold;
}

.empty-record {
    color: #475569;
    text-align: center;
    padding: 24px 0;
    font-size: 0.9rem;
}

/* ===== 明星沉浸式详情弹窗 (全局) ===== */
.detail-content {
    max-width: 440px;
    width: 92%;
    padding: 0;
    background: #0d1526;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 60px var(--theme-color-transparent, rgba(236, 72, 153, 0.35)),
        0 30px 80px rgba(0, 0, 0, 0.8);
    overflow: visible;
    border-radius: 28px;
    text-align: left;
}

.detail-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.detail-image-box {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 300px;
    flex-shrink: 0;
    border-radius: 28px 28px 0 0;
}

#detail-star-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.image-frame-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 45%, rgba(13, 21, 38, 1) 100%);
    pointer-events: none;
}

/* 名字浮层在图片底部 */
.detail-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.detail-actions-box {
    padding: 18px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 底部关闭按钮 */
.detail-close-btn {
    margin-top: 16px;
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.detail-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fca5a5;
}

.detail-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.huge-btn {
    padding: 14px;
    font-size: 1rem;
    border-radius: 14px;
}

.big-count {
    font-size: 1rem;
    padding: 5px 14px;
    display: inline-block;
    margin-bottom: 14px;
    border-radius: 20px;
}

.unlock-tip {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    margin-top: 6px;
    line-height: 1.4;
}

/* ===== 视频通话相关按钮 (全局) ===== */
.video-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    border: 1px solid #34d399;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.video-btn:hover {
    background: #059669;
}

.video-btn.locked {
    background: rgba(51, 65, 85, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.5);
    color: #64748b;
    cursor: not-allowed;
    box-shadow: none;
}

.video-btn.unlocked {
    animation: goldPulse 2s infinite;
}

/* ===== 视频通话全屏浮层 (全局) ===== */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.video-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.video-container {
    width: 100%;
    max-width: 420px;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #111;
}

.video-background-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    filter: brightness(0.7) contrast(1.1);
    animation: slightZoom 10s infinite alternate;
}

@keyframes slightZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.06);
    }
}

.video-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 50px 24px 60px;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.65) 0%,
            transparent 25%,
            transparent 65%,
            rgba(0, 0, 0, 0.85) 100%);
}

.video-top {
    text-align: center;
}

.connection-status {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.calling-pulse::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 1s infinite alternate;
}

.video-bottom {
    text-align: center;
}

.caller-info h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 1);
}

.caller-info p {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 36px;
}

.video-actions {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.call-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 1rem;
    font-weight: 800;
    font-family: inherit;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
}

.call-btn:active {
    transform: scale(0.9);
}

.call-btn.decline {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.5);
}

.call-btn.accept {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.5);
    animation: goldPulse 1.5s infinite;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .header-titles {
        margin-bottom: 30px;
    }

    .header-titles h1 {
        font-size: 2.2rem;
        margin-bottom: 8px;
    }

    .header-titles p {
        font-size: 1rem;
    }

    .wall-container {
        padding: 30px 15px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .star-card {
        height: 280px;
        border-radius: 16px;
    }

    .card-info-glass {
        padding: 12px;
        gap: 8px;
    }

    .star-name {
        font-size: 1.2rem;
    }

    /* 用户中心按钮 */
    .user-center-btn {
        background: linear-gradient(135deg, #3b82f6, #8b5cf6);
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 20px;
        font-weight: 800;
        cursor: pointer;
        margin-left: auto;
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
        transition: transform 0.2s;
    }

    .user-center-btn:hover {
        transform: scale(1.05);
    }

    /* Auth & Address Form */
    .auth-input {
        width: 100%;
        padding: 14px;
        margin-bottom: 16px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(0, 0, 0, 0.3);
        color: white;
        font-size: 1rem;
        font-family: inherit;
        outline: none;
    }

    .auth-input:focus {
        border-color: var(--theme-color, #ec4899);
    }

    .addr-textarea {
        resize: vertical;
        min-height: 80px;
    }

    .auth-tip {
        margin-top: 15px;
        font-size: 0.9rem;
        color: #94a3b8;
    }

    /* User Center */
    .user-stats {
        background: rgba(255, 255, 255, 0.05);
        padding: 15px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .records-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        text-align: left;
        color: #e2e8f0;
    }

    .prize-records {
        max-height: 250px;
        overflow-y: auto;
        text-align: left;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 12px;
        padding: 10px;
    }

    .prize-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .prize-item:last-child {
        border-bottom: none;
    }

    .fill-addr-btn {
        background: #ec4899;
        border: none;
        color: white;
        padding: 4px 8px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 0.8rem;
    }

    .dist-badge {
        color: #10b981;
        font-size: 0.85rem;
        font-weight: bold;
    }

    .empty-record {
        color: #64748b;
        text-align: center;
        padding: 20px 0;
    }

    /* 明星沉浸式详情弹窗 */
    .detail-content {
        max-width: 500px;
        width: 92%;
        padding: 0;
        background: #0d1526;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 60px var(--theme-color-transparent), 0 30px 80px rgba(0, 0, 0, 0.8);
        overflow: hidden;
        border-radius: 28px;
    }

    .detail-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .detail-image-box {
        width: 100%;
        position: relative;
        border-radius: 0;
        overflow: hidden;
        height: 320px;
        flex-shrink: 0;
    }

    #detail-star-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
        display: block;
    }

    .image-frame-effect {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to bottom, transparent 50%, rgba(13, 21, 38, 0.98) 100%);
        pointer-events: none;
        border-bottom: 3px solid var(--theme-color);
    }

    .detail-actions-box {
        padding: 20px 24px 28px;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .big-count {
        font-size: 1.1rem;
        padding: 6px 14px;
        display: inline-block;
        margin-bottom: 16px;
        border-radius: 20px;
    }

    .detail-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .huge-btn {
        padding: 14px;
        font-size: 1rem;
        border-radius: 14px;
    }

    .video-btn {
        background: linear-gradient(135deg, #10b981, #059669);
        border: 1px solid #34d399;
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    }

    .video-btn:hover {
        background: #059669;
    }

    .video-btn.locked {
        background: #334155;
        border-color: #475569;
        color: #94a3b8;
        cursor: not-allowed;
        box-shadow: none;
    }

    .video-btn.unlocked {
        animation: goldPulse 2s infinite;
    }

    .unlock-tip {
        font-size: 0.85rem;
        color: #94a3b8;
        text-align: center;
        margin-top: 5px;
    }

    /* 模拟视频通话全屏 UI */
    .video-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #000;
        z-index: 3000;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    .video-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .video-container {
        width: 100%;
        max-width: 500px;
        height: 100vh;
        position: relative;
        overflow: hidden;
        background: #111;
    }

    .video-background-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(0.8) contrast(1.1);
        animation: slightZoom 10s infinite alternate;
    }

    @keyframes slightZoom {
        0% {
            transform: scale(1);
        }

        100% {
            transform: scale(1.05);
        }
    }

    .video-ui {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 40px 20px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 20%, transparent 70%, rgba(0, 0, 0, 0.8) 100%);
    }

    .video-top {
        text-align: center;
    }

    .connection-status {
        color: #fff;
        font-size: 1.1rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
        position: relative;
    }

    /* 闪烁的拨号状态 */
    .calling-pulse::after {
        content: '';
        position: absolute;
        right: -15px;
        top: 6px;
        width: 8px;
        height: 8px;
        background: #10b981;
        border-radius: 50%;
        animation: pulse 1s infinite alternate;
    }

    .video-bottom {
        text-align: center;
    }

    .caller-info h2 {
        font-size: 2.5rem;
        font-weight: 900;
        margin-bottom: 8px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    }

    .caller-info p {
        font-size: 1.2rem;
        color: #e2e8f0;
        margin-bottom: 30px;
    }

    .video-actions {
        display: flex;
        justify-content: center;
        gap: 40px;
    }

    .call-btn {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        border: none;
        cursor: pointer;
        color: white;
        font-size: 1.1rem;
        font-weight: 800;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        transition: transform 0.2s;
    }

    .call-btn:active {
        transform: scale(0.9);
    }

    .call-btn.decline {
        background: #ef4444;
    }

    .call-btn.accept {
        background: #10b981;
        animation: goldPulse 1.5s infinite;
    }

    /* 响应式调整追加 */
    @media (max-width: 768px) {
        .detail-layout {
            flex-direction: column;
        }

        .detail-image-box {
            min-height: 300px;
        }

        .huge-btn {
            padding: 14px;
            font-size: 1.1rem;
        }

        .video-container {
            height: 100vh;
            max-width: 100%;
        }
    }

    .likes-count {
        font-size: 0.85rem;
        padding: 4px 8px;
    }

    .actions-row {
        gap: 8px;
    }

    .btn {
        padding: 8px 4px;
        font-size: 0.85rem;
        flex-direction: column;
        gap: 4px;
        border-radius: 8px;
    }

    /* 在手机上简化按钮文案，节省空间 */
    .btn span {
        font-size: 0.8rem;
    }

    .energy-label {
        font-size: 0.95rem;
    }

    .energy-text {
        font-size: 0.85rem;
        min-width: auto;
    }

    .top-bar {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .header-titles h1 {
        font-size: 1.8rem;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .star-card {
        height: 240px;
        border-radius: 12px;
    }

    .card-info-glass {
        padding: 10px;
        gap: 6px;
    }

    .star-name {
        font-size: 1.05rem;
    }

    .likes-count {
        font-size: 0.75rem;
        padding: 2px 6px;
    }

    .btn {
        padding: 6px 2px;
    }

    .btn span {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .energy-container {
        flex-wrap: wrap;
        gap: 8px;
    }

    .energy-track {
        order: 3;
        width: 100%;
        height: 12px;
        margin-top: 4px;
    }

    .energy-label {
        font-size: 0.9rem;
    }

    .energy-text {
        font-size: 0.8rem;
    }

    .modal-content {
        padding: 25px 20px;
        width: 85%;
    }

    .lottery-title {
        font-size: 1.5rem;
    }

    .blind-box-container {
        height: 180px;
    }

    .blind-box {
        width: 100px;
        height: 100px;
    }

    .draw-btn {
        padding: 12px;
        font-size: 1.1rem;
    }
}