/* --- 资产仪表盘 --- */
.asset-dashboard {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    padding: 20px; border-radius: 24px; margin-bottom: 40px;
    border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.01);
}
.asset-item {
    position: relative; display: flex; align-items: center; gap: 14px;
    padding: 16px; height: 88px; overflow: visible; 
    background: rgba(255, 255, 255, 0.03); border-radius: 18px;
    border: 1px solid rgba(157, 78, 221, 0.1); transition: 0.3s; cursor: pointer; 
}
.asset-item:hover { 
    background: rgba(157, 78, 221, 0.15); transform: translateY(-2px); 
    border-color: var(--color-brand-light); box-shadow: 0 4px 20px rgba(157, 78, 221, 0.2);
}
.asset-icon-circle {
    width: 44px; height: 44px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
    background: rgba(0, 0, 0, 0.3); color: var(--text-secondary); border: 1px solid rgba(255,255,255,0.05);
}
.balance-icon { color: var(--color-brand-light); background: rgba(157, 78, 221, 0.15); box-shadow: 0 0 10px rgba(157, 78, 221, 0.2); }
.points-icon { color: var(--color-accent); background: rgba(0, 243, 255, 0.15); box-shadow: 0 0 10px rgba(0, 243, 255, 0.2); }
.record-icon { color: #f72585; background: rgba(247, 37, 133, 0.15); box-shadow: 0 0 10px rgba(247, 37, 133, 0.2); }

.asset-data { display: flex; flex-direction: column; position: relative; } 
.asset-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 2px; }
.asset-number { 
    font-size: 20px; font-weight: 800; color: #fff; letter-spacing: 0.5px; 
    position: relative; display: inline-block; width: fit-content; text-shadow: 0 0 10px rgba(157, 78, 221, 0.3);
}
.asset-number small { font-size: 14px; font-weight: normal; margin-right: 2px; color: var(--text-tertiary); }
.asset-sub { font-size: 14px; font-weight: 600; color: #fff; }

.btn-add-funds {
    position: absolute; right: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%;
    background: var(--color-brand-light); color: #000;
    display: flex; align-items: center; justify-content: center; transition: 0.2s; box-shadow: 0 0 8px var(--color-brand-main);
}
.btn-add-funds:hover { transform: scale(1.1); box-shadow: 0 0 15px #fff; background: #fff; }

/* 积分兑换相关 */
.points-bubble {
    position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: 8px;
    background: linear-gradient(135deg, #f72585 0%, #7209b7 100%);
    color: #fff; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; white-space: nowrap;
    box-shadow: 0 2px 10px rgba(247, 37, 133, 0.5); animation: bubbleFloat 2s ease-in-out infinite;
    pointer-events: none; display: none; z-index: 10; line-height: 1.4; border: 1px solid rgba(255,255,255,0.2);
}
.points-bubble::before {
    content: ''; position: absolute; left: -4px; top: 50%; transform: translateY(-50%);
    border-width: 4px 4px 4px 0; border-style: solid; border-color: transparent #f72585 transparent transparent;
}
@keyframes bubbleFloat { 0%, 100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 3px)); } }

