/* ==================== 基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #C41E3A;
    --dark-red: #8B0000;
    --gold: #FFD700;
    --light-gold: #FFA500;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 215, 0, 0.3);
    --shadow: rgba(139, 0, 0, 0.3);
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: url('https://szy-imp.oss-cn-shanghai.aliyuncs.com/lottery/bg.png') no-repeat center center fixed;
    /*background: url('/img/bg.png') no-repeat center center fixed;*/
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(196, 30, 58, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ==================== 对联容器 ==================== */
.couplet-container {
    width: 100%;
    max-width: 1600px;
    height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* ==================== 横批 ==================== */
.top-banner {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.banner-content {
    display: inline-block;
    padding: 15px 80px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.9) 0%, rgba(139, 0, 0, 0.95) 100%);
    border: 3px solid var(--gold);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(196, 30, 58, 0.5),
                inset 0 0 30px rgba(255, 215, 0, 0.2);
    position: relative;
}

.banner-content::before,
.banner-content::after {
    content: '🏮';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
}

.banner-content::before {
    left: 20px;
}

.banner-content::after {
    right: 20px;
}

.banner-text {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 3em;
    color: var(--gold);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5),
                 0 0 20px rgba(255, 215, 0, 0.6);
    letter-spacing: 10px;
}

/* ==================== 主体对联区域 ==================== */
.main-couplet {
    display: flex;
    flex: 1;
    gap: 30px;
    align-items: stretch;
    min-height: 0;
}

/* ==================== 左右对联（毛玻璃效果） ==================== */
.couplet-left,
.couplet-right {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    box-shadow: 0 8px 32px rgba(139, 0, 0, 0.2),
                inset 0 0 20px rgba(255, 215, 0, 0.1);
}

.couplet-left::before,
.couplet-right::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    pointer-events: none;
}

.scroll-decoration {
    text-align: center;
    color: var(--gold);
    font-size: 1.5em;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    flex-shrink: 0;
}

.scroll-decoration.top {
    margin-bottom: 10px;
}

.scroll-decoration.bottom {
    margin-top: 10px;
}

.scroll-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.scroll-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2.5em;
    color: var(--gold);
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
    flex-shrink: 0;
}

/* ==================== 左侧内容 ==================== */
.prize-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.current-prize {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.8) 0%, rgba(139, 0, 0, 0.9) 100%);
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(196, 30, 58, 0.3);
}

.prize-name {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.4em;
    color: var(--gold);
    margin-bottom: 3px;
    line-height: 1.2;
}

.prize-desc {
    font-size: 0.85em;
    color: #fff;
    opacity: 0.9;
    line-height: 1.3;
}

.prize-count {
    font-size: 0.8em;
    color: var(--gold);
    margin-top: 6px;
    font-weight: 600;
}

.prize-list-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.prize-list-container h4 {
    color: var(--gold);
    font-size: 0.95em;
    margin-bottom: 8px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 4px;
    flex-shrink: 0;
    line-height: 1.2;
}

.prize-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0 5px;
    min-height: 80px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
}

.prize-scroll::-webkit-scrollbar {
    width: 6px;
}

.prize-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.prize-scroll::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

.prize-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--light-gold);
}

.prize-scroll .empty-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    text-align: center;
    min-height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin: 10px 0;
}

.prize-scroll .empty-placeholder .icon {
    font-size: 2.5em;
    margin-bottom: 12px;
    opacity: 0.6;
}

.prize-item-small {
    background: rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--gold);
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 0 8px 8px 0;
    font-size: 0.85em;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.prize-item-small:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.prize-item-small.drawn {
    opacity: 0.4;
    border-left-color: #888;
    background: rgba(255, 255, 255, 0.05);
}

.prize-item-small.drawn .name {
    text-decoration: line-through;
}

.prize-item-small-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prize-item-small .name {
    color: var(--gold);
    font-weight: 600;
    font-size: 1em;
    line-height: 1.3;
    margin-bottom: 1px;
}

.prize-item-small .desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85em;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prize-item-small .count {
    color: rgba(255, 215, 0, 0.9);
    font-size: 0.75em;
    font-weight: 500;
    margin-top: 2px;
}

.prize-item-small-badge {
    position: absolute;
    top: 6px;
    right: 10px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--light-gold) 100%);
    color: var(--dark-red);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.65em;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* ==================== 奖品管理对话框优化 ==================== */
/* 重用prize-item-small样式,添加右上角删除按钮 */
.prize-order-item {
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--gold);
    padding: 8px 10px;
    margin-bottom: 6px;
    border-radius: 0 8px 8px 0;
    font-size: 0.85em;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: all 0.3s;
    position: relative;
    cursor: move;
}

