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

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.layout-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.input-section {
    flex: 1;
    min-width: 300px;
}

.result-section {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

input[type="text"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.result-container {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    min-height: 200px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.result-header h2 {
    color: #333;
    font-size: 22px;
    margin: 0;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
}

.copy-btn:active {
    background: #dee2e6;
    transform: translateY(1px);
}

.copy-btn.success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.copy-btn.error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

#result-content {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.result-item {
    margin-bottom: 8px;
    padding: 4px 0;
    border-bottom: none;
}

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

.result-label {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.result-value {
    color: #666;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.result-section {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 15px;
}

.result-section .result-item {
    border-bottom: 1px solid #f8f9fa;
}

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

.loading {
    text-align: center;
    padding: 20px;
    color: #667eea;
    font-size: 16px;
}

.error {
    background: #ffe6e6;
    color: #d63031;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #d63031;
    margin-top: 20px;
}

.success {
    background: #e6f7e6;
    color: #27ae60;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 25px;
    }

    .layout-container {
        flex-direction: column;
        gap: 20px;
    }

    .input-section,
    .result-section {
        min-width: auto;
    }

    h1 {
        font-size: 24px;
    }

    .form-group {
        margin-bottom: 20px;
    }
}

/* Flatpickr 自定义样式 */
.flatpickr-calendar {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
}

.flatpickr-day.selected {
    background: #667eea;
    border-color: #667eea;
}

.flatpickr-day.today {
    border-color: #667eea;
}

.flatpickr-day.today:hover {
    background: #667eea;
    border-color: #667eea;
}

/* 版本信息样式 */
.version-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.version-info {
    text-align: center;
    color: #666;
    font-size: 14px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    display: inline-block;
}
