body {
    background-color: #f8f9fa;
    padding: 2rem 0;
}

.currency-converter {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.currency-converter h2 {
    margin-bottom: 0.5rem;
    color: #333;
}

/* 输入区域 */
.input-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.input-section label {
    display: block;
    margin-bottom: 0.5rem;
    color: #444;
    font-weight: 500;
    font-size: 0.9rem;
}

.last-update {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
    text-align: right;
}

/* 结果区域 */
.results-section {
    margin: 2rem 0;
}

.results-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.result-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s;
    border-left: 4px solid #4a90e2;
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.result-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.currency-flag {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.currency-name {
    font-weight: 500;
    color: #333;
}

.currency-code {
    color: #666;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.result-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0.5rem 0;
}

.result-rate {
    font-size: 0.8rem;
    color: #999;
}

/* 常用货币组合 */
.common-pairs {
    margin: 2rem 0;
}

.common-pairs h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.currency-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.currency-group-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.currency-group-btn.active {
    background-color: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

/* 表单控件样式 */
.form-control, .form-select {
    font-size: 0.9rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74,144,226,0.1);
    outline: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .results-container {
        grid-template-columns: 1fr;
    }
} 