/* ==========================================
   U卡系统 - 全局样式表
   风格：Web3 科技感、OKX 钱包风格
   配色：深黑背景 + 科技青绿(#00D4AA) + 紫色点缀
   ========================================== */

/* CSS 变量 */
:root {
    /* 主色调 */
    --primary: #00D4AA;
    --primary-light: #00FFD1;
    --primary-dark: #00B896;
    --primary-glow: rgba(0, 212, 170, 0.4);
    
    /* 辅助色 */
    --accent: #7B61FF;
    --accent-light: #9580FF;
    --accent-glow: rgba(123, 97, 255, 0.4);
    
    /* 功能色 */
    --success: #00D4AA;
    --warning: #FFB800;
    --danger: #FF4757;
    --danger-glow: rgba(255, 71, 87, 0.4);
    
    /* 背景色 */
    --bg-primary: #0B0E11;
    --bg-secondary: #141518;
    --bg-tertiary: #1a1d21;
    --bg-card: linear-gradient(145deg, #1a1d21 0%, #141518 100%);
    --bg-card-hover: linear-gradient(145deg, #1f2227 0%, #181b1f 100%);
    
    /* 边框 */
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-active: rgba(0, 212, 170, 0.5);
    
    /* 文字 */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.45);
    --text-muted: rgba(255, 255, 255, 0.3);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* 动画 */
    --transition-fast: 0.15s ease;
    --transition: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--primary-glow);
    
    /* 其他 */
    --font-mono: 'SF Mono', 'Roboto Mono', 'Courier New', monospace;
}

/* 兼容性变量映射（保持向后兼容） */
:root {
    --primary-red: var(--danger);
    --primary-green: var(--primary);
    --white: var(--text-primary);
    --silver: rgba(255, 255, 255, 0.5);
    --dark-bg: var(--bg-primary);
    --card-bg: var(--bg-secondary);
    --card-border: var(--border-color);
    --glow-red: var(--danger-glow);
    --glow-green: var(--primary-glow);
    --glow-silver: rgba(255, 255, 255, 0.15);
    --gradient-dark: linear-gradient(180deg, var(--bg-primary) 0%, #0f1318 100%);
    --gradient-card: var(--bg-card);
    --border-radius: var(--radius-md);
    --border-radius-lg: var(--radius-lg);
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 80px;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    outline: none;
    border: none;
}

img {
    max-width: 100%;
    display: block;
}

/* 页面容器 */
.page-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 16px;
    min-height: calc(100vh - 80px);
    /* 纯 CSS 入场动画，不依赖 JS，不闪烁 */
    animation: fadeSlideUp 0.3s ease-out;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   轮播Banner
   ========================================== */

.banner-swiper {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.banner-swiper .swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-swiper .swiper-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.banner-swiper .swiper-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.banner-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* Banner占位图 */
.banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-tertiary);
    background: linear-gradient(135deg, 
        rgba(0, 212, 170, 0.15) 0%, 
        rgba(123, 97, 255, 0.15) 50%,
        rgba(0, 212, 170, 0.1) 100%);
    border-radius: var(--radius-lg);
}

/* 轮播指示器 */
.swiper-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.swiper-indicators .indicator {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.3);
    transition: all var(--transition);
}

.swiper-indicators .indicator.active {
    width: 20px;
    border-radius: 3px;
    background: var(--primary);
}

/* ==========================================
   卡片样式
   ========================================== */

/* 基础卡片 */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
}

