/* ==================== 基础变量 ==================== */
:root {
    /* 红黑渐变科技主题 */
    --primary-gradient: linear-gradient(135deg, #FF2D2D 0%, #FF0000 25%, #B00000 50%, #800000 75%, #000000 100%);
    --secondary-gradient: linear-gradient(135deg, #FF5252 0%, #FF0000 50%, #990000 100%);
    --dark-gradient: linear-gradient(135deg, #000000 0%, #200000 25%, #400000 50%, #200000 75%, #000000 100%);
    --tech-gradient: linear-gradient(135deg, rgba(255, 0, 0, 0.1) 0%, rgba(255, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.5) 100%);
    --glass-gradient: linear-gradient(135deg, rgba(255, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);

    /* 颜色 */
    --primary: #FF0000;
    --primary-dark: #B00000;
    --secondary: #FF5252;
    --accent: #FF3333;
    --dark: #000000;
    --darker: #200000;
    --light: #ffffff;
    --tech-red: #FF3333;
    --tech-dark: #000000;
    --gray: #666666;
    --gray-light: #888888;

    /* 玻璃态 */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-light: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* 间距 */
    --safe-area-bottom: env(safe-area-inset-bottom, 20px);

    /* 动画 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ==================== 重置样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-gradient);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
}

/* 动态科技背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 40%, rgba(255, 0, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255, 51, 51, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(32, 0, 0, 0.95) 100%);
    pointer-events: none;
    z-index: -2;
    animation: tech-bg-pulse 6s ease-in-out infinite;
}

@keyframes tech-bg-pulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    pointer-events: auto;
}

input, textarea {
    font-family: inherit;
    outline: none;
    border: none;
}

/* ==================== 渐变文字 ==================== */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== 动态背景 ==================== */
.app-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--dark-gradient);
}

.bg-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(240, 147, 251, 0.1) 0%, transparent 50%);
    animation: bgMove 20s ease-in-out infinite;
}

@keyframes bgMove {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-5%, -5%); }
}

.bg-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle 15s infinite linear;
}

@keyframes float-particle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* ==================== 主容器 (web-flow布局) ==================== */
.app-container {
    position: relative;
    z-index: 1;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    height: auto;
    padding-bottom: calc(70px + var(--safe-area-bottom));
    padding-top: 0;
    width: 100%;
    overflow: visible;
}

/* ==================== 页面 ==================== */
.page {
    display: none;
    padding: 0 16px;
    animation: fadeIn 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== 玻璃态卡片 ==================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

/* ==================== 头部 ==================== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    position: sticky;
    top: 0;
    background: linear-gradient(to bottom, var(--dark) 0%, var(--dark) 80%, transparent 100%);
    z-index: 100;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon { font-size: 28px; }

.logo-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lobster-emoji {
    font-size: 35px;
    animation: lobster-dance 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    display: inline-block;
    cursor: pointer;
}
@keyframes lobster-dance {
    0%, 100% { transform: rotate(-5deg) scale(1); }
    25% { transform: rotate(5deg) scale(1.05); }
    50% { transform: rotate(-5deg) scale(1); }
    75% { transform: rotate(5deg) scale(0.95); }
}

.logo-text-gradient {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 50%, #EE5A24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-glow 3s ease-in-out infinite alternate;
}
@keyframes text-glow {
    0% { filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.2)); }
    100% { filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.5)); }
}

.page-title {
    font-size: 20px;
    font-weight: 700;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--light);
    transition: all var(--transition-fast);
}
.icon-btn:hover { background: var(--glass-bg-light); }
.icon-btn svg { width: 20px; height: 20px; }

/* ==================== 按钮样式 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-fast);
    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-ghost { background: transparent; color: var(--light); border: 1px solid var(--glass-border); }
.btn-ghost:hover { background: var(--glass-bg); border-color: var(--primary); }

.btn-outline { background: transparent; color: var(--light); border: 1px solid var(--primary); }
.btn-outline:hover { background: rgba(102, 126, 234, 0.1); }

.btn-gradient { background: var(--primary-gradient); color: var(--light); border: none; }
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4); }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

.pulse-animation { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(102, 126, 234, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s ease;
}
.btn-text:hover { opacity: 0.8; }

.hidden { display: none !important; }

/* ==================== 首页宣传样式 ==================== */
.home-hero-section {
    text-align: center;
    padding: 40px 0 30px;
}

.home-main-title {
    font-size: 36px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    animation: titleGlow 3s ease-in-out infinite alternate;
}
@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 20px rgba(255,0,0,0.3)); }
    100% { filter: drop-shadow(0 0 35px rgba(255,0,0,0.6)); }
}

.home-sub-title {
    font-size: 14px;
    color: var(--gray);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 14个集成卡片 */
.integration-cards-section {
    padding: 0 0 20px;
}

.integration-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
}

.integration-card {
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-fast);
}
.integration-card:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(255,0,0,0.2);
    z-index: 2;
}

.integration-img-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.integration-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.integration-placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,0,0,0.08), rgba(0,0,0,0.2));
    color: var(--gray); font-size: 18px; font-weight: 700;
}

.home-footer-text { text-align: center; padding: 30px 0 20px; }
.footer-link-text {
    font-size: 15px; color: var(--primary); font-weight: 600;
    cursor: pointer; transition: all var(--transition-fast); letter-spacing: 0.5px;
}
.footer-link-text:hover { opacity: 0.8; text-decoration: underline; }

