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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 20px;
}

.page-title {
    font-size: 32px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 16px;
    color: #7f8c8d;
}

/* Conversion Section */
.conversion-section {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.section-icon {
    width: 24px;
    height: 24px;
    color: #1976d2;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.conversion-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.input-group,
.output-group {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 300px;
}

.conversion-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.conversion-input:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

.conversion-input:read-only {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.conversion-select {
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    outline: none;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 150px;
}

.conversion-select:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

.convert-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background-color: #1976d2;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.convert-btn:hover {
    background-color: #1565c0;
}

.convert-btn:active {
    background-color: #0d47a1;
}

.convert-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

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

    .conversion-section {
        padding: 20px;
    }

    .conversion-content {
        flex-direction: column;
    }

    .input-group,
    .output-group {
        width: 100%;
        min-width: auto;
    }

    .convert-btn {
        width: 100%;
    }

    .conversion-select {
        min-width: 120px;
    }
}