/* 模态框及内容 */
.exchange-body { padding: 24px; width: 100%; box-sizing: border-box; }
.exchange-info-card {
    background: rgba(0, 0, 0, 0.3); border-radius: 16px; padding: 20px;
    margin-bottom: 24px; 
    display: flex; justify-content: space-between; align-items: center;
    border: 1px solid rgba(157, 78, 221, 0.2);
    width: 100%; box-sizing: border-box;
}
.ex-info-item { text-align: center; flex: 1; min-width: 0; }
.ex-info-label { font-size: 12px; color: var(--text-tertiary); margin-bottom: 4px; }
.ex-info-val { font-size: 20px; font-weight: 800; color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.ex-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.1); }
.ex-input-group { position: relative; margin-bottom: 12px; width: 100%; }
.ex-input {
    width: 100%; padding: 16px; padding-right: 80px;
    background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; color: #fff; font-size: 18px; font-weight: bold; font-family: monospace;
}
.ex-input:focus { border-color: var(--color-brand-light); outline: none; box-shadow: 0 0 10px rgba(157, 78, 221, 0.2); }
.ex-btn-max {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: rgba(157, 78, 221, 0.2); color: var(--color-brand-light);
    padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600;
}
.btn-exchange {
    width: 100%; padding: 16px;
    background: linear-gradient(135deg, #7209b7 0%, #f72585 100%);
    color: #fff; font-weight: 800; font-size: 18px; border-radius: 14px; transition: 0.3s;
    box-shadow: 0 5px 20px rgba(114, 9, 183, 0.4); margin-top: 12px;
}
.exchange-result {
    display: none; flex-direction: column; align-items: center; justify-content: center; padding: 40px 30px;
}
.ex-res-icon {
    font-size: 48px; color: var(--color-success); margin-bottom: 16px;
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(34, 197, 94, 0.1); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}
.ex-res-detail {
    margin-top: 20px; padding: 15px; width: 100%;
    background: rgba(255,255,255,0.05); border-radius: 12px;
    display: flex; justify-content: space-between; align-items: center;
}
.ex-res-arrow { color: var(--text-tertiary); }

/* --- 闪购盲盒 (Flash Sale) --- */
.flash-sale-container {
    background: linear-gradient(145deg, rgba(20, 10, 30, 0.9) 0%, rgba(40, 10, 60, 0.9) 100%);
    border-radius: 20px; padding: 2px; position: relative;
    width: 100%; margin-bottom: 40px;
    animation: breathingFloat 5s ease-in-out infinite;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(157, 78, 221, 0.3);
}
@keyframes breathingFloat {
    0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6); }
    50% { transform: translateY(-4px) scale(1.01); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(157, 78, 221, 0.15); }
}