.prize-order-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.prize-order-item.drawn {
    opacity: 0.5;
    text-decoration: line-through;
    cursor: not-allowed;
}

.prize-order-item.dragging {
    opacity: 0.4;
    background: rgba(255, 215, 0, 0.1);
    transform: scale(0.98);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.prize-order-item-dragover {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.prize-order-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prize-order-item .name {
    color: var(--gold);
    font-weight: bold;
    display: block;
    line-height: 1.3;
    flex: 1;
}

.prize-order-item .detail {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
    font-size: 0.85em;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 右上角删除按钮 */
.prize-delete-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--gold);
    color: var(--dark-red);
    border: 2px solid #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.prize-delete-close:hover {
    background: #e74c3c;
    color: #fff;
    transform: rotate(90deg) scale(1.2);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
}

.prize-delete-close:active {
    transform: rotate(180deg) scale(0.9);
}

.prize-order-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

.prize-order-btn {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--gold);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75em;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
}

.prize-order-btn:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.prize-order-btn:active {
    transform: scale(0.95);
}

.prize-order-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* 拖拽手柄 */
.prize-drag-handle {
    color: var(--gold);
    font-size: 1.2em;
    cursor: move;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.3s;
    user-select: none;
    flex-shrink: 0;
}

.prize-drag-handle:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.1);
}

.prize-order-item.drawn .prize-drag-handle {
    cursor: not-allowed;
    opacity: 0.5;
    background: none;
}

.order-badge {
    background: var(--gold);
    color: var(--dark-red);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* 奖品项进入动画 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.prize-item-small {
    animation: slideIn 0.3s ease-out;
}

/* ==================== 右侧内容 ==================== */
.winner-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.winner-header {
    text-align: center;
    font-size: 1.1em;
    color: var(--gold);
    margin-bottom: 15px;
    flex-shrink: 0;
}

.winner-icon {
    font-size: 1.5em;
    margin-right: 5px;
}

.winners-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
    min-height: 80px;
}

.winners-scroll .empty-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    text-align: center;
    min-height: 80px;
}

.winners-scroll .empty-placeholder .icon {
    font-size: 2em;
    margin-bottom: 8px;
    opacity: 0.7;
}

.winner-item {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    text-align: center;
}

.winner-item .name {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.3em;
    color: var(--gold);
    margin-bottom: 3px;
}

.winner-item .dept {
    font-size: 0.8em;
    color: #fff;
    opacity: 0.8;
}

.winner-item .prize {
    font-size: 0.75em;
    color: var(--light-gold);
    margin-top: 5px;
}

/* ==================== 中间抽奖区 ==================== */
.center-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    min-height: 420px;
}

.stage-background {
    flex: 1;
    background: radial-gradient(ellipse at center, rgba(139, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    border: 3px solid var(--gold);
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(196, 30, 58, 0.4),
                inset 0 0 40px rgba(255, 215, 0, 0.1);
    min-height: 420px;
}

.stage-background::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    pointer-events: none;
}

.lottery-display {
    text-align: center;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 40px;
    transition: opacity 0.3s ease-in-out;
}

.lottery-display.fade-out {
    opacity: 0;
}

.lottery-display.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rolling-name {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 6em;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                 0 0 40px rgba(255, 215, 0, 0.4),
                 4px 4px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite alternate;
    min-height: 1.2em;
    line-height: 1.2;
    word-break: keep-all;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                     0 0 40px rgba(255, 215, 0, 0.4),
                     4px 4px 8px rgba(0, 0, 0, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 215, 0, 1),
                     0 0 60px rgba(255, 215, 0, 0.6),
                     4px 4px 8px rgba(0, 0, 0, 0.5);
    }
}

.rolling-info {
    font-size: 1.2em;
    color: #fff;
    opacity: 0.9;
}

/* ==================== 浮动控制按钮 ==================== */
.floating-controls {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.center-stage:hover .floating-controls {
    opacity: 1;
}

.icon-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.9) 0%, rgba(139, 0, 0, 0.95) 100%);
    color: var(--gold);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

.icon-btn svg {
    width: 28px;
    height: 28px;
}

.icon-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.6),
                0 0 20px rgba(255, 215, 0, 0.4);
}

.icon-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ==================== 统计栏 ==================== */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 15px 0;
    margin-top: 15px;
    background: rgba(196, 30, 58, 0.3);
    border-radius: 50px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-label {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
}