/* ==================== K线图区域 ==================== */
.chart-section { margin-bottom: 20px; }
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.chart-title { display: flex; align-items: center; gap: 12px; }
.chart-title h2 { font-size: 18px; font-weight: 600; }
.price-change { padding: 4px 8px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.price-change.positive { background: rgba(72, 199, 142, 0.2); color: #48c78e; }
.price-change.negative { background: rgba(245, 87, 108, 0.2); color: #f5576c; }
.chart-period { display: flex; gap: 4px; background: var(--glass-bg); padding: 4px; border-radius: 10px; }
.period-btn { padding: 6px 12px; font-size: 12px; color: var(--gray); border-radius: 8px; transition: all var(--transition-fast); }
.period-btn.active { background: var(--primary-gradient); color: white; }
.chart-container { position: relative; height: 180px; background: var(--glass-bg); border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.chart-container canvas { width: 100%; height: 100%; }
.chart-cursor-info { position: absolute; top: 10px; left: 10px; background: rgba(0, 0, 0, 0.7); padding: 8px 12px; border-radius: 8px; font-size: 12px; display: flex; flex-direction: column; gap: 2px; opacity: 0; transition: opacity var(--transition-fast); }
.chart-container:hover .chart-cursor-info { opacity: 1; }
.chart-legend { display: flex; justify-content: space-around; padding: 12px; background: var(--glass-bg); border-radius: 12px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray); }
.legend-item b { color: var(--light); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.high { background: #48c78e; } .dot.low { background: #f5576c; } .dot.vol { background: #667eea; }

/* ==================== 快捷操作 ==================== */
.quick-actions { margin-bottom: 20px; }
.action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.action-btn {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 16px 8px; background: var(--glass-bg); border-radius: 12px; transition: all var(--transition-fast);
}
.action-btn:hover { transform: translateY(-2px); }
.action-btn.buy .action-icon { background: rgba(72, 199, 142, 0.2); color: #48c78e; }
.action-btn.sell .action-icon { background: rgba(245, 87, 108, 0.2); color: #f5576c; }
.action-btn.transfer .action-icon { background: rgba(102, 126, 234, 0.2); color: #667eea; }
.action-btn.exchange .action-icon { background: rgba(240, 147, 251, 0.2); color: #f093fb; }
.action-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.action-icon svg { width: 18px; height: 18px; }
.action-btn span { font-size: 11px; color: var(--gray); }

/* ==================== 哈希排行榜 ==================== */
.hash-ranking { margin-bottom: 20px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-header h3 { font-size: 16px; font-weight: 600; }
.link-btn { font-size: 13px; color: var(--primary); }
.ranking-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tab-btn {
    padding: 8px 16px; font-size: 13px; color: var(--gray);
    background: var(--glass-bg); border-radius: 20px; transition: all var(--transition-fast);
}
.tab-btn.active { background: var(--primary-gradient); color: white; }
.ranking-list { display: flex; flex-direction: column; gap: 8px; }
.ranking-item {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    background: var(--glass-bg); border-radius: 12px; transition: all var(--transition-fast);
}
.ranking-item:hover { background: var(--glass-bg-light); }
.rank-badge { font-size: 20px; }
.rank-number { width: 24px; text-align: center; font-weight: 600; color: var(--gray); }
.user-avatar { width: 36px; height: 36px; background: var(--primary-gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.user-info { flex: 1; display: flex; flex-direction: column; }
.user-name { font-size: 14px; font-weight: 500; }
.user-hash { font-size: 12px; color: var(--gray); }
.rank-reward { font-size: 12px; font-weight: 600; color: var(--gray); }
.rank-reward.gold { color: #ffd700; } .rank-reward.silver { color: #c0c0c0; } .rank-reward.bronze { color: #cd7f32; }

/* ==================== 哈希信息卡 ==================== */
.hash-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.hash-card { padding: 16px; }
.hash-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.card-label { font-size: 13px; color: var(--gray); }
.live-dot { width: 8px; height: 8px; background: #48c78e; border-radius: 50%; animation: pulse 2s infinite; }
.hash-value { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.hash-trend { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.hash-trend svg { width: 14px; height: 14px; }
.hash-trend.positive { color: #48c78e; } .hash-trend.negative { color: #f5576c; }

/* ==================== 邀请卡片 ==================== */
.invite-card { display: flex; align-items: center; justify-content: space-between; padding: 16px; margin-bottom: 20px; }
.invite-content { display: flex; align-items: center; gap: 12px; }
.invite-icon { font-size: 32px; }
.invite-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.invite-info p { font-size: 12px; color: var(--gray); }
.invite-btn { padding: 8px 16px; font-size: 13px; }

/* ==================== 资产卡片 ==================== */
.asset-card { padding: 20px; margin-bottom: 24px; }
.asset-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.asset-icon { font-size: 36px; }
.asset-label { font-size: 14px; color: var(--gray); }
.asset-sublabel { font-size: 12px; color: var(--gray); }
.asset-balance { margin-bottom: 16px; }
.balance-value { font-size: 32px; font-weight: 700; }
.balance-unit { font-size: 16px; color: var(--gray); margin-left: 8px; }
.asset-actions { display: flex; gap: 12px; }
.asset-actions .btn { flex: 1; }

/* ==================== 算力库页面 ==================== */
.computing-section { margin-bottom: 24px; }
.section-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.computing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.computing-card { padding: 16px; display: flex; align-items: center; gap: 12px; }
.computing-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.computing-icon svg { width: 20px; height: 20px; }
.computing-icon.blue { background: rgba(102, 126, 234, 0.2); color: #667eea; }
.computing-icon.green { background: rgba(72, 199, 142, 0.2); color: #48c78e; }
.computing-info { display: flex; flex-direction: column; }
.computing-label { font-size: 12px; color: var(--gray); }
.computing-value { font-size: 16px; font-weight: 600; }
.computing-value.green { color: #48c78e; }

.packages-section { margin-bottom: 24px; }
.package-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.package-list { display: flex; flex-direction: column; gap: 12px; }
.package-card { padding: 16px; }
.package-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.package-name { font-size: 15px; font-weight: 600; }
.package-tag { padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.package-tag.hot { background: rgba(245, 87, 108, 0.2); color: #f5576c; }
.package-tag.new { background: rgba(72, 199, 142, 0.2); color: #48c78e; }
.package-tag { background: rgba(240, 147, 251, 0.2); color: #f093fb; }
.package-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.package-hash { display: flex; align-items: baseline; gap: 4px; }
.hash-number { font-size: 28px; font-weight: 700; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hash-unit { font-size: 14px; color: var(--gray); }
.package-price { text-align: right; }
.price-value { font-size: 18px; font-weight: 600; }
.price-unit { font-size: 12px; color: var(--gray); margin-left: 4px; }
.package-features { display: flex; gap: 16px; font-size: 12px; color: var(--gray); margin-bottom: 12px; }
.package-features span { display: flex; align-items: center; gap: 4px; }

.ticket-section { margin-bottom: 24px; }
.ticket-card { display: flex; align-items: center; gap: 12px; padding: 16px; margin-bottom: 12px; }
.ticket-icon { font-size: 32px; }
.ticket-info { flex: 1; display: flex; flex-direction: column; }
.ticket-name { font-size: 15px; font-weight: 600; }
.ticket-desc { font-size: 12px; color: var(--gray); }
.status-badge { padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; background: var(--glass-bg); color: var(--gray); }
.status-badge.active { background: rgba(72, 199, 142, 0.2); color: #48c78e; }
.ticket-detail { display: flex; justify-content: space-between; padding: 12px; background: var(--glass-bg); border-radius: 12px; margin-bottom: 12px; }
.detail-item { display: flex; flex-direction: column; gap: 4px; }
.detail-label { font-size: 12px; color: var(--gray); }
.detail-value { font-size: 14px; font-weight: 500; }
.detail-value.highlight { color: var(--primary); }

.mining-card { padding: 20px; margin-bottom: 24px; }
.mining-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mining-icon {
    width: 48px; height: 48px; background: var(--primary-gradient); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; animation: iconPulse 2s infinite;
}
@keyframes iconPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.mining-icon svg { width: 24px; height: 24px; }
.mining-status { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: rgba(72, 199, 142, 0.2); border-radius: 20px; font-size: 13px; color: #48c78e; }
.status-dot { width: 8px; height: 8px; background: #48c78e; border-radius: 50%; animation: pulse 2s infinite; }
.mining-stats { display: flex; justify-content: space-between; margin-bottom: 16px; }
.mining-stat { display: flex; flex-direction: column; gap: 4px; }
.mining-stat .stat-label { font-size: 12px; color: var(--gray); }
.mining-stat .stat-value { font-size: 18px; font-weight: 600; }
.mining-stat .stat-value.highlight { color: #48c78e; }
.mining-chart { height: 100px; background: var(--glass-bg); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.mining-chart canvas { width: 100%; height: 100%; }
.mining-footer { text-align: center; }
.mining-tip { font-size: 12px; color: var(--gray); }

.ai-control-section { margin-bottom: 24px; }
.ai-card { padding: 20px; }
.ai-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ai-icon { font-size: 36px; }
.ai-info { display: flex; flex-direction: column; }
.ai-name { font-size: 15px; font-weight: 600; }
.ai-status { font-size: 12px; color: var(--gray); }
.ai-status.active { color: #48c78e; }
.ai-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.ai-feature { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.feature-icon { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; }
.feature-icon.green { background: rgba(72, 199, 142, 0.2); color: #48c78e; }
.ai-toggle-container { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--glass-border); }
.toggle-label { font-size: 14px; font-weight: 500; }
.toggle-switch { position: relative; width: 52px; height: 28px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: var(--glass-bg); border-radius: 28px; transition: all var(--transition-normal); }
.toggle-slider::before { position: absolute; content: ''; height: 22px; width: 22px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: all var(--transition-normal); }
.toggle-switch input:checked + .toggle-slider { background: var(--primary-gradient); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(24px); }

.earnings-section { margin-bottom: 24px; }
.earnings-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.earnings-list { display: flex; flex-direction: column; gap: 8px; }
.earnings-item { display: flex; align-items: center; gap: 12px; padding: 12px; }
.earning-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: bold; }
.earning-icon.green { background: rgba(72, 199, 142, 0.2); color: #48c78e; }
.earning-icon.blue { background: rgba(102, 126, 234, 0.2); color: #667eea; }
.earning-icon.purple { background: rgba(240, 147, 251, 0.2); color: #f093fb; }
.earning-info { flex: 1; display: flex; flex-direction: column; }
.earning-type { font-size: 14px; font-weight: 500; }
.earning-time { font-size: 12px; color: var(--gray); }
.earning-amount { font-size: 14px; font-weight: 600; }
.earning-amount.green { color: #48c78e; }
.earning-amount.blue { color: #667eea; }
.earning-amount.purple { color: #f093fb; }

/* ==================== 铸币页面3SAI ==================== */
.mint-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0; position: sticky; top: 0; z-index: 100; flex-wrap: nowrap !important;
}
.mint-title {
    font-size: 22px; font-weight: 800; background: var(--primary-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; letter-spacing: 1px;
}
.mint-top-actions { display: flex; gap: 8px; }
.mint-action-btn {
    display: flex; align-items: center; gap: 5px; padding: 6px 12px;
    border-radius: 20px; font-size: 12px; font-weight: 600;
    color: var(--primary); background: rgba(255,0,0,0.08);
    border: 1px solid rgba(255,0,0,0.2); transition: all var(--transition-fast);
}
.mint-action-btn svg { width: 14px; height: 14px; }
.mint-action-btn:hover { background: rgba(255,0,0,0.15); }
.mint-action-btn.connected { color: var(--primary); }
.status-dot-green {
    width: 7px; height: 7px; background: #48c78e; border-radius: 50%;
    display: inline-block; animation: pulse 2s infinite;
}

.mint-bubble-section {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 6px 0 4px; gap: 10px;
}
.bubble-stack { display: flex; flex-direction: column; gap: 3px; padding-top: 1px; }
.bubble-item { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,0,0,0.3); border: 1px solid rgba(255,0,0,0.5); }
.mint-entry-list { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mint-entry-btn {
    display: flex; align-items: center; gap: 4px; padding: 3px 7px;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 6px; color: var(--light); transition: all var(--transition-fast);
}
.mint-entry-btn:hover { background: rgba(255,0,0,0.06); border-color: rgba(255,0,0,0.2); }
.entry-text { font-size: 9px; font-weight: 500; flex: 1; text-align: left; }
.entry-badge { position: relative; }
.entry-badge.new::after {
    content: ''; width: 5px; height: 5px; background: var(--primary); border-radius: 50%;
    position: absolute; top: -2px; right: -6px;
}
.entry-arrow { width: 9px; height: 9px; color: var(--gray); flex-shrink: 0; }

.mint-ai-toggle {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 12px; margin-bottom: 10px;
}
.ai-toggle-label { font-size: 10px; font-weight: 700; color: var(--primary); }
.mint-toggle .toggle-switch { width: 32px; height: 18px; }
.mint-toggle .toggle-slider::before { height: 13px; width: 13px; left: 2.5px; bottom: 2.5px; }
.mint-toggle input:checked + .toggle-slider { background: #48c78e; }
.mint-toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

.mint-main-tabs { margin-bottom: 12px; }
.mint-tab-bar {
    display: flex; background: var(--glass-bg);
    border: 1px solid var(--glass-border); border-radius: 12px; padding: 3px; gap: 0;
}
.mint-tab {
    flex: 1; padding: 10px 16px; font-size: 13px; font-weight: 600;
    color: var(--gray); background: transparent; border-radius: 10px;
    transition: all var(--transition-fast); cursor: pointer;
}
.mint-tab.active { background: var(--primary-gradient); color: white; box-shadow: 0 2px 10px rgba(255,0,0,0.3); }

.mint-tab-content { display: none; }
.mint-tab-content.active { display: block; }

.coming-soon-card { padding: 50px 20px; text-align: center; }
.coming-soon-icon { font-size: 40px; margin-bottom: 12px; }
.coming-soon-text { font-size: 18px; font-weight: 700; color: var(--light); margin-bottom: 6px; }
.coming-soon-sub { font-size: 13px; color: var(--gray); }

.algo-card { padding: 18px; margin-bottom: 14px; }
.algo-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.algo-title { font-size: 22px; font-weight: 800; color: var(--light); }
.opun-unit { font-size: 15px; font-weight: 600; background: var(--secondary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-left: 3px; }
.algo-status { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.algo-status.ended { background: rgba(120,130,140,0.15); color: #8896a4; }
.algo-status.running { background: rgba(72,199,142,0.15); color: #48c78e; }

.algo-status-row { display: flex; gap: 10px; margin-bottom: 10px; }
.algo-state-label {
    flex: 1; padding: 7px; border-radius: 8px; font-size: 12px; font-weight: 600; text-align: center;
}
.algo-state-label.active { background: rgba(255,0,0,0.1); color: var(--primary); border: 1px solid rgba(255,0,0,0.25); }
.algo-state-label.disabled { opacity: 0.4; color: var(--gray); }

.algo-time-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 16px; padding: 10px 0; }
.time-label { font-size: 18px; font-weight: 700; color: var(--light); font-family: 'Courier New', monospace; }
.time-separator { color: var(--gray); font-size: 15px; }

.algo-deploy-btn {
    width: 100%; padding: 13px; font-size: 15px; font-weight: 700;
    border-radius: 10px; letter-spacing: 2px;
}
.algo-deploy-btn.ended { background: rgba(120,130,140,0.18); color: #8896a4; border: 1px solid rgba(120,130,140,0.25); cursor: not-allowed; }
.algo-deploy-btn.running { background: rgba(255, 0, 0, 0.08); color: var(--primary); border: 1px solid rgba(255, 0, 0, 0.3); }

/* ==================== 钱包页面 ==================== */
.wallet-page-header { justify-content: flex-start; padding: 14px 0; position: sticky; top: 0; z-index: 100; }
.wallet-main-title {
    font-size: 22px; font-weight: 800; background: var(--primary-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; letter-spacing: 1px;
}

.wallet-price-section { padding: 16px 18px; margin-bottom: 12px; }
.wallet-price-row { display: flex; align-items: baseline; gap: 4px; margin-bottom: 12px; }
.price-label { font-size: 13px; color: var(--gray-light); }
.price-value { font-size: 17px; font-weight: 700; color: var(--light); font-family: 'Courier New', monospace; }
.wallet-price-btns { display: flex; gap: 10px; }
.wallet-price-btn {
    flex: 1; padding: 9px 0; font-size: 13px; font-weight: 600;
    border-radius: 8px; color: var(--primary); background: rgba(255, 0, 0, 0.08);
    border: 1px solid rgba(255, 0, 0, 0.2); transition: all var(--transition-fast);
}
.wallet-price-btn:hover { background: rgba(255, 0, 0, 0.15); }

.wallet-asset-card { padding: 20px 18px; margin-bottom: 12px; }
.asset-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.asset-card-title { font-size: 15px; font-weight: 700; color: var(--light); }
.asset-detail-btn {
    padding: 5px 14px; font-size: 12px; font-weight: 600; color: var(--primary);
    background: rgba(255, 0, 0, 0.08); border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 6px; cursor: pointer; transition: all var(--transition-fast);
}
.asset-detail-btn:hover { background: rgba(255, 0, 0, 0.15); }
.asset-balance-num { font-size: 32px; font-weight: 800; color: var(--light); text-align: center; margin-bottom: 16px; letter-spacing: -0.5px; }
.asset-balance-num .asset-unit { font-size: 16px; font-weight: 600; color: var(--gray-light); margin-left: 3px; }
.asset-action-btns { display: flex; gap: 10px; }
.asset-action-btn {
    flex: 1; padding: 11px 0; font-size: 13px; font-weight: 700;
    border-radius: 8px; color: var(--light); background: var(--glass-bg);
    border: 1px solid var(--glass-border); transition: all var(--transition-fast); cursor: pointer;
}
.asset-action-btn:hover { background: rgba(255,255,255,0.06); }
.asset-action-btn.primary { background: rgba(255, 0, 0, 0.1); border-color: rgba(255, 0, 0, 0.3); color: var(--primary); }
.asset-action-btn.primary:hover { background: rgba(255, 0, 0, 0.18); }

.wallet-info-block { padding: 16px 18px; margin-bottom: 12px; }
.info-block-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.info-block-title { font-size: 15px; font-weight: 700; color: var(--light); }
.info-block-value { font-size: 15px; font-weight: 700; color: var(--primary); font-family: 'Courier New', monospace; }
.info-detail-btn {
    padding: 4px 12px; font-size: 12px; font-weight: 600; color: var(--primary);
    background: rgba(255, 0, 0, 0.08); border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 6px; margin-left: auto; cursor: pointer; transition: all var(--transition-fast);
}
.info-detail-btn:hover { background: rgba(255, 0, 0, 0.15); }
.info-block-sub-row { display: flex; align-items: baseline; gap: 4px; }
.sub-label { font-size: 13px; color: var(--gray-light); }
.sub-value { font-size: 14px; font-weight: 600; color: var(--light); font-family: 'Courier New', monospace; }

.ticket-sub-area { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sub-text { font-size: 13px; color: var(--gray-light); white-space: nowrap; }
.sub-text b { color: var(--light); font-weight: 600; font-family: 'Courier New', monospace; }
.ticket-mini-btns { display: flex; gap: 6px; flex-shrink: 0; }
.ticket-mini-btn {
    padding: 5px 10px; font-size: 11px; font-weight: 600; color: var(--primary);
    background: rgba(255, 0, 0, 0.07); border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 6px; cursor: pointer; transition: all var(--transition-fast); white-space: nowrap;
}
.ticket-mini-btn:hover { background: rgba(255, 0, 0, 0.15); }

.transactions-section { margin-bottom: 24px; }
.transaction-list { display: flex; flex-direction: column; gap: 8px; }
.transaction-item { display: flex; align-items: center; gap: 12px; padding: 12px; }
.tx-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: bold; }
.tx-icon.in { background: rgba(72, 199, 142, 0.2); color: #48c78e; }
.tx-icon.out { background: rgba(245, 87, 108, 0.2); color: #f5576c; }
.tx-info { flex: 1; display: flex; flex-direction: column; }
.tx-type { font-size: 14px; font-weight: 500; }
.tx-time { font-size: 12px; color: var(--gray); }
.tx-amount { font-size: 14px; font-weight: 600; }
.tx-amount.in { color: #48c78e; } .tx-amount.out { color: #f5576c; }

/* ==================== 我的页面 ==================== */
.profile-page-header {
    display: flex; align-items: center; justify-content: space-between; padding: 14px 0;
}
.profile-main-title {
    font-size: 22px; font-weight: 800; background: var(--primary-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; letter-spacing: 1px;
}
.profile-settings-btn {
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px; color: var(--gray-light); transition: all var(--transition-fast);
}
.profile-settings-btn:hover { color: var(--primary); border-color: rgba(255,0,0,0.3); background: rgba(255,0,0,0.08); }
.profile-settings-btn svg { width: 18px; height: 18px; }

.profile-nickname-section { padding: 16px 0 8px; }
.nickname-display-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.nickname-text { font-size: 20px; font-weight: 700; color: var(--light); }
.nickname-edit-icon {
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; color: var(--gray); transition: all var(--transition-fast);
}
.nickname-edit-icon:hover { color: var(--primary); border-color: rgba(255,0,0,0.3); background: rgba(255,0,0,0.08); }
.nickname-edit-icon svg { width: 14px; height: 14px; }
.nickname-edit-row { display: flex; gap: 8px; margin-bottom: 6px; }
.nickname-input {
    flex: 1; padding: 10px 14px; background: var(--glass-bg);
    border: 1px solid var(--glass-border); border-radius: 10px;
    color: var(--light); font-size: 15px; font-weight: 500; transition: all var(--transition-fast);
}
.nickname-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,0,0,0.15); }
.nickname-save-btn {
    padding: 10px 16px; font-size: 13px; font-weight: 600;
    border-radius: 10px; color: #fff; background: var(--primary-gradient); white-space: nowrap;
}
.nickname-cancel-btn {
    padding: 10px 14px; font-size: 13px; font-weight: 600;
    border-radius: 10px; color: var(--gray); background: var(--glass-bg);
    border: 1px solid var(--glass-border); white-space: nowrap;
}
.profile-id-label { font-size: 13px; color: var(--gray); }

.profile-level-card { padding: 18px; margin-bottom: 14px; }
.level-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.level-info-left { display: flex; align-items: center; gap: 10px; }
.level-title { font-size: 16px; font-weight: 700; color: var(--light); }
.level-badge {
    padding: 3px 12px; font-size: 15px; font-weight: 800;
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,165,0,0.15));
    color: #ffd700; border: 1px solid rgba(255,215,0,0.35); border-radius: 6px; letter-spacing: 1px;
}
.level-refresh-btn {
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    margin-left: auto; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; color: var(--gray); transition: all var(--transition-fast);
}
.level-refresh-btn:hover { color: var(--primary); border-color: rgba(255,0,0,0.25); background: rgba(255,0,0,0.08); }
.level-refresh-btn svg { width: 16px; height: 16px; }
.level-desc { font-size: 13px; color: var(--gray-light); line-height: 1.5; }

/* ==================== 我的邀请（主页面展示）==================== */
.profile-invite-section { margin-bottom: 20px; }
.profile-invite-title { font-size: 17px; font-weight: 700; color: var(--light); margin-bottom: 12px; padding-left: 2px; }
.invite-link-card { padding: 14px 16px; margin-bottom: 12px; }
.invite-link-section { padding: 14px 16px; margin-bottom: 12px; }
.invite-link-row { display: flex; align-items: center; gap: 10px; }
.invite-link-text {
    flex: 1; font-size: 13px; color: var(--light); word-break: break-all;
    background: rgba(255,255,255,0.03); padding: 8px 12px; border-radius: 8px;
    border: 1px solid var(--glass-border); font-family: 'Courier New', monospace;
}
.invite-copy-btn {
    padding: 8px 18px; font-size: 13px; font-weight: 600;
    border-radius: 8px; white-space: nowrap; color: #fff;
    background: var(--primary-gradient); transition: all var(--transition-fast);
}
.invite-copy-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.invite-qr-card { padding: 20px 16px; margin-bottom: 14px; }
.qr-code-area { display: flex; justify-content: center; margin-bottom: 18px; }
.qr-placeholder {
    width: 160px; height: 160px; padding: 6px; background: #fff; border-radius: 12px;
}
.qr-placeholder svg { width: 100%; height: 100%; display: block; }

.invite-stats-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.invite-stat-item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 10px 4px; background: rgba(255,255,255,0.02); border-radius: 8px;
}
.invite-stat-num { font-size: 17px; font-weight: 700; color: var(--light); font-family: 'Courier New', monospace; }
.invite-stat-label { font-size: 11px; color: var(--gray); text-align: center; }

.invite-list-section { margin-bottom: 20px; }
.invite-list-title { font-size: 15px; font-weight: 700; color: var(--light); margin-bottom: 10px; padding-left: 2px; }
.invite-user-list { min-height: 60px; }
.invite-empty-text { text-align: center; color: var(--gray); font-size: 14px; padding: 30px 0; }

.logout-section { margin-bottom: 20px; }
.version-info { text-align: center; padding: 20px; font-size: 12px; color: var(--gray); }

/* ==================== 登录模态框样式 ==================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center; z-index: 9999;
    opacity: 0; visibility: hidden; transition: all var(--transition-fast);
    pointer-events: none;
}
.modal-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }

.wallet-connect-modal { max-width: 440px; }
.wallet-connect-view, .traditional-auth-view { padding: 10px; }
.modal-header { text-align: center; margin-bottom: 30px; }
.modal-logo {
    width: 70px; height: 70px; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 36px;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3); animation: logoFloat 3s ease-in-out infinite;
}
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.modal-title { font-size: 22px; font-weight: 700; color: var(--light); margin-bottom: 8px; }
.modal-subtitle { font-size: 14px; color: var(--gray); line-height: 1.5; }

.wallet-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.wallet-option {
    display: flex; align-items: center; gap: 14px; width: 100%;
    padding: 16px 18px; background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border); border-radius: 14px; color: var(--light);
    cursor: pointer; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden;
}
.wallet-option::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: left 0.5s ease;
}
.wallet-option:hover::before { left: 100%; }
.wallet-option:hover { border-color: var(--primary); background: rgba(220, 38, 38, 0.08); transform: translateX(4px); box-shadow: 0 4px 20px rgba(220, 38, 38, 0.15); }
.wallet-option:active { transform: translateX(2px) scale(0.98); }
.wallet-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wallet-icon svg { width: 32px; height: 32px; }
.metamask-icon { background: linear-gradient(135deg, #E17726, #F58634); }
.tp-wallet-icon { background: linear-gradient(135deg, #5A4FCF, #7B61FF); }
.wc-icon { background: linear-gradient(135deg, #3B99FC, #2B89EC); }
.okx-icon { background: #000; }
.wallet-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.wallet-name { font-size: 15px; font-weight: 600; color: var(--light); }
.wallet-desc { font-size: 12px; color: var(--gray); }
.wallet-arrow { width: 20px; height: 20px; color: var(--gray); opacity: 0.5; transition: all 0.2s ease; }
.wallet-option:hover .wallet-arrow { opacity: 1; transform: translateX(3px); color: var(--primary); }

.qr-code-section { text-align: center; margin: 20px 0; padding: 20px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--glass-border); border-radius: 16px; }
.qr-tip { font-size: 13px; color: var(--gray); margin-bottom: 16px; }
.qr-code-container { display: inline-block; padding: 12px; background: white; border-radius: 12px; margin-bottom: 12px; }
#qrCanvas { display: block !important; }

.connecting-status { text-align: center; padding: 30px; }
.connecting-spinner {
    width: 48px; height: 48px; border: 3px solid rgba(220, 38, 38, 0.2);
    border-top-color: var(--primary); border-radius: 50%; margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.connecting-status p { font-size: 14px; color: var(--gray); }

.signature-request {
    text-align: center; padding: 24px;
    background: rgba(102, 126, 234, 0.05); border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px; margin: 20px 0;
}
.signature-icon {
    width: 56px; height: 56px; background: linear-gradient(135deg, rgba(72,199,142,0.15), rgba(72,199,142,0.05));
    border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.signature-icon svg { width: 28px; height: 28px; color: #48c78e; }
.signature-request h3 { font-size: 17px; font-weight: 600; color: var(--light); margin-bottom: 8px; }
.signature-message { font-size: 13px; color: var(--gray); line-height: 1.5; margin-bottom: 20px; }
.signature-request .btn-full { margin-bottom: 10px; }
.signature-request .btn-text { color: var(--gray); }

.modal-footer { text-align: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--glass-border); }
.divider-section { display: flex; align-items: center; margin: 24px 0 20px; }
.divider-section::before, .divider-section::after { content: ''; flex: 1; height: 1px; background: var(--glass-border); }
.divider-text { padding: 0 16px; font-size: 13px; color: var(--gray); white-space: nowrap; }

.wallet-connect-view .auth-form { margin-bottom: 4px; }
.modal-footer p { font-size: 12px; color: var(--gray); line-height: 1.5; }
.modal-footer a { color: var(--primary); text-decoration: none; }
.modal-footer a:hover { text-decoration: underline; }
.alt-login { text-align: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--glass-border); }

.social-login { margin-top: 30px; text-align: center; }
.social-login p { font-size: 14px; color: var(--gray); margin-bottom: 15px; position: relative; }
.social-login p::before, .social-login p::after {
    content: ''; position: absolute; top: 50%; width: 80px; height: 1px; background: var(--glass-border);
}
.social-login p::before { right: calc(50% + 60px); }
.social-login p::after { left: calc(50% + 60px); }
.social-buttons { display: flex; gap: 15px; }
.social-btn {
    flex: 1; padding: 12px; background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 10px; color: var(--light); font-size: 14px; font-weight: 500;
    display: flex; align-items: center; justify-content: center; gap: 8px; transition: all var(--transition-fast);
}
.social-btn:hover { background: var(--glass-border); }
.social-btn svg { width: 20px; height: 20px; }
.tp-wallet-btn { background: linear-gradient(135deg, #5A4FCF, #8A7EFF) !important; border-color: #5A4FCF !important; }
.tp-wallet-btn:hover { background: linear-gradient(135deg, #4A3FBF, #7A6EEF) !important; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(90, 79, 207, 0.3); }

.tp-wallet-form { margin-top: 25px; padding: 20px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 15px; }
.tp-wallet-form .form-group { margin-bottom: 20px; }
.tp-wallet-form label { display: block; font-size: 14px; color: var(--light); margin-bottom: 8px; font-weight: 500; }
.tp-wallet-form input, .tp-wallet-form textarea {
    width: 100%; padding: 12px 16px; background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border); border-radius: 10px; color: var(--light); font-size: 14px; transition: all var(--transition-fast);
}
.tp-wallet-form input:focus, .tp-wallet-form textarea:focus { outline: none; border-color: #5A4FCF; box-shadow: 0 0 0 3px rgba(90, 79, 207, 0.1); }
.tp-wallet-form textarea { resize: vertical; min-height: 80px; }
.wallet-tip { font-size: 12px; color: var(--gray); text-align: center; margin-top: 15px; font-style: italic; }

.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 16px 20px; background: var(--glass-bg);
    border: 1px solid var(--glass-border); border-radius: 12px; color: var(--light);
    font-size: 15px; transition: all var(--transition-fast);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--gray); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,0,0,0.2); }
.form-group textarea { resize: vertical; min-height: 120px; }
.auth-form.hidden { display: none; }

.modal {
    width: 100%; max-width: 450px; padding: 40px; position: relative;
    transform: scale(0.9) translateY(20px); transition: transform var(--transition-fast);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-close {
    position: absolute; top: 20px; right: 20px; width: 36px; height: 36px;
    background: var(--glass-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--gray); transition: all var(--transition-fast);
}
.modal-close:hover { background: var(--glass-border); color: var(--light); }
.modal-close svg { width: 20px; height: 20px; }

/* ==================== 底部导航栏 ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 8px 0;
    padding-bottom: calc(8px + var(--safe-area-bottom));
    display: flex;
    justify-content: space-around;
    z-index: 1000;
    box-sizing: border-box;
}

.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 16px; color: var(--gray); transition: all var(--transition-fast); }
.nav-item.active { color: var(--primary); }
.nav-item span { font-size: 11px; }
.nav-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.nav-icon svg { width: 22px; height: 22px; }

/* 铸币导航项 - 基础容器（无背景，用于承载漫射特效） */
.nav-icon.main {
    width: 48px; height: 48px;
    background: transparent;
    border-radius: 50%; margin-top: 0;
    box-shadow: none; border: none; overflow: visible !important;
    position: relative;
}

/* 铸币图标 - 与其他导航项同一水平面，漫射特效 */
.nav-icon.main {
    width: 48px; height: 48px;
    background: transparent; border-radius: 50%; margin-top: 0;
    box-shadow: none; border: none; overflow: visible;
    position: relative;
}

/* 铸币图标核心 */
.nav-icon.main.mint-icon {
    width: 42px; height: 42px; background: var(--primary-gradient); margin-top: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 82, 82, 0.5);
    position: relative; z-index: 3;

    /* 漫射光晕层 - 向外扩散 */
    animation: mint-diffuse-glow 3s ease-in-out infinite alternate;
}

/* 漫射光环1 - 近距离柔光（60px范围） */
.nav-icon.main.mint-icon::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 80px; height: 80px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 0, 0, 0.25) 0%,
        rgba(255, 82, 82, 0.15) 30%,
        rgba(255, 0, 0, 0.06) 55%,
        transparent 70%
    );
    z-index: -1;
    animation: diffuse-pulse-1 2.5s ease-in-out infinite alternate;
    pointer-events: none;
}

/* 漫射光环2 - 中距离扩散（100px范围）*/
.nav-icon.main.mint-icon::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 130px; height: 130px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 0, 0, 0.12) 0%,
        rgba(255, 82, 82, 0.06) 35%,
        rgba(255, 0, 0, 0.02) 60%,
        transparent 75%
    );
    z-index: -2;
    animation: diffuse-pulse-2 3.5s ease-in-out infinite alternate;
    pointer-events: none;
}

/* 第三层远距离漫射 - 通过nav-item的伪元素实现 */
.nav-item[data-page="mint"] {
    position: relative;
}
.nav-item[data-page="mint"]::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 180px; height: 180px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 0, 0, 0.08) 0%,
        rgba(255, 82, 82, 0.03) 40%,
        transparent 65%
    );
    z-index: 0;
    animation: diffuse-pulse-3 4s ease-in-out infinite alternate;
    pointer-events: none;
}
.tech-mint-container { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.tech-mint { width: 40px; height: 40px; filter: drop-shadow(0 0 8px rgba(255, 82, 82, 0.9)); }
/* 旧tech-dot/tech-halo动画已移除 - 由漫射系统替代 */
/* 漫射光晕动画 */
@keyframes mint-diffuse-glow {
    0% {
        box-shadow:
            0 0 15px rgba(255, 0, 0, 0.6),
            0 0 30px rgba(255, 82, 82, 0.35),
            0 0 50px rgba(255, 0, 0, 0.2);
    }
    100% {
        box-shadow:
            0 0 25px rgba(255, 0, 0, 1),
            0 0 55px rgba(255, 82, 82, 0.6),
            0 0 90px rgba(255, 0, 0, 0.35);
    }
}
@keyframes diffuse-pulse-1 {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
}
@keyframes diffuse-pulse-2 {
    0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.95; }
}
@keyframes diffuse-pulse-3 {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.4; }
    100% { transform: translate(-50%, -50%) scale(1.35); opacity: 0.9; }
}

/* 漫射粒子 - 从中心向外飘散 */
.mint-halo { display: none; }
.mint-particles {
    position: absolute;
    top: 50%; left: 50%;
    width: 200px; height: 200px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    overflow: visible;
}
.mint-particles::before, .mint-particles::after {
    content: '';
    position: absolute;
    width: 3px; height: 3px;
    background: radial-gradient(circle, rgba(255,82,82,1), transparent);
    border-radius: 50%;
    animation: particle-diffuse-1 4s linear infinite;
    box-shadow: 0 0 6px rgba(255,82,82,0.8), 0 0 12px rgba(255,0,0,0.4);
}
.mint-particles::before { top: 45%; left: 48%; animation-delay: 0s; }
.mint-particles::after { top: 52%; left: 53%; animation-delay: 2s; animation-name: particle-diffuse-2; }

/* 额外漫射粒子 - 通过JS或CSS注入更多动态粒子 */
.tech-mint-container {
    position: relative; width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    z-index: 5;
}
.tech-mint { width: 36px; height: 36px; filter: drop-shadow(0 0 10px rgba(255, 82, 82, 0.9)); }

@keyframes particle-diffuse-1 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0; }
    10%  { opacity: 1; }
    40%  { transform: translate(-30px, -40px) scale(1.5); opacity: 0.7; }
    70%  { transform: translate(-60px, -20px) scale(0.8); opacity: 0.3; }
    100% { transform: translate(-80px, 10px) scale(0.3); opacity: 0; }
}
@keyframes particle-diffuse-2 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0; }
    10%  { opacity: 1; }
    40%  { transform: translate(35px, 35px) scale(1.5); opacity: 0.7; }
    70%  { transform: translate(65px, 18px) scale(0.8); opacity: 0.3; }
    100% { transform: translate(85px, -12px) scale(0.3); opacity: 0; }
}
@keyframes mint-core-pulse { 0%,100%{opacity:1;filter:brightness(1);} 50%{opacity:.9;filter:brightness(1.8);} }
@keyframes mint-edge-glow { 0%,100%{opacity:.8;filter:drop-shadow(0 0 5px rgba(255,82,82,.8));} 50%{opacity:1;filter:drop-shadow(0 0 12px rgba(255,82,82,1));} }
@keyframes mint-texture-rotate { 0%{transform:rotate(0deg);opacity:0.3;} 50%{transform:rotate(180deg);opacity:0.5;} 100%{transform:rotate(360deg);opacity:0.3;} }
/* 旧mint-halo/mint-particle已由漫射系统替代 */

/* ==================== 子页面容器 ==================== */
.subpages-container {
    position: fixed; top: 0; left: 100%; width: 100%; height: 100%;
    background: var(--dark-gradient); z-index: 2000; transition: left 0.3s ease; overflow-y: auto; padding-bottom: 80px;
}
.subpages-container.active { left: 0; }
.subpage { display: none; padding: 0 16px; }
.subpage.active { display: block; }
.subpage-header { display: flex; align-items: center; gap: 12px; padding: 16px 0; position: sticky; top: 0; background: linear-gradient(to bottom, var(--dark) 0%, var(--dark) 80%, transparent 100%); z-index: 100; }
.back-btn {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 10px;
    color: var(--light); transition: all var(--transition-fast);
}
.back-btn:hover { background: var(--glass-bg-light); }
.back-btn svg { width: 18px; height: 18px; }
.subpage-title { font-size: 18px; font-weight: 600; flex: 1; }

/* ==================== 滚动条 ==================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 2px; }

/* ==================== 响应式设计 ==================== */

/* PC端 (>769px) - DApp居中显示为手机模拟 */
@media (min-width: 769px) {
    body {
        background: var(--dark-gradient);
    }

    .app-bg {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 0;
    }

    .app-container {
        max-width: 430px;
        margin: 0 auto;
        min-height: 100vh;
        height: auto;
        padding-bottom: calc(70px + var(--safe-area-bottom));
        padding-top: 0;
        width: 100%;
        position: relative;
        z-index: 1;
    }

    .bottom-nav {
        max-width: 430px;
        left: 50%;
        transform: translateX(-50%);
    }

    .subpages-container {
        max-width: 430px;
        left: 100%;
    }
    .subpages-container.active {
        left: calc(50% - 215px);
    }
}

/* 移动端设备 (<=430px) */
@media (max-width: 430px) {
    html { font-size: 14px; }

    .app-container {
        max-width: 100%;
        padding: 0 12px;
        padding-bottom: calc(60px + var(--safe-area-bottom));
    }

    .page-header { padding: 12px 0; }
    .logo-text, .logo-text-gradient { font-size: 16px; }
    .page-title { font-size: 18px; }
    .icon-btn { width: 36px; height: 36px; }

    .home-main-title { font-size: 28px; }
    .integration-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px; border-radius: 14px; }
    .integration-card { border-radius: 10px; }

    .mint-title { font-size: 20px; }
    .algo-title { font-size: 19px; }
    .mint-action-btn { padding: 5px 10px; font-size: 11px; }
    .algo-card { padding: 14px; }
    .time-label { font-size: 16px; }
    .algo-deploy-btn { padding: 11px; font-size: 14px; }

    .chart-container { height: 150px; }
    .action-grid { gap: 8px; }
    .action-btn { padding: 12px 6px; }
    .hash-cards { grid-template-columns: 1fr; }
    .balance-value { font-size: 24px; }

    .wallet-main-title { font-size: 20px; }
    .price-value { font-size: 15px; }
    .asset-balance-num { font-size: 28px; }
    .wallet-price-section, .wallet-asset-card, .wallet-info-block { padding: 14px 14px; }
    .wallet-price-btn, .asset-action-btn { padding: 8px 0; font-size: 12px; }
    .ticket-mini-btn { font-size: 10px; padding: 4px 8px; }

    .profile-main-title { font-size: 20px; }
    .nickname-text { font-size: 18px; }
    .level-badge { font-size: 14px; }
    .invite-stats-grid { gap: 6px; }
    .invite-stat-num { font-size: 15px; }
    .qr-placeholder { width: 140px; height: 140px; }

    .bottom-nav { padding: 6px 0; padding-bottom: calc(6px + var(--safe-area-bottom)); }
    .nav-item { padding: 6px 12px; }
    .nav-icon.main.mint-icon { width: 36px; height: 36px; margin-top: 0; }
    .tech-mint-container { width: 36px; height: 36px; }
    .tech-mint { width: 30px; height: 30px; }

    .chat-container { height: 350px; }
    .contact-channels { grid-template-columns: 1fr; }
}

/* 小屏幕设备 (<360px) */
@media (max-width: 360px) {
    html { font-size: 12px; }

    .app-container { padding: 0 8px; min-height: 100vh; height: auto; }
    .page-header { padding: 8px 0; }
    .logo-text, .logo-text-gradient { font-size: 14px; }
    .page-title { font-size: 16px; }
    .icon-btn { width: 32px; height: 32px; }
    .btn { padding: 8px 14px; font-size: 12px; }
    .chart-container { height: 120px; }
    .balance-value { font-size: 20px; }
    .bottom-nav { padding: 4px 0; padding-bottom: calc(4px + var(--safe-area-bottom)); }
    .nav-item { padding: 4px 8px; }
    .nav-icon.main.mint-icon { width: 32px; height: 32px; margin-top: 0; }
    .tech-mint-container { width: 32px; height: 32px; }
    .tech-mint { width: 26px; height: 26px; }
    .chat-container { height: 300px; }

    .profile-main-title { font-size: 19px; }
    .nickname-text { font-size: 17px; }
    .level-card-head, .invite-link-section, .invite-qr-card { padding: 14px; }
    .qr-placeholder { width: 120px; height: 120px; }
    .invite-stat-num { font-size: 14px; }
}

/* 横屏模式优化 */
@media (orientation: landscape) and (max-width: 768px) {
    .app-container { max-width: 768px; padding: 16px; }
    .bottom-nav { max-width: 768px; padding-top: 12px; }
    .chart-container { height: 140px; }
}

/* iOS Safari 优化 */
@media (max-width: 430px) and (-webkit-min-device-pixel-ratio: 2) {
    .glass-card { backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); }
    .bottom-nav { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}

/* 防止内容溢出 */
@media (max-width: 430px) {
    .app-container { width: 100%; overflow: visible; }
    .page, .subpage { width: 100%; max-width: 100%; overflow-x: hidden; }
    .wallet-address, .invite-link { word-break: break-all; overflow-wrap: break-word; }
}

/* ==================== 通知提示 ==================== */
.notification {
    position: fixed; top: 100px; right: 20px; padding: 16px 24px;
    background: rgba(26, 26, 46, 0.95); backdrop-filter: blur(20px); border-radius: 12px;
    display: flex; align-items: center; gap: 12px; z-index: 3000;
    animation: slideIn 0.3s ease; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.notification-success { border: 1px solid rgba(72, 199, 142, 0.5); }
.notification-error { border: 1px solid rgba(245, 87, 108, 0.5); }
.notification-info { border: 1px solid rgba(102, 126, 234, 0.5); }
.notification-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; }
.notification-success .notification-icon { background: linear-gradient(135deg, #48c78e, #36b37e); }
.notification-error .notification-icon { background: linear-gradient(135deg, #f5576c, #f093fb); }
.notification-info .notification-icon { background: linear-gradient(135deg, #667eea, #764ba2); }
.notification-message { font-size: 14px; font-weight: 500; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ==================== 涟漪效果 ==================== */
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.3); transform: scale(0); animation: ripple-effect 0.6s ease-out; pointer-events: none; }
@keyframes ripple-effect { to { transform: scale(4); opacity: 0; } }

/* ==================== 科技感动画增强 ==================== */

/* 全局科技扫描线 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 0, 0, 0.02) 2px,
        rgba(255, 0, 0, 0.02) 4px
    );
    pointer-events: none;
    z-index: -1;
}

/* 扫描光束 */
@keyframes scan-beam {
    0% { top: -10%; }
    100% { top: 110%; }
}
.scan-beam::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), rgba(255,82,82,0.8), var(--primary), transparent);
    box-shadow: 0 0 15px var(--primary), 0 0 30px rgba(255,0,0,0.4);
    animation: scan-beam 4s linear infinite;
    z-index: 1;
    opacity: 0.6;
}
.app-container { position: relative; }
.app-container::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    width: calc(100% - 32px);
    max-width: 398px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,0,0,0.25), rgba(255,82,82,0.5), rgba(255,0,0,0.25), transparent);
    box-shadow: 0 0 10px rgba(255,0,0,0.3);
    animation: scan-beam 5s linear infinite;
    z-index: 2;
    pointer-events: none;
    opacity: 0.4;
}

/* 玻璃卡片科技边框发光 */
.glass-card {
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(255, 0, 0, 0.08),
        transparent 30%,
        transparent 70%,
        rgba(255, 82, 82, 0.08),
        transparent 100%
    );
    animation: card-rotate-glow 8s linear infinite;
    z-index: -1;
}
@keyframes card-rotate-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 卡片悬浮科技感增强 */
.glass-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.glass-card:hover {
    border-color: rgba(255, 0, 0, 0.35);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

/* 数据闪烁效果 */
@keyframes data-flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.7; }
    94% { opacity: 1; }
    96% { opacity: 0.8; }
    97% { opacity: 1; }
}
.price-value, .asset-balance-num, .info-block-value, .algo-title, .hash-number {
    animation: data-flicker 4s ease-in-out infinite;
}

/* 脉冲光环 */
@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.6; }
    50% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(0.95); opacity: 0.6; }
}
.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 20px rgba(255, 0, 0, 0.05);
    animation: pulse-ring 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* 导航栏科技光效 */
.bottom-nav {
    position: relative;
    overflow: hidden;
}
.bottom-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), rgba(255,82,82,0.9), var(--primary), transparent);
    animation: nav-scan 3s linear infinite;
}
@keyframes nav-scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 导航项激活态脉冲 */
.nav-item.active .nav-icon {
    animation: nav-icon-pulse 2s ease-in-out infinite;
}
@keyframes nav-icon-pulse {
    0%, 100% { filter: drop-shadow(0 0 3px rgba(255,0,0,0.5)); }
    50% { filter: drop-shadow(0 0 8px rgba(255,0,0,0.9)) drop-shadow(0 0 15px rgba(255,82,82,0.5)); }
}

/* 页面切换动画增强 */
.page.active {
    animation: pageEnter 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes pageEnter {
    0% { 
        opacity: 0; 
        transform: translateX(20px) scale(0.98);
        filter: blur(4px);
    }
    100% { 
        opacity: 1; 
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

/* 按钮点击波纹科技版 */
.btn, .mint-entry-btn, .ticket-mini-btn, .algo-deploy-btn, .wallet-price-btn, .asset-action-btn, .nav-item {
    position: relative;
    overflow: hidden;
}
.btn:active, .mint-entry-btn:active, .algo-deploy-btn:active, .nav-item:active {
    transition: transform 0.1s ease;
    transform: scale(0.96);
}

/* 排行榜项入场动画 */
.ranking-item {
    animation: slideInLeft 0.3s ease backwards;
}
.ranking-item:nth-child(1) { animation-delay: 0.05s; }
.ranking-item:nth-child(2) { animation-delay: 0.1s; }
.ranking-item:nth-child(3) { animation-delay: 0.15s; }
.ranking-item:nth-child(4) { animation-delay: 0.2s; }
.ranking-item:nth-child(5) { animation-delay: 0.25s; }
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 集成卡片悬浮科技效果 */
.integration-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.integration-card:hover {
    transform: translateY(-5px) scale(1.04) !important;
    border-color: var(--primary) !important;
    box-shadow:
        0 12px 35px rgba(255, 0, 0, 0.25),
        0 0 20px rgba(255, 0, 0, 0.1),
        inset 0 0 15px rgba(255, 0, 0, 0.05) !important;
    z-index: 3;
}
.integration-card:hover .integration-placeholder {
    background: linear-gradient(135deg, rgba(255,0,0,0.15), rgba(255,82,82,0.1));
    color: var(--primary);
}

/* 头部logo科技呼吸 */
.logo-text-gradient {
    animation: text-glow 3s ease-in-out infinite alternate, logo-pulse-subtle 4s ease-in-out infinite alternate;
}
@keyframes logo-pulse-subtle {
    0% { letter-spacing: 1px; }
    100% { letter-spacing: 2px; }
}

/* 标题打字机光标效果（可选装饰） */
.home-main-title {
    position: relative;
    display: inline-block;
}
.home-main-title::after {
    content: '_';
    color: var(--primary);
    animation: cursor-blink 1s step-end infinite;
    margin-left: 2px;
}
@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 算法卡片特殊科技边框 */
.algo-card {
    position: relative;
    overflow: hidden;
}
.algo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), rgba(255,82,82,0.7), var(--primary), transparent);
    animation: algo-border-flow 3s linear infinite;
}
@keyframes algo-border-flow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 数字滚动计数器效果 */
.invite-stat-num, .info-block-value, .sub-value {
    font-family: 'Courier New', 'SF Mono', monospace;
    font-variant-numeric: tabular-nums;
}

/* 通知消息科技风格升级 */
.notification {
    border-left: 3px solid var(--primary);
    backdrop-filter: blur(25px);
}
.notification-success { border-left-color: #48c78e; }
.notification-error { border-left-color: #f5576c; }

/* 底部导航背景网格纹理 */
.bottom-nav {
    background: 
        linear-gradient(rgba(26, 26, 46, 0.95), rgba(26, 26, 46, 0.98)),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 3px,
            rgba(255, 0, 0, 0.015) 3px,
            rgba(255, 0, 0, 0.015) 6px
        );
}

/* 粒子增强 - 更密集更亮 */
.particle {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 4px var(--primary), 0 0 8px rgba(255,0,0,0.3);
}
