* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary-color: #FF7A45;
    --secondary-color: #FF6B35;
    --accent-color: #FF5722;
    --dark-color: #111827;
    --light-color: #f9fafb;
    --gray-color: #6b7280;
    --orange-light: #FFF3E0;
    --orange-dark: #E64A19;
    --border-radius: 12px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 头部样式 */
.health-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 0 auto;
}

.back-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--dark-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.header-content h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.share-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--primary-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background-color: rgba(255, 122, 69, 0.1);
}

.header-right {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* 转盘抽奖容器 */
.lottery-container {
    background: linear-gradient(135deg, #0F0F1E 0%, #1A1A2E 50%, #16213E 100%);
    color: #F8F9FF;
    min-height: calc(100vh - 70px);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* 转盘相关变量 */
:root {
    --wheel-primary: #8B5AFF;
    --wheel-primary-dark: #6A3FD9;
    --wheel-secondary: #FF6B9D;
    --wheel-accent: #00D4FF;
    --wheel-gold: #FFD700;
    --wheel-gold-dark: #FFA500;
    --wheel-dark: #1A1A2E;
    --wheel-darker: #0F0F1E;
    --wheel-light: #F8F9FF;
    --wheel-shadow: rgba(0, 0, 0, 0.3);
    --wheel-glass: rgba(255, 255, 255, 0.08);
    --wheel-glass-border: rgba(255, 255, 255, 0.2);
    --wheel-none-prize: #888888;
}

/* 背景装饰元素 */
.bg-decoration {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100% - 70px);
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--wheel-primary) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(40px);
}

.circle-1 {
    width: 500px;
    height: 500px;
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, var(--wheel-accent) 0%, transparent 70%);
}

.circle-2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -100px;
    background: radial-gradient(circle, var(--wheel-secondary) 0%, transparent 70%);
}

.floating-element {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--wheel-glass);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--wheel-glass-border);
    transform: rotate(45deg);
    animation: float 20s infinite linear;
}

.floating-1 {
    top: 20%;
    left: 5%;
    animation-delay: 0s;
}

.floating-2 {
    top: 60%;
    right: 8%;
    animation-delay: -5s;
    width: 60px;
    height: 60px;
}

.floating-3 {
    bottom: 30%;
    left: 10%;
    animation-delay: -10s;
    width: 100px;
    height: 100px;
}

@keyframes float {
    0% { transform: rotate(0deg) translateX(0px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(30px) rotate(-360deg); }
}

/* 主内容区域 */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

@media (max-width: 1100px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 转盘区域 */
.wheel-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--wheel-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--wheel-glass-border);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 40px var(--wheel-shadow);
    height: fit-content;
    width: 100%;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
    background: linear-gradient(to right, var(--wheel-light), var(--wheel-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 3px 10px rgba(0, 212, 255, 0.3);
}

.section-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* 转盘容器 */
.wheel-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 20px;
}

#wheelCanvas {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
    max-width: 100%;
}

/* 豪华指针 */
.luxury-pointer {
    position: absolute;
    top: 20px; /* 与容器内边距一致 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 60px;
    height: 85px;
}

.pointer-body {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 60px solid var(--wheel-gold);
    filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.5));
}

.pointer-body:before {
    content: '';
    position: absolute;
    top: -60px;
    left: -25px;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 45px solid var(--wheel-gold-dark);
    z-index: -1;
}

/* 抽奖按钮 */
.draw-btn-container {
    margin-top: 30px;
    text-align: center;
    width: 100%;
}

.draw-btn {
    background: linear-gradient(135deg, var(--wheel-primary) 0%, var(--wheel-secondary) 100%);
    border: none;
    color: white;
    padding: 18px 50px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 12px 25px rgba(139, 90, 255, 0.4);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 0 auto;
}

.draw-btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(139, 90, 255, 0.6);
}

.draw-btn:active {
    transform: translateY(-2px);
}