/* 科技风发光边框 */
.card-glow {
    border-color: rgba(0, 212, 170, 0.2);
    box-shadow: 
        0 0 0 1px rgba(0, 212, 170, 0.1),
        0 4px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card-glow:hover {
    border-color: rgba(0, 212, 170, 0.3);
    box-shadow: 
        0 0 0 1px rgba(0, 212, 170, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* 余额卡片 - 金融级排版 */
.balance-card {
    background: linear-gradient(165deg, #1a1d21 0%, #141518 50%, #0f1215 100%);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 212, 170, 0.15);
    box-shadow: 
        0 0 0 1px rgba(0, 212, 170, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.5);
}

.balance-card .balance-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.balance-card .balance-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    font-family: var(--font-mono);
}

.balance-card .card-count {
    font-size: 13px;
    color: var(--text-tertiary);
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
}

/* 虚拟银行卡样式 */
.virtual-card {
    width: 100%;
    aspect-ratio: 1.586;
    background: linear-gradient(145deg, #1f2227 0%, #181b1f 40%, #141518 100%);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all var(--transition-slow);
    cursor: pointer;
}

.virtual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        transparent 40%, 
        rgba(255, 255, 255, 0.03) 50%, 
        transparent 60%);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

.virtual-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(0, 212, 170, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.virtual-card .card-chip {
    width: 42px;
    height: 32px;
    background: linear-gradient(135deg, #D4AF37 0%, #F5E6A3 50%, #D4AF37 100%);
    border-radius: 5px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.virtual-card .card-chip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.25);
    border-radius: 2px;
}

.virtual-card .card-number {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.virtual-card .card-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.virtual-card .card-info-item label {
    display: block;
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.virtual-card .card-info-item span {
    font-size: 14px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.virtual-card .card-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

/* ==========================================
   按钮样式
   ========================================== */

/* 基础按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: scale(0.98);
}

/* 主要按钮 - 科技青绿 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #000;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--primary-glow);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

/* 次要按钮 - 紫色 */
.btn-secondary {
    background: linear-gradient(135deg, var(--accent) 0%, #6a52e5 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

/* 轮廓按钮 */
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    color: var(--primary);
}

/* 科技按钮 - 玻璃质感 */
.btn-tech {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-tech:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* 小按钮 */
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

/* 大按钮 */
.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

/* 全宽按钮 */
.btn-block {
    width: 100%;
}

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-group-vertical {
    flex-direction: column;
}

/* 快捷操作按钮 */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
    cursor: pointer;
}

.action-btn:hover {
    background: rgba(0, 212, 170, 0.08);
    border-color: rgba(0, 212, 170, 0.3);
    transform: translateY(-2px);
}

.action-btn .icon {
    font-size: 28px;
    line-height: 1;
}

/* ==========================================
   表单样式
   ========================================== */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    transition: all var(--transition);
}

.form-input:focus {
    border-color: var(--primary);
    background: rgba(0, 212, 170, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    transition: all var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.form-select:focus {
    border-color: var(--primary);
    background-color: rgba(0, 212, 170, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    resize: vertical;
    min-height: 100px;
    transition: all var(--transition);
}

.form-textarea:focus {
    border-color: var(--primary);
    background: rgba(0, 212, 170, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

/* ==========================================
   列表样式
   ========================================== */

.list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-secondary);
    transition: all var(--transition);
    cursor: pointer;
}

.list-item:hover {
    background: var(--bg-tertiary);
}

.list-item:active {
    background: rgba(0, 212, 170, 0.05);
}

.list-item .item-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.list-item .item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    font-size: 20px;
}

.list-item .item-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.list-item .item-arrow {
    color: var(--text-muted);
    font-size: 18px;
    transition: transform var(--transition-fast);
}

.list-item:hover .item-arrow {
    transform: translateX(2px);
    color: var(--primary);
}

/* 信息条 */
.info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.info-bar .info-label {
    font-size: 13px;
    color: var(--text-tertiary);
}

.info-bar .info-value {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    font-family: var(--font-mono);
}

/* ==========================================
   折叠面板 (FAQ)
   ========================================== */

.accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accordion-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition);
}

.accordion-item:hover {
    border-color: var(--border-hover);
}

.accordion-item.active {
    border-color: rgba(0, 212, 170, 0.3);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    cursor: pointer;
    transition: background var(--transition);
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.accordion-header .question {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.accordion-header .question::before {
    content: 'Q';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    color: #000;
}

.accordion-header .toggle-icon {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform var(--transition);
}

.accordion-item.active .toggle-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-answer {
    padding: 0 16px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================
   开关按钮
   ========================================== */

.switch {
    position: relative;
    width: 48px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
}

.switch-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--text-primary);
    border-radius: 50%;
    transition: all var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.switch input:checked + .switch-slider {
    background: var(--primary);
}

.switch input:checked + .switch-slider::before {
    transform: translateX(22px);
    background: #000;
}

/* ==========================================
   弹窗样式
   ========================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: linear-gradient(165deg, #1f2227 0%, #141518 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-hover);
    padding: 28px;
    max-width: 360px;
    width: 100%;
    transform: scale(0.95) translateY(10px);
    transition: all var(--transition-slow);
    box-shadow: 
        0 0 0 1px rgba(0, 212, 170, 0.1),
        0 16px 48px rgba(0, 0, 0, 0.6);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    text-align: center;
    margin-bottom: 28px;
}

.modal-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-footer {
    display: flex;
    gap: 12px;
}

.modal-footer .btn {
    flex: 1;
}

/* ==========================================
   底部导航栏
   ========================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(11, 14, 17, 0.95);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 24px;
    color: var(--text-muted);
    transition: all var(--transition);
    border-radius: var(--radius-md);
    position: relative;
}

.nav-item:hover {
    color: var(--text-secondary);
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}

.nav-item .nav-icon {
    font-size: 24px;
    line-height: 1;
}

.nav-item .nav-text {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ==========================================
   顶部栏
   ========================================== */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 20px;
    margin-bottom: 4px;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.header-back {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 8px 12px;
    margin-left: -12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.header-back:hover {
    color: var(--primary);
    background: rgba(0, 212, 170, 0.08);
}

.header-action {
    padding: 8px;
    color: var(--text-secondary);
    font-size: 20px;
    transition: color var(--transition);
}

.header-action:hover {
    color: var(--primary);
}

/* ==========================================
   卡包 - 叠卡效果
   ========================================== */

.card-stack {
    position: relative;
    height: 400px;
    perspective: 1200px;
}

.card-stack .virtual-card {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    max-width: 340px;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-stack .virtual-card:nth-child(1) {
    top: 0;
    z-index: 5;
}

.card-stack .virtual-card:nth-child(2) {
    top: 28px;
    z-index: 4;
    transform: translateX(-50%) scale(0.96);
    opacity: 0.85;
}

.card-stack .virtual-card:nth-child(3) {
    top: 52px;
    z-index: 3;
    transform: translateX(-50%) scale(0.92);
    opacity: 0.7;
}

.card-stack .virtual-card:nth-child(4) {
    top: 72px;
    z-index: 2;
    transform: translateX(-50%) scale(0.88);
    opacity: 0.55;
}

.card-stack .virtual-card:nth-child(5) {
    top: 88px;
    z-index: 1;
    transform: translateX(-50%) scale(0.84);
    opacity: 0.4;
}

/* 卡片放大状态 */
.card-expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.02) !important;
    z-index: 200 !important;
    opacity: 1 !important;
    width: calc(100% - 40px) !important;
    max-width: 360px !important;
    box-shadow: 
        0 24px 64px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(0, 212, 170, 0.2),
        0 0 40px rgba(0, 212, 170, 0.15);
}

.card-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    backdrop-filter: blur(8px);
}

.card-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 删除按钮 */
.card-delete-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    background: var(--danger);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 16px;
    box-shadow: 0 4px 12px var(--danger-glow);
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition);
    z-index: 210;
    cursor: pointer;
}

.card-expanded .card-delete-btn {
    opacity: 1;
    transform: scale(1);
}

.card-delete-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px var(--danger-glow);
}

/* ==========================================
   交易记录
   ========================================== */

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.transaction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.transaction-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.transaction-card {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.transaction-time {
    font-size: 12px;
    color: var(--text-muted);
}

.transaction-amount {
    text-align: right;
}

.transaction-amount .amount {
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-mono);
}

.transaction-amount .amount.negative {
    color: var(--danger);
}

.transaction-amount .amount.positive {
    color: var(--primary);
}

.transaction-amount .status {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transaction-amount .status.success {
    color: var(--primary);
}

.transaction-amount .status.pending {
    color: var(--warning);
}

.transaction-amount .status.failed {
    color: var(--danger);
}

/* ==========================================
   提示消息
   ========================================== */

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    text-align: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.toast.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.toast.success {
    border-color: rgba(0, 212, 170, 0.4);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 24px var(--primary-glow);
}

.toast.error {
    border-color: rgba(255, 71, 87, 0.4);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 24px var(--danger-glow);
}

.toast-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.toast.success .toast-icon {
    color: var(--primary);
}

.toast.error .toast-icon {
    color: var(--danger);
}

.toast-message {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ==========================================
   滚动条样式
   ========================================== */

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==========================================
   工具类
   ========================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-red, .text-danger { color: var(--danger) !important; }
.text-green, .text-success { color: var(--primary) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }

.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.w-100 { width: 100%; }

.hidden { display: none !important; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 状态标记 */
.status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
}

.status-none {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.status-pending {
    background: rgba(255, 184, 0, 0.15);
    color: var(--warning);
}

.status-approved, .status-success {
    background: rgba(0, 212, 170, 0.15);
    color: var(--primary);
}

.status-rejected, .status-error {
    background: rgba(255, 71, 87, 0.15);
    color: var(--danger);
}

/* 提示框 */
.alert {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-success {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    color: var(--primary);
}

.alert-error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: var(--danger);
}

.alert-warning {
    background: rgba(255, 184, 0, 0.1);
    border: 1px solid rgba(255, 184, 0, 0.3);
    color: var(--warning);
}

.alert-info {
    background: rgba(123, 97, 255, 0.1);
    border: 1px solid rgba(123, 97, 255, 0.3);
    color: var(--accent);
}

/* ==========================================
   响应式适配
   ========================================== */

@media (max-width: 375px) {
    html {
        font-size: 14px;
    }
    
    .balance-card .balance-amount {
        font-size: 28px;
    }
    
    .virtual-card .card-number {
        font-size: 15px;
        letter-spacing: 2px;
    }
    
    .action-btn {
        padding: 16px 10px;
    }
    
    .action-btn .icon {
        font-size: 24px;
    }
}

@media (min-width: 481px) {
    .page-container {
        padding: 24px 20px;
    }
    
    .balance-card {
        padding: 28px;
    }
    
    .balance-card .balance-amount {
        font-size: 40px;
    }
}
