/* ========================================
   狐狸钱包 - 现代化 UI 设计系统 v2.0
   优化触控体验、可读性和交互反馈
   ======================================== */

/* CSS Variables - 设计令牌 */
:root {
    /* 主色调 */
    --primary: #ff6b35;
    --primary-light: #ff8c5a;
    --primary-dark: #e55a2b;
    --secondary: #f7931a;
    --accent: #ffcc00;
    
    /* 背景色 */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    
    /* 文字色 */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --text-muted: rgba(255, 255, 255, 0.3);
    
    /* 状态色 */
    --success: #34c759;
    --warning: #ff9f0a;
    --danger: #ff3b30;
    --info: #5ac8fa;
    
    /* 边框与阴影 */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(255, 107, 53, 0.3);
    
    /* 玻璃效果 */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-blur: blur(20px);
    
    /* 间距 - 增大间距提升可读性 */
    --space-xs: 6px;
    --space-sm: 12px;
    --space-md: 20px;
    --space-lg: 28px;
    --space-xl: 40px;
    --space-2xl: 56px;
    
    /* 圆角 */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    /* 触控最小尺寸 */
    --touch-min: 48px;
    
    /* 动画 */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* 字体 */
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    --font-text: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    --font-mono: 'JetBrains Mono', Monaco, 'Courier New', monospace;
    
    /* 安全区域 */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 24px);
    
    /* 底部导航高度 */
    --nav-height: 72px;
}

/* ========================================
   基础重置与排版
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-text);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    height: 100%;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--bg-primary);
}

/* ========================================
   屏幕与页面
   ======================================== */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    background: var(--bg-primary);
    opacity: 0;
    transform: translateX(20px);
    transition: opacity var(--transition-normal), transform var(--transition-normal);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.screen.active {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}

.screen.slide-out {
    opacity: 0;
    transform: translateX(-20px);
}

/* 有底部导航的页面 */
.screen.has-nav {
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
}

/* ========================================
   启动画面
   ======================================== */
#splash-screen {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1a2e 100%);
    justify-content: center;
    align-items: center;
}

.splash-content {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.logo-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 32px;
}

.logo-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.4) 0%, transparent 70%);
    animation: pulse 2s ease-in-out infinite;
}

.logo {
    width: 120px;
    height: 120px;
    position: relative;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
    object-fit: contain;
}

.splash-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.splash-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    letter-spacing: 4px;
    margin-bottom: 48px;
}

.loading-bar {
    width: 220px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* ========================================
   引导页面 - 使用图片
   ======================================== */
#onboarding-screen {
    background: #ffffff;
    overflow: hidden;
}

.onboarding-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.onboarding-slides {
    flex: 1;
    position: relative;
    overflow: hidden;
    touch-action: pan-x;
}

.onboarding-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.onboarding-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.onboarding-slide.prev {
    transform: translateX(-100%);
}

.slide-image {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
}

/* ============ 指示器 ============ */
.onboarding-indicators {
    position: absolute;
    bottom: 120px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 24px 0;
    z-index: 10;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #bbc0c5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #037dd6;
}

/* ============ 开始按钮 - MetaMask 风格 ============ */
.onboarding-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 60px calc(var(--safe-bottom) + 30px);
    z-index: 10;
    background: linear-gradient(to top, #fff 80%, transparent);
}

.btn-onboarding {
    width: 100%;
    background: transparent;
    color: #037dd6;
    border: 2px solid #037dd6;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-primary);
}

.btn-onboarding:hover {
    background: rgba(3, 125, 214, 0.05);
}

.btn-onboarding:active {
    background: rgba(3, 125, 214, 0.1);
    transform: scale(0.98);
}

/* ========================================
   欢迎页面
   ======================================== */
#welcome-screen {
    position: relative;
    overflow: visible;
}

#welcome-screen.active {
    display: block;
}

.welcome-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.3) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(247, 147, 26, 0.25) 0%, transparent 70%);
    bottom: 100px;
    left: -80px;
    animation-delay: -5s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.2) 0%, transparent 70%);
    bottom: -50px;
    right: 50px;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(90deg); }
    50% { transform: translate(0, 20px) rotate(180deg); }
    75% { transform: translate(-30px, -10px) rotate(270deg); }
}

.welcome-content {
    position: relative;
    z-index: 1;
    padding: calc(var(--safe-top) + var(--space-xl)) var(--space-lg) calc(var(--safe-bottom) + var(--space-xl) + 60px);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
}

.welcome-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.welcome-logo {
    width: 100px;
    height: 100px;
    margin-bottom: var(--space-lg);
    animation: float 3s ease-in-out infinite;
    object-fit: contain;
}

.welcome-header h1 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.welcome-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

.welcome-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    animation: slideInRight 0.5s ease-out backwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-icon {
    font-size: 36px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 204, 0, 0.1));
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 15px;
    color: var(--text-secondary);
}

.welcome-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: auto;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-lg);
}