.stat-value {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2em;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* ==================== 底部装饰 ==================== */
.bottom-decoration {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 15px;
    padding: 10px;
}

.cloud {
    font-size: 2em;
    color: rgba(255, 215, 0, 0.6);
    opacity: 0.6;
}

.blessing-text {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.3em;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    letter-spacing: 8px;
}

/* ==================== 模态框 ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.95) 0%, rgba(196, 30, 58, 0.95) 100%);
    border: 2px solid var(--gold);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.modal-header h2 {
    font-family: 'Ma Shan Zheng', cursive;
    color: var(--gold);
    font-size: 1.8em;
}

.close-btn {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 2em;
    cursor: pointer;
    transition: transform 0.3s;
    padding: 5px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .close-btn {
        font-size: 1.8em;
        min-width: 40px;
        min-height: 40px;
    }

    .close-btn:active {
        transform: scale(0.9);
    }
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-modal {
    padding: 10px 25px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--light-gold) 100%);
    color: var(--dark-red);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.btn-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #00b894 0%, #00a884 100%);
    color: #fff;
}

/* ==================== 奖品管理界面优化 ==================== */
.prize-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.sort-hint {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-size: 0.95em;
}

.sort-hint-icon {
    font-size: 1.5em;
    animation: dragHint 2s ease-in-out infinite;
}

@keyframes dragHint {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-3px);
    }
    75% {
        transform: translateX(3px);
    }
}

.sort-hint-text {
    flex: 1;
}

/* ==================== 表单样式 ==================== */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    color: var(--gold);
    margin-bottom: 5px;
    font-size: 0.9em;
}

.form-input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* ==================== 上传区域 ==================== */
.upload-area {
    border: 2px dashed rgba(255, 215, 0, 0.4);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.05);
}

.upload-area:hover {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
}

.upload-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.upload-text {
    color: #fff;
    margin-bottom: 5px;
}

.upload-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
}

.file-info {
    display: none;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    color: var(--gold);
}

.file-info.show {
    display: block;
}

/* ==================== 响应式对联布局 ==================== */
@media (max-width: 1200px) {
    .couplet-left,
    .couplet-right {
        width: 220px;
        padding: 15px;
    }

    .banner-text {
        font-size: 2.2em;
        letter-spacing: 6px;
    }

    .scroll-title {
        font-size: 2em;
    }

    .rolling-name {
        font-size: 4em;
    }

    .slot-machine-container {
        max-width: 550px;
    }
}

