/* ============================================
   全局样式与变量定义
   ============================================ */
:root {
    --color-black: #0a0a0a;
    --color-dark: #1a1a1a;
    --color-gold: #d4af37;
    --color-gold-light: #f4d03f;
    --color-gold-dark: #b8941f;
    --color-wine: #8b1538;
    --color-wine-light: #a02040;
    --color-purple: #4a148c;
    --color-purple-light: #6a1b9a;
    --color-rose: #c2185b;
    --color-text-light: #f5f5f5;
    --color-text-gray: #b0b0b0;
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
    --gradient-wine: linear-gradient(135deg, #8b1538 0%, #a02040 100%);
    --gradient-purple: linear-gradient(135deg, #4a148c 0%, #6a1b9a 100%);
    --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.5);
    --shadow-wine: 0 0 20px rgba(139, 21, 56, 0.5);
    --shadow-purple: 0 0 20px rgba(74, 20, 140, 0.5);
}

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

body {
    font-family: 'Cinzel', 'Playfair Display', serif;
    background: var(--color-black);
    color: var(--color-text-light);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

.site-logo {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.6);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 0 20px rgba(212,175,55,0.25);
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo img {
    display: block;
    height: 40px;
}

@media (max-width: 768px) {
    .site-logo { top: 10px; left: 10px; padding: 5px 8px; gap: 6px; }
    .site-logo img { height: 30px; }
}

.site-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .site-name { font-size: 1rem; }
}

@media (max-width: 480px) {
    .site-name { font-size: 0.95rem; }
}

/* ============================================
   背景装饰元素
   ============================================ */
.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.moon {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(244, 208, 63, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(244, 208, 63, 0.3);
    animation: moonGlow 8s ease-in-out infinite;
}

@keyframes moonGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(244, 208, 63, 0.8), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(244, 208, 63, 0.6), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(244, 208, 63, 0.9), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(244, 208, 63, 0.7), transparent),
        radial-gradient(2px 2px at 40% 80%, rgba(244, 208, 63, 0.5), transparent);
    background-size: 200% 200%;
    animation: starsTwinkle 10s linear infinite;
}

@keyframes starsTwinkle {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.rose-petals {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(3px 3px at 15% 25%, rgba(194, 24, 91, 0.3), transparent),
        radial-gradient(2px 2px at 75% 45%, rgba(194, 24, 91, 0.2), transparent),
        radial-gradient(4px 4px at 35% 75%, rgba(194, 24, 91, 0.25), transparent);
    animation: petalsFloat 15s ease-in-out infinite;
}

@keyframes petalsFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.5; }
}

/* ============================================
   主容器
   ============================================ */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    padding-top: 96px;
    width: 100%;
    box-sizing: border-box;
}

/* ============================================
   顶部标题区
   ============================================ */
.header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 2px solid var(--color-gold);
    border-radius: 20px;
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: headerGlow 6s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    margin-bottom: 15px;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--color-gold-light);
    margin-bottom: 10px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.tagline {
    font-size: 1rem;
    color: var(--color-text-gray);
    font-style: italic;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.tagline-zh {
    font-size: 0.95rem;
    color: var(--color-rose);
    margin-top: 5px;
    position: relative;
    z-index: 1;
}

/* ============================================
   转盘区域 - 完全重写，确保稳定
   ============================================ */
/* ============================================
   老虎机转盘样式
   ============================================ */
.slot-container {
    width: 100%;
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slot-machine {
    position: relative;
    width: 600px;
    height: 600px;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    border: 6px solid var(--color-gold);
    border-radius: 20px;
    box-shadow: 
        0 0 60px rgba(212, 175, 55, 0.4),
        inset 0 0 80px rgba(212, 175, 55, 0.05),
        0 20px 60px rgba(0, 0, 0, 0.6);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    gap: 6px;
    padding: 12px;
    box-sizing: border-box;
}

.slot-grid {
    display: contents;
}

.slot-item {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 10, 26, 0.9) 0%, rgba(42, 26, 42, 0.9) 100%);
    border: 3px solid var(--color-gold);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px;
    box-shadow: 
        inset 0 0 20px rgba(212, 175, 55, 0.1),
        0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.12s ease-out, box-shadow 0.12s linear, border-color 0.12s linear;
    overflow: hidden;
    box-sizing: border-box;
}

.slot-item:nth-child(odd) {
    background: linear-gradient(135deg, rgba(42, 26, 42, 0.9) 0%, rgba(26, 10, 26, 0.9) 100%);
}