.draw-btn:disabled {
    background: linear-gradient(135deg, #555 0%, #777 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.draw-btn i {
    margin-right: 12px;
    font-size: 22px;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.draw-btn:hover .btn-glow {
    left: 100%;
}

/* 抽奖次数 */
.draw-count {
    margin-top: 20px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.draw-count i {
    color: var(--wheel-accent);
    margin-right: 8px;
    font-size: 20px;
}

.count-number {
    font-weight: 700;
    color: var(--wheel-gold);
    font-size: 22px;
    margin: 0 5px;
}

/* 中奖结果 */
.result-display {
    margin-top: 25px;
    text-align: center;
    min-height: 80px;
    width: 100%;
}

.result-text {
    font-size: 22px;
    font-weight: 700;
    padding: 18px 30px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(139, 90, 255, 0.1), rgba(0, 212, 255, 0.1));
    border: 1px solid rgba(139, 90, 255, 0.3);
    display: inline-block;
    min-width: 300px;
    max-width: 100%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .result-text {
        min-width: 250px;
        font-size: 18px;
        padding: 15px 25px;
    }
}

/* 奖品列表区域 */
.prizes-list-section {
    background: var(--wheel-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--wheel-glass-border);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 40px var(--wheel-shadow);
    height: fit-content;
    width: 100%;
}

.prizes-table-container {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prizes-table {
    width: 100%;
    border-collapse: collapse;
}

.prizes-table thead {
    background: linear-gradient(to right, rgba(139, 90, 255, 0.2), rgba(0, 212, 255, 0.2));
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.prizes-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 700;
    font-size: 16px;
    color: var(--wheel-accent);
    font-family: 'Montserrat', sans-serif;
}

.prizes-table th i {
    margin-right: 8px;
}

.prizes-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.prizes-table tbody tr:last-child {
    border-bottom: none;
}

.prizes-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

.prizes-table tbody tr.highlight {
    background: linear-gradient(to right, rgba(0, 212, 255, 0.15), rgba(139, 90, 255, 0.15));
    border-left: 4px solid var(--wheel-accent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.prizes-table td {
    padding: 15px;
    color: rgba(255, 255, 255, 0.9);
    vertical-align: middle;
}

.prizes-table .icon-col {
    width: 60px;
    text-align: center;
}

.prizes-table .name-col {
    width: 180px;
    font-weight: 600;
    color: var(--wheel-light);
}

.prizes-table .desc-col {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.4;
}

.prizes-table .prob-col {
    width: 80px;
    text-align: center;
    font-weight: 700;
}

.prizes-table .type-col {
    width: 100px;
    text-align: center;
}

.prize-icon-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    margin: 0 auto;
    font-size: 20px;
}

.type-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-badge.prize {
    background: rgba(0, 212, 255, 0.2);
    color: var(--wheel-accent);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.type-badge.none {
    background: rgba(136, 136, 136, 0.2);
    color: var(--wheel-none-prize);
    border: 1px solid rgba(136, 136, 136, 0.3);
}

/* 奖品汇总 */
.prizes-summary {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 0 10px;
}

.summary-item i {
    font-size: 28px;
    margin-bottom: 10px;
}

.summary-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.summary-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--wheel-light);
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 768px) {
    .prizes-summary {
        flex-direction: column;
        gap: 20px;
    }
    
    .summary-item {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .summary-item i {
        margin-bottom: 0;
        margin-right: 15px;
        font-size: 24px;
    }
    
    .summary-label {
        margin-bottom: 0;
        flex: 1;
    }
}

/* 弹窗滚动样式 */
.modal {
    background: linear-gradient(145deg, rgb(52 52 126 / 90%), rgb(49 49 142 / 90%));
    backdrop-filter: blur(30px);
    width: 90%;
    max-width: 550px;
    max-height: 90vh; /* 最大高度为视口高度的90% */
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(60px) scale(0.9);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-header {
    background: linear-gradient(to right, var(--wheel-primary), var(--wheel-secondary));
    color: white;
    padding: 35px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0; /* 防止头部被压缩 */
}

.modal-header:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.modal-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.won-prize {
    font-size: 24px;
    font-weight: 700;
    color: var(--wheel-gold) !important; /* 固定为金色 */
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
    position: relative;
    z-index: 1;
}

.modal-body {
    padding: 40px;
    overflow-y: auto; /* 添加垂直滚动 */
    max-height: calc(90vh - 160px); /* 计算最大高度，减去头部高度 */
    flex-grow: 1; /* 填充剩余空间 */
}

/* 定制滚动条样式 */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--wheel-primary), var(--wheel-secondary));
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--wheel-primary-dark), var(--wheel-secondary));
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 16px;
    color: white;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--wheel-accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(to right, var(--wheel-primary), var(--wheel-secondary));
    color: white;
    border: none;
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(139, 90, 255, 0.4);
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* 奖品详情弹窗 */
.prize-detail-modal .modal-header {
    background: linear-gradient(to right, var(--wheel-primary), var(--wheel-secondary));
}

.prize-detail-modal .modal-body {
    display: flex;
    flex-direction: column;
}

.prize-image-container {
    width: 100%;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wheel-dark);
    border: 2px solid var(--wheel-glass-border);
    flex-shrink: 0; /* 防止图片容器被压缩 */
}

