/* 盲盒页面样式 */
.blin-page {
    padding: 20px 15px 100px;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 盲盒卡片 */
.blin-card-wrap {
    perspective: 1000px;
    margin-bottom: 20px;
}

.blin-card {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    height: 360px;
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.blin-card.flipped {
    transform: rotateY(180deg);
}

.blin-card-front,
.blin-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

.blin-card-front {
    background: linear-gradient(145deg, #fff 0%, #f5f5f5 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.blin-card-back {
    background: #fff;
    transform: rotateY(180deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.blin-gift-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.blin-gift-icon i {
    font-size: 48px;
    color: #fff;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.blin-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.blin-desc {
    font-size: 14px;
    color: #888;
}

/* 抽取结果 */
.blin-photo {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.blin-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blin-info {
    padding: 15px;
    text-align: center;
}

.blin-photo-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blin-photo-time {
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
}

.blin-photo-ago {
    font-size: 14px;
    color: #f5576c;
    font-weight: bold;
}

/* 抽取按钮 */
.blin-action {
    text-align: center;
    margin-bottom: 30px;
}

.blin-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 50px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.4);
    transition: all 0.3s;
}

.blin-btn:active {
    transform: scale(0.95);
}

.blin-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.blin-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.blin-link {
    display: inline-block;
    margin-top: 15px;
    color: #fff;
    font-size: 14px;
    opacity: 0.9;
}

/* 统计信息 */
.blin-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.blin-stat-item {
    text-align: center;
}

.blin-stat-num {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
}

.blin-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

/* 历史记录 */
.blin-history {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.blin-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.blin-history-title {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.blin-history-more {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.blin-history-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.blin-history-item {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
}

.blin-history-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 盲盒说明 */
.blin-tips {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    backdrop-filter: blur(10px);
}

.blin-tips-title {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.blin-tips-list {
    margin: 0;
    padding-left: 20px;
}

.blin-tips-list li {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

/* 抖动动画 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.blin-card.shaking {
    animation: shake 0.5s ease-in-out;
}