/* 兌換系統樣式 */
.exchange-container,
.history-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.exchange-container h1,
.history-container h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.exchange-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid var(--border-color);
}

.balance-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.balance-item {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.balance-item .label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.balance-item .value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.exchange-rate {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 2rem;
    color: var(--primary-blue);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
}

.exchange-preview {
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.exchange-preview i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.exchange-preview p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.btn-exchange {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #0066ff 0%, #9333ea 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-exchange:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
}

.exchange-history-link {
    text-align: center;
    margin-top: 2rem;
}

.exchange-history-link a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.item-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.item-icon.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.item-info {
    flex: 1;
}

.item-info h3 {
    margin: 0 0 0.5rem 0;
}

.item-info p {
    margin: 0 0 0.25rem 0;
    color: var(--text-secondary);
}

.item-info .time {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