.prize-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.prize-icon-large {
    font-size: 80px;
    color: #888888;
    margin: 20px 0;
}

.prize-detail-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-grow: 1; /* 填充剩余空间 */
}

.prize-detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prize-detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.detail-value {
    color: var(--wheel-light);
    font-weight: 700;
}

.prize-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 旋转动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinning {
    animation: spin 0.1s linear infinite;
}

/* 庆祝效果 */
.confetti {
    position: fixed;
    width: 12px;
    height: 12px;
    background-color: var(--wheel-accent);
    top: -10px;
    z-index: 100;
    opacity: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .wheel-section, .prizes-list-section {
        padding: 25px 20px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .draw-btn {
        padding: 16px 40px;
        font-size: 18px;
    }
    
    .modal-body {
        padding: 25px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .modal-header {
        padding: 30px 25px;
    }
    
    .modal-header h2 {
        font-size: 26px;
    }
    
    .won-prize {
        font-size: 22px;
    }
    
    .modal {
        max-height: 85vh; /* 移动端稍微小一点 */
    }
    
    .modal-body {
        max-height: calc(85vh - 130px); /* 调整移动端的计算 */
    }
    
    .prize-image-container {
        height: 200px;
    }
    
    .prize-icon-large {
        font-size: 60px;
    }
}

/* 粒子效果 */
.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--wheel-accent);
    pointer-events: none;
    z-index: 0;
}

/* 抽奖页面专用样式覆盖 */
.lottery-container .section-title {
    padding: 0;
    margin: 0 0 15px 0;
}

.lottery-container .section-subtitle {
    padding: 0;
}

/* 脉冲动画 */
@keyframes pulse {
    0% { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); }
    50% { transform: translateY(-15px); box-shadow: 0 20px 40px rgba(0, 212, 255, 0.4); }
    100% { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); }
}

/* 在文件末尾添加或更新以下响应式样式 */

