/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #177CFF;
    --primary-purple: #4E38D8;
    --success-green: #10B981;
    --warning-orange: #F59E0B;
    --error-red: #EF4444;
    --dark-bg: #0A0B0F;
    --dark-secondary: #161822;
    --dark-tertiary: #1E2028;
    --glass-bg: rgba(22, 24, 34, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.06);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --bottom-nav-height: 80px;
    --gradient-primary: linear-gradient(135deg, #177CFF 0%, #4E38D8 100%);
    --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --gradient-card: linear-gradient(135deg, rgba(22, 24, 34, 0.8) 0%, rgba(30, 32, 40, 0.6) 100%);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-button: 0 4px 16px rgba(23, 124, 255, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    padding-bottom: var(--bottom-nav-height);
    /* 允许页面滚动，但禁用双击缩放 */
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* 移除fixed定位，允许正常滚动 */
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* 允许输入框选择文本 */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 主要内容区域可滚动 */
.main-content {
    padding: 20px 0 20px;
    min-height: calc(100vh - var(--bottom-nav-height) - 100px);
    overflow-y: auto;
    position: relative;
}

/* 专业横幅 */
.hero-banner {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(23, 124, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroGlow 4s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translateY(-50%) scale(0.8); opacity: 0.5; }
    100% { transform: translateY(-50%) scale(1.2); opacity: 0.8; }
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    box-shadow: var(--shadow-button);
    position: relative;
    overflow: hidden;
}

.hero-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: heroIconShimmer 3s ease-in-out infinite;
}

@keyframes heroIconShimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.hero-text h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.hero-stat {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat .stat-number {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--success-green);
    margin-bottom: 4px;
}

.hero-stat .stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* 动态背景 */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #0D0E14 0%, #1A1D29 50%, #0D0E14 100%);
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 15% 25%, rgba(23, 124, 255, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 85% 75%, rgba(78, 56, 216, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 10%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 40%);
    animation: backgroundShift 25s ease-in-out infinite;
}

.animated-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
    animation: dotPattern 30s linear infinite;
}

@keyframes dotPattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(25px, 25px); }
}

@keyframes backgroundShift {
    0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
    25% { transform: translateX(-10px) translateY(-20px) rotate(1deg); }
    50% { transform: translateX(10px) translateY(10px) rotate(-1deg); }
    75% { transform: translateX(-5px) translateY(15px) rotate(0.5deg); }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.shape {
    position: absolute;
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, var(--primary-blue), transparent);
    border-radius: 50%;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-purple), transparent);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 60%;
    right: 15%;
    animation-delay: -2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--success-green), transparent);
    border-radius: 20px;
    transform: rotate(45deg);
    bottom: 20%;
    left: 20%;
    animation-delay: -4s;
}

.shape-4 {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--warning-orange), transparent);
    border-radius: 50% 0;
    top: 30%;
    right: 30%;
    animation-delay: -6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(-40px) rotate(180deg); }
    75% { transform: translateY(-20px) rotate(270deg); }
}

/* 容器 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
    position: sticky;
    top: 0;
    background: rgba(13, 14, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 16px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    position: relative;
}

.logo-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 8px 32px rgba(23, 124, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.logo-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: logoShine 3s linear infinite;
}

@keyframes logoShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.brand-text h1 {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2px;
}

.brand-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.language-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2px;
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 44px;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(23, 124, 255, 0.3);
}

.wallet-connect-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(23, 124, 255, 0.25);
    min-height: 44px;
}

.wallet-connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(23, 124, 255, 0.4);
}

/* 页面切换 */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

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

/* 钱包状态卡片 */
.wallet-status-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wallet-status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.wallet-status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.12);
}

.wallet-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.wallet-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 8px 24px rgba(23, 124, 255, 0.3);
}

.wallet-info {
    flex: 1;
}

.wallet-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

.wallet-actions {
    display: flex;
    gap: 8px;
}

.copy-address-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-address-btn:hover {
    background: rgba(23, 124, 255, 0.2);
    color: var(--primary-blue);
}

.balance-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.balance-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.balance-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.balance-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--success-green);
}

/* 不同类型余额的颜色 */
.balance-value.total {
    color: #2563eb; /* 蓝色 - 总余额 */
}

.balance-value.available {
    color: #16a34a; /* 绿色 - 可用余额 */
}

.balance-value.mining {
    color: #dc2626; /* 红色 - 挖矿中余额 */
}

.balance-value.reward {
    color: #7c3aed; /* 紫色 - FDUSD收益余额 */
}