.slot-item.winning {
    animation: winningPulse 0.6s ease-in-out 3;
    border-color: var(--color-gold-light);
    box-shadow: 
        0 0 30px rgba(212, 175, 55, 0.8),
        inset 0 0 30px rgba(212, 175, 55, 0.2);
}

.slot-item.active {
    border-color: var(--color-gold-light);
    box-shadow:
        0 0 30px rgba(212, 175, 55, 0.9),
        inset 0 0 25px rgba(212, 175, 55, 0.2);
    transform: scale(1.06);
}

.slot-item.pointer-target {
    border-color: var(--color-gold-light);
}

.slot-item.pointer-target::after {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
}

@keyframes winningPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 0 30px rgba(212, 175, 55, 0.8),
            inset 0 0 30px rgba(212, 175, 55, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 0 50px rgba(212, 175, 55, 1),
            inset 0 0 40px rgba(212, 175, 55, 0.3);
    }
}

.slot-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 10px rgba(244, 208, 63, 0.8));
    z-index: 1;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
}

.slot-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-light);
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 1;
    word-break: break-word;
    max-width: 100%;
    padding: 0 4px;
}

.slot-center {
    grid-column: 2 / 4;
    grid-row: 2 / 4;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* 指针样式 - 固定在顶部中间，指向第1行第2列 */
.slot-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 40px solid var(--color-gold);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 1));
    z-index: 20;
    animation: pointerGlow 2s ease-in-out infinite;
    pointer-events: none;
    transition: left 0.12s linear, top 0.12s linear;
}

@keyframes pointerGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 15px rgba(212, 175, 55, 1));
        transform: translateX(-50%) translateY(0);
    }
    50% { 
        filter: drop-shadow(0 0 25px rgba(212, 175, 55, 1.5));
        transform: translateX(-50%) translateY(-3px);
    }
}

.slot-pointer.active {
    animation: pointerPulse 0.5s ease-in-out infinite;
}

@keyframes pointerPulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 1.5));
        transform: translateX(-50%) scale(1);
    }
    50% {
        filter: drop-shadow(0 0 35px rgba(212, 175, 55, 2));
        transform: translateX(-50%) scale(1.1);
    }
}

.spin-button {
    width: 180px;
    height: 180px;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle, #f4d03f 0%, #d4af37 40%, #b8941f 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 
        0 0 50px rgba(212, 175, 55, 1),
        0 0 100px rgba(212, 175, 55, 0.6),
        inset 0 -10px 30px rgba(0, 0, 0, 0.4),
        inset 0 10px 30px rgba(255, 255, 255, 0.2),
        0 15px 50px rgba(0, 0, 0, 0.5);
    border: 6px solid #f4d03f;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: centerPulse 2.5s ease-in-out infinite;
    overflow: hidden;
    position: relative;
}

.spin-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: shine 3s linear infinite;
}

@keyframes shine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes centerPulse {
    0%, 100% {
        box-shadow: 
            0 0 50px rgba(212, 175, 55, 1),
            0 0 100px rgba(212, 175, 55, 0.6),
            inset 0 -10px 30px rgba(0, 0, 0, 0.4),
            inset 0 10px 30px rgba(255, 255, 255, 0.2),
            0 15px 50px rgba(0, 0, 0, 0.5);
    }
    50% {
        box-shadow: 
            0 0 70px rgba(212, 175, 55, 1.2),
            0 0 120px rgba(212, 175, 55, 0.8),
            inset 0 -10px 30px rgba(0, 0, 0, 0.4),
            inset 0 10px 30px rgba(255, 255, 255, 0.3),
            0 20px 60px rgba(0, 0, 0, 0.6);
    }
}

.spin-button:hover {
    transform: scale(1.1);
    box-shadow: 
        0 0 80px rgba(212, 175, 55, 1.5),
        0 0 150px rgba(212, 175, 55, 1),
        inset 0 -10px 30px rgba(0, 0, 0, 0.4),
        inset 0 10px 30px rgba(255, 255, 255, 0.3),
        0 25px 70px rgba(0, 0, 0, 0.7);
    animation: none;
}

.spin-button:active {
    transform: scale(1.05);
}

.spin-button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.center-logo {
    font-size: 2.5rem;
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    z-index: 1;
    position: relative;
}

.spin-text {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-black);
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1;
    position: relative;
}

.spin-subtext {
    display: block;
    font-size: 0.8rem;
    color: var(--color-black);
    font-weight: 600;
    margin-top: 2px;
    z-index: 1;
    position: relative;
}

/* ============================================
   奖品展示区
   ============================================ */
