/* 盲盒页面样式 */
.blindbox-page {
    padding-top: 44px;
}

/* 盲盒列表 */
.blindbox-list {
    padding: var(--spacing-md);
}

.blindbox-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.box-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 1:1 比例 */
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.box-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    transition: transform 0.3s;
}

.blindbox-card:hover .box-image img {
    transform: scale(1.1) rotate(5deg);
}

.box-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.3), transparent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.box-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--bg-white);
    z-index: 1;
}

.box-tag.hot {
    background: linear-gradient(135deg, #ff6b6b, #f5222d);
}

.box-tag.new {
    background: linear-gradient(135deg, #52c41a, #389e0d);
}

.box-tag.season {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    top: auto;
    bottom: 12px;
    right: 12px;
}

/* 特色标签 */
.box-features {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.feature-tag {
    padding: 4px 10px;
    background: var(--bg-page);
    border-radius: 12px;
    font-size: 11px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* 原价 */
.box-original-price {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 8px;
}

/* 稀有度徽章 */
.rarity-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bg-white);
}

.rarity-badge.common {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.rarity-badge.rare {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.rarity-badge.epic {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

/* 概率说明 */
.probability-desc {
    padding: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-page);
}

.probability-desc p {
    margin: 0;
}

.probability-note {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-light);
    background: var(--bg-page);
}

.probability-note i {
    color: var(--primary-color);
}

.probability-note p {
    margin: 0;
}

.box-info {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.box-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.box-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.box-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.box-stock {
    color: var(--success-color);
}

.box-probability {
    color: var(--warning-color);
}

.box-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.box-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--danger-color);
}

.btn-buy-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-buy-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-buy-box:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-buy-box:disabled {
    background: linear-gradient(135deg, #ccc, #999);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* 价格区域样式 */
.box-price-area {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.box-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--danger-color);
}

.box-original-price {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
}

/* 概率表格 */
.probability-section {
    background: var(--bg-white);
    margin-top: 12px;
}

.probability-table {
    padding: 0 12px 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.probability-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px;
}

.probability-table th,
.probability-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.probability-table th {
    background: var(--bg-page);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
}

.probability-table td {
    color: var(--text-secondary);
    font-size: 13px;
}

.probability-table tr:last-child td {
    border-bottom: none;
}

/* 季度预告 */
.next-season-section {
    background: var(--bg-white);
    margin-top: 12px;
}

.next-season-card {
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin: 0 12px 15px;
    color: var(--bg-white);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 50px;
}

.timer-number {
    font-size: 20px;
    font-weight: bold;
}

.timer-label {
    font-size: 10px;
    opacity: 0.9;
    margin-top: 2px;
}

.timer-divider {
    font-size: 20px;
    font-weight: bold;
    opacity: 0.6;
}

.next-season-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.next-season-desc {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.next-season-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.next-season-tags .tag {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 12px;
}

.btn-notify {
    background: var(--bg-white);
    color: var(--primary-color);
    border: none;
    border-radius: 20px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s;
}

.btn-notify:active {
    transform: scale(0.95);
}
