:root {
    --primary-color: #FF4081;
    --background-color: #f5f6fa;
    --text-primary: #333333;
    --text-secondary: #666666;
    --spacing-unit: 8px;
    --spacing-medium: 20px;
    --radius-medium: 5px;
    --radius-large: 10px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: var(--radius-large);
    padding: var(--spacing-medium);
    box-shadow: var(--shadow);
}

h1 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
}

.options {
    margin-bottom: 30px;
}

.option-group {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.option-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.length-control {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slider-container {
    flex: 1;
}

.slider {
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.1);
}

.textarea {
    min-height: 80px;
    resize: vertical;
    font-family: monospace;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
}

.result-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--radius-medium);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.button {
    padding: 10px 20px;
    border-radius: var(--radius-medium);
    border: none;
    background: #f5f5f5;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.button.primary {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .card {
        padding: 15px;
    }
}

.version {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: normal;
}

.footer {
    margin-top: 30px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ff5252;
} 