/* ==================== 平板设备优化 ==================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .slot-machine-container {
        max-width: 500px;
    }

    .slot-machine-window {
        border-radius: 22px;
        padding: 32px 22px 22px 22px;
    }

    .slot-machine-lights {
        gap: 18px;
        max-width: 240px;
        margin-bottom: 22px;
    }

    .slot-light {
        width: 13px;
        height: 13px;
    }

    .rolling-info-wrapper {
        gap: 9px;
        margin-top: 14px;
    }

    .rolling-department {
        font-size: 1.1em;
        padding: 7px 18px;
    }

    .rolling-number-tag {
        font-size: 0.93em;
        padding: 7px 18px;
    }
}

@media (max-width: 900px) {
    .main-couplet {
        flex-direction: column;
        gap: 20px;
    }

    .couplet-left,
    .couplet-right {
        width: 100%;
        max-height: 200px;
    }

    .center-stage {
        order: -1;
        min-height: 400px;
    }

    .banner-text {
        font-size: 1.8em;
        letter-spacing: 4px;
    }

    .floating-controls {
        opacity: 1;
    }
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {
    /* 基础重置 */
    body {
        padding: 10px;
        font-size: 14px;
    }

    .couplet-container {
        height: auto;
        min-height: 100vh;
        padding-bottom: 100px;
    }

    /* 横批优化 */
    .top-banner {
        margin-bottom: 15px;
    }

    .banner-content {
        padding: 12px 40px;
        border-width: 2px;
    }

    .banner-content::before,
    .banner-content::after {
        font-size: 1.2em;
        left: 10px;
        right: 10px;
    }

    .banner-text {
        font-size: 1.6em;
        letter-spacing: 3px;
        word-break: keep-all;
    }

    /* 主体对联布局 */
    .main-couplet {
        flex-direction: column;
        gap: 15px;
    }

    .center-stage {
        order: -1;
        min-height: 350px;
    }

    /* 左右对联优化 */
    .couplet-left,
    .couplet-right {
        width: 100%;
        max-height: none;
        min-height: auto;
        padding: 12px;
        border-radius: 15px;
    }

    .couplet-left::before,
    .couplet-right::before {
        display: none;
    }

    .scroll-decoration {
        font-size: 1.2em;
    }

    .scroll-title {
        font-size: 1.8em;
        margin-bottom: 10px;
    }

    /* 当前奖品信息 */
    .current-prize {
        padding: 12px;
        border-radius: 10px;
    }

    .prize-name {
        font-size: 1.4em;
    }

    .prize-desc {
        font-size: 0.85em;
    }

    .prize-count {
        font-size: 0.8em;
    }

    /* 奖品列表 */
    .prize-list-container h4 {
        font-size: 0.95em;
        margin-bottom: 8px;
    }

    /* 中间抽奖区 */
    .stage-background {
        border-radius: 20px;
        border-width: 2px;
        min-height: 320px;
    }

    .stage-background::before {
        display: none;
    }

    .lottery-display {
        padding: 20px;
        min-height: 280px;
    }

    .rolling-name {
        font-size: 2.8em;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .rolling-info {
        font-size: 1em;
    }

    /* ==================== 老虎机容器移动端优化 ==================== */
    .slot-machine-container {
        max-width: 100%;
        gap: 12px;
    }

    .slot-machine-window {
        border-radius: 18px;
        padding: 28px 20px 20px 20px;
        border-width: 3px;
    }

    .slot-machine-window::after {
        display: none;
    }

    .slot-machine-lights {
        gap: 15px;
        max-width: 220px;
        margin-bottom: 20px;
        padding: 0 5px;
    }

    .slot-light {
        width: 12px;
        height: 12px;
    }

    .slot-light::before {
        top: 2px;
        left: 2px;
        width: 3px;
        height: 3px;
    }

    .rolling-name-wrapper {
        width: 100%;
    }

    .rolling-info-wrapper {
        gap: 8px;
        margin-top: 12px;
    }

    .rolling-department {
        font-size: 1em;
        padding: 6px 16px;
        max-width: 95%;
    }

    .rolling-number-tag {
        font-size: 0.9em;
        padding: 6px 16px;
    }

    /* 浮动控制按钮优化 */
    .floating-controls {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        gap: 12px;
        opacity: 1;
        z-index: 100;
        background: rgba(139, 0, 0, 0.8);
        padding: 10px 15px;
        border-radius: 30px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }

    .center-stage:hover .floating-controls {
        opacity: 1;
    }

    .icon-btn {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
        border-width: 1.5px;
    }

    .icon-btn svg {
        width: 24px;
        height: 24px;
    }

    .icon-btn:hover {
        transform: translateY(-3px) scale(1.05);
    }

    /* 统计栏优化 */
    .stats-bar {
        gap: 20px;
        padding: 12px 20px;
        margin-top: 10px;
    }

    .stat-label {
        font-size: 0.8em;
    }

    .stat-value {
        font-size: 1.6em;
    }

    /* 底部装饰优化 */
    .bottom-decoration {
        margin-top: 10px;
        padding: 8px;
        gap: 15px;
    }

    .cloud {
        font-size: 1.5em;
    }

    .blessing-text {
        font-size: 1.1em;
        letter-spacing: 4px;
    }

    /* 模态框优化 */
    .modal-content {
        width: 95%;
        padding: 20px;
        border-radius: 15px;
    }

    .modal-header h2 {
        font-size: 1.5em;
    }

    .close-btn {
        font-size: 1.6em;
    }

    .modal-actions {
        gap: 10px;
    }

    .btn-modal {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-label {
        font-size: 0.85em;
    }

    .form-input {
        padding: 10px;
        font-size: 0.95em;
    }

    /* 上传区域优化 */
    .upload-area {
        padding: 20px;
    }

    .upload-icon {
        font-size: 2em;
        margin-bottom: 8px;
    }

    .upload-text {
        font-size: 0.9em;
    }

    .upload-hint {
        font-size: 0.8em;
    }

    .file-info {
        padding: 8px;
        font-size: 0.9em;
    }

    /* 滚动条优化 */
    ::-webkit-scrollbar {
        width: 4px;
    }
}

@media (max-width: 480px) {
    /* 小屏幕进一步优化 */
    body {
        padding: 8px;
        font-size: 13px;
    }

    .couplet-container {
        padding-bottom: 90px;
    }

    .banner-content {
        padding: 10px 30px;
    }

    .banner-text {
        font-size: 1.4em;
        letter-spacing: 2px;
    }

    .main-couplet {
        gap: 12px;
    }

    .center-stage {
        min-height: 300px;
    }

    .couplet-left,
    .couplet-right {
        padding: 10px;
    }

    .scroll-title {
        font-size: 1.5em;
    }

    .rolling-name {
        font-size: 2.2em;
    }

    /* ==================== 老虎机容器小屏优化 ==================== */
    .slot-machine-container {
        gap: 10px;
    }

    .slot-machine-window {
        border-radius: 15px;
        padding: 24px 18px 18px 18px;
        border-width: 2.5px;
    }

    .slot-machine-lights {
        gap: 12px;
        max-width: 180px;
        margin-bottom: 18px;
    }

    .slot-light {
        width: 10px;
        height: 10px;
    }

    .slot-light::before {
        top: 1px;
        left: 2px;
        width: 3px;
        height: 3px;
    }

    .rolling-info-wrapper {
        gap: 6px;
        margin-top: 10px;
    }

    .rolling-department {
        font-size: 0.95em;
        padding: 5px 14px;
    }

    .rolling-number-tag {
        font-size: 0.85em;
        padding: 5px 14px;
    }

    .floating-controls {
        gap: 8px;
        padding: 8px 12px;
    }

    .icon-btn {
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
    }

    .icon-btn svg {
        width: 22px;
        height: 22px;
    }

    .stats-bar {
        gap: 15px;
        padding: 10px 15px;
    }

    .stat-value {
        font-size: 1.4em;
    }

    .blessing-text {
        font-size: 1em;
        letter-spacing: 3px;
    }

    .modal-content {
        padding: 15px;
    }

    .modal-header h2 {
        font-size: 1.3em;
    }
}

/* ==================== 滚动条美化 ==================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.6);
}

/* ==================== 老虎机滚动动画样式 ==================== */
.slot-machine-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-height: 300px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.slot-machine-container.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.slot-machine-container.fade-in {
    animation: containerFadeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes containerFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slot-machine-window {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, rgba(196, 30, 58, 0.95) 0%, rgba(139, 0, 0, 0.98) 100%);
    border: 4px solid var(--gold);
    border-radius: 24px;
    padding: 35px 25px 25px 25px;
    box-shadow: 0 8px 32px rgba(196, 30, 58, 0.5),
                0 0 60px rgba(255, 215, 0, 0.3),
                inset 0 0 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    transition: all 0.3s ease-in-out;
}

.slot-machine-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.4) 0%,
        transparent 20%,
        transparent 80%,
        rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    border-radius: 20px;
}

