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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding-bottom: 100px;
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

/* 添加动态背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
}

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

/* 顶部钱包区域 */
.header {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.mine-actions {
    margin-top: 20px;
    text-align: center;
}

.inline-action .mine-btn {
    max-width: 100%;
}

.mine-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #06beb6 0%, #48b1bf 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(6, 190, 182, 0.4);
}

.mine-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(6, 190, 182, 0.5);
}

.mine-btn:active {
    transform: scale(0.97);
}

.mine-btn.secondary {
    margin-top: 12px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    box-shadow: 0 10px 25px rgba(250, 208, 196, 0.35);
}

.mine-btn.outline {
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    box-shadow: none;
}

.mine-btn.outline:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mine-tip {
    margin: 10px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.header:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.wallet-info-bar {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.wallet-address {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    word-break: break-all;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
}

.wallet-balance {
    font-size: 20px;
    font-weight: bold;
    color: #4ade80;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.refresh-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.refresh-btn:hover {
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.refresh-btn:active {
    transform: rotate(360deg) scale(0.95);
}

.wrong-network {
    text-align: center;
    padding: 24px;
    background: rgba(255, 193, 7, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 193, 7, 0.3);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.warning-icon {
    font-size: 56px;
    margin-bottom: 12px;
    animation: pulse 2s infinite;
}

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

.warning-text {
    font-size: 16px;
    color: #ffc107;
    font-weight: bold;
    line-height: 1.6;
}

.global-warning {
    margin-bottom: 16px;
}

/* 主要内容 */
.main-content {
    margin-bottom: 20px;
}

.invest-plan-card,
.invest-status-card,
.invest-action-card,
.redeem-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.invest-plan-header {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.invest-plan-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.invest-plan-item {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-range {
    font-size: 14px;
    font-weight: 600;
    color: #4ade80;
}

.plan-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 6px;
}

.invest-plan-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 12px;
    line-height: 1.6;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.status-item {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-item span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.status-item strong {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    font-family: 'Courier New', monospace;
}

.redeem-status {
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #fbbf24;
}

.redeem-countdown {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.invest-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

.invest-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 15, 35, 0.8);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    margin-bottom: 12px;
}

.invest-input:focus {
    border-color: #ff9a9e;
    box-shadow: 0 0 0 3px rgba(255, 154, 158, 0.2);
}

.invest-tip,
.invest-hint,
.invest-address,
.redeem-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
    line-height: 1.5;
}

.invest-address span:last-child {
    font-family: 'Courier New', monospace;
    display: inline-block;
    margin-left: 6px;
    color: #4ade80;
}

.invest-error {
    margin-top: 12px;
    font-size: 12px;
    color: #f87171;
}

.redeem-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #1f1f1f;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 25px rgba(253, 160, 133, 0.35);
}

.redeem-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.redeem-btn:not(:disabled):hover {
    transform: translateY(-2px);
}

.redeem-note {
    text-align: center;
}

.bonus-pool-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.bonus-pool-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.bonus-pool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.bonus-pool-card h2 {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.bonus-amount {
    font-size: 28px;
    font-weight: bold;
    color: #4ade80;
    word-break: break-all;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
    position: relative;
    z-index: 1;
    font-family: 'Courier New', monospace;
}

/* 合并后的统计卡片 */
.stats-card-merged {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stats-card-merged::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(1);
}

.stats-card-merged:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(102, 126, 234, 0.3);
}

.stat-item-merged {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.stat-item-merged:first-child {
    padding-top: 0;
}

.stat-item-merged:last-child {
    padding-bottom: 0;
}

.stat-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 8px 0;
}

.stat-label-merged {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value-merged {
    font-size: 16px;
    font-weight: 600;
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
    font-family: 'Courier New', monospace;
    text-align: right;
    min-width: 120px;
}

/* 保留旧的样式以兼容 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 14px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* 收益说明卡片 */
.rewards-info-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.rewards-info-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.rewards-range {
    font-size: 13px;
    font-weight: 600;
    color: #4ade80;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.3);
}

.rewards-details {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* 页面内容 */
.page-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s;
}

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

.page-content h2 {
    font-size: 22px;
    margin-bottom: 24px;
    color: #fff;
    font-weight: 600;
    text-align: center;
}

.info-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
    border-radius: 8px;
    padding-left: 12px;
    padding-right: 12px;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

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

.info-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    word-break: break-all;
    text-align: right;
    max-width: 60%;
    font-family: 'Courier New', monospace;
}

.language-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.withdraw-card .info-item {
    padding-left: 0;
    padding-right: 0;
}

.withdraw-form {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
}

.withdraw-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.withdraw-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 15, 35, 0.8);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

.withdraw-input:focus {
    border-color: #48b1bf;
    box-shadow: 0 0 0 3px rgba(72, 177, 191, 0.2);
}

.withdraw-btn {
    margin-top: 8px;
}

.withdraw-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    line-height: 1.5;
}

.withdraw-history {
    margin-top: 24px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
}

.withdraw-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.withdraw-refresh {
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.withdraw-refresh:hover {
    background: rgba(59, 130, 246, 0.35);
}

.withdraw-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.withdraw-history-item {
    background: rgba(15, 15, 35, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

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

.withdraw-amount {
    font-size: 16px;
    font-weight: 700;
    color: #fbbf24;
}

.withdraw-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.withdraw-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.withdraw-status.pending {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.withdraw-status.done {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.withdraw-empty {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.language-btn {
    width: 100%;
    padding: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.language-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

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

.language-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.language-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.language-btn:active {
    transform: scale(0.97);
}

/* 添加加载动画 */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* 添加数字滚动效果 */
@keyframes numberPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.bonus-amount.updating {
    animation: numberPulse 0.5s;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .bonus-amount {
        font-size: 28px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .stats-grid {
        gap: 10px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stats-card-merged {
        padding: 16px;
    }
    
    .stat-item-merged {
        padding: 10px 0;
    }
    
    .stat-label-merged {
        font-size: 13px;
    }
    
    .stat-value-merged {
        font-size: 14px;
        min-width: 100px;
    }
    
    .header {
        padding: 16px;
    }
    
    .bonus-pool-card {
        padding: 16px;
    }
    
    .wallet-balance {
        font-size: 18px;
    }
}

/* 添加滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

/* 底部设置按钮 */
.bottom-settings {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.settings-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

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

.settings-btn:first-child {
    background: linear-gradient(135deg, #06beb6 0%, #48b1bf 100%);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(6, 190, 182, 0.4);
}

.settings-btn:first-child:hover {
    background: linear-gradient(135deg, #05a89a 0%, #3a9ba8 100%);
    box-shadow: 0 6px 20px rgba(6, 190, 182, 0.5);
}

@media (max-width: 480px) {
    .bottom-settings {
        gap: 6px;
        padding: 8px 10px;
    }
    .settings-btn {
        font-size: 12px;
        padding: 8px;
    }
}

