/* 主容器 */
.wheel-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 标题 */
.page-title {
    text-align: center;
    margin-bottom: 32px;
}
.page-title h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 8px;
}
.page-title p {
    color: #6b7280;
    font-size: 16px;
}

/* 网格布局 */
.wheel-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}
/* 左侧设置 */
.wheel-settings {
    flex: 1 1 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 24px;
}
.settings-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

/* 表单组 */
.form-group {
    margin-bottom: 16px;
}
.form-label {
    display: block;
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 8px;
}

/* 输入框 */
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #165DFF;
    box-shadow: 0 0 0 2px rgba(22,93,255,0.15);
}
.form-textarea {
    min-height: 210px;
    resize: vertical;
}

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 12px;
}
.btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    border: none;
}
.btn-primary {
    background: #165DFF;
    color: #fff;
}
.btn-primary:hover {
    background: #0f48cc;
}
.btn-default {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
}
.btn-default:hover {
    border-color: #165DFF;
    color: #165DFF;
}

/* 右侧转盘 */
.wheel-display {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 转盘盒子 */
.wheel-box {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 400px;
    margin-bottom: 24px;
}
#wheel-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* 指针 */
.wheel-pointer {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}
.pointer-body {
    width: 24px;
    height: 64px;
    background: #ef4444;
    border-top-left-radius: 999px;
    border-top-right-radius: 999px;
    border-bottom-right-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.pointer-top {
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    border: 2px solid #ef4444;
}

/* 中心圆点 */
.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(0,0,0,0.15);
    z-index: 10;
}
.wheel-center-inner {
    width: 40px;
    height: 40px;
    background: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wheel-center-dot {
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
}

/* 抽奖按钮 */
.spin-btn {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.spin-btn:hover {
    background: #dc2626;
}
.spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 结果 */
.prize-result {
    margin-top: 24px;
    font-size: 20px;
    font-weight: bold;
    color: #1f2937;
    display: none;
}
#result-text {
    color: #dc2626;
}

/* 安全提示 */
.tip-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    font-size: 14px;
    color: #374151;
    margin-top: 32px;
}
.tip-box p {
    display: flex;
    align-items: center;
    gap: 8px;
}