.rewards-section {
    margin: 80px 0;
    padding: 40px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 2px solid var(--color-wine);
    border-radius: 20px;
    box-shadow: var(--shadow-wine);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    background: var(--gradient-wine);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.reward-card {
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.2) 0%, rgba(74, 20, 140, 0.2) 100%);
    border: 2px solid var(--color-wine);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reward-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reward-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-wine);
    border-color: var(--color-gold);
}

.reward-card:hover::before {
    opacity: 1;
}

.reward-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.reward-name {
    font-size: 0.95rem;
    color: var(--color-text-light);
    font-weight: 600;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* ============================================
   说明与规则区
   ============================================ */
.instructions-section,
.rules-section {
    margin: 60px 0;
    padding: 40px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 2px solid var(--color-purple);
    border-radius: 20px;
    box-shadow: var(--shadow-purple);
}

.participate-guide {
    max-width: 700px;
    margin: 20px auto;
    padding: 24px;
}

.instructions-list {
    margin-top: 30px;
}

.instruction-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(74, 20, 140, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--color-purple-light);
}

.step-number {
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.instruction-item p {
    color: var(--color-text-light);
    line-height: 1.8;
    font-size: 1rem;
}

.instruction-item strong {
    color: var(--color-gold-light);
}

.rules-list {
    list-style: none;
    margin-top: 30px;
    padding-left: 0;
}

.rules-list li {
    padding: 15px 20px;
    margin-bottom: 15px;
    background: rgba(74, 20, 140, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--color-purple-light);
    color: var(--color-text-light);
    line-height: 1.8;
}

.rules-list li strong {
    color: var(--color-gold-light);
}

/* ============================================
   底部品牌标语
   ============================================ */
.footer {
    text-align: center;
    margin-top: 80px;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 2px solid var(--color-gold);
    border-radius: 20px;
    box-shadow: var(--shadow-gold);
}

.brand-slogan {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.brand-tagline {
    font-size: 1rem;
    color: var(--color-text-gray);
    font-style: italic;
    margin-top: 5px;
}

.brand-tagline-zh {
    font-size: 0.95rem;
    color: var(--color-rose);
    margin-top: 5px;
}

/* ============================================
   中奖弹窗
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.modal-overlay.show {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
    border: 3px solid var(--color-gold);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-gold), 0 0 100px rgba(212, 175, 55, 0.3);
    position: relative;
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-gold);
}

.modal-body {
    text-align: center;
}

.prize-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: prizeBounce 0.6s ease;
}

@keyframes prizeBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.prize-name {
    font-size: 1.5rem;
    color: var(--color-gold-light);
    margin-bottom: 15px;
    font-weight: 700;
}

.prize-message {
    font-size: 1rem;
    color: var(--color-text-gray);
    font-style: italic;
    margin-bottom: 30px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-screenshot,
.btn-contact {
    padding: 12px 30px;
    border: 2px solid var(--color-gold);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
    color: var(--color-gold-light);
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
}

.btn-screenshot:hover,
.btn-contact:hover {
    background: var(--gradient-gold);
    color: var(--color-black);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

/* ============================================
   加载动画
   ============================================ */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(212, 175, 55, 0.3);
    border-top: 4px solid var(--color-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 20px;
    color: var(--color-gold-light);
    font-size: 1.2rem;
    font-style: italic;
    letter-spacing: 2px;
}

/* ============================================
   响应式设计 - 全面优化
   ============================================ */

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 30px 20px;
        padding-top: 88px;
    }
    
    .header {
        padding: 30px 20px;
        margin-bottom: 40px;
    }
    
    .main-title {
        font-size: 3rem;
    }
    
    .wheel-wrapper {
        width: 90%;
        max-width: 550px;
    }
    
    .btn-spin {
        width: 130px;
        height: 130px;
        font-size: 1.3rem;
    }
}

/* 手机设备 (481px - 768px) */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .tagline,
    .tagline-zh {
        font-size: 0.9rem;
    }
    
    .wheel-section {
        padding: 15px;
        margin: 30px auto;
    }
    
    .wheel-wrapper {
        width: 100%;
        max-width: 100%;
        max-height: min(90vh, 90vw);
        border-width: 6px;
        aspect-ratio: 1 !important;
    }
    
    .wheel {
        width: 94%;
        height: 94%;
    }
    
    .pointer {
        border-left-width: 20px;
        border-right-width: 20px;
        border-top-width: 35px;
        top: -5px;
    }
    
    .btn-spin {
        width: 120px;
        height: 120px;
        font-size: 1.2rem;
        letter-spacing: 1.5px;
        border-width: 3px;
    }
    
    .nav-actions {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        margin: 15px 0;
    }
    
    .nav-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
        flex: 0 0 auto;
        min-width: 140px;
    }
    
    .live-ticker {
        font-size: 0.85rem;
        padding: 8px 12px;
        min-height: 24px;
    }

    .rewards-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .container {
        padding: 15px 12px;
        padding-top: 72px;
    }

    .header,
    .rewards-section,
    .instructions-section,
    .rules-section,
    .footer {
        padding: 20px 15px;
        margin: 40px 0;
    }
    
    .footer {
        margin-top: 50px;
    }
}