/* 收益记录状态指示器 */
.status-indicator {
    font-size: 8px;
    margin-right: 6px;
    vertical-align: middle;
}

.status-indicator.active {
    color: #10b981; /* 绿色 - 进行中 */
    animation: pulse 2s infinite;
}

.status-indicator.completed {
    color: #6b7280; /* 灰色 - 已完成 */
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 挖矿卡片 */
.mining-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mining-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.mining-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.12);
}

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

.mining-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.mining-header h2 i {
    color: var(--primary-blue);
}

.mining-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.connected {
    background: var(--success-green);
}

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

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.mining-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.input-with-button {
    display: flex;
    gap: 12px;
}

.input-with-button input {
    flex: 1;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
    min-height: 44px;
}

.input-with-button input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(23, 124, 255, 0.1);
}

.max-btn {
    padding: 14px 20px;
    background: rgba(23, 124, 255, 0.2);
    border: 1px solid var(--primary-blue);
    border-radius: 12px;
    color: var(--primary-blue);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 60px;
}

.max-btn:hover {
    background: var(--primary-blue);
    color: white;
}



.input-tips {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.period-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.period-option {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}

.period-option.active,
.period-option:hover {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    border-color: var(--primary-blue);
    color: white;
}

.earnings-preview {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(23, 124, 255, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.preview-row span:first-child {
    font-size: 14px;
    color: var(--text-secondary);
}

.preview-row span:last-child {
    font-size: 16px;
    font-weight: 600;
    color: var(--success-green);
}

.highlight-value {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--success-green) !important;
}

.mining-action-btn {
    width: 100%;
    padding: 20px 24px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: var(--shadow-button);
    min-height: 60px;
    position: relative;
    overflow: hidden;
}

.mining-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.6s;
}

.mining-action-btn:hover:not(:disabled)::before {
    left: 100%;
}

.mining-action-btn:hover:not(:disabled) {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 64px rgba(23, 124, 255, 0.6);
}

.mining-action-btn:active:not(:disabled) {
    transform: translateY(-2px) scale(1.01);
}

.mining-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 挖矿记录区域 */
.mining-records-section {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin: 24px 0;
    backdrop-filter: blur(10px);
}

.mining-records-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.mining-records-section h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.available-balance {
    color: var(--success-green);
    font-weight: 600;
    font-size: 14px;
}

.mining-records-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mining-record-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.mining-record-item:hover {
    border-color: rgba(23, 124, 255, 0.3);
    background: rgba(23, 124, 255, 0.05);
}

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

.mining-record-amount {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

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

.mining-record-progress {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.mining-record-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    background: var(--success-green);
    color: white;
    font-weight: 500;
}

.mining-record-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* 快速统计 */
.quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.stat-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

/* 项目介绍页面 */
.about-header {
    margin-bottom: 24px;
}

.about-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-header h2 i {
    color: var(--primary-blue);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.feature-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.feature-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow-button);
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: iconShimmer 3s ease-in-out infinite;
}

@keyframes iconShimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.feature-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 收益档位表 */
.tier-table-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tier-table-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.tier-table-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.12);
}

.tier-table-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tier-table-card h3::before {
    content: '🏆';
    font-size: 24px;
}

.tier-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tier-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(23, 124, 255, 0.15) 0%, rgba(78, 56, 216, 0.15) 100%);
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-blue);
    text-align: center;
    border: 1px solid rgba(23, 124, 255, 0.2);
}

.tier-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.tier-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.tier-row:hover::before {
    transform: scaleY(1);
}

.tier-row:hover {
    background: rgba(23, 124, 255, 0.08);
    border-color: rgba(23, 124, 255, 0.3);
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 24px rgba(23, 124, 255, 0.2);
}

.tier-row.highlighted {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(239, 68, 68, 0.12) 100%);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

