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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

h1 {
    color: #333;
    margin-bottom: 15px;
    font-size: 28px;
}

p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.settings {
    margin-bottom: 25px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.settings h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    font-weight: bold;
}

/* 范围输入 */
.range-inputs {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
}

.range-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 100px;
}

.range-item label {
    font-size: 14px;
    color: #666;
    font-weight: bold;
}

.range-item input {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.range-item input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 滑块容器 */
.slider-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 滑块信息显示 */
.slider-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    font-weight: bold;
}

/* 滑块包装器 */
.slider-wrapper.single-slider {
    position: relative;
    height: 30px;
    display: flex;
    align-items: center;
}

/* 滑块轨道 */
.slider-track {
    position: absolute;
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    z-index: 1;
}

/* 滑块样式 */
.slider {
    position: absolute;
    width: 100%;
    height: 6px;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    z-index: 3;
    cursor: pointer;
}

/* 单选按钮样式 */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    color: #333;
}

.radio-group input[type="radio"] {
    margin-right: 8px;
    accent-color: #667eea;
    transform: scale(1.1);
}

.radio-group span {
    margin-left: 0;
}

/* WebKit滑块样式 */
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease;
    z-index: 4;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.slider::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

/* Firefox滑块样式 */
.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 滑块标签 */
.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* 调整按钮样式 */
button {
    margin-top: 10px;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    width: 100%;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    opacity: 1;
}

.status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    opacity: 1;
}

/* 关于按钮样式 */
.about-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    margin-bottom: 15px;
    padding: 10px 20px;
    font-size: 14px;
    width: auto;
}

.about-btn:hover {
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.modal-body h3 {
    color: #555;
    margin: 25px 0 15px 0;
    font-size: 18px;
    font-weight: bold;
}

.modal-body p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 15px;
}

.modal-body strong {
    color: #333;
    font-weight: bold;
}

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

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (max-width: 480px) {
    .container {
        padding: 25px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .settings {
        gap: 15px;
    }
    
    .range-inputs {
        gap: 10px;
    }
    
    .range-item {
        min-width: 80px;
    }
    
    .range-item input {
        width: 100%;
        padding: 8px;
        font-size: 14px;
    }
    
    .about-btn {
        width: 100%;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
        max-height: 85vh;
    }
    
    .modal h2 {
        font-size: 20px;
    }
    
    .modal-body h3 {
        font-size: 16px;
    }
    
    .modal-body p {
        font-size: 14px;
    }
}