.slot-machine-window::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    pointer-events: none;
}

.slot-machine-lights {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 280px;
    margin-bottom: 25px;
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

/* ==================== 专业版LED灯效果 ==================== */
.slot-light {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #00ff88, #00cc6a, #009950);
    box-shadow: 0 0 15px #00ff88,
                0 0 30px rgba(0, 255, 136, 0.6),
                0 0 45px rgba(0, 255, 136, 0.3),
                inset 0 2px 4px rgba(255, 255, 255, 0.4),
                inset 0 -2px 6px rgba(0, 0, 0, 0.4);
    animation: ledBlink 0.5s ease-in-out infinite;
    position: relative;
    transition: all 0.3s ease;
}

.slot-light::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 3px;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

.slot-light::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.4), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* LED灯闪烁动画 */
.slot-light:nth-child(1) { animation-delay: 0s; }
.slot-light:nth-child(2) { animation-delay: 0.12s; }
.slot-light:nth-child(3) { animation-delay: 0.24s; }
.slot-light:nth-child(4) { animation-delay: 0.12s; }
.slot-light:nth-child(5) { animation-delay: 0s; }

@keyframes ledBlink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 15px #00ff88,
                    0 0 30px rgba(0, 255, 136, 0.6),
                    0 0 45px rgba(0, 255, 136, 0.3),
                    inset 0 2px 4px rgba(255, 255, 255, 0.4),
                    inset 0 -2px 6px rgba(0, 0, 0, 0.4);
    }
    50% {
        opacity: 0.65;
        transform: scale(0.93);
        box-shadow: 0 0 8px #00ff88,
                    0 0 16px rgba(0, 255, 136, 0.4),
                    0 0 24px rgba(0, 255, 136, 0.2),
                    inset 0 2px 4px rgba(255, 255, 255, 0.3),
                    inset 0 -2px 6px rgba(0, 0, 0, 0.5);
    }
}

/* ==================== LED灯获胜效果 ==================== */
.slot-machine-window.winner .slot-light {
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #ff4757, #ff3838);
    box-shadow: 0 0 20px #ff4757,
                0 0 40px rgba(255, 71, 87, 0.7),
                0 0 60px rgba(255, 71, 87, 0.4),
                inset 0 2px 4px rgba(255, 255, 255, 0.5),
                inset 0 -2px 6px rgba(0, 0, 0, 0.4);
    animation: winnerGlow 0.3s ease-in-out infinite;
}

.slot-machine-window.winner .slot-light::after {
    background: radial-gradient(circle at 50% 50%, rgba(255, 71, 87, 0.5), transparent 70%);
}

