/* 中奖名单页面样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #1a0a0f 0%, #2d1520 30%, #1f1035 70%, #0d0515 100%);
    min-height: 100vh;
    color: #f7efe5;
    overflow-x: hidden;
}

/* 星空背景效果 */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 214, 120, 0.25), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255, 180, 100, 0.2), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255, 255, 255, 0.25), transparent);
    background-size: 180px 150px;
    animation: twinkle 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* 页面容器 */
.page-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px 60px;
}

/* 页头 */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffd700, #ff8c00, #ff4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(255, 180, 50, 0.4);
    margin-bottom: 12px;
    letter-spacing: 4px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 231, 194, 0.7);
    font-weight: 400;
}

/* 汇总统计 */
.summary-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.summary-item {
    text-align: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 214, 120, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease backwards;
}

.summary-item:nth-child(1) {
    animation-delay: 0.1s;
}

.summary-item:nth-child(2) {
    animation-delay: 0.2s;
}

.summary-item:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.summary-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.summary-label {
    font-size: 0.95rem;
    color: rgba(255, 231, 194, 0.7);
    margin-top: 6px;
}

/* 奖项卡片区 */
.prize-section {
    margin-bottom: 40px;
    animation: fadeInUp 0.7s ease backwards;
}

.prize-section:nth-child(1) {
    animation-delay: 0.2s;
}

.prize-section:nth-child(2) {
    animation-delay: 0.35s;
}

.prize-section:nth-child(3) {
    animation-delay: 0.5s;
}

.prize-section:nth-child(4) {
    animation-delay: 0.65s;
}

.prize-section:nth-child(5) {
    animation-delay: 0.8s;
}

.prize-card {
    background: linear-gradient(180deg, rgba(160, 20, 30, 0.35), rgba(100, 10, 20, 0.25));
    border: 1px solid rgba(255, 214, 120, 0.35);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 180, 80, 0.1);
    backdrop-filter: blur(12px);
}

.prize-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 30px;
    background: linear-gradient(90deg, rgba(255, 180, 50, 0.15), rgba(255, 100, 50, 0.1), transparent);
    border-bottom: 1px solid rgba(255, 214, 120, 0.2);
}

.prize-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 214, 120, 0.5);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.prize-info {
    flex: 1;
}

.prize-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 4px;
}

.prize-title {
    font-size: 1rem;
    color: rgba(255, 231, 194, 0.8);
}

.prize-count-badge {
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 140, 0, 0.2));
    border: 1px solid rgba(255, 215, 0, 0.5);
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffd700;
}

/* 中奖者网格 */
.winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    padding: 25px 30px;
}

.winner-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.winner-item:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.06));
    border-color: rgba(255, 214, 120, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.winner-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d, #6bcb77);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a0a0f;
    flex-shrink: 0;
}

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

.winner-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.winner-dept {
    font-size: 0.8rem;
    color: rgba(255, 231, 194, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 100px 30px;
    animation: fadeInUp 0.6s ease;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-title {
    font-size: 1.5rem;
    color: rgba(255, 231, 194, 0.7);
    margin-bottom: 10px;
}

.empty-desc {
    font-size: 1rem;
    color: rgba(255, 231, 194, 0.5);
}

/* 底部操作栏 */
.action-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn--primary {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border: none;
    color: #1a0a0f;
    box-shadow: 0 8px 25px rgba(255, 180, 50, 0.35);
}

.action-btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 180, 50, 0.5);
}

.action-btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 214, 120, 0.4);
    color: #ffe7c2;
}

.action-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 214, 120, 0.7);
    transform: translateY(-2px);
}

/* 响应式 */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.2rem;
    }

    .summary-bar {
        gap: 15px;
    }

    .summary-item {
        padding: 15px 20px;
    }

    .summary-value {
        font-size: 1.8rem;
    }

    .prize-card-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .winners-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
        padding: 20px;
    }
}

/* 返回主页链接样式 */
.back-link {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    padding: 10px 20px;
    background: rgba(80, 20, 25, 0.85);
    border: 1px solid rgba(255, 196, 120, 0.4);
    border-radius: 25px;
    color: #ffe7c2;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.back-link:hover {
    background: rgba(100, 30, 35, 0.9);
    border-color: rgba(255, 214, 120, 0.8);
    transform: translateX(-3px);
}

.back-link svg {
    width: 16px;
    height: 16px;
}