/* 盲盒统计专用样式 - B站风格 */

.blind-box-panel {
    background: linear-gradient(180deg, #fff5f8 0%, #ffffff 100%);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
}

.blind-box-panel .panel-title {
    background: linear-gradient(90deg, var(--bili-pink) 0%, #ff9eb5 100%);
    color: white;
    border-bottom: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    transition: background 0.3s ease;
}

/* 心动盲盒标题（粉色） */
.blind-box-panel.heart-theme .panel-title {
    background: linear-gradient(90deg, var(--bili-pink) 0%, #ff9eb5 100%);
}

/* 幸运盲盒标题（绿色） */
.blind-box-panel.lucky-theme .panel-title {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.blind-box-panel .panel-title .title-text {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.box-standalone-link {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.box-standalone-link:hover {
    background: rgba(255, 255, 255, 0.32);
    border-color: rgba(255, 255, 255, 0.75);
    transform: translateY(-1px);
}

.box-type-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
}

.box-type-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.box-type-toggle:active {
    transform: scale(0.95);
}

.box-type-toggle i {
    font-size: 12px;
}

/* 响应式布局 - 小屏幕 */
@media (max-width: 768px) {
    .blind-box-panel .panel-title {
        padding: 10px 12px;
        font-size: 14px;
    }
}

.box-tag {
    margin-left: 8px;
    display: inline-block;
    max-width: 58%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
}

.box-page {
    margin: 0;
    min-height: 100vh;
    background: transparent;
    display: flex;
    justify-content: center;
}

.box-page-shell {
    width: min(100vw, 430px);
    height: 100vh;
    min-height: 100vh;
    padding: 8px;
}

.box-standalone-panel {
    width: 100%;
    max-width: 100%;
    height: calc(100vh - 16px);
    min-height: 0;
}

.box-page.hide-probability-list #blind-box-probability {
    display: none !important;
}

@media (max-width: 480px) {
    .box-page {
        justify-content: stretch;
    }

    .box-page-shell {
        width: 100vw;
        padding: 6px;
    }

    .box-standalone-panel {
        height: calc(100vh - 12px);
    }
}

/* 统计卡片 */
.blind-box-stats {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 10px;
    padding: 16px;
    flex: 0 0 auto;
    transition: background 0.3s ease;
}

/* 心动盲盒统计区域（粉色背景） */
.blind-box-panel.heart-theme .blind-box-stats {
    background: linear-gradient(180deg, rgba(255, 238, 242, 0.6) 0%, rgba(255, 245, 248, 0.3) 100%);
}

/* 幸运盲盒统计区域（绿色背景） */
.blind-box-panel.lucky-theme .blind-box-stats {
    background: linear-gradient(180deg, rgba(232, 249, 237, 0.6) 0%, rgba(240, 253, 244, 0.3) 100%);
}

/* 响应式布局 - 小屏幕 */
@media (max-width: 768px) {
    .blind-box-stats {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }
}

.stat-card {
    padding: 12px;
    background: white;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.stat-label {
    font-size: 12px;
    color: #333333;
    margin-bottom: 8px;
    font-weight: 600;
}

/* 心动盲盒统计标签 */
.blind-box-panel.heart-theme .stat-label {
    color: #333333;
    font-weight: 600;
}

/* 幸运盲盒统计标签 */
.blind-box-panel.lucky-theme .stat-label {
    color: #333333;
    font-weight: 600;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
}

.stat-count .stat-value {
    color: var(--bili-pink);
    transition: color 0.3s ease;
}

/* 心动盲盒统计数值（粉色） */
.blind-box-panel.heart-theme .stat-count .stat-value {
    color: var(--bili-pink);
}

/* 幸运盲盒统计数值（绿色） */
.blind-box-panel.lucky-theme .stat-count .stat-value {
    color: #22c55e;
}

.stat-pnl {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 14px 16px;
    background: linear-gradient(145deg, #fff, #fff4f7);
    border: 1px solid rgba(251, 114, 153, 0.16);
}

.pnl-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.pnl-title {
    font-size: 12px;
    color: var(--bili-text-secondary);
}

.pnl-badge {
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 10px;
    background: #eceff3;
    color: #6b7280;
}

.pnl-badge.profit {
    background: rgba(0, 200, 83, 0.14);
    color: var(--bili-success);
}

.pnl-badge.loss {
    background: rgba(255, 82, 82, 0.14);
    color: var(--bili-danger);
}

.pnl-main {
    font-size: clamp(26px, 2.2vw, 34px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.pnl-main.profit,
.pnl-main.profit {
    color: var(--bili-success);
}

.pnl-main.loss,
.pnl-main.loss {
    color: var(--bili-danger);
}

.pnl-main.flat,
.pnl-main.flat {
    color: var(--bili-text-secondary);
}

.pnl-foot {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed rgba(153, 153, 153, 0.35);
    color: var(--bili-text-secondary);
    font-size: 11px;
}

/* 里程碑进度条 */
.milestone-progress {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid rgba(0, 0, 0, 0.05);
}

.progress-bar {
    height: 12px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--bili-pink) 0%, #ff9eb5 100%);
    border-radius: 6px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(251, 114, 153, 0.3);
}

/* 心动盲盒进度条（粉色） */
.blind-box-panel.heart-theme .progress-fill {
    background: linear-gradient(90deg, var(--bili-pink) 0%, #ff9eb5 50%, var(--bili-pink) 100%);
    background-size: 200% 100%;
    box-shadow: 0 2px 8px rgba(251, 114, 153, 0.3), 0 0 12px rgba(251, 114, 153, 0.2);
}

/* 幸运盲盒进度条（绿色） */
.blind-box-panel.lucky-theme .progress-fill {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 50%, #22c55e 100%);
    background-size: 200% 100%;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3), 0 0 12px rgba(34, 197, 94, 0.2);
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.4) 70%,
        transparent 100%
    );
    border-radius: 6px;
    animation: shimmer 2s infinite;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 100%
    );
    border-radius: 6px 6px 0 0;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.milestone-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

/* 心动盲盒里程碑信息 */
.blind-box-panel.heart-theme .milestone-info {
    color: #1a1a1a;
    font-weight: 700;
}

/* 幸运盲盒里程碑信息 */
.blind-box-panel.lucky-theme .milestone-info {
    color: #1a1a1a;
    font-weight: 700;
}

/* 里程碑数字（0/100） */
.milestone-info span {
    color: #1a1a1a;
    font-weight: 700;
}

.milestone-icon {
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.milestone-gift-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.milestone-bonus {
    padding: 2px 6px;
    background: var(--bili-gold);
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* 排行榜 */
.ranking-section {
    padding: 0 16px 16px;
    flex: 0 0 auto;
    transition: background 0.3s ease;
    background: transparent;
}

/* 心动盲盒排行榜区域（粉色背景，与整体背景融合） */
.blind-box-panel.heart-theme .ranking-section {
    background: transparent;
}

/* 幸运盲盒排行榜区域（绿色背景，与整体背景融合） */
.blind-box-panel.lucky-theme .ranking-section {
    background: transparent;
}

/* 响应式布局 - 小屏幕 */
@media (max-width: 768px) {
    .ranking-section {
        padding: 0 12px 12px;
    }
}

.section-title {
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

/* 响应式布局 - 小屏幕 */
@media (max-width: 768px) {
    .section-title {
        font-size: 13px;
        margin-bottom: 10px;
    }
}

/* 心动盲盒章节标题（粉色） */
.blind-box-panel.heart-theme .section-title {
    color: #1a1a1a;
    font-weight: 700;
}

/* 幸运盲盒章节标题（绿色） */
.blind-box-panel.lucky-theme .section-title {
    color: #1a1a1a;
    font-weight: 700;
}

.section-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--bili-pink);
    border-radius: 2px;
    transition: background 0.3s ease, height 0.3s ease;
}

/* 心动盲盒章节标题（粉色） */
.blind-box-panel.heart-theme .section-title::before {
    background: var(--bili-pink);
    height: 16px;
}

/* 幸运盲盒章节标题（绿色） */
.blind-box-panel.lucky-theme .section-title::before {
    background: #22c55e;
    height: 16px;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
}

/* 响应式布局 - 小屏幕 */
@media (max-width: 768px) {
    .ranking-list {
        gap: 8px;
    }
}

/* 用户排行榜列表 */
.user-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    overflow: visible;
    max-height: none;
}

.user-ranking-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: white;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    font-size: 13px;
    transition: all var(--transition-fast), background 0.3s ease;
    min-width: 0;
}

.user-ranking-item .user-name {
    color: #1a1a1a;
    font-weight: 600;
}

.user-ranking-item .user-stats {
    color: #333333;
    font-weight: 500;
}

.user-ranking-item .box-count {
    color: #1a1a1a;
    font-weight: 600;
}

/* 心动盲盒排行榜项（粉色背景） */
.blind-box-panel.heart-theme .user-ranking-item {
    background: linear-gradient(135deg, #ffeef2 0%, #fff5f8 100%);
    border: 1px solid rgba(251, 114, 153, 0.12);
}

/* 幸运盲盒排行榜项（绿色背景） */
.blind-box-panel.lucky-theme .user-ranking-item {
    background: linear-gradient(135deg, #e8f9ed 0%, #f0fdf4 100%);
    border: 1px solid rgba(34, 197, 94, 0.12);
}

/* 响应式布局 - 小屏幕 */
@media (max-width: 768px) {
    .user-ranking-item {
        padding: 8px 10px;
        font-size: 12px;
    }
}

.user-ranking-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.user-name {
    font-weight: 600;
    color: #1a1a1a;
    min-width: 120px;
    max-width: 180px;
    flex-shrink: 0;
    word-break: break-all;
    word-wrap: break-word;
}

/* 响应式布局 - 小屏幕 */
@media (max-width: 768px) {
    .user-name {
        min-width: 100px;
        max-width: 150px;
        font-size: 11px;
    }
}

.user-stats {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #333333;
    flex: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
    text-align: right;
    font-weight: 500;
}

.box-count {
    color: var(--bili-pink);
    font-weight: 600;
    transition: color 0.3s ease;
}

/* 心动盲盒数量（粉色） */
.blind-box-panel.heart-theme .box-count {
    color: var(--bili-pink);
}

/* 幸运盲盒数量（绿色） */
.blind-box-panel.lucky-theme .box-count {
    color: #22c55e;
}

.profit-text {
    font-weight: 600;
}

.profit-text.profit {
    color: #00c853;
    font-weight: 700;
}

.profit-text.loss {
    color: #ff5252;
    font-weight: 700;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: white;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
}

/* 响应式布局 - 小屏幕 */
@media (max-width: 768px) {
    .rank-item {
        gap: 8px;
        padding: 8px 10px;
    }
}

.rank-position {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50%;
    background: var(--bili-bg);
    color: var(--bili-text-secondary);
}

.rank-item:nth-child(1) .rank-position {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: white;
}

.rank-item:nth-child(2) .rank-position {
    background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
    color: white;
}

.rank-item:nth-child(3) .rank-position {
    background: linear-gradient(135deg, #cd7f32 0%, #a05a2c 100%);
    color: white;
}

.rank-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bili-bg);
}

.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式布局 - 小屏幕 */
@media (max-width: 768px) {
    .rank-name {
        font-size: 12px;
    }
}

.rank-detail {
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rank-box-count {
    font-size: 12px;
    color: var(--bili-text-secondary);
}

.rank-profit-yuan {
    font-size: 13px;
    font-weight: 700;
}

.rank-profit-yuan.profit {
    color: var(--bili-success);
}

.rank-profit-yuan.loss {
    color: var(--bili-danger);
}

/* 盲盒概率展示 */
.blind-box-probability {
    padding: 12px 16px;
    background: white;
    margin: 0 16px 16px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
}

.probability-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.prob-title {
    font-weight: 600;
    color: var(--bili-pink);
}

.prob-price {
    font-weight: 600;
    color: var(--bili-gold);
}

.probability-note {
    font-size: 11px;
    color: var(--bili-text-secondary);
    margin-bottom: 12px;
    padding: 6px 10px;
    background: var(--bili-bg);
    border-radius: 4px;
}

.probability-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prob-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: var(--bili-bg);
    border-radius: 6px;
    font-size: 12px;
}

.prob-item.win {
    background: rgba(0, 200, 83, 0.08);
    border: 1px solid rgba(0, 200, 83, 0.2);
}

.prob-item.lose {
    background: rgba(255, 82, 82, 0.05);
    border: 1px solid rgba(255, 82, 82, 0.1);
}

.prob-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.prob-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prob-value {
    color: var(--bili-gold);
    font-weight: 500;
}

.prob-item.win .prob-value {
    color: var(--bili-success);
}

.prob-item.lose .prob-value {
    color: var(--bili-danger);
}

.prob-chance {
    color: var(--bili-text-secondary);
    font-size: 11px;
    min-width: 40px;
    text-align: right;
}

/* 实时动态 */
.live-feed {
    flex: 0 0 auto;
    padding: 16px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    transition: background 0.3s ease;
}

/* 心动盲盒实时动态区域（粉色背景） */
.blind-box-panel.heart-theme .live-feed {
    background: linear-gradient(180deg, rgba(255, 238, 242, 0.4) 0%, rgba(255, 245, 248, 0.15) 100%);
}

/* 幸运盲盒实时动态区域（绿色背景） */
.blind-box-panel.lucky-theme .live-feed {
    background: linear-gradient(180deg, rgba(232, 249, 237, 0.4) 0%, rgba(240, 253, 244, 0.15) 100%);
}

/* 响应式布局 - 小屏幕 */
@media (max-width: 992px) {
    .live-feed {
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .live-feed {
        padding: 10px;
        gap: 6px;
    }
}

.feed-item {
    padding: 12px;
    background: white;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    animation: feedIn 0.5s ease;
    border-left: 3px solid transparent;
    min-height: fit-content;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

/* 心动盲盒动态项（粉色背景） */
.blind-box-panel.heart-theme .feed-item {
    background: linear-gradient(135deg, #ffeef2 0%, #fff5f8 100%);
    border: 1px solid rgba(251, 114, 153, 0.1);
}

/* 幸运盲盒动态项（绿色背景） */
.blind-box-panel.lucky-theme .feed-item {
    background: linear-gradient(135deg, #e8f9ed 0%, #f0fdf4 100%);
    border: 1px solid rgba(34, 197, 94, 0.1);
}

/* 响应式布局 - 小屏幕 */
@media (max-width: 768px) {
    .feed-item {
        padding: 10px;
    }
}

.feed-item.profit {
    border-left-color: var(--bili-success);
    background: linear-gradient(90deg, rgba(0, 200, 83, 0.05) 0%, white 30%);
}

.feed-item.loss {
    border-left-color: var(--bili-danger);
    background: linear-gradient(90deg, rgba(255, 82, 82, 0.05) 0%, white 30%);
}

/* 幸运盲盒主题下的feed-item背景 */
.blind-box-panel.lucky-theme .feed-item.profit {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.05) 0%, white 30%);
}

@keyframes feedIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feed-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

/* 响应式布局 - 小屏幕 */
@media (max-width: 768px) {
    .feed-header {
        gap: 6px;
        margin-bottom: 6px;
    }
}

.feed-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 响应式布局 - 小屏幕 */
@media (max-width: 768px) {
    .feed-avatar {
        width: 24px;
        height: 24px;
    }
}

.feed-user {
    font-weight: 500;
    color: var(--bili-pink);
    word-break: break-all;
    word-wrap: break-word;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

/* 心动盲盒动态用户名（粉色） */
.blind-box-panel.heart-theme .feed-user {
    color: var(--bili-pink);
}

/* 幸运盲盒动态用户名（绿色） */
.blind-box-panel.lucky-theme .feed-user {
    color: #22c55e;
}

/* 响应式布局 - 小屏幕 */
@media (max-width: 768px) {
    .feed-user {
        font-size: 12px;
    }
}

.feed-time {
    margin-left: auto;
    font-size: 11px;
    color: var(--bili-text-secondary);
    flex-shrink: 0;
}

/* 响应式布局 - 小屏幕 */
@media (max-width: 768px) {
    .feed-time {
        font-size: 10px;
        margin-left: 4px;
    }
}

.feed-content {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

/* 响应式布局 - 小屏幕 */
@media (max-width: 768px) {
    .feed-content {
        gap: 6px;
        margin-bottom: 4px;
    }
}

.feed-gift-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

/* 响应式布局 - 小屏幕 */
@media (max-width: 768px) {
    .feed-gift-icon {
        width: 20px;
        height: 20px;
        font-size: 18px;
    }
}

.feed-text {
    flex: 1;
    font-size: 13px;
    min-width: 0;
    word-break: break-word;
}

/* 响应式布局 - 小屏幕 */
@media (max-width: 768px) {
    .feed-text {
        font-size: 12px;
        line-height: 1.4;
    }
}

/* 开出礼物行 */
.feed-reward {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 32px;
    font-size: 13px;
    flex-wrap: wrap;
}

/* 响应式布局 - 小屏幕 */
@media (max-width: 768px) {
    .feed-reward {
        padding-left: 28px;
        gap: 6px;
        font-size: 12px;
    }
}

.feed-arrow {
    color: var(--bili-text-secondary);
    font-weight: bold;
}

.feed-reward-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

/* 响应式布局 - 小屏幕 */
@media (max-width: 768px) {
    .feed-reward-icon {
        width: 20px;
        height: 20px;
        font-size: 16px;
    }
}

.feed-reward-name {
    flex: 1;
    color: var(--bili-text);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 响应式布局 - 小屏幕 */
@media (max-width: 768px) {
    .feed-reward-name {
        font-size: 11px;
    }
}

.feed-result {
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 响应式布局 - 小屏幕 */
@media (max-width: 768px) {
    .feed-result {
        padding: 2px 6px;
        font-size: 11px;
    }
}

.feed-result.profit {
    background: rgba(0, 200, 83, 0.1);
    color: var(--bili-success);
}

.feed-result.loss {
    background: rgba(255, 82, 82, 0.1);
    color: var(--bili-danger);
}

/* 盲盒动画效果 */
.blind-box-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    pointer-events: none;
}

.box-opening {
    animation: boxOpen 1s ease-out forwards;
}

@keyframes boxOpen {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* OBS嵌入优化 - 透明背景 */
.obs-mode {
    background: transparent !important;
}

.obs-mode .app-container {
    background: transparent;
}

.obs-mode .control-bar {
    display: none;
}

.obs-mode .panel-left {
    display: none;
}

.obs-mode .panel-bottom {
    display: none;
}

.obs-mode .panel-right {
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
}

.obs-mode .blind-box-panel {
    background: rgba(255, 245, 248, 0.9);
}

/* 礼物图标容器 - 用于加载B站礼物图标 */
.gift-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gift-icon-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 高价值礼物特效 */
.high-value-gift {
    animation: highValuePulse 0.5s ease;
}

@keyframes highValuePulse {
    0%, 100% {
        box-shadow: var(--shadow-sm);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
    }
}

/* 城堡特效 */
.castle-gift {
    background: linear-gradient(135deg, #fff8e1 0%, #fffde7 100%) !important;
    border: 2px solid var(--bili-gold) !important;
    animation: castleGlow 2s ease infinite;
}

@keyframes castleGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 193, 7, 0.6);
    }
}

/* 空数据提示 */
.empty-tip {
    text-align: center;
    color: var(--bili-text-secondary);
    padding: 20px;
    font-size: 14px;
}

/* 图片加载失败时隐藏 */
img[src=""] {
    display: none;
}

img:not([src]) {
    display: none;
}

/* emoji图标优化 */
.emoji-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 960px) {
    .blind-box-stats {
        grid-template-columns: 1fr;
    }
    
    /* 移除排行榜区域的背景色，让它使用面板背景 */
    .ranking-section {
        background: transparent !important;
    }
    
    /* 移除统计区域的背景色，让它使用面板背景 */
    .blind-box-stats {
        background: transparent !important;
    }
    
    /* 移除实时动态区域的背景色，让它使用面板背景 */
    .live-feed {
        background: transparent !important;
    }
}

/* 额外的UI优化 */

/* 统计卡片hover效果 */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 盲盒面板标题图标动画 */
.blind-box-panel .panel-title .title-icon {
    animation: gentlePulse 2s ease-in-out infinite;
    transition: color 0.3s ease;
}

/* 心动盲盒图标颜色（粉色） */
.blind-box-panel.heart-theme .panel-title .title-icon {
    color: white;
}

/* 幸运盲盒图标颜色（白色，在绿色背景上） */
.blind-box-panel.lucky-theme .panel-title .title-icon {
    color: white;
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Feed项目进入动画优化 */
.feed-item.show {
    animation: fadeSlideIn 0.4s ease forwards;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* 盲盒统计面板滚动条 */
.blind-box-panel::-webkit-scrollbar {
    width: 6px;
}

.blind-box-panel::-webkit-scrollbar-track {
    background: transparent;
}

.blind-box-panel::-webkit-scrollbar-thumb {
    background: rgba(251, 114, 153, 0.3);
    border-radius: 3px;
}

.blind-box-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 114, 153, 0.5);
}

/* 幸运盲盒主题滚动条 */
.blind-box-panel.lucky-theme::-webkit-scrollbar-thumb {
    background: rgba(34, 197, 94, 0.3);
}

.blind-box-panel.lucky-theme::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 197, 94, 0.5);
}

/* 空状态提示样式 */
.live-feed:empty::before {
    content: '暂无盲盒记录';
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    color: var(--bili-text-secondary);
    font-size: 14px;
}

/* 响应式布局 - 小屏幕 */
@media (max-width: 768px) {
    .live-feed:empty::before {
        font-size: 12px;
        height: 80px;
    }
}

/* PK条标签优化 */
.pk-label {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 盈亏金额闪烁效果（大额时） */
.profit-amount.highlight {
    animation: profitHighlight 0.5s ease;
}

@keyframes profitHighlight {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 里程碑进度条优化 */
.blind-box-panel.heart-theme .progress-fill {
    background: linear-gradient(90deg, var(--bili-pink) 0%, #ff9eb5 50%, var(--bili-pink) 100%);
    background-size: 200% 100%;
    animation: shimmerGradient 2s linear infinite;
}

.blind-box-panel.lucky-theme .progress-fill {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 50%, #22c55e 100%);
    background-size: 200% 100%;
    animation: shimmerGradient 2s linear infinite;
}

@keyframes shimmerGradient {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