@keyframes winnerGlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1.05);
        box-shadow: 0 0 25px #ff4757,
                    0 0 50px rgba(255, 71, 87, 0.8),
                    0 0 75px rgba(255, 71, 87, 0.5);
    }
    50% {
        opacity: 0.7;
        transform: scale(1);
        box-shadow: 0 0 15px #ff4757,
                    0 0 30px rgba(255, 71, 87, 0.6),
                    0 0 45px rgba(255, 71, 87, 0.3);
    }
}

/* ==================== 中奖状态边框发光效果 - 使用伪元素而非直接修改box-shadow ==================== */
.slot-machine-window.winner::before {
    animation: winnerBorderGlow 1.5s ease-in-out infinite alternate;
}

@keyframes winnerBorderGlow {
    0% {
        box-shadow: 0 8px 32px rgba(196, 30, 58, 0.5),
                    0 0 60px rgba(255, 215, 0, 0.3),
                    inset 0 0 40px rgba(0, 0, 0, 0.4),
                    0 0 0 4px rgba(255, 215, 0, 0.6),
                    0 0 20px rgba(255, 215, 0, 0.4);
    }
    100% {
        box-shadow: 0 8px 32px rgba(196, 30, 58, 0.5),
                    0 0 60px rgba(255, 215, 0, 0.5),
                    inset 0 0 40px rgba(0, 0, 0, 0.4),
                    0 0 0 4px rgba(255, 215, 0, 0.9),
                    0 0 30px rgba(255, 215, 0, 0.7);
    }
}

.slot-machine-window.rolling .slot-light::after {
    background: radial-gradient(circle at 50% 50%, rgba(255, 217, 61, 0.4), transparent 70%);
}

@keyframes rollingGlow {
    0% {
        opacity: 0.8;
        transform: scale(0.95);
        box-shadow: 0 0 12px #ffd93d,
                    0 0 24px rgba(255, 217, 61, 0.5),
                    0 0 36px rgba(255, 217, 61, 0.2);
    }
    100% {
        opacity: 1;
        transform: scale(1.05);
        box-shadow: 0 0 20px #ffd93d,
                    0 0 40px rgba(255, 217, 61, 0.7),
                    0 0 60px rgba(255, 217, 61, 0.4);
    }
}

/* ==================== LED灯滚动效果 ==================== */
.slot-machine-window.rolling .slot-light {
    background: radial-gradient(circle at 30% 30%, #ffd93d, #f9ca24, #f0932b);
    box-shadow: 0 0 18px #ffd93d,
                0 0 36px rgba(255, 217, 61, 0.6),
                0 0 54px rgba(255, 217, 61, 0.3),
                inset 0 2px 4px rgba(255, 255, 255, 0.5),
                inset 0 -2px 6px rgba(0, 0, 0, 0.3);
    animation: rollingGlow 0.2s linear infinite;
}

.lottery-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    min-height: 200px;
}

