* { margin: 0; padding: 0; box-sizing: border-box; }
[v-cloak] { display: none; }

.prize-list {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 4s ease;
    position: relative;
}

.prize-item {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform-origin: 50% 100%;
}

.prize-item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-50px);
}

.prize-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
    display: block;
    object-fit: contain;
}

.prize-item p {
    color: #fff;
    font-size: 12px;
    text-align: center;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    width: 100%;
    padding: 0 5px;
}

.btn {
    width: 160px;
    height: 160px;
    background: url('https://www.jq22.com/demo/jquerylocal201912122316/img/btn_lottery.png') no-repeat center / 100% 100%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
}

.btn:active {
    transform: scale(0.98);
}

.btn::before {
    content: "";
    width: 41px;
    height: 39px;
    background: url('https://www.jq22.com/demo/jquerylocal201912122316/img/icon_point.png') no-repeat center / 100% 100%;
    position: absolute;
    left: 0;
    right: 0;
    top: -33px;
    margin: auto;
}

/* 移动端中奖记录 - 在转盘和记录表格之间 */
.mobile-winners {
    background: linear-gradient(90deg, rgba(196, 30, 58, 0.9) 0%, rgba(196, 30, 58, 0.7) 100%);
    border-radius: 12px;
    padding: 12px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.winners-scroll-vertical {
    display: flex;
    flex-direction: column;
    height: 120px;
    overflow: hidden;
    position: relative;
}

.winner-item-vertical {
    display: flex;
    align-items: center;
    padding: 8px 0;
    animation: verticalScroll 20s linear infinite;
}

.winner-item-vertical:nth-child(even) {
    animation-delay: 10s;
}

@keyframes verticalScroll {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    5% {
        transform: translateY(0);
        opacity: 1;
    }
    20% {
        transform: translateY(0);
        opacity: 1;
    }
    25% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* PC端中奖记录纵向滚动 */
.pc-winners-scroll {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.pc-winners-content {
    animation: pcVerticalScroll 25s linear infinite;
}

@keyframes pcVerticalScroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.pc-winners-content:hover {
    animation-play-state: paused;
}

/* 表格样式 */
.record-table {
    width: 100%;
    border-collapse: collapse;
}

.record-table th {
    background-color: #C41E3A;
    color: white;
    padding: 12px 15px;
    text-align: left;
}

.record-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.record-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.record-table tr:hover {
    background-color: #f1f5f9;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-won {
    background-color: #dcfce7;
    color: #166534;
}

.status-not-won {
    background-color: #f3f4f6;
    color: #6b7280;
}

.status-received {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-not-received {
    background-color: #fef3c7;
    color: #92400e;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .turntable-container {
        width: 95vw !important;
        height: 95vw !important;
        max-width: 400px !important;
        max-height: 400px !important;
    }
    .btn {
        width: 25vw !important;
        height: 25vw !important;
        max-width: 100px !important;
        max-height: 100px !important;
    }

    .mobile-hidden {
        display: none !important;
    }

    .turntable-section {
        margin-top: 20px !important;
        margin-bottom: 10px !important;
    }

    .header {
        position: relative;
        background: rgba(196, 30, 58, 0.95);
    }

    /* 手机端奖品项优化 */
    .prize-item img {
        width: 30px !important;
        height: 30px !important;
        margin-bottom: 3px !important;
    }

    .prize-item p {
        font-size: 10px !important;
        line-height: 1.1 !important;
    }

    .prize-item-content {
        transform: translateY(-40px) !important;
    }

    /* 手机端用户信息调整 */
    .user-info-mobile {
        display: flex !important;
        align-items: center;
        gap: 10px;
    }

    .user-info-desktop {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .zmy-flex-1{
        margin-left: 43%;
    }
    .mobile-winners {
        display: none;
    }

    .main-content {
        margin-top: 20px;
    }

    /* PC端用户信息调整 */
    .user-info-mobile {
        display: none !important;
    }

    .user-info-desktop {
        display: flex !important;
        align-items: center;
        gap: 15px;
    }
}

/* 左侧奖品网格布局 */
.prize-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.prize-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.prize-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 用户信息样式 */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #FFD700;
    object-fit: cover;
}

.user-avatar-mobile {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #FFD700;
    object-fit: cover;
}

.login-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #C41E3A;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.user-dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    min-width: 120px;
    z-index: 100;
    display: none;
}

.user-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}