/* 科技风格移动端样式 */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
    /* 主色调 - 橙色科技风 */
    --primary-color: #FF6B35;
    --primary-light: #FF8A65;
    --primary-dark: #E65100;
    
    /* 辅助色 */
    --secondary-color: #00E5FF;
    --accent-color: #FFD54F;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --error-color: #F44336;
    
    /* 背景色 */
    --bg-primary: #0A0A0A;
    --bg-secondary: #1A1A1A;
    --bg-tertiary: #2A2A2A;
    --bg-card: rgba(26, 26, 26, 0.8);
    --bg-glass: rgba(255, 107, 53, 0.1);
    
    /* 文字色 */
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-accent: #FF6B35;
    
    /* 边框和阴影 */
    --border-color: rgba(255, 107, 53, 0.3);
    --shadow-glow: 0 0 20px rgba(255, 107, 53, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    /* 动画 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 229, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 213, 79, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.nav-container {
    max-width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
}

.nav-logo i {
    font-size: 24px;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 12px 0;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    padding: 0 20px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition-normal);
    padding: 8px 12px;
    border-radius: 15px;
    min-width: 60px;
    position: relative;
}

.bottom-nav-item:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-3px);
}

.bottom-nav-item.active {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 107, 53, 0.1));
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
    transform: translateY(-3px);
}

.bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
    transition: var(--transition-normal);
}

.bottom-nav-item.active i {
    filter: drop-shadow(0 0 10px var(--primary-color));
    animation: pulse-icon 2s ease-in-out infinite;
}

.bottom-nav-item span {
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
}

/* 底部导航图标脉冲动画 */
@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.wallet-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wallet-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 25px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-glow);
}

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

.wallet-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-size: 12px;
}

.disconnect-btn {
    background: var(--error-color);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    cursor: pointer;
}


/* 页面内容 */
.page-section {
    margin-top: 80px;
    margin-bottom: 90px;
    min-height: calc(100vh - 170px);
    padding: 20px;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-title {
    font-family: 'Orbitron', monospace;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* 卡片样式 */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0.8;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-icon {
    font-size: 24px;
    color: var(--primary-color);
    filter: drop-shadow(0 0 10px var(--primary-color));
}

/* 倒计时样式 */
.countdown-card {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(0, 229, 255, 0.1));
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    padding: 25px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.countdown-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    animation: rotate 10s linear infinite;
}

.countdown-card > * {
    position: relative;
    z-index: 1;
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.time-unit {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    padding: 15px 10px;
    min-width: 60px;
    text-align: center;
}

.time-unit span {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.8);
}

.time-unit label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.time-separator {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    animation: blink 1s infinite;
}

.countdown-text {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    color: var(--accent-color);
    margin-top: 15px;
}

/* 进度条样式 */
.progress-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.progress-stats {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    color: var(--primary-color);
}

.progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 1s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.progress-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.progress-item span:first-child {
    color: var(--text-secondary);
}

.progress-item span:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

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

.input-group input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 16px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    transition: var(--transition-normal);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    background: rgba(255, 107, 53, 0.05);
}

.input-suffix {
    position: absolute;
    right: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    pointer-events: none;
}

.max-btn {
    position: absolute;
    right: 60px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.max-btn:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

.balance-info {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
}

/* 按钮样式 */
.btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 20px;
    padding: 15px 30px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    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;
}

.btn:hover::before {
    left: 100%;
}

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

.btn:disabled {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #0097A7);
}

.btn-secondary:hover {
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.4);
}

/* 标签页 */
.tab-navigation {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 5px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 12px 15px;
    border-radius: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.tab-content {
    display: none;
}

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

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stat-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

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

/* 加载和消息 */
.loading-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: 9999;
    backdrop-filter: blur(10px);
}

.loading-content {
    text-align: center;
    color: var(--text-primary);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 107, 53, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.message-container {
    position: fixed;
    top: 100px;
    left: 20px;
    right: 20px;
    z-index: 9998;
}

.message {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(20px);
    animation: slideIn 0.3s ease;
}

.message.success {
    border-color: var(--success-color);
    background: rgba(76, 175, 80, 0.1);
}

.message.error {
    border-color: var(--error-color);
    background: rgba(244, 67, 54, 0.1);
}

.message.warning {
    border-color: var(--warning-color);
    background: rgba(255, 152, 0, 0.1);
}

.message-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.message-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
}