.lottery-content.fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rolling-name-wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rolling-name.slide-up {
    animation: slideUp 0.15s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rolling-name.highlight-effect {
    animation: highlight 0.25s ease-in-out;
}

@keyframes highlight {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.15);
        filter: brightness(1.3);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

.rolling-name.final-reveal {
    animation: finalReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes finalReveal {
    from {
        transform: scale(0.3);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.slot-machine-window.slow-down-bg {
    animation: slowDownPulse 0.35s ease-in-out;
}

@keyframes slowDownPulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(196, 30, 58, 0.5),
                    0 0 60px rgba(255, 215, 0, 0.3),
                    inset 0 0 40px rgba(0, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 8px 40px rgba(196, 30, 58, 0.7),
                    0 0 80px rgba(255, 215, 0, 0.5),
                    inset 0 0 50px rgba(0, 0, 0, 0.5);
    }
}

.rolling-info-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.rolling-department {
    text-align: center;
    color: #fff;
    font-size: 1.15em;
    font-weight: 500;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    max-width: 90%;
    letter-spacing: 0.5px;
}

.rolling-number-tag {
    color: var(--gold);
    font-size: 0.95em;
    font-weight: 600;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.15) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    display: inline-block;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

/* ==================== 触摸优化 ==================== */
@media (max-width: 768px) {
    /* 移除移动端的hover效果 */
    .icon-btn:active {
        transform: translateY(2px) scale(0.95);
        box-shadow: 0 2px 10px rgba(196, 30, 58, 0.3);
    }

    .btn-modal:active {
        transform: translateY(1px);
    }

    /* 移动端点击区域优化 */
    .winner-item {
        padding: 12px;
        touch-action: manipulation;
    }

    .prize-item-small {
        padding: 8px 10px;
        touch-action: manipulation;
        font-size: 0.8em;
        margin-bottom: 4px;
    }

    .prize-item-small .name {
        font-size: 0.95em;
        margin-bottom: 1px;
    }

    .prize-item-small .desc {
        font-size: 0.8em;
        -webkit-line-clamp: 2;
    }

    .prize-item-small .count {
        font-size: 0.7em;
    }

    .prize-item-small-badge {
        top: 5px;
        right: 8px;
        padding: 1px 5px;
        font-size: 0.6em;
        min-width: 18px;
    }

    /* 移动端模态框滚动优化 */
    .modal-content {
        -webkit-overflow-scrolling: touch;
    }

    /* 移动端拖拽优化 */
    .upload-area,
    .prize-upload-area {
        touch-action: none;
    }
}

/* ==================== 性能优化 ==================== */
/* 减少动画重绘 */
.stage-background,
.slot-machine-window,
.icon-btn,
.rolling-name,
.lottery-display,
.slot-machine-container {
    will-change: transform, opacity;
}

/* GPU加速 */
.icon-btn,
.rolling-name,
.slot-light,
.lottery-display,
.slot-machine-container {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* 减少重排 */
.floating-controls {
    contain: layout style paint;
}

/* ==================== 奖品管理列表样式 ==================== */
.prize-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* 移动端拖拽手柄优化 */
@media (max-width: 768px) {
    .drag-handle {
        padding: 12px;
        font-size: 1.4em;
        background: rgba(255, 215, 0, 0.1);
        border-radius: 8px;
        margin: -5px;
    }

    .drag-handle:active {
        background: rgba(255, 215, 0, 0.3);
        transform: scale(1.15);
    }

    /* 触摸反馈 */
    .prize-order-item:active {
        transform: scale(0.98);
        background: rgba(255, 215, 0, 0.05);
    }
}

.prize-item-info {
    flex: 1;
}

.prize-item-name {
    font-weight: bold;
    color: var(--gold);
    margin-bottom: 5px;
}

.prize-item-detail {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
}

.prize-item-actions {
    display: flex;
    gap: 8px;
}

.prize-item-edit,
.prize-item-delete {
    padding: 6px 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s;
}

.prize-item-edit {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold);
}

.prize-item-edit:hover {
    background: rgba(255, 215, 0, 0.3);
}

.prize-item-delete {
    background: rgba(196, 30, 58, 0.3);
    color: #fff;
}

.prize-item-delete:hover {
    background: rgba(196, 30, 58, 0.5);
}

/* 拖拽排序样式 */
.prize-order-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: move;
    transition: all 0.3s;
    position: relative;
}

.prize-order-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.prize-order-item.dragging {
    opacity: 0.4;
    background: rgba(255, 215, 0, 0.1);
    transform: scale(0.98);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.prize-order-item-dragover {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.prize-order-item.drawn {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.3);
}

.prize-order-item.drawn:hover {
    transform: none;
    box-shadow: none;
}

.drag-handle {
    color: var(--gold);
    font-size: 1.2em;
    cursor: move;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s;
    user-select: none;
}

.drag-handle:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.1);
}

.prize-order-item.drawn .drag-handle {
    cursor: not-allowed;
    opacity: 0.5;
}

.prize-order-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prize-item-name {
    color: #fff;
    font-weight: 500;
    flex: 1;
}

.prize-item-detail {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    margin-top: 4px;
}

.prize-item-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.prize-item-edit,
.prize-item-delete {
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
}

.prize-item-edit {
    background: rgba(52, 152, 219, 0.3);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.5);
}

.prize-item-edit:hover {
    background: rgba(52, 152, 219, 0.5);
    transform: scale(1.05);
}

.prize-item-delete {
    background: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.5);
}

.prize-item-delete:hover {
    background: rgba(231, 76, 60, 0.5);
    transform: scale(1.05);
}

.prize-item-status {
    color: rgba(255, 215, 0, 0.7);
    font-size: 0.85em;
    margin-top: 4px;
}

