/* ===== 汇率换算器样式 ===== */
.exchangerate-tool {
    min-height: 100vh;
    padding: 120px 0 80px;
}

.exchangerate-tool .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.exchangerate-tool .section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.exchangerate-tool .section-title p {
    font-size: 1.2rem;
    color: var(--text-gray);
}

/* 换算器容器 */
.converter-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.converter-container:hover {
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 198, 255, 0.1);
}

/* 货币输入行 */
.currency-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.currency-group {
    flex: 1;
}

.currency-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.95rem;
}

.currency-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.currency-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.1);
}

.currency-group input[readonly] {
    background: rgba(0, 198, 255, 0.05);
    cursor: not-allowed;
}

/* 交换按钮 */
.swap-btn {
    display: block;
    margin: 1rem auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-accent);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swap-btn:hover {
    transform: rotate(180deg);
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.3);
}

.swap-btn:active {
    transform: rotate(180deg) scale(0.95);
}

/* 汇率信息区域 */
.exchange-rate-info {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
}

.exchange-rate-info p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.exchange-rate-info small {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* 加载状态 */
.exchange-rate-info.loading p {
    color: var(--text-gray);
    font-style: italic;
}

/* 错误状态 */
.exchange-rate-info.error p {
    color: var(--warning-color, #ff6b6b);
}

/* ===== 自定义选择器样式 ===== */
.custom-select {
    position: relative;
    width: 100%;
}

.custom-select input[type="hidden"] {
    display: none;
}

.select-trigger {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    user-select: none;
}

.select-trigger:hover {
    border-color: var(--accent-color);
}

.select-trigger.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.1);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.select-trigger i {
    transition: transform 0.3s ease;
    color: var(--text-gray);
}

.select-trigger.active i {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--accent-color);
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.select-options.show {
    display: block;
}

.select-options::-webkit-scrollbar {
    width: 6px;
}

.select-options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.select-options::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.select-option {
    padding: 0.8rem 1rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.select-option:last-child {
    border-bottom: none;
}

.select-option:hover {
    background: rgba(0, 198, 255, 0.1);
}

.select-option.selected {
    background: var(--gradient-accent);
    color: #fff;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .exchangerate-tool {
        padding: 100px 0 60px;
    }

    .exchangerate-tool .section-title h2 {
        font-size: 2rem;
    }

    .currency-row {
        flex-direction: column;
        gap: 1rem;
    }

    .converter-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .swap-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .select-trigger {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .select-option {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .exchangerate-tool .section-title h2 {
        font-size: 1.8rem;
    }

    .exchangerate-tool .section-title p {
        font-size: 1rem;
    }

    .currency-group input {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
}