/* ========================================
   按钮系统 - 增大触控区域
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    min-height: var(--touch-min);
    padding: 16px 28px;
    font-family: var(--font-text);
    font-size: 17px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:active {
    transform: scale(0.96);
}

.btn:active::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--border-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
    padding: 12px 16px;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-large {
    min-height: 56px;
    padding: 18px 36px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    font-size: 20px;
}

/* 图标圆形按钮 */
.btn-icon-circle {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.btn-icon-circle:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.btn-icon-circle:active {
    transform: scale(0.95);
}

.btn-icon-circle svg {
    width: 20px;
    height: 20px;
}

/* 链切换按钮 - 主页面核心组件 */
.chain-switch-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
    height: 52px;
    padding: 0 var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chain-switch-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

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

.chain-icon-display {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.chain-info-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.chain-name-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.wallet-hint-text {
    font-size: 12px;
    color: var(--text-tertiary);
}

.chain-switch-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* 链选择器弹窗 */
.chain-selector-modal {
    padding: 0;
}

.chain-selector-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.chain-selector-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.chain-selector-header p {
    font-size: 13px;
    color: var(--text-tertiary);
}

.chain-selector-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.chain-select-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chain-select-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.chain-select-card:active {
    transform: scale(0.98);
}

.chain-select-card.active {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.08);
}

.chain-select-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chain-select-icon span {
    font-size: 24px;
}

.chain-select-info {
    flex: 1;
    min-width: 0;
}

.chain-select-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.chain-select-address {
    font-size: 13px;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.chain-select-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

/* 旧网络按钮保留兼容 */
.network-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.network-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.network-btn:active {
    transform: scale(0.97);
}

.network-btn .network-indicator {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.network-btn .network-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.network-btn svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
    flex-shrink: 0;
}

/* 返回按钮 */
.btn-back {
    width: var(--touch-min);
    height: var(--touch-min);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.btn-back:hover {
    background: var(--bg-card);
}

.btn-back:active {
    transform: scale(0.9);
    background: var(--bg-card-hover);
}

.btn-back svg {
    width: 28px;
    height: 28px;
}

/* ========================================
   页面头部
   ======================================== */
.screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--safe-top) + var(--space-sm)) var(--space-md) var(--space-md);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    min-height: 64px;
}

.screen-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.header-spacer {
    width: var(--touch-min);
}

.screen-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--space-lg);
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

/* ========================================
   卡片与玻璃效果
   ======================================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

.card-icon {
    font-size: 48px;
    margin-bottom: var(--space-md);
    text-align: center;
}

.card h3 {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-sm);
}

.card > p {
    color: var(--text-secondary);
    font-size: 15px;
    text-align: center;
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

/* ========================================
   输入组件 - 增大触控区域
   ======================================== */
.input-group {
    margin-bottom: var(--space-lg);
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group input,
.input-group textarea {
    width: 100%;
    min-height: var(--touch-min);
    padding: 16px 20px;
    font-family: var(--font-text);
    font-size: 17px;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.input-group textarea {
    resize: none;
    line-height: 1.6;
    min-height: 120px;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
    background: var(--bg-secondary);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: var(--text-muted);
    font-size: 16px;
}

/* 密码切换按钮 */
.btn-toggle-password {
    position: absolute;
    right: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    opacity: 0.6;
    transition: all var(--transition-fast);
    border-radius: 50%;
}

.btn-toggle-password:hover {
    opacity: 1;
    background: var(--bg-card);
}

.btn-toggle-password:active {
    transform: scale(0.9);
}

.password-strength {
    margin-top: var(--space-sm);
}

.strength-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

.strength-fill.weak { width: 33%; background: var(--danger); }
.strength-fill.medium { width: 66%; background: var(--warning); }
.strength-fill.strong { width: 100%; background: var(--success); }

#strength-text {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ========================================
   创建钱包步骤
   ======================================== */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--space-xl);
}

.step {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all var(--transition-normal);
}

.step.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