/* 动画 */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 53, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 107, 53, 0.6); }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .bottom-nav {
        padding: 10px 0;
    }
    
    .bottom-nav-container {
        padding: 0 15px;
    }
    
    .bottom-nav-item {
        padding: 6px 8px;
        min-width: 50px;
    }
    
    .bottom-nav-item i {
        font-size: 18px;
    }
    
    .bottom-nav-item span {
        font-size: 10px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .countdown-display {
        gap: 5px;
    }
    
    .time-unit {
        min-width: 50px;
        padding: 10px 5px;
    }
    
    .time-unit span {
        font-size: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* 特殊效果 */
.glow-effect {
    animation: glow 2s ease-in-out infinite;
}

.pulse-effect {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 隐藏桌面端元素 */
.desktop-only {
    display: none !important;
}

/* 移动端专用 */
.mobile-only {
    display: block !important;
}

/* 特性列表 */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: var(--transition-normal);
}

.feature-item:hover {
    background: rgba(255, 107, 53, 0.05);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.feature-item .feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.feature-content h4 {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.feature-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* 快速操作 */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.quick-actions .btn {
    text-decoration: none;
}

/* 交换箭头 */
.exchange-arrow {
    text-align: center;
    margin: 15px 0;
    color: var(--primary-color);
    font-size: 20px;
}

/* 预览区域 */
.reward-preview {
    background: rgba(255, 107, 53, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.preview-header h4 {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.preview-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.preview-item span:first-child {
    color: var(--text-secondary);
}

.preview-item span:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

/* 奖励显示 */
.reward-display {
    text-align: center;
    padding: 20px;
}

.reward-amount h4 {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.amount-value {
    font-family: 'Orbitron', monospace;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.amount-value .currency {
    font-size: 18px;
    color: var(--text-secondary);
    margin-left: 10px;
}

/* 信息项 */
.claim-info,
.unlock-info {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item span:first-child {
    color: var(--text-secondary);
}

.info-item span:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.success {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.status-badge.error {
    background: rgba(244, 67, 54, 0.2);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

/* 表单提示 */
.form-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* 资产卡片 */
.asset-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.asset-overview {
    margin-bottom: 30px;
}

.overview-card {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(0, 229, 255, 0.1));
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.overview-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    color: var(--text-primary);
}

.overview-header i {
    font-size: 24px;
    color: var(--primary-color);
}

.total-amount {
    font-family: 'Orbitron', monospace;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.total-amount .currency {
    font-size: 18px;
    color: var(--text-secondary);
    margin-left: 10px;
}

.value-breakdown {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.breakdown-item {
    text-align: center;
    flex: 1;
}

.breakdown-item span:first-child {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.breakdown-item span:last-child {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 刷新按钮 */
.refresh-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-normal);
}

.refresh-btn:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

/* 操作链接 */
.action-link {
    color: var(--primary-color);
    text-decoration: none;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.1);
    transition: var(--transition-fast);
}

.action-link:hover {
    background: rgba(255, 107, 53, 0.2);
    transform: scale(1.1);
}

/* 快速操作按钮 */
.quick-action-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    transition: var(--transition-normal);
}

.quick-action-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.quick-action-btn:disabled {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
}

/* 推荐链接 */
.referral-link {
    display: flex;
    gap: 10px;
    align-items: center;
}

.referral-link input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-primary);
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.copy-btn:hover {
    background: var(--primary-light);
}

/* 推荐地址 */
.referrer-address {
    font-family: 'monospace';
    font-size: 12px;
    color: var(--text-secondary);
}

/* 统计项 */
.referral-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.stat-item .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 余额行 */
.balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.balance-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

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

.balance-amount {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    color: var(--text-secondary);
}

.balance-actions {
    display: flex;
    gap: 10px;
}

/* 质押汇总 */
.staking-summary {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.staking-amount,
.staking-status {
    text-align: center;
}

.staking-amount .label,
.staking-status .label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.staking-amount .value,
.staking-status .value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 质押详情 */
.staking-details,
.referral-details {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row span:first-child {
    color: var(--text-secondary);
}

.detail-row span:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

/* 奖励汇总 */
.reward-summary {
    margin-bottom: 20px;
}

.reward-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    margin-bottom: 10px;
}

.reward-item.highlight {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

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

.reward-item .value {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.reward-item.highlight .value {
    color: var(--primary-color);
}

/* 奖励操作 */
.reward-actions {
    margin-top: 20px;
}

/* 交易历史 */
.transaction-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
}

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

.transaction-list {
    min-height: 200px;
}

.transaction-list:empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-transactions {
    text-align: center;
    color: var(--text-secondary);
}

.no-transactions i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* 交易项样式 */
.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.transaction-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.tx-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tx-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.tx-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tx-type {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
}

.tx-time {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'Rajdhani', sans-serif;
}

.tx-right {
    text-align: right;
}

.tx-amounts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.amount-main {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
}

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

.amount-secondary {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'Rajdhani', sans-serif;
}

.load-more {
    text-align: center;
    margin-top: 20px;
}

.load-more-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-normal);
}

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

/* 全宽卡片 */
.full-width {
    grid-column: 1 / -1;
}

/* 仪表板网格 */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* 兑换比例显示 */
.exchange-rate {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

/* 代币信息网格 */
.token-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.token-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.token-info-item .value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}

.contract-address {
    font-family: 'monospace';
    font-size: 12px !important;
    color: var(--primary-color) !important;
    cursor: pointer;
    transition: var(--transition-fast);
}

.contract-address:hover {
    color: var(--primary-light) !important;
    text-decoration: underline;
}

/* 输入图标 */
.input-icon {
    position: absolute;
    right: 20px;
    color: var(--text-secondary);
    font-size: 16px;
    pointer-events: none;
}

/* 质押统计网格 */
.staking-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

/* 质押主要内容 */
.staking-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.staking-form-container {
    order: 1;
}

.staking-info {
    order: 2;
}

/* 质押信息卡片 */
.staking-info .info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

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

.info-list li i {
    color: var(--success-color);
    font-size: 16px;
    flex-shrink: 0;
}

.info-list li span {
    color: var(--text-primary);
}

/* 计算示例 */
.calculation-example {
    background: rgba(255, 107, 53, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 15px;
    padding: 20px;
}

.example-title {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.example-content p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--text-primary);
    text-align: center;
}

.example-content p:first-child {
    font-weight: 600;
    color: var(--primary-color);
}

/* 操作按钮样式 */
.action-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 20px;
    padding: 15px 30px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.action-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;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.action-btn:disabled {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 分隔符样式 */
.separator {
    color: var(--text-secondary);
    font-weight: normal;
}

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

/* 脉冲效果 */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 107, 53, 0.6);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* 移动端优化 */
@media (max-width: 480px) {
    .countdown-display {
        gap: 8px;
    }
    
    .time-unit {
        min-width: 45px;
        padding: 12px 8px;
    }
    
    .time-unit span {
        font-size: 20px;
    }
    
    .time-unit label {
        font-size: 10px;
    }
    
    .progress-stats {
        font-size: 16px;
    }
    
    .token-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .token-info-item .value {
        max-width: 100%;
        text-align: left;
    }
    
    .input-group input {
        padding: 12px 15px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .max-btn {
        right: 15px;
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .input-suffix {
        right: 15px;
        font-size: 12px;
    }
}

/* 科技感光效 */
.tech-glow {
    position: relative;
}

.tech-glow::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.tech-glow:hover::after {
    opacity: 0.3;
}

/* 数据加载动画 */
.loading-data {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 107, 53, 0.2), rgba(255, 255, 255, 0.1));
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* 推荐人信息显示 */
.referrer-info {
    margin-bottom: 20px;
}

.referrer-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--success-color);
    border-radius: 15px;
    padding: 15px;
    color: var(--success-color);
}

.referrer-display i {
    font-size: 18px;
    margin-right: 10px;
}

.referrer-display span {
    flex: 1;
    font-weight: 600;
}

.clear-referrer-btn {
    background: rgba(244, 67, 54, 0.2);
    color: var(--error-color);
    border: 1px solid var(--error-color);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.clear-referrer-btn:hover {
    background: rgba(244, 67, 54, 0.3);
    transform: scale(1.1);
}

.clear-referrer-btn i {
    font-size: 14px;
    margin: 0;
}

/* 推荐人提示信息 */
.referrer-hint {
    margin-bottom: 20px;
}

.hint-content {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 15px;
    padding: 15px;
    color: var(--secondary-color);
    font-size: 14px;
}

.hint-content i {
    font-size: 16px;
    flex-shrink: 0;
}

.hint-content span {
    flex: 1;
    line-height: 1.4;
}

/* 当有推荐人时隐藏提示 */
.referrer-hint.hidden {
    display: none !important;
}

/* 质押状态内容 */
.staking-status-content {
    padding: 0;
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-item .label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.status-item .value {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 移动端优化状态网格 */
@media (max-width: 480px) {
    .status-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .status-item {
        padding: 12px;
    }
    
    .status-item .value {
        font-size: 13px;
    }
}

/* 邀请链接区域 */
.invite-section {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 193, 7, 0.1));
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 12px;
    animation: slideIn 0.3s ease-out;
}

.invite-header {
    text-align: center;
    margin-bottom: 15px;
}

.invite-header h4 {
    color: #ff6b6b;
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.invite-header p {
    color: #888;
    margin: 0;
    font-size: 14px;
}

.invite-link-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.invite-link-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.invite-input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.invite-input:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #ff5252, #ff7979);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

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

.invite-benefits {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 13px;
    color: #ccc;
}

.benefit-item i {
    color: #ff6b6b;
    font-size: 14px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端优化邀请链接 */
@media (max-width: 480px) {
    .invite-section {
        padding: 15px;
        margin-top: 15px;
    }
    
    .invite-link-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .invite-input {
        width: 100%;
    }
    
    .copy-btn {
        width: 100%;
        justify-content: center;
    }
    
    .invite-benefits {
        gap: 6px;
    }
    
    .benefit-item {
        padding: 6px 10px;
        font-size: 12px;
    }
}