/* --- 全局样式 - 仿 iOS 风格（浅色） --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #F2F2F7; /* iOS 系统分组背景 */
    color: #1C1C1E; /* Label - Primary */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 添加动态背景粒子效果 */
/* 去除霓虹粒子背景 */

/* --- 主容器（卡片） --- */
.container {
    background: #FFFFFF;
    padding: 24px 24px 28px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 1px 0 rgba(0,0,0,0.04);
    width: 92%;
    max-width: 480px;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 8px 0 4px;
}

p {
    color: #6B7280;
    margin: 0 0 20px;
    font-weight: 400;
    font-size: 15px;
}

/* --- 转盘区域 --- */
.wheel-wrapper {
    position: relative;
    width: 340px;
    height: 340px;
    margin: 0 auto 24px;
}

/* 简化：不使用外环装饰/强发光/旋转光带 */

#wheelCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: transform 4.2s cubic-bezier(0.18, 0.74, 0.29, 0.99);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08), inset 0 0 0 6px #F3F4F6;
}

/* 指针样式 - 现代圆润指针 */
.pointer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 6px;
    height: 32px;
    background: linear-gradient(180deg, #FF3B30 0%, #D70015 100%);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.9);
    z-index: 10;
}

/* 指针底部圆点 */
.pointer::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #FF3B30 0%, #D70015 100%);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.25), 0 0 0 2px rgba(255, 255, 255, 0.95);
}

/* --- 控制区域 --- */
.controls h3 {
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 6px;
    font-size: 17px;
}
.controls .small-text {
    font-size: 13px;
    color: #9CA3AF;
    margin-top: 0;
    margin-bottom: 14px;
}

/* 输入框 - 玻璃拟态效果 */
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: #111827;
    background: #FFFFFF;
    box-shadow: inset 0 1px 0 rgba(0,0,0,0.02);
    resize: none;
    margin-bottom: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea::placeholder { color: #9CA3AF; }

textarea:focus {
    outline: none;
    border: 1px solid #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* 按钮 - 炫酷3D效果 */
button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #0A84FF; /* iOS System Blue */
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(10, 132, 255, 0.25);
    transition: box-shadow 0.2s ease, transform 0.05s ease;
}

button:hover { box-shadow: 0 8px 20px rgba(10, 132, 255, 0.32); }
button:active { transform: translateY(1px); }

button:disabled {
    background: #9CA3AF;
    color: #FFFFFF;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- 动画效果 --- */
/* 移除抖动动画 */

/* 自定义提示框 */
.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FFFFFF;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: alertSlideIn 0.3s ease-out;
    min-width: 300px;
    border: 1px solid #E5E7EB;
}

.custom-alert.warning { border-left: 5px solid #FFCC00; }

.alert-content { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; }
.alert-text { color: #111827; font-size: 16px; font-weight: 600; margin-right: 12px; }
.alert-close { background: none; border: none; font-size: 20px; cursor: pointer; color: #6B7280; padding: 0; width: 28px; height: 28px; border-radius: 8px; transition: background-color 0.2s ease; }
.alert-close:hover { background: #F3F4F6; color: #111827; }

/* 结果确认弹窗样式 */
.result-content {
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    min-width: 320px;
}

.result-text {
    text-align: center;
    margin-bottom: 20px;
}

.result-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.result-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.result-option {
    font-size: 20px;
    font-weight: 700;
    color: #FF3B30;
    padding: 12px 16px;
    background: #FFF5F5;
    border-radius: 12px;
    border: 1px solid #FED7D7;
}

.result-actions {
    display: flex;
    gap: 12px;
}

.result-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.result-btn.secondary {
    background: #F3F4F6;
    color: #6B7280;
}

.result-btn.secondary:hover {
    background: #E5E7EB;
    color: #374151;
}

.result-btn.primary {
    background: #0A84FF;
    color: #FFFFFF;
}

.result-btn.primary:hover {
    background: #0056CC;
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 移除庆祝粒子样式 */

/* 获胜高亮状态（用于未来扩展） */
.winner-glow {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.4), 0 0 35px rgba(255, 215, 0, 0.65) inset;
}

/* 移除指针发光动画 */

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 2rem 2.5rem;
    }
    
    .wheel-wrapper {
        width: 320px;
        height: 320px;
    }
    
    h1 { font-size: 24px; }
    
    .custom-alert {
        width: 90%;
        min-width: auto;
    }
}