.step.completed {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step-line {
    width: 50px;
    height: 3px;
    background: var(--border-color);
}

.create-step {
    display: none;
    animation: fadeIn 0.3s ease-out;
    width: 100%;
    box-sizing: border-box;
}

.create-step.active {
    display: block;
}

.create-step .card {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.warning-text {
    color: var(--warning) !important;
    font-weight: 600;
}

/* 助记词网格 */
.mnemonic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    width: 100%;
    box-sizing: border-box;
}

.mnemonic-word {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 12px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    min-width: 0;
    overflow: hidden;
    font-family: var(--font-mono);
}

.mnemonic-word .num {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 18px;
    flex-shrink: 0;
}

.mnemonic-word .word {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.mnemonic-grid.verify .mnemonic-word {
    justify-content: center;
    cursor: pointer;
    min-height: 50px;
    transition: all var(--transition-fast);
}

.mnemonic-grid.verify .mnemonic-word:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
}

.mnemonic-grid.verify .mnemonic-word:active {
    transform: scale(0.95);
}

.mnemonic-grid.verify .mnemonic-word.filled {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.mnemonic-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.mnemonic-option {
    min-height: 44px;
    padding: 12px 20px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mnemonic-option:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
}

.mnemonic-option:active {
    transform: scale(0.95);
}

.mnemonic-option.selected {
    opacity: 0.3;
    pointer-events: none;
}

/* ========================================
   导入钱包
   ======================================== */
.import-tabs {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    background: var(--bg-tertiary);
    padding: 6px;
    border-radius: var(--radius-md);
}

.tab-btn {
    flex: 1;
    min-height: 44px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.import-tab-content {
    display: none;
}

.import-tab-content.active {
    display: block;
}

/* ========================================
   主钱包页面
   ======================================== */
#main-wallet > .wallet-header {
    display: block !important;
    padding: calc(var(--safe-top) + var(--space-md)) var(--space-md) var(--space-lg);
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

/* 头部顶部布局 */
/* 顶部行：账户选择器 + 扫描 */
.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    width: 100%;
}

/* 账户选择器按钮 */
.account-selector-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.account-selector-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

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

.account-selector-btn .chain-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.account-selector-btn .chain-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.account-selector-btn .account-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.account-selector-btn .wallet-name {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.account-selector-btn .chain-name {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.account-selector-btn .dropdown-arrow {
    color: var(--text-tertiary);
    margin-left: 4px;
}

/* 扫描按钮 */
.btn-scan-header {
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: var(--radius-md);
}

.btn-scan-header:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-scan-header:active {
    transform: scale(0.95);
}

/* 地址行 - 卡片内 */
.address-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* 地址显示 */
.address-row .address-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.address-row .address-display:hover {
    opacity: 0.8;
}

.address-row .address-display:active {
    transform: scale(0.98);
}

.address-row .address-display span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    letter-spacing: 0.3px;
}

.address-row .address-display svg {
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

/* 箭头按钮 */
.btn-icon-small {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    color: #4facfe;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-icon-small:hover {
    background: #fff;
    transform: scale(1.05);
}

.btn-icon-small:active {
    transform: scale(0.95);
}

.btn-icon-small svg {
    width: 18px;
    height: 18px;
}

/* 链类型标签 */
.chain-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* 旧版兼容 */
.wallet-name-display {
    display: none;
}

.wallet-info-row {
    display: none;
}

/* 旧版钱包选择器保留兼容 */
.wallet-name-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    height: 40px;
    padding: 0 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    flex: 1;
    max-width: 200px;
    justify-content: center;
}

.wallet-name-container:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.wallet-name-container:active {
    transform: scale(0.97);
}

.wallet-name-container svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
    flex-shrink: 0;
}

/* 余额区域 */
/* 余额卡片 - 渐变蓝色设计 */
.balance-container {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #00d4aa 100%);
    border-radius: 14px;
    padding: 12px 16px;
    margin: 0 var(--space-md) var(--space-sm);
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(79, 172, 254, 0.25);
}

/* 卡片装饰背景 */
.balance-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(ellipse 80px 40px at 20% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60px 30px at 70% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(ellipse 100px 50px at 85% 60%, rgba(255,255,255,0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50px 25px at 30% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* 卡片头部 - 币种 */
.balance-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

/* 刷新按钮 */
.refresh-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.refresh-btn:active {
    transform: scale(0.9);
}

.refresh-btn.refreshing svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 余额提示 */
.balance-hint {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

/* 地址显示 - 更简洁 */
.address-display {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: var(--space-md);
}

.address-display:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
}

.address-display:active {
    transform: scale(0.97);
    background: var(--primary);
    color: white;
}

.address-display svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

/* 余额区域 - 卡片内 */
.total-balance {
    position: relative;
    z-index: 1;
    margin-bottom: 4px;
}

.balance-label {
    display: none;
}

.total-balance h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff;
    margin: 2px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* 快捷操作按钮 - 增大触控区域 */
.quick-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 80px;
    padding: 16px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: var(--radius-lg);
}

.action-btn:hover {
    background: var(--bg-card);
}

.action-btn:hover .action-icon {
    transform: scale(1.08);
}

.action-btn:active {
    transform: scale(0.92);
}

.action-btn:active .action-icon {
    transform: scale(0.95);
}

.action-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    transition: all var(--transition-fast);
    position: relative;
}

.action-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 22px;
    background: inherit;
    opacity: 0.3;
    filter: blur(8px);
    z-index: -1;
}

.action-icon svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.action-icon.send {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.action-icon.receive {
    background: linear-gradient(135deg, #34c759, #30d158);
    box-shadow: 0 6px 20px rgba(52, 199, 89, 0.5);
}

.action-icon.swap {
    background: linear-gradient(135deg, #5ac8fa, #007aff);
    box-shadow: 0 6px 20px rgba(90, 200, 250, 0.5);
}

.action-icon.dapp {
    background: linear-gradient(135deg, #af52de, #5856d6);
    box-shadow: 0 6px 20px rgba(175, 82, 222, 0.5);
}

.action-btn span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.action-btn:hover span {
    color: var(--text-primary);
}

/* ========================================
   钱包内容区域
   ======================================== */
.wallet-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    margin-top: -16px;
}

.content-tabs {
    display: flex;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.content-tab {
    flex: 1;
    min-height: 44px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast);
}

.content-tab:active {
    transform: scale(0.98);
}

.content-tab.active {
    color: var(--text-primary);
}

.content-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md) var(--space-lg) calc(var(--safe-bottom) + var(--space-lg) + var(--nav-height));
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

/* ========================================
   底部导航栏
   ======================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: calc(var(--nav-height) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: none;
    align-items: flex-start;
    justify-content: space-around;
    z-index: 50;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.bottom-nav.active {
    display: flex;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 64px;
    height: var(--nav-height);
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all var(--transition-fast);
    padding-top: 8px;
}

.nav-item:active {
    transform: scale(0.9);
}

.nav-item.active {
    color: var(--primary);
}

.nav-item svg {
    width: 26px;
    height: 26px;
}

.nav-item span {
    font-size: 11px;
    font-weight: 600;
}

/* ========================================
   代币列表 - 增大触控区域
   ======================================== */
.token-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.token-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-height: 72px;
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.token-item:hover {
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.token-item:active {
    transform: scale(0.98);
}

.token-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.token-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.token-icon-svg {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.token-icon-svg svg {
    width: 100%;
    height: 100%;
}

.token-icon-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.token-icon-img-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.network-icon-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.token-icon-letter {
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.token-icon-svg-large {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.token-icon-svg-large svg {
    width: 100%;
    height: 100%;
}

.token-icon-letter-large {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.token-details {
    flex: 1;
    min-width: 0;
}

.token-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 3px;
}

.token-fullname {
    font-size: 14px;
    color: var(--text-tertiary);
}

.token-values {
    text-align: right;
}

.token-balance-value {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 3px;
}

.token-usd {
    font-size: 14px;
    color: var(--text-tertiary);
}

.add-token-btn {
    margin-top: var(--space-md);
    min-height: 50px;
}

/* ========================================
   NFT网格
   ======================================== */
.nft-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.nft-item {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    position: relative;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nft-item:hover {
    transform: scale(1.02);
}

.nft-item:active {
    transform: scale(0.98);
}

.nft-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nft-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-sm);
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.nft-name {
    font-size: 14px;
    font-weight: 600;
}

.empty-state {
    grid-column: span 2;
    text-align: center;
    padding: var(--space-2xl);
    color: var(--text-tertiary);
}

.empty-icon {
    font-size: 56px;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

/* ========================================
   活动记录 - 增大触控区域
   ======================================== */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-height: 72px;
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.activity-item:hover {
    background: var(--bg-card-hover);
}

.activity-item:active {
    transform: scale(0.98);
}

.activity-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    flex-shrink: 0;
}

.activity-icon.send {
    background: rgba(255, 107, 107, 0.15);
}

.activity-icon.receive {
    background: rgba(52, 199, 89, 0.15);
}

.activity-icon.swap {
    background: rgba(90, 200, 250, 0.15);
}

.activity-details {
    flex: 1;
    min-width: 0;
}

.activity-type {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 3px;
}

.activity-address {
    font-size: 13px;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.activity-value {
    text-align: right;
}

.activity-amount {
    font-size: 16px;
    font-weight: 600;
}

.activity-amount.negative {
    color: var(--danger);
}

.activity-amount.positive {
    color: var(--success);
}

.activity-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ========================================
   发送页面
   ======================================== */
.token-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    min-height: 56px;
    padding: var(--space-sm);
    margin: calc(var(--space-md) * -1);
    margin-bottom: calc(var(--space-md) * -1);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.token-selector:hover {
    background: var(--bg-card-hover);
}

.token-selector:active {
    transform: scale(0.98);
}

.network-hint {
    margin-top: var(--space-sm);
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-muted);
    background: rgba(255, 149, 0, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.network-hint:empty {
    display: none;
}

.selected-token {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.selected-token .token-icon {
    width: 44px;
    height: 44px;
}

.selected-token .token-info {
    display: flex;
    flex-direction: column;
}

.selected-token .token-symbol {
    font-size: 17px;
    font-weight: 600;
}

.selected-token .token-balance {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* 扫描按钮 */
.btn-scan {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-scan:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.btn-scan:active {
    transform: scale(0.9);
}

.btn-scan svg {
    width: 22px;
    height: 22px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-max {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-max:hover {
    background: rgba(255, 107, 53, 0.25);
}

.btn-max:active {
    transform: scale(0.95);
}

.amount-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.amount-input {
    font-size: 32px !important;
    font-weight: 700;
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
}

.amount-usd {
    font-size: 15px;
    color: var(--text-tertiary);
    text-align: right;
    padding-right: 4px;
}

.gas-card {
    padding: var(--space-md);
}

.gas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.gas-header span {
    font-size: 15px;
    font-weight: 600;
}

.gas-info-simple {
    padding: 6px 0;
}

.gas-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.gas-info-label {
    font-size: 15px;
    color: var(--text-secondary);
}

.gas-info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.gas-info-hint {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

/* ========================================
   DApp浏览器
   ======================================== */
.search-bar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-height: 52px;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    transition: all var(--transition-fast);
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-bar svg {
    color: var(--text-tertiary);
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.dapp-categories {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    overflow-x: auto;
    padding-bottom: var(--space-sm);
    -webkit-overflow-scrolling: touch;
}

.dapp-categories::-webkit-scrollbar {
    display: none;
}

.category-btn {
    min-height: 40px;
    padding: 10px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.category-btn:active {
    transform: scale(0.95);
}

.category-btn.active,
.category-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* DApp列表 - 改为列表式 */
.dapp-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.dapp-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-height: 72px;
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dapp-item:hover {
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.dapp-item:active {
    transform: scale(0.98);
}

.dapp-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.dapp-icon img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    object-fit: contain;
    background: #fff;
    padding: 8px;
}

.dapp-fallback-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}

.dapp-info {
    flex: 1;
    min-width: 0;
}

.dapp-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 3px;
}

.dapp-desc {
    font-size: 13px;
    color: var(--text-tertiary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dapp-arrow {
    color: var(--text-muted);
    font-size: 20px;
}

/* ========================================
   设置页面
   ======================================== */
.settings-content {
    padding-bottom: calc(var(--safe-bottom) + 100px);
}

.settings-section {
    margin-bottom: var(--space-xl);
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
    padding-left: var(--space-sm);
}

.settings-list {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-height: 60px;
    padding: var(--space-md);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.settings-item:hover {
    background: var(--bg-card-hover);
}

.settings-item:active {
    background: var(--bg-tertiary);
}

.settings-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.settings-icon {
    font-size: 24px;
    width: 36px;
    text-align: center;
}

.settings-item > span {
    flex: 1;
    font-size: 17px;
}

.settings-item > svg {
    color: var(--text-tertiary);
    width: 24px;
    height: 24px;
}

.settings-value {
    color: var(--text-tertiary);
    font-size: 15px;
}

.settings-select {
    min-height: 40px;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    cursor: pointer;
}

/* Toggle开关 - 增大尺寸 */
.toggle {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 34px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.toggle input:checked + .toggle-slider {
    background-color: var(--success);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* ========================================
   账户管理页面
   ======================================== */
.account-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.account-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-height: 80px;
    padding: var(--space-md);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.account-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.account-card:active {
    transform: scale(0.98);
}

.account-card.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

.account-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.account-details {
    flex: 1;
    min-width: 0;
}

.account-name-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: 5px;
}

.account-card .account-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.current-badge {
    font-size: 11px;
    padding: 3px 10px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 700;
}

.account-card .account-address {
    font-size: 14px;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.account-card .account-network-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

.account-card .multichain-badge {
    font-size: 13px;
    margin-left: 4px;
    opacity: 0.8;
}

.add-account-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.danger-zone {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: rgba(255, 59, 48, 0.1);
    border: 2px solid rgba(255, 59, 48, 0.3);
    border-radius: var(--radius-lg);
}

.danger-zone .section-title {
    color: var(--danger);
    margin-bottom: var(--space-md);
}

.danger-zone .btn-danger {
    width: 100%;
    margin-bottom: var(--space-md);
}

.warning-text {
    font-size: 13px;
    color: var(--text-tertiary);
    text-align: center;
    margin: 0;
}

/* ========================================
   模态框 - 优化交互
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 100;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    background: var(--bg-secondary);
    z-index: 101;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 90vh;
    transform: translateY(100%);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-sheet.active {
    transform: translateY(0);
}

/* 模态框拖动指示器 */
.modal-handle {
    width: 40px;
    height: 5px;
    background: var(--text-muted);
    border-radius: var(--radius-full);
    margin: 12px auto 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-handle:hover {
    background: var(--text-tertiary);
    width: 60px;
}

.modal-handle:active {
    background: var(--primary);
}

.center-modal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: calc(100% - var(--space-lg) * 2);
    max-width: 400px;
    border-radius: var(--radius-xl);
}

.center-modal.active {
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.modal-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-wallet-hint {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* 关闭按钮 - 增大尺寸 */
.btn-close {
    width: var(--touch-min);
    height: var(--touch-min);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.btn-close svg {
    width: 22px;
    height: 22px;
}

.btn-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.btn-close:active {
    transform: scale(0.9);
    background: var(--danger);
    color: white;
}

.modal-content {
    padding: var(--space-lg);
    padding-bottom: calc(var(--space-lg) + var(--safe-bottom) + 20px);
    max-height: calc(85vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 网络搜索和分类 */
.search-box {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    min-height: 48px;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    transition: all var(--transition-fast);
}

.search-box:focus-within {
    border-color: var(--primary);
}

.search-box svg {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-primary);
}

.search-box input::placeholder {
    color: var(--text-tertiary);
}

.category-tabs {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    overflow-x: auto;
    padding-bottom: var(--space-xs);
    -webkit-overflow-scrolling: touch;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    min-height: 38px;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.category-tab:hover {
    background: var(--bg-card-hover);
}

.category-tab:active {
    transform: scale(0.95);
}

.category-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.network-stats {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: var(--space-sm);
    padding-left: var(--space-xs);
}

/* 网络列表 - 增大触控区域 */
.network-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    max-height: 400px;
    overflow-y: auto;
}

.network-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-height: 64px;
    padding: var(--space-md);
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.network-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.network-item:active {
    transform: scale(0.98);
}

.network-item.active {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
}

.network-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.network-icon-svg {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-icon-svg svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.network-icon-letter {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-display);
    text-transform: uppercase;
}

.network-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.network-name {
    font-size: 16px;
    font-weight: 600;
    display: block;
}

.network-chain {
    font-size: 14px;
    color: var(--text-tertiary);
    display: block;
}

.network-check {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    opacity: 0;
}

.network-item.active .network-check {
    opacity: 1;
}

/* 接收弹窗 */
.receive-content {
    text-align: center;
}

.qr-container {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.qr-code {
    padding: var(--space-lg);
    background: white;
    border-radius: var(--radius-lg);
}

.qr-code canvas {
    display: block;
}

.address-full {
    min-height: 56px;
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 14px;
    word-break: break-all;
    margin-bottom: var(--space-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.address-full:hover {
    background: var(--bg-card-hover);
}

.address-full:active {
    background: var(--primary);
    color: white;
}

/* ========================================
   Toast通知 - 更明显
   ======================================== */
.toast {
    position: fixed;
    bottom: calc(var(--safe-bottom) + var(--nav-height) + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    min-height: 52px;
    padding: 16px 28px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 200;
    box-shadow: var(--shadow-lg);
}

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

.toast.toast-success {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.95), rgba(48, 176, 80, 0.95));
    border-color: var(--success);
    color: white;
}

.toast.toast-warning {
    background: linear-gradient(135deg, rgba(255, 159, 10, 0.95), rgba(255, 140, 0, 0.95));
    border-color: var(--warning);
    color: white;
}

.toast.toast-error {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.95), rgba(220, 50, 40, 0.95));
    border-color: var(--danger);
    color: white;
}

.toast.toast-info {
    background: linear-gradient(135deg, rgba(90, 200, 250, 0.95), rgba(70, 180, 230, 0.95));
    border-color: var(--info);
    color: white;
}

/* ========================================
   响应式适配
   ======================================== */

/* 中等手机屏幕 */
@media (max-width: 420px) {
    :root {
        --space-md: 16px;
        --space-lg: 24px;
    }
    
    .mnemonic-grid {
        gap: 8px;
    }
    
    .mnemonic-word {
        padding: 12px 10px;
        font-size: 13px;
    }
    
    .mnemonic-word .num {
        font-size: 11px;
        min-width: 16px;
    }
    
    .total-balance h1 {
        font-size: 40px;
    }
}

/* 小屏幕手机 */
@media (max-width: 375px) {
    .mnemonic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .mnemonic-word {
        padding: 12px;
        font-size: 14px;
    }
    
    .total-balance h1 {
        font-size: 36px;
    }
    
    .quick-actions {
        gap: var(--space-md);
    }
    
    .action-icon {
        width: 54px;
        height: 54px;
    }
}

@media (min-width: 768px) {
    #app {
        border-left: 1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
    }
}

/* 桌面端悬浮效果增强 */
@media (hover: hover) {
    .btn:hover {
        transform: translateY(-2px);
    }
    
    .token-item:hover {
        transform: translateX(6px);
    }
    
    .dapp-item:hover {
        transform: translateX(6px);
    }
}

/* ========================================
   滚动条样式
   ======================================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* ========================================
   动画与微交互
   ======================================== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.loading-shimmer {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-card-hover) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* 触控反馈增强 */
.haptic-light:active {
    transform: scale(0.98);
}

.haptic-medium:active {
    transform: scale(0.95);
}

/* 成功动画 */
@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.success-pop {
    animation: successPop 0.4s var(--spring) forwards;
}

/* 摇晃动画（错误提示） */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
    20%, 40%, 60%, 80% { transform: translateX(6px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* 淡入上滑 */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-slide-up {
    animation: fadeSlideUp 0.3s ease-out forwards;
}

/* 弹跳效果 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.bounce {
    animation: bounce 0.6s ease;
}

/* 脉冲高亮 */
@keyframes pulseHighlight {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(255, 107, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

.pulse-highlight {
    animation: pulseHighlight 1s ease-out;
}

/* 骨架屏 */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-tertiary) 25%,
        var(--bg-card-hover) 37%,
        var(--bg-tertiary) 63%
    );
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text {
    height: 16px;
    border-radius: 4px;
}

.skeleton-circle {
    border-radius: 50%;
}

/* 点击涟漪效果 */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.4s, opacity 0.8s;
}

.ripple:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* 加载旋转 */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* 渐变边框动画 */
@keyframes borderGradient {
    0% { border-color: var(--primary); }
    50% { border-color: var(--accent); }
    100% { border-color: var(--primary); }
}

.border-animate {
    animation: borderGradient 2s ease infinite;
}

/* ========================================
   其他现有样式保留
   ======================================== */

/* 锁屏页面 */
#lock-screen {
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1a2e 100%);
}

.lock-content {
    width: 100%;
    max-width: 320px;
    padding: var(--space-lg);
    text-align: center;
}

.lock-logo {
    width: 100px;
    height: 100px;
    margin-bottom: var(--space-lg);
}

.lock-content h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.lock-content > p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.lock-content .input-group {
    margin-bottom: var(--space-lg);
}

.lock-content input {
    text-align: center;
}

/* 危险操作确认 */
.reset-warning {
    text-align: center;
    padding: var(--space-md);
}

.reset-warning .warning-icon {
    font-size: 56px;
    margin-bottom: var(--space-md);
}

.confirm-checkbox {
    display: flex;
    justify-content: center;
}

.confirm-checkbox label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 15px;
    color: var(--text-secondary);
    min-height: 44px;
}

.confirm-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--primary);
}

/* 添加代币模态框 */
.add-token-body {
    padding: var(--space-lg) !important;
    max-height: 70vh;
    overflow-y: auto;
}

.section-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.section-icon {
    font-size: 18px;
}

.section-badge {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.popular-tokens-section {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.popular-tokens-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.popular-token-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 12px 14px;
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-align: left;
}

.popular-token-btn:hover:not(.added):not(:disabled) {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.popular-token-btn:active:not(.added):not(:disabled) {
    transform: scale(0.98);
}

.popular-token-btn.added {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(52, 199, 89, 0.08);
    border-color: rgba(52, 199, 89, 0.3);
}

.token-btn-icon {
    font-size: 26px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.token-btn-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.token-btn-info {
    flex: 1;
    min-width: 0;
}

.token-btn-symbol {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.token-btn-name {
    font-size: 12px;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.add-icon {
    font-size: 20px;
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.2s;
}

.popular-token-btn:hover:not(.added) .add-icon {
    opacity: 1;
}

.added-badge {
    font-size: 16px;
    color: var(--success);
}

.empty-tokens {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    margin: var(--space-md) 0;
}

.empty-tokens .empty-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.empty-tokens .empty-desc {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.5;
    max-width: 260px;
    margin: 0 auto;
}

.manual-add-section {
    margin-top: var(--space-md);
}

.manual-add-section .form-group {
    margin-bottom: var(--space-md);
}

.manual-add-section .form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.token-info-preview {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.preview-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
}

.preview-row:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.preview-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.preview-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

.add-token-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.add-token-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
}

.non-evm-notice {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(90, 200, 250, 0.1);
    border: 1px solid rgba(90, 200, 250, 0.3);
    border-radius: var(--radius-lg);
    margin-top: var(--space-md);
}

.notice-icon {
    font-size: 22px;
}

.non-evm-notice p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* 表单样式 */
.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-size: 15px;
    color: var(--text-secondary);
}

.input-field {
    width: 100%;
    min-height: var(--touch-min);
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 16px;
    transition: all var(--transition-fast);
    box-sizing: border-box;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card);
}

.input-field:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 确认弹窗 */
.confirm-details {
    text-align: center;
    padding: var(--space-md) 0;
}

.confirm-amount {
    margin-bottom: var(--space-md);
}

.amount-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
}

.confirm-arrow {
    font-size: 28px;
    color: var(--primary);
    margin: var(--space-sm) 0;
}

.confirm-address .label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.confirm-address .address {
    font-family: var(--font-mono);
    font-size: 15px;
    word-break: break-all;
}

.confirm-gas {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.confirm-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.confirm-actions .btn {
    flex: 1;
}

/* ========================================
   钱包管理页面 - 参考 imToken 设计
   ======================================== */

/* 简化钱包列表项 */
.wallet-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-sm);
    padding-right: var(--space-md);
    margin-bottom: var(--space-md);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.wallet-item.active {
    border-color: var(--primary);
    background: rgba(255, 107, 0, 0.08);
}

.wallet-item-main {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
    padding: var(--space-md);
    cursor: pointer;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.wallet-item-main:hover {
    background: rgba(255, 255, 255, 0.05);
}

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

.wallet-item-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.wallet-item-info {
    flex: 1;
    min-width: 0;
}

.wallet-item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.wallet-item-type {
    font-size: 13px;
    color: var(--text-tertiary);
}

.wallet-item-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.wallet-item-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* 删除按钮 */
.wallet-item-delete {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 59, 48, 0.1);
    border: none;
    border-radius: var(--radius-md);
    color: #ff3b30;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    opacity: 0.6;
}

.wallet-item:hover .wallet-item-delete {
    opacity: 1;
}

.wallet-item-delete:hover {
    background: rgba(255, 59, 48, 0.2);
    transform: scale(1.05);
}

.wallet-item-delete:active {
    transform: scale(0.95);
}

/* 确认移除钱包弹窗 */
.confirm-remove-wallet {
    text-align: center;
    padding: var(--space-md);
}

.confirm-remove-wallet .confirm-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
}

.confirm-remove-wallet .confirm-icon.warning {
    background: rgba(255, 204, 0, 0.15);
    color: #ffcc00;
}

.confirm-remove-wallet h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.confirm-remove-wallet p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.confirm-remove-wallet .warning-text {
    font-size: 13px;
    color: #ff3b30;
    margin-bottom: var(--space-lg);
}

.confirm-remove-wallet .confirm-actions {
    display: flex;
    gap: var(--space-md);
}

.confirm-remove-wallet .confirm-actions .btn {
    flex: 1;
    min-height: 48px;
}

/* 危险按钮 */
.btn-danger {
    background: linear-gradient(135deg, #ff3b30 0%, #ff6b6b 100%);
    color: #fff;
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e63329 0%, #ff5555 100%);
}

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

/* 钱包操作按钮区域 */
.wallet-actions {
    margin-top: var(--space-xl);
    padding: 0 var(--space-md);
}

.add-wallet-btn {
    width: 100%;
    min-height: 56px;
    font-size: 16px;
    font-weight: 600;
    gap: var(--space-sm);
}

/* 旧版钱包卡片 - 简洁白色卡片风格 */
.wallet-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.wallet-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.wallet-card:active {
    transform: scale(0.99);
}

.wallet-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.wallet-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wallet-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
}

.wallet-card-info {
    flex: 1;
    min-width: 0;
}

.wallet-card-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.wallet-card-meta {
    font-size: 13px;
    color: var(--text-tertiary);
}

.wallet-card-meta .pending {
    color: var(--warning);
}

.wallet-card-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* 链图标列表 */
.wallet-chain-icons {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.chain-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--bg-card);
    margin-right: -8px;
}

.chain-icon-badge:last-child {
    margin-right: 0;
}

.chain-icon-more {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 600;
}

.wallet-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.add-account-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.add-account-link:hover {
    background: rgba(255, 107, 53, 0.1);
}

/* 硬件钱包入口卡片 */
.hardware-wallet-card {
    background: linear-gradient(135deg, #1a2332, #2d3748);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.hardware-wallet-card::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 120px;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23ffffff10' stroke-width='1'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    opacity: 0.5;
}

.hardware-wallet-card:hover {
    transform: translateY(-2px);
}

.hardware-wallet-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.hardware-wallet-info {
    flex: 1;
}

.hardware-wallet-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.hardware-wallet-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.hardware-wallet-arrow {
    color: rgba(255, 255, 255, 0.5);
}

/* 浮动添加钱包按钮 */
.floating-add-btn {
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 100px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, var(--primary), #ff8533);
    color: white;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 100;
}

.floating-add-btn:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.5);
}

.floating-add-btn:active {
    transform: translateX(-50%) scale(0.98);
}

/* ========================================
   添加链弹窗 - 网格卡片布局
   ======================================== */
.add-chain-grid-modal {
    padding: 0;
}

.chain-category {
    margin-bottom: var(--space-lg);
}

.chain-category-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    padding-left: var(--space-xs);
}

.chain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.chain-grid-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    min-height: 100px;
    border: 2px solid transparent;
}

.chain-grid-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.chain-grid-card:active {
    transform: scale(0.97);
}

.chain-grid-card.added {
    opacity: 0.5;
    pointer-events: none;
}

.chain-grid-card.selected {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.08);
}

.chain-grid-card-menu {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.chain-grid-card-menu:hover {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.chain-grid-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: var(--space-sm);
    background: var(--bg-secondary);
}

.chain-grid-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.chain-grid-add {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
    transition: all var(--transition-fast);
}

.chain-grid-card:hover .chain-grid-add {
    background: var(--primary);
    color: white;
}

.chain-grid-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

/* ========================================
   选择账户弹窗 - 筛选标签设计
   ======================================== */
.account-selector-modal {
    padding: 0;
}

.account-selector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.account-selector-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.account-selector-actions {
    display: flex;
    gap: var(--space-sm);
}

.account-selector-action {
    padding: var(--space-sm) var(--space-md);
    background: none;
    border: none;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-md);
}

.account-selector-action:hover {
    background: rgba(255, 107, 53, 0.1);
}

/* 筛选标签 */
.chain-filter-tags {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    overflow-x: auto;
    border-bottom: 1px solid var(--border-color);
    -webkit-overflow-scrolling: touch;
}

.chain-filter-tags::-webkit-scrollbar {
    display: none;
}

.chain-filter-tag {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chain-filter-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.chain-filter-tag.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* 账户列表 */
.account-list-container {
    max-height: 60vh;
    overflow-y: auto;
    padding: var(--space-md);
}

/* 钱包分组 */
.wallet-account-group {
    margin-bottom: var(--space-lg);
}

.wallet-group-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-sm);
    margin-bottom: var(--space-sm);
}

.wallet-group-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.wallet-group-name {
    font-size: 14px;
    color: var(--text-tertiary);
    flex: 1;
}

.wallet-group-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.wallet-group-toggle.collapsed {
    transform: rotate(-90deg);
}

/* 账户卡片 */
.account-select-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.account-select-card:hover {
    background: var(--bg-card-hover);
}

.account-select-card:active {
    transform: scale(0.99);
}

.account-select-card.selected {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.05);
}

.account-select-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.account-select-info {
    flex: 1;
    min-width: 0;
}

.account-select-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.account-select-address {
    font-size: 13px;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    margin-bottom: var(--space-xs);
}

.account-select-tags {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.account-tag {
    padding: 3px 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
}

.account-select-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

/* ========================================
   钱包详情页面
   ======================================== */
.wallet-detail-header {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    background: linear-gradient(180deg, var(--bg-secondary), transparent);
}

.wallet-detail-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.wallet-detail-avatar svg {
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
}

.wallet-detail-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.wallet-detail-name .edit-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    cursor: pointer;
}

.wallet-detail-name .edit-icon:hover {
    color: var(--primary);
}

/* 信息卡片 */
.info-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin: 0 var(--space-lg) var(--space-md);
    overflow: hidden;
}

.info-card-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

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

.info-card-label {
    font-size: 14px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.info-card-value {
    font-size: 14px;
    color: var(--text-primary);
    text-align: right;
    word-break: break-all;
    margin-left: var(--space-md);
}

.info-card-value.mono {
    font-family: var(--font-mono);
    font-size: 13px;
}

/* 功能列表 */
.function-list {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin: 0 var(--space-lg) var(--space-md);
    overflow: hidden;
}

.function-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.function-item:last-child {
    border-bottom: none;
}

.function-item:hover {
    background: var(--bg-card-hover);
}

.function-item-label {
    font-size: 16px;
    color: var(--text-primary);
}

.function-item-right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.function-item-value {
    font-size: 14px;
    color: var(--success);
    font-weight: 500;
}

.function-item-arrow {
    color: var(--text-muted);
}

/* 账户区块 */
.accounts-section {
    padding: var(--space-md) var(--space-lg);
}

.accounts-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.accounts-section-title {
    font-size: 14px;
    color: var(--text-tertiary);
}

.accounts-section-add {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
}

/* 账户项 */
.account-item-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.account-item-card:hover {
    background: var(--bg-card-hover);
}

.account-item-drag {
    color: var(--text-muted);
    cursor: grab;
}

.account-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.account-item-info {
    flex: 1;
    min-width: 0;
}

.account-item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.account-item-address {
    font-size: 13px;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.account-item-arrow {
    color: var(--text-muted);
}

/* ========================================
   保留原有钱包组样式（兼容）
   ======================================== */
.wallet-group {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-md);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.wallet-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.wallet-header:hover {
    background: var(--bg-card-hover);
}

.wallet-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.wallet-info {
    flex: 1;
    min-width: 0;
}

.wallet-name-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.wallet-name {
    font-weight: 700;
    font-size: 17px;
    color: var(--text-primary);
}

.current-badge {
    font-size: 11px;
    padding: 3px 8px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.hd-badge {
    font-size: 10px;
    padding: 2px 6px;
    background: rgba(90, 200, 250, 0.15);
    color: var(--info);
    border-radius: var(--radius-full);
    font-weight: 600;
}

.wallet-chains-count {
    font-size: 13px;
    color: var(--text-tertiary);
}

.chains-count-number {
    color: var(--primary);
    font-weight: 600;
}

.wallet-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn-icon.btn-sm {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.btn-icon.btn-sm:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.expand-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.expand-arrow svg {
    transition: transform var(--transition-fast);
}

.wallet-group.expanded .expand-arrow svg {
    transform: rotate(180deg);
}

/* 链列表容器 */
.wallet-chains {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-primary);
    border-top: 1px solid transparent;
}

.wallet-group.expanded .wallet-chains,
.wallet-group.active .wallet-chains {
    max-height: 500px;
    border-top-color: var(--border-color);
}

/* 链列表容器 */
.wallet-chains {
    padding: var(--space-sm);
    background: var(--bg-secondary);
}

/* 单条链卡片 - 更紧凑的设计 */
.chain-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xs);
    background: var(--bg-card);
}

.chain-card:last-of-type {
    margin-bottom: 0;
}

.chain-card:hover {
    background: var(--bg-card-hover);
}

.chain-card:active {
    transform: scale(0.99);
}

.chain-card.active {
    background: rgba(255, 107, 53, 0.1);
    box-shadow: inset 0 0 0 2px var(--primary);
}

.chain-icon-small {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.chain-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.chain-details .chain-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.chain-details .chain-address {
    font-size: 13px;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

.chain-current {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

/* 添加链按钮 */
.add-chain-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    min-height: 52px;
    padding: var(--space-md) var(--space-lg);
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-top: 1px dashed var(--border-color);
}

.add-chain-btn:hover {
    background: rgba(255, 107, 53, 0.08);
}

.add-chain-btn:active {
    background: rgba(255, 107, 53, 0.15);
}

/* ========================================
   切换钱包/链弹窗样式
   ======================================== */
.account-selector {
    padding: 0;
}

.selector-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.wallets-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-height: 50vh;
    overflow-y: auto;
    padding-right: var(--space-xs);
}

/* 钱包选择器组 */
.wallet-selector-group {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.wallet-selector-group:hover {
    border-color: var(--border-hover);
}

.wallet-selector-group.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(255, 204, 0, 0.05));
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.wallet-selector-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    min-height: 72px;
}

.wallet-avatar-sm {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.wallet-selector-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.wallet-selector-name {
    font-weight: 700;
    font-size: 17px;
    color: var(--text-primary);
}

.wallet-selector-chains {
    font-size: 13px;
    color: var(--text-tertiary);
}

.wallet-selector-header .check {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

/* 链选择器列表 */
.chain-selector-list {
    padding: var(--space-sm) var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--bg-secondary);
}

.chain-selector-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-height: 60px;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chain-selector-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.chain-selector-item:active {
    transform: scale(0.98);
}

.chain-selector-item.active {
    background: rgba(255, 107, 53, 0.15);
    border-left: 3px solid var(--primary);
    padding-left: calc(var(--space-md) - 3px);
}

.chain-icon-xs {
    font-size: 24px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.chain-selector-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.chain-selector-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.chain-selector-address {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

.chain-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(52, 199, 89, 0.4);
}

/* 添加链选择器弹窗 */
.add-chain-modal h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.chain-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-height: 400px;
    overflow-y: auto;
    padding: var(--space-xs);
}

.chain-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-height: 72px;
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    width: 100%;
    color: var(--text-primary);
}

.chain-option:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.chain-option:active {
    transform: scale(0.98);
}

.chain-option .chain-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.chain-option .chain-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.chain-option .chain-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.chain-option .chain-desc {
    font-size: 13px;
    color: var(--text-tertiary);
}

.chain-option .chain-address {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* 添加钱包选项弹窗 */
.add-wallet-modal h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.wallet-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.wallet-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-height: 80px;
    padding: var(--space-lg);
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    width: 100%;
    color: var(--text-primary);
}

.wallet-option:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.2);
}

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

.wallet-option .option-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 204, 0, 0.1));
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.wallet-option .option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wallet-option .option-title {
    font-weight: 600;
    font-size: 17px;
    color: var(--text-primary);
}

.wallet-option .option-desc {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.4;
}

.wallet-name-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.hd-badge {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
}

.wallet-chains-count {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 3px;
}