/* 响应式调整 - 添加更全面的断点 */
@media (max-width: 1200px) {
    .main-content {
        gap: 25px;
    }
    
    .wheel-container {
        max-width: 400px;
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 1100px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .wheel-section, .prizes-list-section {
        max-width: 800px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .lottery-container {
        min-height: calc(100vh - 60px);
    }
    
    .bg-decoration {
        top: 60px;
        height: calc(100% - 60px);
    }
    
    .main-content {
        padding: 15px;
        gap: 15px;
    }
    
    .wheel-section, .prizes-list-section {
        padding: 25px 20px;
        border-radius: 20px;
    }
    
    .section-title {
        font-size: 26px;
        margin-bottom: 12px;
    }
    
    .section-subtitle {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .wheel-container {
        max-width: 350px;
        padding: 15px;
    }

    .luxury-pointer {
        top: 15px;
        width: 50px;
        height: 70px;
    }
    
    #wheelCanvas {
        width: 100%;
        height: auto;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .draw-btn {
        padding: 16px 40px;
        font-size: 18px;
        max-width: 280px;
    }
    
    .result-text {
        min-width: 250px;
        font-size: 18px;
        padding: 15px 25px;
    }
    
    .draw-count {
        font-size: 15px;
    }
    
    .count-number {
        font-size: 20px;
    }
    
    .prizes-table th,
    .prizes-table td {
        padding: 12px 10px;
        font-size: 14px;
    }
    
    .prizes-table .name-col {
        width: 150px;
    }
    
    .prizes-table .icon-col {
        width: 50px;
    }
    
    .prize-icon-cell {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .prizes-summary {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
    
    .summary-item {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 0;
    }
    
    .summary-item i {
        margin-bottom: 0;
        margin-right: 15px;
        font-size: 24px;
    }
    
    .summary-label {
        margin-bottom: 0;
        flex: 1;
    }
    
    .summary-value {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .header-content h1 {
        font-size: 18px;
    }
    
    .wheel-container {
        max-width: 300px;
    }
    
    #wheelCanvas {
        max-width: 300px;
    }
    
    .wheel-section {
        padding: 20px 15px;
    }
    
    .prizes-list-section {
        padding: 20px 15px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .draw-btn {
        padding: 15px 35px;
        font-size: 16px;
        max-width: 250px;
    }
    
    .result-text {
        min-width: 200px;
        font-size: 16px;
        padding: 12px 20px;
    }
    
    .prizes-table th,
    .prizes-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .prizes-table .name-col {
        width: 130px;
    }
    
    .prizes-table .desc-col {
        font-size: 12px;
    }
    
    .prizes-table .prob-col {
        width: 70px;
    }
    
    .prizes-table .type-col {
        width: 90px;
    }
    
    .type-badge {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .prize-icon-cell {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .modal {
        width: 95%;
        max-width: 95%;
        border-radius: 20px;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 25px 20px;
    }
    
    .modal-header h2 {
        font-size: 22px;
    }
    
    .won-prize {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
        max-height: calc(90vh - 110px);
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .form-control {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 16px;
        font-size: 15px;
    }
    
    .close-btn {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .prize-image-container {
        height: 180px;
    }
    
    .prize-icon-large {
        font-size: 50px;
    }
}

@media (max-width: 480px) {
    .wheel-container {
        max-width: 280px;
        padding: 10px;
    }
    
    #wheelCanvas {
        max-width: 280px;
    }
    
    .luxury-pointer {
        top: 10px;
        width: 40px;
        height: 60px;
    }
    
    .pointer-body {
        top: -25px;
        border-left: 20px solid transparent;
        border-right: 20px solid transparent;
        border-top: 40px solid var(--wheel-gold);
    }
    
    .pointer-body:before {
        top: -40px;
        left: -15px;
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-top: 30px solid var(--wheel-gold-dark);
    }
    
    
    .draw-btn {
        padding: 14px 30px;
        font-size: 15px;
        max-width: 220px;
    }
    
    .draw-btn i {
        font-size: 18px;
        margin-right: 10px;
    }
    
    .draw-count {
        font-size: 14px;
    }
    
    .count-number {
        font-size: 18px;
    }
    
    .prizes-table th {
        font-size: 12px;
    }
    
    .prizes-table td {
        font-size: 12px;
    }
    
    .prizes-table .name-col {
        width: 110px;
    }
    
    .prizes-table .desc-col {
        display: none; /* 在极小的屏幕上隐藏描述列 */
    }
    
    .prizes-table .prob-col {
        width: 60px;
    }
    
    .prizes-table .type-col {
        width: 80px;
    }
}

/* 横屏适配 */
@media (max-height: 600px) and (orientation: landscape) {
    .lottery-container {
        min-height: auto;
    }
    
    .bg-decoration {
        top: 70px;
        height: calc(100% - 70px);
    }
    
    .main-content {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 15px;
    }
    
    .wheel-section, .prizes-list-section {
        padding: 20px;
    }
    
    .wheel-container {
        max-width: 250px;
    }
    
    #wheelCanvas {
        max-width: 250px;
    }
    
    .section-title {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .section-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .draw-btn {
        padding: 12px 25px;
        font-size: 14px;
        max-width: 200px;
    }
    
    .result-text {
        min-width: 180px;
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .prizes-table th,
    .prizes-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    .prizes-table .desc-col {
        display: none; /* 横屏下隐藏描述列 */
    }
    
    .modal {
        max-height: 95vh;
    }
    
    .modal-body {
        max-height: calc(95vh - 160px);
    }
    
    .prize-image-container {
        height: 180px;
    }
}

/* 非常小的屏幕 */
@media (max-width: 360px) {
    .wheel-container {
        max-width: 250px;
    }
    
    #wheelCanvas {
        max-width: 250px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .draw-btn {
        padding: 12px 25px;
        font-size: 14px;
        max-width: 200px;
    }
    
    .result-text {
        min-width: 180px;
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .prizes-table .name-col {
        width: 100px;
    }
    
    .prizes-table .prob-col {
        width: 50px;
    }
    
    .prizes-table .type-col {
        width: 70px;
    }
    
    .type-badge {
        padding: 3px 8px;
        font-size: 10px;
    }
}

/* 添加触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .draw-btn:hover {
        transform: none;
    }
    
    .draw-btn:active {
        transform: scale(0.98);
    }
    
    .prize-card:hover,
    .activity-item:hover,
    .flash-item:hover,
    .coupon-item:hover {
        transform: none;
    }
    
    .submit-btn:hover {
        transform: none;
    }
    
    .close-btn:hover {
        transform: none;
    }
    
    .reset-btn:hover {
        transform: none;
    }
    
    .draw-btn:active .btn-glow {
        left: 100%;
    }
}

/* 确保表格在移动端可滚动 */
.prizes-table-container {
    -webkit-overflow-scrolling: touch;
}

/* 防止iOS Safari上的100vh问题 */
@supports (-webkit-touch-callout: none) {
    .lottery-container {
        min-height: -webkit-fill-available;
    }
    
    .bg-decoration {
        height: -webkit-fill-available;
    }
}

/* 高DPI屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .draw-btn, .submit-btn, .close-btn, .reset-btn {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* 未中奖弹窗样式 */
.no-win-modal .modal-header {
    background: linear-gradient(to right, #6b7280, #9ca3af);
}

.no-win-modal .modal-header h2 {
    color: #fff;
}

.no-win-result {
    font-size: 24px;
    font-weight: 700;
    color: #FFD700 !important; /* 固定为金色 */
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
    position: relative;
    z-index: 1;
}

/* 固定中奖弹窗奖品颜色 */
.won-prize {
    color: #FFD700 !important; /* 固定为金色 */
}

/* 移除.result-display相关样式 */
.result-display {
    display: none !important;
}

/* 对于内容特别多的弹窗，可以自动调整高度 */
.modal-body-content {
    max-height: 100%;
}

/* 确保弹窗在移动设备上的良好表现 */
@media (max-height: 700px) {
    .modal {
        max-height: 95vh;
    }
    
    .modal-body {
        max-height: calc(95vh - 160px);
    }
    
    .prize-image-container {
        height: 180px;
    }
}

/* 添加弹性盒子布局，确保内容不会溢出 */
.modal-content-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}