/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
}

/* 主容器 */
.container {
    max-width: 420px;
    margin: 0 auto;
    padding: 32px 16px;
    min-height: 100vh;
}

/* 头部 */
.header {
    text-align: center;
    margin-bottom: 32px;
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, #e94560, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.subtitle {
    font-size: 13px;
    color: #8892b0;
}

/* 钱包状态 */
.wallet-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 20px;
}

.status-icon {
    font-size: 10px;
    color: #ff6b6b;
    transition: color 0.3s;
}

.status-icon.connected {
    color: #4ade80;
}

#statusText {
    font-size: 13px;
    color: #a8b2d1;
}

/* 地址显示 */
.address-box {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.address-box .label {
    display: block;
    font-size: 11px;
    color: #8892b0;
    margin-bottom: 6px;
}

.address-box .address {
    font-size: 12px;
    font-family: "Monaco", "Consolas", monospace;
    color: #4ade80;
    word-break: break-all;
}

/* 区块标题 */
.section-title {
    font-size: 13px;
    color: #8892b0;
    margin-bottom: 12px;
    text-align: center;
}

/* 钱包选择网格 */
.wallet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.wallet-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wallet-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(233, 69, 96, 0.5);
}

.wallet-btn:active {
    transform: scale(0.98);
}

.wallet-btn.active {
    background: rgba(233, 69, 96, 0.15);
    border-color: #e94560;
}

.wallet-name {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

/* 唤醒区域 */
.wakeup-section {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 20px 16px;
    margin-bottom: 20px;
    text-align: center;
}

/* 二维码盒子 */
.qr-box {
    margin-bottom: 16px;
}

.qr-title {
    font-size: 13px;
    color: #a8b2d1;
    margin-bottom: 12px;
}

.qr-title span {
    color: #e94560;
    font-weight: 500;
}

.qr-container {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    display: inline-block;
}

.qr-container canvas {
    display: block;
}

/* 唤醒按钮 */
.wakeup-btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.wakeup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.35);
}

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

.wakeup-btn span {
    font-weight: 600;
}

.wakeup-tip {
    font-size: 11px;
    color: #6b7280;
}

/* 授权操作区 */
.action-section {
    margin-top: 16px;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 16px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 12px;
    color: #8892b0;
}

.info-value {
    font-size: 11px;
    font-family: "Monaco", "Consolas", monospace;
    color: #a8b2d1;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 授权按钮 */
.approve-btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.approve-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.35);
}

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

.approve-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 提示信息 Toast */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    opacity: 0;
    transition: all 0.25s ease;
    z-index: 2000;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: rgba(74, 222, 128, 0.9);
}

.toast.error {
    background: rgba(239, 68, 68, 0.9);
}

.toast.info {
    background: rgba(59, 130, 246, 0.9);
}

/* 响应式 */
@media (max-width: 360px) {
    .container {
        padding: 24px 12px;
    }

    .header h1 {
        font-size: 20px;
    }

    .wallet-grid {
        gap: 8px;
    }

    .wallet-btn {
        padding: 12px 8px;
    }

    .wallet-name {
        font-size: 12px;
    }
}