.order-badge {
    background: var(--gold);
    color: var(--dark-red);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.85em;
    font-weight: bold;
    min-width: 28px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.order-section-title {
    color: var(--gold);
    font-weight: bold;
    margin: 20px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    font-size: 1.1em;
}

.no-prizes {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1em;
}

/* ==================== 奖品列表容器滚动 ==================== */
.prize-list {
    max-height: calc(80vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-right: 5px;
}

/* 移动端奖品列表优化 */
@media (max-width: 768px) {
    .prize-list {
        flex: 1;
        max-height: none;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 2px;
        margin-top: 10px;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .modal-content {
        max-height: 90vh;
        height: 90vh;
        max-width: 95%;
        width: 95%;
        padding: 15px;
        display: flex;
        flex-direction: column;
    }

    .modal-header {
        flex-shrink: 0;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .modal-header h2 {
        font-size: 1.4em;
    }

    .prize-actions {
        flex-shrink: 0;
        margin-bottom: 10px;
    }

    .prize-actions .btn-modal {
        flex: 1;
        min-width: calc(50% - 5px);
        font-size: 0.9em;
        padding: 10px 12px;
    }

    .sort-hint {
        flex-shrink: 0;
        padding: 10px 12px;
        font-size: 0.85em;
        margin-bottom: 10px;
    }

    /* 移动端拖拽项目优化 */
    .prize-order-item {
        padding: 10px;
        margin-bottom: 8px;
        flex-direction: column;
        align-items: flex-start;
    }

    .prize-order-info {
        width: 100%;
    }

    .prize-item-name {
        font-size: 0.95em;
    }

    .prize-item-detail {
        font-size: 0.85em;
    }

    .prize-item-actions {
        gap: 8px;
        width: 100%;
    }

    .prize-item-edit,
    .prize-item-delete {
        flex: 1;
        padding: 8px 12px;
        font-size: 0.85em;
    }

    /* 移动端模态框滚动优化 */
    .modal-content {
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    /* 移动端拖拽优化 - 允许滚动和拖拽共存 */
    .upload-area,
    .prize-upload-area {
        touch-action: none;
    }

    /* 防止模态框打开时背景滚动 */
    body.modal-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* 移动端奖品列表优化 */
@media (max-width: 768px) {
    .prize-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .prize-item-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .prize-order-item {
        padding: 10px;
    }

    .order-badge {
        padding: 2px 6px;
        font-size: 0.75em;
        min-width: 20px;
    }
}

/* ==================== 二维码弹窗样式 ==================== */
.qr-code-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-code-modal.show {
    display: flex;
    opacity: 1;
}

.qr-code-content {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.95) 0%, rgba(139, 0, 0, 0.98) 100%);
    border: 3px solid var(--gold);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
}

.qr-code-modal.show .qr-code-content {
    transform: scale(1);
}

.qr-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gold);
}

.qr-code-header h3 {
    color: var(--gold);
    font-size: 1.5em;
    margin: 0;
    font-weight: bold;
}

.qr-code-close {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 2em;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.qr-code-close:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: rotate(90deg);
}

.qr-code-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qr-code-info {
    text-align: center;
}

.qr-code-info p {
    color: white;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.qr-code-display {
    background: white;
    padding: 20px;
    border-radius: 15px;
    display: inline-block;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.qr-code-display img {
    max-width: 100%;
    height: auto;
    display: block;
}

.qr-code-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.size-control {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.size-control label {
    white-space: nowrap;
    color: var(--gold);
    font-weight: bold;
}

.size-control input[type="range"] {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.size-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.size-control input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#qrSizeValue {
    color: var(--gold);
    font-weight: bold;
    min-width: 50px;
}

.btn-download {
    background: linear-gradient(135deg, var(--gold) 0%, var(--light-gold) 100%);
    color: var(--dark-red);
    border: 2px solid var(--gold);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.url-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.url-info label {
    color: var(--gold);
    font-weight: bold;
}

.url-display {
    display: flex;
    gap: 10px;
}

.url-display input {
    flex: 1;
    padding: 10px;
    border: 2px solid var(--glass-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
    color: #333;
}

.url-display button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.url-display button:hover {
    background: var(--gold);
    color: var(--dark-red);
}

/* 二维码按钮动画 */
@keyframes qrPulse {
    0% { box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4); }
    50% { box-shadow: 0 8px 25px rgba(196, 30, 58, 0.8), 0 0 20px rgba(255, 215, 0, 0.6); }
    100% { box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4); }
}

.icon-btn.btn-qr:hover {
    animation: qrPulse 1.5s infinite;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .qr-code-content {
        padding: 20px;
        max-width: 95%;
        width: 95%;
    }
    
    .qr-code-header h3 {
        font-size: 1.2em;
    }
    
    .qr-code-body {
        gap: 15px;
    }
    
    .size-control {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .size-control input[type="range"] {
        width: 100%;
    }
    
    .url-display {
        flex-direction: column;
    }
    
    .url-display input {
        font-size: 0.8em;
    }
    
    .qr-code-controls {
        gap: 10px;
    }
    
    .btn-download {
        padding: 10px 15px;
        font-size: 0.9em;
    }
}