/* 小屏手机 (320px - 480px) */
@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
        letter-spacing: 1.5px;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .tagline,
    .tagline-zh {
        font-size: 0.8rem;
        margin-top: 8px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .wheel-section {
        padding: 10px;
        margin: 20px auto;
    }
    
    .wheel-wrapper {
        border-width: 5px;
        aspect-ratio: 1 !important;
        max-width: min(100%, 90vw);
        max-height: min(90vh, 90vw);
    }
    
    .wheel {
        width: 95%;
        height: 95%;
    }
    
    .pointer {
        border-left-width: 16px;
        border-right-width: 16px;
        border-top-width: 28px;
        top: -4px;
    }
    
    .btn-spin {
        width: 100px;
        height: 100px;
        font-size: 1rem;
        letter-spacing: 1px;
        border-width: 3px;
    }
    
    .nav-actions {
        gap: 6px;
        margin: 12px 0;
    }
    
    .nav-btn {
        padding: 7px 12px;
        font-size: 0.75rem;
        min-width: 120px;
        border-width: 1.5px;
    }
    
    .live-ticker {
        font-size: 0.75rem;
        padding: 6px 10px;
        min-height: 22px;
    }

    .modal-content {
        padding: 20px;
        margin: 20px;
        max-width: calc(100% - 40px);
    }

    .prize-icon {
        font-size: 3.5rem;
    }

    .prize-name {
        font-size: 1.1rem;
    }
    
    .prize-message {
        font-size: 0.9rem;
    }
    
    .btn-screenshot,
    .btn-contact {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 12px 10px;
        padding-top: 34px;
    }

    .header,
    .rewards-section,
    .instructions-section,
    .rules-section,
    .footer {
        padding: 18px 12px;
        margin: 30px 0;
    }
    
    .brand-slogan {
        font-size: 1.4rem;
    }
    
    .brand-tagline,
    .brand-tagline-zh {
        font-size: 0.85rem;
    }
}

/* 超小屏手机 (最大320px) */
@media (max-width: 320px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .wheel-wrapper {
        border-width: 4px;
        aspect-ratio: 1 !important;
        max-width: min(100%, 90vw);
        max-height: min(90vh, 90vw);
    }
    
    .btn-spin {
        width: 90px;
        height: 90px;
        font-size: 0.9rem;
    }
    
    .nav-btn {
        min-width: 100px;
        font-size: 0.7rem;
        padding: 6px 10px;
    }
    
    .container {
        padding: 10px 8px;
    }
}

/* 横屏模式优化 */
@media (max-height: 600px) and (orientation: landscape) {
    .header {
        padding: 15px 20px;
        margin-bottom: 20px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .wheel-section {
        margin: 20px auto;
    }
    
    .wheel-wrapper {
        max-width: 400px;
    }
    
    .footer {
        margin-top: 30px;
        padding: 20px 15px;
    }
}
.wheel-section {
    width: 100%;
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    box-sizing: border-box;
}

/* 转盘旋转时的光晕效果 */
.wheel-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 95%;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 60%, rgba(212, 175, 55, 0.1) 100%);
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wheel-wrapper.spinning::after {
    opacity: 1;
    animation: wheelGlow 0.5s ease-in-out infinite alternate;
}

@keyframes wheelGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

.wheel-wrapper {
    position: relative;
    width: 600px;
    height: 600px;
    max-width: min(100%, 90vw);
    max-height: min(90vh, 90vw);
    aspect-ratio: 1;
    border: 8px solid var(--color-gold);
    border-radius: 50%;
    box-shadow:
        0 0 80px rgba(212, 175, 55, 0.6),
        inset 0 0 100px rgba(212, 175, 55, 0.08),
        0 25px 80px rgba(0, 0, 0, 0.8),
        inset 0 0 0 4px rgba(212, 175, 55, 0.3);
    background: 
        radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0 auto;
}

.wheel { 
    width: 92%; 
    height: 92%; 
    transition: transform 7s cubic-bezier(0.15, 0.75, 0.1, 1);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
    overflow: visible;
}

.wheel text {
    pointer-events: none;
    user-select: none;
}

