/* 基本样式重置与字体 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f06292;
    --secondary-color: #4ecdc4;
    --dark-color: #333333;
    --light-color: #f7f7f7;
    --accent-color: #ffeb3b;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f7f7f7;
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 应用容器 */
.app-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

/* 问题框 */
.question-box {
    background-color: #f0f0f0;
    border-radius: 30px;
    padding: 10px 30px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.question-box h1 {
    font-size: 1.6rem;
    font-weight: 500;
    color: #666;
    margin: 0;
}

/* 结果显示 */
.result-display {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    min-height: 50px;
    margin: 10px 0;
    padding: 5px 0;
    transition: var(--transition);
    color: var(--primary-color);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
}

/* 转盘部分 */
.wheel-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.wheel-container {
    position: relative;
    width: 90vw;
    height: 90vw;
    max-width: 380px;
    max-height: 380px;
    margin: 0 auto;
}

.wheel-outer {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: url('../../1.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

/* 中间圆圈已移除
.wheel-center {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
*/

.wheel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 25px;
    transform-origin: center bottom;
    background-color: transparent;
}

.wheel-item span {
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    max-width: 110px;
    text-align: center;
    transform: translateY(0);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 1px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 3px 8px;
    border-radius: 10px;
}

/* 控制按钮 */
.controls {
    margin: 20px 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-spin {
    background-color: #f0f0f0;
    color: #666;
    border: none;
    padding: 10px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.btn-spin:hover {
    background-color: #e0e0e0;
}

.btn-spin:active {
    transform: translateY(1px);
}

.btn-spin:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* 设置按钮 */
.btn-settings {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    color: #666;
    border: none;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 100;
    transition: var(--transition);
}

.btn-settings:hover {
    transform: rotate(30deg);
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.options-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 400px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
}

.options-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    background-color: #f9f9f9;
}

.modal-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.btn-close {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-close:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.option-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.option-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.option-input-group input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

.btn-add {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.btn-add:hover {
    background-color: #3db6af;
    transform: scale(1.05);
}

.options-list {
    list-style-type: none;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5px;
    border-bottom: 1px solid #f0f0f0;
    animation: slideIn 0.3s ease;
}

.option-item:last-child {
    border-bottom: none;
}

.option-item span {
    font-size: 16px;
}

.delete-option {
    background: none;
    color: #ff6b6b;
    border: none;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.7;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-option:hover {
    opacity: 1;
}

/* 动画效果 */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.spinning {
    animation: spin 4s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

/* 响应式设计 */
@media (max-width: 390px) {
    /* iPhone适配 */
    .app-container {
        padding: 15px;
    }
    
    .question-box h1 {
        font-size: 1.4rem;
    }
    
    .wheel-container {
        width: 85vw;
        height: 85vw;
    }
    
    .wheel-item span {
        font-size: 13px;
        padding: 2px 6px;
        max-width: 90px;
    }
    
    .btn-spin {
        padding: 10px 25px;
        font-size: 16px;
    }
    
    .result-display {
        font-size: 1.5rem;
    }
    
    .btn-settings {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (min-width: 768px) {
    .wheel-container {
        width: 400px;
        height: 400px;
    }
    
    .wheel-item span {
        font-size: 16px;
        max-width: 130px;
        padding: 4px 10px;
    }
} 