.flash-card-inner { background: #0d0616; border-radius: 18px; display: flex; flex-direction: row; overflow: hidden; position: relative; height: 100%; }
.flash-img-wrapper { flex: 0 0 45%; position: relative; min-height: 320px; overflow: hidden; }
.flash-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.badge-flash {
    position: absolute; top: 20px; left: 0;
    background: linear-gradient(90deg, #3a0ca3, #4361ee);
    color: #fff; padding: 6px 18px 6px 12px; font-weight: 800; font-size: 14px; letter-spacing: 1px;
    border-radius: 0 4px 4px 0; border: 1px solid #4cc9f0; border-left: none; box-shadow: 4px 4px 10px rgba(0,0,0,0.4); z-index: 2;
}
.badge-flash::after { content: 'LIMITED'; display: block; font-size: 10px; color: #a5a6f6; font-weight: normal; }
.flash-content { flex: 1; padding: 35px; display: flex; flex-direction: column; justify-content: center; position: relative; background: #140824; }
.bg-decoration { position: absolute; right: -10px; bottom: -30px; font-size: 100px; line-height: 1; opacity: 0.05; color: #e0aaff; pointer-events: none; font-family: Impact, sans-serif; transform: rotate(-5deg); }
.flash-title { font-size: 32px; margin-bottom: 12px; color: #fff; font-weight: 700; letter-spacing: 0.5px; text-shadow: 0 0 20px rgba(157, 78, 221, 0.5); }
.flash-desc { color: var(--text-secondary); margin-bottom: 25px; font-size: 14px; line-height: 1.6; max-width: 90%; }
.price-area { display: flex; align-items: baseline; margin-bottom: 25px; position: relative; }
.fs-current-price {
    font-size: 42px; font-weight: 800;
    background: linear-gradient(to bottom, #fff, #e0aaff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-right: 12px;
    filter: drop-shadow(0 0 5px rgba(224, 170, 255, 0.5));
}
.fs-original-price { text-decoration: line-through; color: #666; font-size: 16px; }
.fs-free-tag { background: rgba(247, 37, 133, 0.15); color: #f72585; border: 1px solid #f72585; padding: 4px 10px; border-radius: 4px; font-size: 12px; margin-left: 12px; transform: translateY(-8px); font-weight: 600; }
.timer-panel { background: transparent; padding: 10px 0; margin-bottom: 20px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); width: fit-content; }
.timer-label { margin-right: 15px; font-size: 12px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 1px; font-weight: bold; }
.countdown-digits { font-family: 'Monaco', 'Consolas', monospace; font-size: 20px; font-weight: bold; color: var(--color-accent); letter-spacing: 2px; text-shadow: 0 0 10px rgba(0, 243, 255, 0.3); }

/* Flash Sale 按钮 */
.action-btn {
    width: 100%; padding: 16px; border-radius: 30px;
    font-size: 16px; font-weight: 700; cursor: pointer;
    transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px;
    position: relative; overflow: hidden;
    background: var(--grad-btn-action); border: none; color: #000; 
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.4);
    animation: pulse-cyan 2s infinite; margin-top: 24px;
}
.action-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 30px rgba(0, 243, 255, 0.6); }
.btn-disabled { background: #2a2a35; color: #555; border: 1px solid #333; cursor: not-allowed; box-shadow: none; animation: none; }
@media (max-width: 768px) {
    .flash-card-inner { flex-direction: column; }
    .flash-img-wrapper { min-height: 240px; flex: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .flash-content { padding: 25px 20px; }
}

/* --- 盲盒网格 --- */
.box-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; padding-bottom: 80px; }
.box-card {
    position: relative; border-radius: 22px; padding: 2px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0; transform: translateY(30px); cursor: pointer;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(0,0,0,0));
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    /* 给普通盲盒保留原来的入场动画 */
    animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.box-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px -5px rgba(157, 78, 221, 0.3); }

.box-inner { background: #0e0618; border-radius: 20px; height: 100%; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.box-placeholder { width: 100%; height: 180px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.box-placeholder::before { content: ''; position: absolute; inset: 0; background-image: var(--texture-pattern); opacity: 0.15; mix-blend-mode: overlay; }
.box-icon-fallback { font-size: 60px; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)); transform: rotate(-5deg); transition: 0.4s; }
.box-card:hover .box-icon-fallback { transform: scale(1.1) rotate(0deg); }
.box-img-real { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; position: relative; z-index: 2; }
.box-card:hover .box-img-real { transform: scale(1.05); }
.box-info { padding: 20px; position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; }
.box-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.box-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 16px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.box-footer { display: flex; align-items: center; justify-content: space-between; }
.box-price-display { display: flex; align-items: baseline; gap: 4px; }
.price-symbol { font-size: 14px; color: var(--text-secondary); }
.price-amount { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }

.btn-open {
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(255,255,255,0.1); color: #fff;
    display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.box-card:hover .btn-open { 
    animation: pulse-cyan 2s infinite;
    background: var(--grad-btn-action); 
    color: #000; 
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;    
}

/* 等级配色 (普通盲盒) */
.box-card[data-tier="starter"] { background: linear-gradient(135deg, #3c096c, #10002b); box-shadow: 0 10px 30px -10px rgba(60, 9, 108, 0.5); }
.box-card[data-tier="starter"] .box-placeholder { background: linear-gradient(to bottom, #240046, #0e0618); }
.box-card[data-tier="starter"] .box-icon-fallback { color: #5a189a; }
.box-card[data-tier="starter"] .price-amount { color: #9d4edd; }

.box-card[data-tier="premium"] { background: linear-gradient(135deg, #7209b7, #3a0ca3); box-shadow: 0 10px 30px -10px rgba(114, 9, 183, 0.5); }
.box-card[data-tier="premium"] .box-placeholder { background: linear-gradient(to bottom, #480ca8, #0e0618); }
.box-card[data-tier="premium"] .box-icon-fallback { color: #b5179e; }
.box-card[data-tier="premium"] .price-amount { color: #f72585; text-shadow: 0 0 5px rgba(247, 37, 133, 0.4); }

.box-card[data-tier="luxury"] { background: linear-gradient(135deg, #4cc9f0, #f72585); box-shadow: 0 10px 30px -10px rgba(247, 37, 133, 0.5); }
.box-card[data-tier="luxury"] .box-placeholder { background: linear-gradient(to bottom, #3a0ca3, #0e0618); }
.box-card[data-tier="luxury"] .box-icon-fallback { color: #4cc9f0; }
.box-card[data-tier="luxury"] .price-amount { background: linear-gradient(90deg, #4cc9f0, #f72585); -webkit-background-clip: text; color: transparent; }

/* 骨架屏样式 */
.skeleton-card { opacity: 1 !important; transform: none !important; background: rgba(255,255,255,0.02) !important; pointer-events: none; cursor: default; }
.skeleton-img { width: 100%; height: 180px; border-radius: 20px 20px 0 0; }
.skeleton-text { height: 16px; margin-bottom: 8px; border-radius: 4px; }
.skeleton-btn { width: 40px; height: 40px; border-radius: 12px; }
.w-70 { width: 70%; } .w-40 { width: 40%; } .w-30 { width: 30%; }
.skeleton-flash-hero { width: 100%; height: 400px; border-radius: 20px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; }

/* 模态框通用 */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-panel { background: #0f0518; border: 1px solid var(--color-brand-main); border-radius: 24px; padding: 0; width: 90%; max-width: 480px; position: relative; transform: scale(0.95) translateY(20px); transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); box-shadow: 0 0 50px rgba(157, 78, 221, 0.3); overflow: hidden; display: flex; flex-direction: column; }
.modal-overlay.active .modal-panel { transform: scale(1) translateY(0); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; background: rgba(255,255,255,0.08); border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; transition: 0.2s; z-index: 10; cursor: pointer; border: none; }
.modal-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }
.modal-header { padding: 30px 30px 0; text-align: center; }
.modal-header h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; background: linear-gradient(90deg, #fff, #e0aaff); -webkit-background-clip: text; color: transparent; }
.modal-header p { color: var(--text-secondary); font-size: 14px; }
.highlight-balance { color: var(--color-success); font-weight: bold; font-family: monospace; font-size: 16px; }

/* [新增] 列表入场动画 */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 充值相关 */
.modal-recharge { max-width: 500px; }
.recharge-body { padding: 24px; }
.section-title {
    display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
    font-size: 14px; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.amount-btn { 
    background: rgba(255,255,255,0.05); border: 2px solid transparent; border-radius: 12px; padding: 12px 0;
    text-align: center; cursor: pointer; color: #fff; font-weight: 700; transition: 0.2s;
}
.amount-btn:hover { background: rgba(157, 78, 221, 0.1); border-color: rgba(157, 78, 221, 0.3); }
.amount-btn.selected { 
    background: rgba(157, 78, 221, 0.2); 
    border-color: var(--color-brand-light); 
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.3) inset;
}
.btn-buy-link {
    display: flex; justify-content: space-between; padding: 14px; 
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
    color: var(--color-brand-light); text-decoration: none; margin-bottom: 20px; font-size: 14px;
}
.btn-buy-link:hover { border-color: var(--color-brand-light); }
.input-card-key { 
    width: 100%; padding: 16px; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 12px; color: #fff; font-family: monospace; font-size: 16px; margin-bottom: 24px; letter-spacing: 1px;
}
.input-card-key:focus { border-color: var(--color-brand-light); box-shadow: 0 0 0 4px rgba(157, 78, 221, 0.2); }
.btn-submit-recharge {
    width: 100%; padding: 16px; 
    background: linear-gradient(90deg, #7209b7, #f72585); 
    color: #fff; font-weight: 800; font-size: 18px; border-radius: 14px;
    transition: 0.3s;
}
.btn-submit-recharge:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(114, 9, 183, 0.4); }

/* 充值成功反馈 */
.recharge-success-view {
    display: none; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px 30px; text-align: center;
}
.success-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(34, 197, 94, 0.1); color: var(--color-success);
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; margin-bottom: 20px;
}
.new-balance-display {
    margin-top: 20px; padding: 15px 30px;
    background: rgba(255,255,255,0.05); border-radius: 12px; text-align: center;
}
.new-balance-display span { display: block; font-size: 12px; color: var(--text-secondary); }
.new-balance-display strong { display: block; font-size: 24px; color: #fff; margin-top: 4px; }

/* --- 抽奖结果：黑金会员卡 (Nebula Black Gold) --- */
.prize-showcase { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 320px; width: 100%; padding: 0 20px; }

/* VIP Card 移动端优化 */
.vip-black-gold-card {
    width: 100%; 
    max-width: 320px;
    min-height: 180px;
    height: fit-content;
    flex-shrink: 0;
    /* [修改] 黑色背景，紫色光晕 */
    background: #000;
    border-radius: 16px; padding: 24px; padding-bottom: 30px; position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), inset 0 0 30px rgba(60, 9, 108, 0.6);
    border: 1px solid rgba(157, 78, 221, 0.5);
    display: flex; flex-direction: column; justify-content: space-between;
    overflow: hidden; animation: cardFloat 3s ease-in-out infinite;
    box-sizing: border-box; 
}
.vip-black-gold-card::before {
    content: ''; position: absolute; inset: 0;
    background-image: var(--texture-pattern);
    opacity: 0.1; pointer-events: none;
}
.vip-black-gold-card::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    /* [修改] 紫色流光 */
    background: linear-gradient(45deg, transparent, rgba(224, 170, 255, 0.15), transparent);
    animation: shine 4s infinite;
}

.card-header { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.icon-diamond { font-size: 32px; color: var(--color-brand-light); filter: drop-shadow(0 0 10px var(--color-brand-main)); }
.card-type { 
    font-size: 10px; color: var(--color-accent); 
    border: 1px solid var(--color-accent); padding: 2px 6px; border-radius: 4px; 
    text-transform: uppercase; letter-spacing: 1px;
    box-shadow: 0 0 5px var(--color-accent);
}

.card-body { position: relative; z-index: 1; margin: 15px 0; flex: 1 1 auto; }
.card-title { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: 1px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.card-subtitle { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 4px; }

.card-footer { text-align: right; position: relative; z-index: 1; }
.value-label { font-size: 10px; color: rgba(255,255,255,0.4); text-transform: uppercase; }
.value-num { font-size: 24px; font-weight: 800; color: var(--color-brand-light); text-shadow: 0 0 10px rgba(224, 170, 255, 0.5); }

@keyframes shine { 0% { transform: translateX(-50%) translateY(-50%) rotate(45deg); } 100% { transform: translateX(50%) translateY(50%) rotate(45deg); } }
@keyframes cardFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* 普通奖品 UI */
.common-prize-item { text-align: center; animation: zoomIn 0.5s ease; width: 100%; max-width: 300px; }

.common-prize-icon-group {
    width: 100px; height: 100px; margin: 0 auto 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 48px;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
}
/* [修改] 奖品图标背景色 */
.common-prize-icon-group.type-money { 
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.2)); 
    color: #ffd700; border: 1px solid rgba(255, 215, 0, 0.3);
}
.common-prize-icon-group.type-points { 
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(157, 78, 221, 0.2)); 
    color: #e0aaff; border: 1px solid rgba(157, 78, 221, 0.3);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.2);
}
.common-prize-icon-group.type-default { 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1)); 
    color: #fff; border: 1px solid rgba(255, 255, 255, 0.1);
}
.common-prize-icon-group::after {
    content: ''; position: absolute; inset: -5px; border-radius: 50%;
    background: inherit; filter: blur(10px); opacity: 0.5; z-index: -1;
}

.common-prize-title { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.common-prize-value { display: inline-block; background: rgba(255,255,255,0.1); padding: 6px 16px; border-radius: 20px; color: var(--color-brand-light); font-weight: 600; }
@keyframes zoomIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* 操作按钮 */
.draw-footer { margin-top: 20px; width: 100%; padding: 0 30px 30px; box-sizing: border-box; }

.btn-primary-action {
    width: 100%; padding: 16px; border-radius: 16px;
    background: #ffffff; color: #000000; font-size: 18px; font-weight: 800;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2); border: none;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: 0.2s;
}
.btn-primary-action:hover { transform: scale(1.02); background: #f0f0f0; box-shadow: 0 0 30px rgba(255, 255, 255, 0.5); }

.btn-secondary-action {
    width: 100%; padding: 12px; background: transparent; color: var(--text-secondary);
    border: none; margin-top: 12px; font-size: 14px; cursor: pointer;
}

.pity-status {
    display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--text-secondary); font-size: 12px;
}
.pity-track { flex: 1; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.pity-fill { 
    height: 100%; 
    background: var(--grad-premium); /* 紫色进度条 */
    transition: width 0.3s; 
    box-shadow: 0 0 10px var(--color-brand-main);
}
.pity-val { font-family: monospace; }

/* [新增] --- 闪购结果页库存状态 (替换保底) --- */
.stock-status-result {
    display: flex; align-items: center; gap: 10px; margin-bottom: 20px; 
    color: var(--text-secondary); font-size: 12px;
    width: 100%;
}
.stock-label { color: var(--fs-brand-gold); font-weight: bold; }
.stock-track { 
    flex: 1; height: 6px; 
    background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; 
}
.stock-fill { 
    height: 100%; 
    background: linear-gradient(90deg, #f72585, #ff3333); /* 闪购红粉渐变 */
    transition: width 0.5s ease; 
    box-shadow: 0 0 10px #ff0055;
}
.stock-val { font-family: monospace; color: #fff; }

/* =========================================================================
   === VIP 明盒专属样式 (完全移植自 vipcard.html - 解决样式冲突版) ===
   ========================================================================= */
:root {
    --neon-purple: #bc13fe;
    --neon-blue: #00f0ff;
    --neon-gold: #FFD700;
    --neon-silver: #e0e0e0;
    --neon-green: #0aff0a;
    --panel-bg: rgba(20, 10, 30, 0.6);
    --text-sub: #a496ba;
}

/* 重命名 .product-card -> .vip-theme-card 以隔离样式 */
.vip-theme-card {
    position: relative;
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(188, 19, 254, 0.3);
    /* 赛博切角 */
    clip-path: polygon(
        20px 0, 100% 0, 
        100% calc(100% - 20px), calc(100% - 20px) 100%, 
        0 100%, 0 20px
    );
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    margin-bottom: 20px; /* 增加一点间距 */
    /* [关键修改] 移除 opacity:0, 改为默认可见，防止JS加载动画失败导致空白 */
    opacity: 1; 
    transform: translateY(0);
}

.vip-theme-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--neon-purple);
    box-shadow: 
        0 0 30px rgba(188, 19, 254, 0.2),
        inset 0 0 20px rgba(188, 19, 254, 0.1);
    z-index: 2;
}

.vip-theme-card:active { transform: translateY(-5px) scale(0.98); }

.card-deco-corner {
    position: absolute; width: 20px; height: 20px;
    border: 2px solid var(--neon-purple); border-left: none; border-bottom: none;
    top: 0; right: 0; opacity: 0.8; transition: all 0.3s ease;
}
.card-deco-corner.bottom {
    top: auto; bottom: 0; right: auto; left: 0;
    border: 2px solid var(--neon-purple); border-top: none; border-right: none;
}

.card-visual {
    padding: 30px 20px 10px;
    display: flex; justify-content: center; align-items: center;
    position: relative;
}
.card-visual::after {
    content: ''; position: absolute; bottom: 20px;
    width: 80%; height: 20px;
    background: radial-gradient(ellipse at center, rgba(188,19,254,0.4) 0%, transparent 70%);
    transform: scaleX(0.8); opacity: 0.6; transition: opacity 0.3s;
}
.vip-theme-card:hover .card-visual::after { opacity: 1; filter: blur(5px); }

.card-visual svg {
    width: 100%; height: auto; max-height: 180px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.6));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}
.vip-theme-card:hover .card-visual svg { transform: scale(1.08) rotate(-2deg); }

/* VIP 内部动画 */
@keyframes pulse-opacity { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.8; } }
.anim-pulse { animation: pulse-opacity 3s infinite ease-in-out; }

@keyframes rotate-slow { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.anim-rotate { transform-origin: center; animation: rotate-slow 10s linear infinite; }

@keyframes dash-flow { to { stroke-dashoffset: -1000; } }
.anim-flow { stroke-dasharray: 20 10; animation: dash-flow 20s linear infinite; }

@keyframes border-glow {
    0% { border-color: rgba(188, 19, 254, 0.3); box-shadow: 0 0 10px rgba(188, 19, 254, 0.1); }
    50% { border-color: rgba(188, 19, 254, 1); box-shadow: 0 0 25px rgba(188, 19, 254, 0.4); }
    100% { border-color: rgba(188, 19, 254, 0.3); box-shadow: 0 0 10px rgba(188, 19, 254, 0.1); }
}

.vip-info-section { padding: 20px 25px 30px; flex-grow: 1; display: flex; flex-direction: column; }
.vip-product-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.vip-product-title { font-size: 22px; font-weight: 800; font-style: italic; color: #fff; text-transform: uppercase; margin: 0; letter-spacing: 1px; }
.vip-tag { font-size: 10px; padding: 2px 6px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: var(--neon-blue); text-transform: uppercase; letter-spacing: 1px; }

.vip-product-desc {
    font-size: 13px; color: var(--text-sub); margin: 0 0 25px 0;
    /*white-space: nowrap; */
    overflow: hidden; text-overflow: ellipsis;
    opacity: 0.8; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 15px;
}

.vip-action-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.vip-price-group { display: flex; align-items: baseline; gap: 2px; }
.vip-currency { font-size: 14px; color: var(--neon-purple); font-weight: bold; }
.vip-price-num { font-size: 32px; font-weight: 800; color: #fff; text-shadow: 0 0 10px rgba(188, 19, 254, 0.5); font-family: 'Arial Black', sans-serif; letter-spacing: -1px; }

.btn-vip-activate {
    position: relative; background: transparent; color: var(--neon-blue);
    border: 1px solid var(--neon-blue); padding: 8px 24px;
    font-size: 14px; font-weight: 700; cursor: pointer;
    text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    overflow: hidden;
}
.btn-vip-activate::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%; background: var(--neon-blue);
    transition: left 0.3s ease; z-index: -1;
}
.btn-vip-activate:hover { color: #000; box-shadow: 0 0 15px var(--neon-blue); }
.btn-vip-activate:hover::before { left: 0; }
.btn-vip-activate:active { transform: scale(0.95); }

/* 银色层级 (silver-tier) */
.silver-tier {
    border-color: rgba(224, 224, 224, 0.3);
}
.silver-tier:hover {
    border-color: var(--neon-silver);
    box-shadow: 
        0 0 30px rgba(224, 224, 224, 0.2),
        inset 0 0 20px rgba(224, 224, 224, 0.1);
}
/* 银色-角标 */
.silver-tier .card-deco-corner { border-color: var(--neon-silver); }
/* 银色-标题 */
.silver-tier .vip-product-title { color: var(--neon-silver); text-shadow: 0 0 10px rgba(224,224,224,0.3); }
/* 银色-价格符号 */
.silver-tier .vip-currency { color: var(--neon-silver); }
/* 银色-价格光晕 */
.silver-tier .vip-price-num { text-shadow: 0 0 10px rgba(224,224,224,0.5); }
/* 银色-标签 */
.silver-tier .vip-tag { color: var(--neon-silver); border-color: rgba(224,224,224,0.3); }
/* 银色-按钮 */
.silver-tier .btn-vip-activate {
    color: var(--neon-silver);
    border-color: var(--neon-silver);
}
.silver-tier .btn-vip-activate::before { background: var(--neon-silver); }
.silver-tier .btn-vip-activate:hover { color: #000; box-shadow: 0 0 15px var(--neon-silver); }
/* 银色-底座光效修正 */
.silver-tier .card-visual::after {
    background: radial-gradient(ellipse at center, rgba(224,224,224,0.4) 0%, transparent 70%);
}

/* 金色层级 (Gold Tier) */
.gold-tier { border-color: rgba(255, 215, 0, 0.3); }
.gold-tier:hover {
    border-color: var(--neon-gold);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2), inset 0 0 20px rgba(255, 215, 0, 0.1);
}
.gold-tier .card-deco-corner { border-color: var(--neon-gold); }
.gold-tier .vip-product-title { color: var(--neon-gold); text-shadow: 0 0 10px rgba(255,215,0,0.3); }
.gold-tier .vip-currency { color: var(--neon-gold); }
.gold-tier .vip-price-num { text-shadow: 0 0 10px rgba(255,215,0,0.5); }
.gold-tier .vip-tag { color: var(--neon-gold); }
.gold-tier .btn-vip-activate { color: var(--neon-gold); border-color: var(--neon-gold); }
.gold-tier .btn-vip-activate::before { background: var(--neon-gold); }
.gold-tier .btn-vip-activate:hover { color: #000; box-shadow: 0 0 15px var(--neon-gold); }

/* 至尊层级 (Pro Tier) */
.pro-tier { animation: border-glow 4s infinite ease-in-out; }

/* 激活全屏动效层 (Overlay) - 移植自 vipcard.html */
#activation-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(15px);
    z-index: 9999; display: none;
    flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
#activation-overlay.active { display: flex; opacity: 1; }

.scan-line {
    position: absolute; top: 0; left: 0; width: 100%; height: 5px;
    background: var(--neon-blue); box-shadow: 0 0 15px var(--neon-blue);
    opacity: 0.5; animation: scan 2s linear infinite; z-index: 100; pointer-events: none;
}
@keyframes scan {
    0% { top: 0%; opacity: 0; } 10% { opacity: 0.8; } 90% { opacity: 0.8; } 100% { top: 100%; opacity: 0; }
}

.cyber-modal {
    width: 80%; max-width: 500px; padding: 40px;
    border: 2px solid var(--neon-blue); background: rgba(10, 5, 20, 0.8);
    position: relative; text-align: center;
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.1);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.processing-view { display: block; }
.modal-title {
    color: var(--neon-blue); font-family: 'Courier New', Courier, monospace;
    letter-spacing: 2px; margin-bottom: 30px; font-size: 18px; text-shadow: 0 0 5px var(--neon-blue);
}

.progress-container {
    width: 100%; height: 6px; background: rgba(255,255,255,0.1);
    margin-bottom: 20px; position: relative; overflow: hidden;
}
.progress-bar {
    width: 0%; height: 100%; background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue); transition: width 0.1s linear;
}

.terminal-text {
    font-family: 'Courier New', monospace; color: var(--neon-blue);
    font-size: 12px; text-align: left; height: 60px;
    overflow: hidden; opacity: 0.7; line-height: 1.5;
}

.success-view { display: none; animation: flashSuccess 0.5s ease-out; }
@keyframes flashSuccess {
    0% { transform: scale(0.9); opacity: 0; } 50% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1); opacity: 1; }
}

.success-icon { font-size: 60px; color: var(--neon-green); margin-bottom: 20px; text-shadow: 0 0 20px var(--neon-green); }
.success-title { color: #fff; font-size: 28px; font-weight: 800; margin-bottom: 10px; text-shadow: 0 0 10px rgba(255,255,255,0.5); }
.success-sub { color: var(--text-sub); font-size: 14px; letter-spacing: 2px; margin-bottom: 30px; }

.btn-confirm {
    background: var(--neon-green); color: #000; border: none;
    padding: 12px 40px; font-weight: bold; font-size: 16px; cursor: pointer;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.2s;
}
.btn-confirm:hover { box-shadow: 0 0 20px var(--neon-green); transform: scale(1.05); }