/* ==========================================
   U卡系统 - 全局样式表
   风格：虚拟币科技风
   配色：摩洛哥红(#C1272D)、绿(#006233)、白、金属银
   ========================================== */

/* CSS 变量 */
:root {
    --primary-red: #C1272D;
    --primary-green: #006233;
    --white: #FFFFFF;
    --silver: #C0C0C0;
    --silver-light: #E8E8E8;
    --dark-bg: #0D1117;
    --card-bg: #161B22;
    --card-border: rgba(192, 192, 192, 0.3);
    --glow-red: rgba(193, 39, 45, 0.5);
    --glow-green: rgba(0, 98, 51, 0.5);
    --glow-silver: rgba(192, 192, 192, 0.4);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --gradient-dark: linear-gradient(135deg, #0D1117 0%, #1A1F26 100%);
    --gradient-card: linear-gradient(135deg, #1A1F26 0%, #2D333B 100%);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gradient-dark);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 70px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

input, select {
    font-family: inherit;
    outline: none;
}

/* 页面容器 */
.page-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 16px;
    min-height: calc(100vh - 70px);
}

/* 页面入场动画 */
.page-enter {
    animation: slideUp 0.4s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   轮播Banner
   ========================================== */

.banner-swiper {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--gradient-card);
    border: 1px solid var(--card-border);
}

.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(--border-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-secondary);
    background: linear-gradient(135deg, 
        rgba(193, 39, 45, 0.3) 0%, 
        rgba(0, 98, 51, 0.3) 50%,
        rgba(192, 192, 192, 0.2) 100%);
    border-radius: var(--border-radius-lg);
}

.banner-placeholder[data-index="1"] {
    background: linear-gradient(135deg, rgba(193, 39, 45, 0.4) 0%, rgba(26, 31, 38, 0.8) 100%);
}

.banner-placeholder[data-index="2"] {
    background: linear-gradient(135deg, rgba(0, 98, 51, 0.4) 0%, rgba(26, 31, 38, 0.8) 100%);
}

.banner-placeholder[data-index="3"] {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.3) 0%, rgba(26, 31, 38, 0.8) 100%);
}

.banner-placeholder[data-index="4"] {
    background: linear-gradient(135deg, rgba(193, 39, 45, 0.3) 0%, rgba(0, 98, 51, 0.3) 100%);
}

/* 轮播指示器 */
.swiper-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.swiper-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.swiper-indicators .indicator.active {
    width: 20px;
    border-radius: 4px;
    background: var(--white);
}

/* ==========================================
   卡片样式
   ========================================== */

/* 基础卡片 */
.card {
    background: var(--gradient-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--card-border);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* 科技风发光边框 */
.card-glow {
    box-shadow: 
        0 0 20px var(--glow-silver),
        inset 0 0 20px rgba(192, 192, 192, 0.05);
}

.card-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-red), var(--silver), var(--primary-green), var(--silver));
    border-radius: var(--border-radius-lg);
    z-index: -1;
    opacity: 0.5;
    animation: borderGlow 3s ease infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* 余额卡片 */
.balance-card {
    background: linear-gradient(135deg, #1A1F26 0%, #252B33 50%, #1A1F26 100%);
    padding: 24px;
    margin-bottom: 20px;
}

.balance-card .balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.balance-card .balance-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
}

.balance-card .card-count {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 虚拟银行卡样式 */
.virtual-card {
    width: 100%;
    aspect-ratio: 1.586;
    background: linear-gradient(135deg, #1A1F26 0%, #2D333B 50%, #1A1F26 100%);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--card-border);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 20px var(--glow-silver);
    transition: var(--transition);
    cursor: pointer;
}

.virtual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(192, 192, 192, 0.1) 50%, 
        transparent 70%);
    border-radius: var(--border-radius-lg);
    pointer-events: none;
}

.virtual-card .card-chip {
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, #D4AF37 0%, #F5E6A3 50%, #D4AF37 100%);
    border-radius: 6px;
    position: relative;
}

.virtual-card .card-chip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.virtual-card .card-number {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--white);
    font-family: 'Courier New', monospace;
}