.tier-row.highlighted::before {
    background: linear-gradient(180deg, #F59E0B 0%, #EF4444 100%);
    transform: scaleY(1);
}

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

.rate-value {
    font-weight: 700;
    font-size: 16px;
    color: var(--success-green);
}

.tier-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.tier-badge.bronze { background: rgba(205, 127, 50, 0.2); color: #cd7f32; }
.tier-badge.silver { background: rgba(192, 192, 192, 0.2); color: #c0c0c0; }
.tier-badge.gold { background: rgba(255, 215, 0, 0.2); color: #ffd700; }
.tier-badge.platinum { background: rgba(229, 228, 226, 0.2); color: #e5e4e2; }
.tier-badge.diamond { background: rgba(185, 242, 255, 0.2); color: #b9f2ff; }
.tier-badge.supreme { background: rgba(255, 20, 147, 0.2); color: #ff1493; }

/* 收益表页面 */
.earnings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.earnings-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.earnings-header h2 i {
    color: var(--primary-blue);
}

.earnings-filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    min-height: 36px;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    border-color: var(--primary-blue);
    color: white;
}

/* 收益统计卡片网格 */
.earnings-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0 30px;
    padding: 0 10px;
}

.earnings-stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.earnings-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
}

.earnings-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.earnings-stat-card.mining-card::before {
    background: linear-gradient(90deg, transparent 0%, #3b82f6 50%, transparent 100%);
}

.earnings-stat-card.referral-card::before {
    background: linear-gradient(90deg, transparent 0%, #ec4899 50%, transparent 100%);
}

.earnings-stat-card.today-card::before {
    background: linear-gradient(90deg, transparent 0%, #10b981 50%, transparent 100%);
}

.earnings-stat-card .stat-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
    line-height: 1;
}

.earnings-stat-card .stat-content {
    text-align: center;
    width: 100%;
}

.earnings-stat-card .stat-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin: 8px 0 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.earnings-stat-card .stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* 挖矿区域样式 */
.mining-section {
    margin: 25px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-count {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.mining-records-list,
.earnings-records-list {
    min-height: 100px;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.empty-subtitle {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.5);
}

.start-mining-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.start-mining-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 挖矿记录样式 */
.mining-record {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.mining-record:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.mining-record.active-record {
    border-left: 4px solid #3b82f6;
}

.mining-record.completed-record {
    border-left: 4px solid #10b981;
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.record-amount-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mining-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.mining-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
}

.mining-status.active {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.mining-status.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.record-progress {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 120px;
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 3px;
    transition: width 0.3s ease;
}

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

.earnings-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #10b981;
}

.earnings-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.record-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.detail-label {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.detail-value {
    color: #ffffff;
    font-weight: 600;
}

.detail-value.green {
    color: #10b981;
}

/* 收益记录样式 */
.earnings-record {
    display: flex;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.earnings-record:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

.earnings-record .record-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.earnings-record .record-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.earnings-record .record-type {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}

.earnings-record .record-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.earnings-record .record-amount {
    font-weight: 700;
    color: #10b981;
    font-size: 1rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .record-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .record-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .record-progress {
        width: 100%;
        align-items: flex-start;
    }
    
    .record-earnings {
        width: 100%;
        align-items: flex-start;
    }
    
    .mining-record {
        padding: 16px;
    }
    
    .detail-item {
        font-size: 0.85rem;
    }
}

.earnings-list {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    min-height: 200px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
}

/* 我的页面 */
.profile-header {
    margin-bottom: 24px;
}

.profile-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-header h2 i {
    color: var(--primary-blue);
}

.profile-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.profile-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.profile-stat {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--success-green);
    margin-bottom: 4px;
}

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

/* 邀请链接卡片 */
.invite-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
}

.invite-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.invite-header h3 i {
    color: var(--primary-blue);
}

.referral-code-display {
    margin-bottom: 20px;
}

.referral-code-display label,
.invite-link-section label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.code-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(23, 124, 255, 0.3);
}

.referral-code-text {
    flex: 1;
    font-size: 20px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: white;
    text-align: center;
    letter-spacing: 3px;
}

.copy-code-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 16px;
}

.copy-code-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.invite-link-section {
    margin-bottom: 16px;
}

.invite-link-container {
    display: flex;
    gap: 12px;
}

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

.copy-link-btn {
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px;
}

.copy-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(23, 124, 255, 0.4);
}

.invite-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.share-btn {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    min-height: 44px;
}

.share-btn:hover {
    background: rgba(23, 124, 255, 0.1);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.share-btn.telegram-btn:hover {
    background: rgba(34, 139, 230, 0.1);
    border-color: #228ae6;
    color: #228ae6;
}

.share-btn.twitter-btn:hover {
    background: rgba(29, 161, 242, 0.1);
    border-color: #1da1f2;
    color: #1da1f2;
}

/* 三级代理卡片 */
.referral-tree-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
}

.referral-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.referral-header h3 i {
    color: var(--primary-blue);
}

.referral-levels {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.referral-level {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.referral-level:hover {
    border-color: rgba(23, 124, 255, 0.3);
}

.level-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

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

.level-info {
    flex: 1;
}

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

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

.level-earnings-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 120px;
    gap: 2px;
}

.level-earnings {
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

.level-earnings.total {
    font-size: 16px;
    font-weight: 700;
    color: var(--success-green);
}

.level-earnings.pending {
    font-size: 12px;
    color: #ff6b35;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.pending-label {
    font-weight: 500;
    opacity: 0.8;
}

.pending-amount {
    font-weight: 600;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.level-users {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.no-users {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding: 20px;
}

/* 我的收益卡片 */
.my-earnings-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
}

.earnings-card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.earnings-card-header h3 i {
    color: var(--primary-blue);
}

.earnings-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.earnings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.earnings-item.total {
    padding-top: 16px;
    border-top: 2px solid var(--border-color);
    font-weight: 700;
}

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

.earnings-item.total .earnings-label {
    color: var(--text-primary);
    font-weight: 700;
}

.earnings-amount {
    font-size: 16px;
    font-weight: 600;
    color: var(--success-green);
}

.earnings-item.total .earnings-amount {
    font-size: 18px;
    font-weight: 700;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: rgba(13, 14, 20, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 20px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    min-width: 60px;
}

.nav-item i {
    font-size: 20px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.nav-item span {
    font-size: 12px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item.active i,
.nav-item.active span {
    color: var(--primary-blue);
}

.nav-item.active {
    background: rgba(23, 124, 255, 0.1);
}

.nav-item:hover:not(.active) i,
.nav-item:hover:not(.active) span {
    color: var(--text-secondary);
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

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

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    color: var(--text-primary);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

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

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

.modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.wallet-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.wallet-option {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 80px;
}

.wallet-option:hover {
    background: rgba(23, 124, 255, 0.1);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.wallet-option img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
}

.wallet-info {
    flex: 1;
}

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

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

/* 二维码模态框 */
.qr-content {
    text-align: center;
}

.qr-content #qrcode {
    margin-bottom: 16px;
}

.qr-content p {
    color: var(--text-secondary);
}

/* 通知 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 300px;
}

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

.notification.success .notification-icon {
    color: var(--success-green);
}

.notification.error .notification-icon {
    color: var(--error-red);
}

.notification.warning .notification-icon {
    color: var(--warning-orange);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header {
        padding: 12px 0;
    }
    
    .header .container {
        gap: 12px;
    }
    
    .logo-circle {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .brand-text h1 {
        font-size: 20px;
    }
    
    .brand-subtitle {
        font-size: 13px;
    }
    
    .language-toggle {
        padding: 1px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .wallet-connect-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .main-content {
        padding: 16px 0 16px;
    }
    
    .wallet-status-card,
    .mining-card,
    .tier-table-card,
    .profile-card,
    .invite-card,
    .referral-tree-card,
    .my-earnings-card {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .balance-display {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .period-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .earnings-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin: 15px 0 20px;
        padding: 0 5px;
    }
    
    .earnings-stat-card {
        padding: 18px 12px;
        min-height: 100px;
    }
    
    .earnings-stat-card .stat-icon {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .earnings-stat-card .stat-value {
        font-size: 1.3rem;
        margin: 6px 0 4px;
    }
    
    .earnings-stat-card .stat-label {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
    
    .mining-section {
        margin: 20px 0;
        padding: 16px;
    }
    
    .earnings-filters {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
    }
    
    .invite-actions {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .tier-header,
    .tier-row {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 8px;
        padding: 12px;
        font-size: 13px;
    }
    
    .modal {
        padding: 16px;
    }
    
    .modal-content {
        padding: 24px 20px;
    }
    
    .wallet-option {
        padding: 16px;
        min-height: 72px;
    }
    
    .wallet-option img {
        width: 40px;
        height: 40px;
    }
    
    .notification {
        top: 16px;
        right: 16px;
        left: 16px;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .notification-content {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .logo-circle {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .brand-text h1 {
        font-size: 18px;
    }
    
    .brand-subtitle {
        font-size: 12px;
    }
    
    .wallet-connect-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .main-content {
        padding: 12px 0 12px;
    }
    
    .wallet-status-card,
    .mining-card,
    .tier-table-card,
    .profile-card,
    .invite-card,
    .referral-tree-card,
    .my-earnings-card {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .wallet-header {
        gap: 12px;
    }
    
    .wallet-avatar,
    .profile-avatar {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .mining-header h2,
    .about-header h2,
    .earnings-header h2,
    .profile-header h2 {
        font-size: 20px;
    }
    
    .period-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .period-option {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .stat-item {
        padding: 16px;
        gap: 12px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .tier-header,
    .tier-row {
        padding: 10px 8px;
        font-size: 12px;
        gap: 6px;
    }
    
    .bottom-nav {
        padding: 0 12px;
    }
    
    .nav-item {
        padding: 6px 12px;
        min-width: 50px;
    }
    
    .nav-item i {
        font-size: 18px;
    }
    
    .nav-item span {
        font-size: 11px;
    }
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1560d9, #3d2db5);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-blue);
    animation: spin 1s ease-in-out infinite;
}

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

/* 移动端优化的特殊样式 */
@media (hover: none) and (pointer: coarse) {
    .stat-item:hover,
    .feature-card:hover,
    .earnings-stat-card:hover {
        transform: none;
    }
    
    .tier-row:hover {
        transform: none;
    }
    
    .wallet-option:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.05);
        border-color: var(--border-color);
    }
    
    .mining-action-btn:hover:not(:disabled) {
        transform: none;
    }
    
    .copy-address-btn:hover,
    .copy-link-btn:hover {
        transform: none;
    }
    
    .wallet-connect-btn:hover {
        transform: none;
    }
}

/* 安全区域适配 */
@supports (padding: max(0px)) {
    .main-content {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .header {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .bottom-nav {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    @media (max-width: 768px) {
        .main-content {
            padding-left: max(16px, env(safe-area-inset-left));
            padding-right: max(16px, env(safe-area-inset-right));
        }
        
        .header {
            padding-left: max(16px, env(safe-area-inset-left));
            padding-right: max(16px, env(safe-area-inset-right));
        }
        
        .bottom-nav {
            padding-left: max(16px, env(safe-area-inset-left));
            padding-right: max(16px, env(safe-area-inset-right));
        }
    }
}

/* 新增的余额加载动画 */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

/* 余额加载状态 */
.balance-loading {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.balance-loading .loading-spinner {
    width: 12px;
    height: 12px;
    border-width: 1px;
}

/* 挖矿输入框加载状态 */
.mining-amount-container {
    position: relative;
}

.mining-amount-container.loading::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 余额显示区域加载状态 */
.balance-item.loading {
    position: relative;
    color: transparent;
}

.balance-item.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 按钮加载状态增强 */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: white;
}

/* 小按钮样式 */
.btn-small {
    padding: 4px 8px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
}

.btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-small.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-small.btn-info:hover {
    background: #138496;
}

.btn-small.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-small.btn-warning:hover {
    background: #e0a800;
}

.btn-small.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-small.btn-secondary:hover {
    background: #5a6268;
}

.btn-small i {
    font-size: 10px;
}

/* 记录操作按钮容器 */
.record-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

/* 模态框样式增强 */
.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.modal-footer .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-footer .btn-warning {
    background: #ffc107;
    color: #212529;
}

.modal-footer .btn-warning:hover {
    background: #e0a800;
}

.modal-footer .btn-secondary {
    background: #6c757d;
    color: white;
}

.modal-footer .btn-secondary:hover {
    background: #5a6268;
}

/* 挖矿状态样式 */
.status-active {
    color: var(--warning-orange) !important;
}

.status-pending {
    color: var(--info-blue) !important;
}

.status-settled {
    color: var(--success-green) !important;
}

.status-completed {
    color: var(--success-green) !important;
}

.status-expired {
    color: var(--error-red) !important;
}

.mining-status.status-active {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid var(--warning-orange);
}

.mining-status.status-pending {
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid var(--info-blue);
}

.mining-status.status-settled {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--success-green);
}

.mining-status.status-completed {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--success-green);
}

.mining-status.status-expired {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--error-red);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .mining-record-item,
    .earnings-record-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .record-status {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 8px;
    }

    .record-actions {
        margin-top: 4px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

/* 二维码相关样式 */
.qr-code-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
}

.qr-code-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-button);
}

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

.qr-code-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    margin-top: 16px;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: fadeInUp 0.3s ease;
}

.qr-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 600;
}

.close-qr-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-qr-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

#qrCodeCanvas {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin: 0 auto;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.qr-code-tip {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 16px;
    line-height: 1.4;
}

/* 调整邀请链接容器样式，适应新的二维码按钮 */
.invite-link-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.invite-link-container input {
    flex: 1;
    min-width: 0; /* 允许输入框收缩 */
}

/* 响应式调整 */
@media (max-width: 480px) {
    .qr-code-container {
        padding: 16px;
        margin-top: 12px;
    }
    
    .qr-code-header {
        margin-bottom: 16px;
        font-size: 14px;
    }
    
    #qrCodeCanvas {
        padding: 12px;
        max-width: 100%;
    }
    
    .qr-code-tip {
        font-size: 13px;
        margin-top: 12px;
    }
}

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

/* 调整分成比率显示文字 */
.level-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}