.pointer {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; 
    height: 0;
    border-left: 28px solid transparent;
    border-right: 28px solid transparent;
    border-top: 45px solid var(--color-gold);
    filter: 
        drop-shadow(0 0 20px rgba(212, 175, 55, 1.2))
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
    z-index: 15;
    animation: pointerGlow 2.5s ease-in-out infinite;
}

@keyframes pointerGlow {
    0%, 100% { 
        filter: 
            drop-shadow(0 0 20px rgba(212, 175, 55, 1.2))
            drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
        transform: translateX(-50%) translateY(0);
    }
    50% { 
        filter: 
            drop-shadow(0 0 30px rgba(212, 175, 55, 1.8))
            drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
        transform: translateX(-50%) translateY(-2px);
    }
}

.pointer::before {
    content: '';
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--color-gold-light);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(212, 175, 55, 1);
    z-index: 16;
}

.center-button-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    pointer-events: none;
}

.btn-spin {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--color-gold);
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
        var(--gradient-gold);
    color: var(--color-black);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 
        0 0 40px rgba(212, 175, 55, 1),
        0 0 80px rgba(212, 175, 55, 0.6),
        inset 0 -8px 20px rgba(0, 0, 0, 0.3),
        inset 0 8px 20px rgba(255, 255, 255, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    text-transform: uppercase;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-spin::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    animation: buttonShine 3s linear infinite;
}

@keyframes buttonShine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-spin:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 
        0 0 50px rgba(212, 175, 55, 1.2),
        0 0 100px rgba(212, 175, 55, 0.8),
        inset 0 -8px 20px rgba(0, 0, 0, 0.3),
        inset 0 8px 20px rgba(255, 255, 255, 0.4),
        0 15px 40px rgba(0, 0, 0, 0.6);
}

.btn-spin:active:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 
        0 0 30px rgba(212, 175, 55, 0.8),
        0 0 60px rgba(212, 175, 55, 0.5),
        inset 0 -8px 20px rgba(0, 0, 0, 0.4),
        inset 0 8px 20px rgba(255, 255, 255, 0.2),
        0 5px 20px rgba(0, 0, 0, 0.4);
}

.btn-spin:disabled { 
    opacity: 0.6; 
    cursor: not-allowed; 
    transform: scale(1);
}

.live-ticker {
    width: 100%;
    max-width: 700px;
    min-height: 28px;
    border: 2px solid var(--color-wine);
    border-radius: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.12) 0%, rgba(74, 20, 140, 0.12) 100%);
    margin: 0 auto 16px;
}

.sponsor-banner {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 16px;
    padding: 16px;
    border: 2px solid var(--color-gold);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212,175,55,0.12) 0%, rgba(74,20,140,0.12) 100%);
    box-shadow: var(--shadow-gold);
    text-align: center;
}

.sponsor-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--color-gold-light);
    margin-bottom: 6px;
}

.sponsor-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-gray);
}

.sponsor-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.sponsor-logos img {
    height: 28px;
    border-radius: 6px;
}

@media (max-width: 480px) {
    .sponsor-title { font-size: 1.1rem; }
    .sponsor-subtitle { font-size: 0.85rem; }
    .sponsor-logos img { height: 24px; }
}

.ticker-item { display: none; color: var(--color-text-light); }
.ticker-item.show { display: block; }

.nav-actions {
    display: flex;
    gap: 12px;
    margin: 10px 0 6px;
}

.nav-btn {
    padding: 10px 18px;
    border: 2px solid var(--color-gold);
    border-radius: 22px;
    color: var(--color-gold-light);
    text-decoration: none;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0.1) 100%);
    transition: all 0.2s ease;
    font-weight: 700;
}

.nav-btn:hover {
    background: var(--gradient-gold);
    color: var(--color-black);
    box-shadow: var(--shadow-gold);
}

/* Sponsor banners with background images */
.sponsor-top {
    background: linear-gradient(135deg, rgba(26,26,26,0.60) 0%, rgba(10,10,10,0.80) 100%), url('img/x2.jpg');
    background-size: cover;
    background-position: center;
}

.sponsor-mid {
    background: linear-gradient(135deg, rgba(26,26,26,0.60) 0%, rgba(10,10,10,0.80) 100%), url('img/x3.jpg');
    background-size: cover;
    background-position: center;
}

.sponsor-bottom {
    background: linear-gradient(135deg, rgba(26,26,26,0.60) 0%, rgba(10,10,10,0.80) 100%), url('img/x4.jpg');
    background-size: cover;
    background-position: center;
}

/* Prize image in modal */
.prize-image {
    display: none;
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-gold), 0 10px 30px rgba(0,0,0,0.6);
    margin-bottom: 16px;
    object-fit: cover;
    max-height: 240px;
}
