* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 20px;
}

header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.title-section {
    flex: 1;
    min-width: 200px;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 24px;
}

header p {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
}

.language-switcher {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.lang-btn {
    background-color: #ecf0f1;
    color: #34495e;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.lang-btn:hover {
    background-color: #bdc3c7;
}

.lang-btn.active {
    background-color: #3498db;
    color: #fff;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .language-switcher {
        margin-top: 15px;
        width: 100%;
        justify-content: flex-start;
    }
}

section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fafafa;
    border-radius: 8px;
}

section h2 {
    color: #34495e;
    margin-bottom: 20px;
    font-size: 20px;
}

.input-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.input-group label {
    margin-right: 10px;
    font-weight: 500;
    min-width: 80px;
}

.input-group input[type="text"],
.input-group textarea,
.input-group select {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

.input-group textarea {
    resize: vertical;
}

.checkbox-label {
    display: flex;
    align-items: center;
    margin-left: 20px;
    margin-right: 20px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 5px;
}

button {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

/* 转换按钮样式 */
#convert-btn, #batch-convert-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    border-radius: 6px;
}

#convert-btn:hover, #batch-convert-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    transform: translateY(-2px);
}

/* 导出CSV按钮样式 */
#export-csv-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    border-radius: 6px;
}

#export-csv-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
}

.toggle-switch {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.switch-label {
    font-weight: 600;
    margin-right: 15px;
    color: #34495e;
}

.switch-container {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #ecf0f1;
    border-radius: 30px;
    padding: 3px;
    flex: 1;
    max-width: 350px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.1);
}

.switch-btn {
    position: relative;
    z-index: 1;
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: #7f8c8d;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.switch-btn:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.switch-btn.active {
    color: #fff;
    font-weight: 600;
}

.switch-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.4);
}

.switch-container.active .switch-slider {
    transform: translateX(100%);
}

.result {
    margin-top: 20px;
    padding: 15px;
    background-color: #e8f4f8;
    border-radius: 4px;
    min-height: 50px;
    border-left: 4px solid #3498db;
}

.result p {
    margin: 5px 0;
}

.result .error {
    color: #e74c3c;
    background-color: #fdf2f2;
    border-left-color: #e74c3c;
}

.batch-result-item {
    padding: 10px;
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.batch-result-item .timestamp {
    font-weight: 500;
    color: #3498db;
}

.batch-result-item .datetime {
    margin-left: 20px;
    color: #27ae60;
}

@media (max-width: 600px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    
    .input-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .input-group label,
    .checkbox-label {
        margin-bottom: 5px;
        margin-left: 0;
        margin-right: 0;
    }
    
    .input-group input[type="text"],
    .input-group textarea,
    .input-group select {
        width: 100%;
        min-width: auto;
    }
}