/* 钱包页面样式 */

/* 页面头部 */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(10, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(60, 80, 160, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-header h1 {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.btn-back, .btn-history {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(60, 80, 160, 0.2);
    border: 1px solid rgba(60, 80, 160, 0.3);
    border-radius: 10px;
    color: #b0c4de;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover, .btn-history:hover {
    background: rgba(60, 80, 160, 0.3);
    color: #ffffff;
}

/* 主容器 */
.wallet-container {
    padding: 16px;
    padding-bottom: 80px;
}

/* 币种卡片 */
.currency-card {
    background: rgba(20, 30, 70, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(60, 80, 160, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.currency-label {
    font-size: 13px;
    color: #8b9dc3;
    margin-bottom: 12px;
}

.currency-options {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
}

.currency-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 100px;
    justify-content: center;
}

.currency-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.currency-option.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.currency-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.currency-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(38, 161, 123, 0.1);
    border-radius: 6px;
}

.currency-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.currency-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.currency-network {
    font-size: 11px;
    color: #8b9dc3;
}

/* 金额卡片 */
.amount-card {
    background: rgba(20, 30, 70, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(60, 80, 160, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.amount-label, .form-label {
    font-size: 13px;
    color: #8b9dc3;
    margin-bottom: 12px;
    display: block;
}

.amount-input-wrapper, .address-input-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.amount-input, .address-input {
    width: 100%;
    padding: 16px;
    padding-right: 60px;
    background: rgba(10, 20, 50, 0.5);
    border: 1px solid rgba(60, 80, 160, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    outline: none;
    transition: all 0.3s ease;
}

.address-input {
    font-size: 14px;
    font-weight: 400;
    padding-right: 50px;
}

.amount-input:focus, .address-input:focus {
    border-color: #667eea;
    background: rgba(10, 20, 50, 0.7);
}

.amount-input::placeholder, .address-input::placeholder {
    color: #4a5568;
}

.input-unit {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
}

.btn-paste, .btn-copy {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.2);
    border: none;
    border-radius: 8px;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-paste:hover, .btn-copy:hover {
    background: rgba(102, 126, 234, 0.3);
}

/* 密码输入框 */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input {
    width: 100%;
    padding: 16px;
    padding-right: 50px;
    background: rgba(10, 20, 50, 0.5);
    border: 1px solid rgba(60, 80, 160, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    outline: none;
    transition: all 0.3s ease;
}

.password-input:focus {
    border-color: #667eea;
    background: rgba(10, 20, 50, 0.7);
}

.password-input::placeholder {
    color: #4a5568;
    letter-spacing: normal;
}

.btn-toggle-pwd {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #8b9dc3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-toggle-pwd:hover {
    color: #667eea;
}

/* 快捷金额 */
.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.quick-amount-btn {
    padding: 12px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    color: #8b9dc3;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-amount-btn:hover, .quick-amount-btn:active {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    color: #667eea;
}

/* 金额提示 */
.amount-tip, .form-tip {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 12px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 8px;
    font-size: 12px;
    color: #fbbf24;
}

/* 地址卡片 */
.address-card {
    background: rgba(20, 30, 70, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(60, 80, 160, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.address-label {
    font-size: 14px;
    color: #8b9dc3;
}

.address-network {
    font-size: 12px;
    color: #667eea;
    background: rgba(102, 126, 234, 0.2);
    padding: 4px 10px;
    border-radius: 8px;
}

/* 二维码 */
.qr-code-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code canvas, .qr-code img {
    width: 100%;
    height: 100%;
}

/* 地址文本 */
.address-text-wrapper {
    margin-bottom: 20px;
}

.address-text {
    padding: 16px;
    background: rgba(10, 20, 50, 0.5);
    border: 1px solid rgba(60, 80, 160, 0.3);
    border-radius: 12px;
    color: #e0e7ff;
    font-size: 13px;
    word-break: break-all;
    text-align: center;
    margin-bottom: 12px;
}

.btn-copy {
    position: relative;
    width: 100%;
    padding: 12px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    color: #667eea;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: rgba(102, 126, 234, 0.3);
}

/* 警告框 */
.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.warning-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f87171;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.warning-list {
    margin: 0;
    padding-left: 20px;
    color: #fca5a5;
    font-size: 12px;
    line-height: 1.8;
}

.warning-list li {
    margin-bottom: 4px;
}

/* 信息卡片 */
.info-card {
    background: rgba(20, 30, 70, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(60, 80, 160, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.info-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-step {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    color: #667eea;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.info-text {
    color: #b0c4de;
    font-size: 13px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.info-key {
    color: #8b9dc3;
    font-size: 13px;
}

.info-val {
    color: #e0e7ff;
    font-size: 13px;
    font-weight: 500;
}

/* 余额卡片 */
.balance-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    text-align: center;
}

.balance-label {
    font-size: 13px;
    color: #8b9dc3;
    margin-bottom: 12px;
}

.balance-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.balance-value {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
}

.balance-unit {
    font-size: 16px;
    color: #667eea;
    font-weight: 600;
}

/* 表单卡片 */
.form-card {
    background: rgba(20, 30, 70, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(60, 80, 160, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.btn-all {
    padding: 6px 16px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    color: #667eea;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-all:hover {
    background: rgba(102, 126, 234, 0.3);
}

/* 费用卡片 */
.fee-card {
    background: rgba(20, 30, 70, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(60, 80, 160, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.fee-label {
    font-size: 13px;
    color: #8b9dc3;
}

.fee-value {
    font-size: 14px;
    font-weight: 600;
    color: #e0e7ff;
}

.fee-value.highlight {
    color: #4ade80;
    font-size: 16px;
}

.fee-divider {
    height: 1px;
    background: rgba(60, 80, 160, 0.2);
    margin: 8px 0;
}

/* 操作按钮 */
.action-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: rgba(10, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(60, 80, 160, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* 白天模式 */
body.light-mode .page-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(100, 120, 200, 0.2);
}

body.light-mode .page-header h1 {
    color: #1e293b;
}

body.light-mode .btn-back,
body.light-mode .btn-history {
    background: rgba(100, 120, 200, 0.1);
    border-color: rgba(100, 120, 200, 0.2);
    color: #4a5568;
}

body.light-mode .currency-card,
body.light-mode .amount-card,
body.light-mode .address-card,
body.light-mode .info-card,
body.light-mode .form-card,
body.light-mode .fee-card {
    background: rgba(240, 245, 255, 0.8);
    border-color: rgba(100, 120, 200, 0.2);
}

body.light-mode .currency-name,
body.light-mode .info-title {
    color: #1e293b;
}

body.light-mode .amount-input,
body.light-mode .address-input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(100, 120, 200, 0.3);
    color: #1e293b;
}

body.light-mode .address-text {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(100, 120, 200, 0.3);
    color: #334155;
}

body.light-mode .balance-value {
    color: #1e293b;
}

body.light-mode .fee-value {
    color: #334155;
}

body.light-mode .action-footer {
    background: rgba(255, 255, 255, 0.95);
    border-top-color: rgba(100, 120, 200, 0.2);
}

