/* ========== 质押池增强样式 ========== */

/* 增强版质押池基础样式 */
.enhanced-pool {
    position: relative;
    /* overflow: visible !important; */ /* 禁用overflow:visible，防止光效超出边界导致鼠标事件抖动 */
}

/* 发光边框效果 */
.pool-glow-effect {
    position: absolute;
    inset: 0; /* 改为 0，不超出边界，防止触发鼠标事件抖动 */
    border-radius: 20px;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.3),
        rgba(139, 92, 246, 0.3));
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.5s ease;
    z-index: -1;
    pointer-events: none;
}

.enhanced-pool:hover .pool-glow-effect {
    opacity: 1;
    /* animation: pulseGlow 3s ease-in-out infinite; */ /* 禁用脉冲动画，防止抖动 */
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.6;
        /* transform: scale(1); */ /* 禁用缩放，防止抖动 */
    }
    50% {
        opacity: 1;
        /* transform: scale(1.02); */ /* 禁用缩放，防止抖动 */
    }
}

/* 代币图标包装器 */
.token-icon-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.token-icon-wrapper .token-icon {
    width: 48px;
    height: 48px;
    position: relative;
    z-index: 2;
}

/* 图标光晕效果 */
.icon-glow {
    position: absolute;
    inset: 0; /* 改为 0，不超出图标边界，防止触发鼠标事件 */
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(99, 102, 241, 0.4) 0%,
        transparent 70%);
    opacity: 0;
    filter: blur(10px);
    transition: all 0.4s ease;
    z-index: 1;
    /* animation: iconGlowPulse 3s ease-in-out infinite; */ /* 禁用图标光晕动画，防止抖动 */
}

@keyframes iconGlowPulse {
    0%, 100% {
        opacity: 0.3;
        /* transform: scale(1); */ /* 禁用缩放，防止抖动 */
    }
    50% {
        opacity: 0.7;
        /* transform: scale(1.1); */ /* 禁用缩放，防止抖动 */
    }
}

.enhanced-pool:hover .icon-glow {
    opacity: 1;
}

/* APY 高亮区域 */
.apy-highlight {
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.15),
        rgba(139, 92, 246, 0.15));
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.apy-highlight::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.6s ease;
}

.enhanced-pool:hover .apy-highlight::before {
    left: 100%;
}

.apy-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.apy-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    animation: apyShine 3s ease-in-out infinite;
}

@keyframes apyShine {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

.apy-sparkle {
    font-size: 1.5rem;
    animation: sparkleRotate 4s linear infinite;
}

@keyframes sparkleRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.2);
    }
    50% {
        transform: rotate(180deg) scale(1);
    }
    75% {
        transform: rotate(270deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* 统计数据网格布局 */
.pool-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pool-stats-grid .pool-stat {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.pool-stats-grid .pool-stat:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    /* transform: translateY(-2px); */ /* 禁用悬停位移，防止抖动 */
}

.stat-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.pool-stat:hover .stat-icon {
    filter: grayscale(0);
    /* transform: scale(1.1); */ /* 禁用图标缩放，防止抖动 */
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.stat-info .label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.stat-info .value {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.daily-rate {
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reward-estimate {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 增强版按钮 */
.enhanced-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.enhanced-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* 徽章图标 */
.badge-icon {
    font-size: 1rem;
    margin-right: 0.25rem;
}

.ribbon-icon {
    margin-right: 0.25rem;
}

/* ========== 最受欢迎池特殊样式 ========== */
.popular .pool-glow-effect {
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.4),
        rgba(168, 85, 247, 0.4));
}

.popular-glow {
    background: radial-gradient(circle,
        rgba(139, 92, 246, 0.5) 0%,
        transparent 70%);
}

.popular-ribbon {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    animation: ribbonPulse 2s ease-in-out infinite;
}

@keyframes ribbonPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(139, 92, 246, 0.6);
    }
}

.popular-badge {
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.2),
        rgba(168, 85, 247, 0.2));
    border-color: rgba(139, 92, 246, 0.5);
}

.popular-apy {
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.2),
        rgba(168, 85, 247, 0.2));
    border-color: rgba(139, 92, 246, 0.4);
}

.popular-btn {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.popular-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

/* ========== 高收益池特殊样式 ========== */
.gold-glow {
    background: linear-gradient(135deg,
        rgba(251, 191, 36, 0.3),
        rgba(245, 158, 11, 0.3));
}

.gold-icon-glow {
    background: radial-gradient(circle,
        rgba(251, 191, 36, 0.5) 0%,
        transparent 70%);
}

.gold-ribbon {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    animation: goldShimmer 3s ease-in-out infinite;
}

@keyframes goldShimmer {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(251, 191, 36, 0.6);
    }
}

.premium-badge {
    background: linear-gradient(135deg,
        rgba(251, 191, 36, 0.2),
        rgba(245, 158, 11, 0.2));
    border-color: rgba(251, 191, 36, 0.5);
}

.premium-apy {
    background: linear-gradient(135deg,
        rgba(251, 191, 36, 0.2),
        rgba(245, 158, 11, 0.2));
    border-color: rgba(251, 191, 36, 0.4);
}

.premium-apy .apy-value {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.premium-btn {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.premium-btn:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.4);
}

/* ========== 超高收益池特殊样式 ========== */
.ultra-glow {
    background: linear-gradient(135deg,
        rgba(255, 215, 0, 0.4),
        rgba(255, 193, 7, 0.4));
}

.ultra-icon-glow {
    background: radial-gradient(circle,
        rgba(255, 215, 0, 0.6) 0%,
        transparent 70%);
}

.ultra-ribbon {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a2e;
    font-weight: 700;
    animation: ultraShimmer 2s ease-in-out infinite;
}

@keyframes ultraShimmer {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 4px 35px rgba(255, 215, 0, 0.8);
    }
}

.ultra-badge {
    background: linear-gradient(135deg,
        rgba(255, 215, 0, 0.3),
        rgba(255, 193, 7, 0.3));
    border-color: rgba(255, 215, 0, 0.6);
}

.ultra-apy {
    background: linear-gradient(135deg,
        rgba(255, 215, 0, 0.2),
        rgba(255, 193, 7, 0.2));
    border-color: rgba(255, 215, 0, 0.5);
}

.ultra-apy .apy-value {
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: ultraGlow 2s ease-in-out infinite;
}

@keyframes ultraGlow {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    }
    50% {
        filter: brightness(1.4) drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
    }
}

.ultra-btn {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a2e;
    font-weight: 700;
}

.ultra-btn:hover {
    background: linear-gradient(135deg, #ffed4e, #ffd700);
    box-shadow: 0 8px 35px rgba(255, 215, 0, 0.5);
    color: #1a1a2e;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .apy-value {
        font-size: 2rem;
    }

    .pool-stats-grid {
        grid-template-columns: 1fr;
    }

    .apy-highlight {
        padding: 1.25rem;
    }

    .pool-stats-grid .pool-stat {
        padding: 0.875rem;
    }
}

@media (max-width: 480px) {
    .apy-value {
        font-size: 1.75rem;
    }

    .apy-label {
        font-size: 0.75rem;
    }

    .token-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .token-icon-wrapper .token-icon {
        width: 40px;
        height: 40px;
    }

    .stat-icon {
        font-size: 1.25rem;
    }

    .apy-sparkle {
        font-size: 1.25rem;
    }
}