.virtual-card .card-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.virtual-card .card-info-item label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.virtual-card .card-info-item span {
    font-size: 14px;
    color: var(--white);
    font-family: 'Courier New', monospace;
}

.virtual-card .card-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-red);
    text-shadow: 0 0 10px var(--glow-red);
}

/* ==========================================
   按钮样式
   ========================================== */

/* 胶囊按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

/* 主要按钮 - 红色 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, #E53E45 100%);
    color: var(--white);
    box-shadow: 0 4px 15px var(--glow-red);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow-red);
}

/* 次要按钮 - 绿色 */
.btn-secondary {
    background: linear-gradient(135deg, var(--primary-green) 0%, #008844 100%);
    color: var(--white);
    box-shadow: 0 4px 15px var(--glow-green);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow-green);
}

/* 轮廓按钮 */
.btn-outline {
    background: transparent;
    border: 1px solid var(--silver);
    color: var(--white);
}

.btn-outline:hover {
    background: rgba(192, 192, 192, 0.1);
    border-color: var(--white);
}

/* 科技按钮 */
.btn-tech {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--white);
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.1);
}

.btn-tech:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--silver);
    box-shadow: 0 0 20px var(--glow-silver);
}

/* 小按钮 */
.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* 大按钮 */
.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* 全宽按钮 */
.btn-block {
    width: 100%;
}

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-group-vertical {
    flex-direction: column;
}

/* 快捷操作按钮 */
.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: space-around;
    margin-top: 20px;
}

.action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    color: var(--white);
    font-size: 12px;
    transition: var(--transition);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--silver);
    transform: translateY(-2px);
}

.action-btn .icon {
    font-size: 24px;
}

/* ==========================================
   表单样式
   ========================================== */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    color: var(--white);
    font-size: 16px;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--silver);
    box-shadow: 0 0 15px var(--glow-silver);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    color: var(--white);
    font-size: 16px;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23C0C0C0' 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(--silver);
    box-shadow: 0 0 15px var(--glow-silver);
}

.form-select option {
    background: var(--dark-bg);
    color: var(--white);
}

/* ==========================================
   列表样式
   ========================================== */

.list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--card-border);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--card-bg);
    transition: var(--transition);
    cursor: pointer;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.list-item .item-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.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: 10px;
    font-size: 20px;
}

.list-item .item-text {
    font-size: 16px;
    color: var(--white);
}

.list-item .item-arrow {
    color: var(--text-muted);
    font-size: 14px;
}

/* 信息条 */
.info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--gradient-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    margin-bottom: 12px;
}

.info-bar .info-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.info-bar .info-value {
    font-size: 14px;
    color: var(--primary-green);
    font-weight: 600;
}

/* ==========================================
   折叠面板 (FAQ)
   ========================================== */

.accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    background: var(--gradient-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.accordion-header .question {
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-header .question::before {
    content: 'Q';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary-red);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.accordion-header .toggle-icon {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.accordion-item.active .toggle-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-answer {
    padding: 0 16px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================
   开关按钮
   ========================================== */

.switch {
    position: relative;
    width: 50px;
    height: 28px;
}

.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: 28px;
    cursor: pointer;
    transition: var(--transition);
}

.switch-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    bottom: 3px;
    background: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.switch input:checked + .switch-slider {
    background: var(--primary-green);
    box-shadow: 0 0 15px var(--glow-green);
}

.switch input:checked + .switch-slider::before {
    transform: translateX(22px);
}

/* ==========================================
   弹窗样式
   ========================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--gradient-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--card-border);
    padding: 24px;
    max-width: 340px;
    width: 100%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 0 30px var(--glow-silver);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    text-align: center;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
}

.modal-body {
    text-align: center;
    margin-bottom: 24px;
}

.modal-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    gap: 12px;
}

.modal-footer .btn {
    flex: 1;
}

/* ==========================================
   底部导航栏
   ========================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    color: var(--text-muted);
    transition: var(--transition);
    border-radius: 10px;
}

.nav-item:hover {
    color: var(--text-secondary);
}

.nav-item.active {
    color: var(--primary-red);
}

.nav-item .nav-icon {
    font-size: 22px;
}

.nav-item .nav-text {
    font-size: 12px;
    font-weight: 500;
}

/* ==========================================
   顶部栏
   ========================================== */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-bottom: 20px;
}

.header-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.header-back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 8px;
    margin-left: -8px;
    transition: var(--transition);
}

.header-back:hover {
    color: var(--white);
}

.header-action {
    padding: 8px;
    color: var(--text-secondary);
    font-size: 20px;
    transition: var(--transition);
}

.header-action:hover {
    color: var(--white);
}

/* ==========================================
   卡包 - 叠卡效果
   ========================================== */

.card-stack {
    position: relative;
    height: 400px;
    perspective: 1000px;
}

.card-stack .virtual-card {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    max-width: 340px;
    transition: all 0.4s 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: 30px;
    z-index: 4;
    transform: translateX(-50%) scale(0.95);
    opacity: 0.9;
}

.card-stack .virtual-card:nth-child(3) {
    top: 55px;
    z-index: 3;
    transform: translateX(-50%) scale(0.9);
    opacity: 0.8;
}

.card-stack .virtual-card:nth-child(4) {
    top: 75px;
    z-index: 2;
    transform: translateX(-50%) scale(0.85);
    opacity: 0.7;
}

.card-stack .virtual-card:nth-child(5) {
    top: 90px;
    z-index: 1;
    transform: translateX(-50%) scale(0.8);
    opacity: 0.6;
}

/* 卡片放大状态 */
.card-expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.05) !important;
    z-index: 200 !important;
    opacity: 1 !important;
    width: calc(100% - 40px) !important;
    max-width: 360px !important;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 40px var(--glow-silver);
}

.card-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.card-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 删除按钮 */
.card-delete-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    box-shadow: 0 4px 15px var(--glow-red);
    opacity: 0;
    transform: scale(0);
    transition: var(--transition);
    z-index: 210;
}

.card-expanded .card-delete-btn {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================
   交易记录
   ========================================== */

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--gradient-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    transition: var(--transition);
}

.transaction-item:hover {
    border-color: var(--silver);
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.transaction-card {
    font-size: 14px;
    color: var(--white);
    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;
}

.transaction-amount .amount.negative {
    color: var(--primary-red);
}

.transaction-amount .amount.positive {
    color: var(--primary-green);
}

.transaction-amount .status {
    font-size: 12px;
    color: var(--text-muted);
}

.transaction-amount .status.success {
    color: var(--primary-green);
}

.transaction-amount .status.pending {
    color: #F0AD4E;
}

.transaction-amount .status.failed {
    color: var(--primary-red);
}

/* ==========================================
   提示消息
   ========================================== */

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 20px 30px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.toast.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.toast.success {
    border-color: var(--primary-green);
    box-shadow: 0 0 30px var(--glow-green);
}

.toast.error {
    border-color: var(--primary-red);
    box-shadow: 0 0 30px var(--glow-red);
}

.toast-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.toast.success .toast-icon {
    color: var(--primary-green);
}

.toast.error .toast-icon {
    color: var(--primary-red);
}

.toast-message {
    font-size: 16px;
    color: var(--white);
}

/* ==========================================
   滚动条样式
   ========================================== */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--silver);
}

/* ==========================================
   工具类
   ========================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-red { color: var(--primary-red); }
.text-green { color: var(--primary-green); }
.text-silver { color: var(--silver); }
.text-muted { color: var(--text-muted); }

.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; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

.w-100 { width: 100%; }

.hidden { display: none; }

/* ==========================================
   响应式适配
   ========================================== */

@media (max-width: 375px) {
    html {
        font-size: 14px;
    }
    
    .balance-card .balance-amount {
        font-size: 24px;
    }
    
    .virtual-card .card-number {
        font-size: 16px;
    }
    
    .action-btn {
        padding: 12px 8px;
    }
}

@media (min-width: 481px) {
    .page-container {
        padding: 24px 20px;
    }
}
