/* ========================================
   ZEUS 预售海报弹窗 - 增强版样式
   更现代、更精致的设计
   ======================================== */

/* 遮罩层 */
.zeus-presale-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%),
                rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px) saturate(120%);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.zeus-presale-overlay.show {
    display: flex;
    opacity: 1;
}

/* 海报卡片 */
.zeus-presale-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    background: linear-gradient(135deg,
        rgba(17, 24, 39, 0.98) 0%,
        rgba(30, 41, 59, 0.98) 100%);
    border-radius: 20px;
    padding: 0;
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(99, 102, 241, 0.2),
        0 0 0 1px rgba(99, 102, 241, 0.3) inset;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.zeus-presale-overlay.show .zeus-presale-card {
    transform: scale(1) translateY(0);
}

/* 卡片发光边框动画 */
.zeus-presale-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 28px;
    padding: 2px;
    background: linear-gradient(135deg,
        #6366f1,
        #8b5cf6,
        #a78bfa,
        #6366f1);
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderGlow 3s ease infinite;
    pointer-events: none;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 顶部装饰条 */
.presale-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.5);
}

/* 关闭按钮 */
.presale-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
}

.presale-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
    transform: rotate(90deg) scale(1.1);
}

.presale-close svg {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.presale-close:hover svg {
    color: #ef4444;
}

/* 主要内容 */
.presale-content {
    padding: 32px 24px 24px;
    position: relative;
    z-index: 1;
}

/* 图标 */
.presale-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 6px 20px rgba(99, 102, 241, 0.4),
        0 0 0 1px rgba(139, 92, 246, 0.5) inset;
    position: relative;
    overflow: hidden;
}

.presale-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 20px 20px 0 0;
}

.presale-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* 标题 */
.presale-title {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.presale-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
}

/* 特色标签 */
.presale-tags {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.presale-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.15),
        rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    color: #a78bfa;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.presale-tag:hover {
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.25),
        rgba(139, 92, 246, 0.25));
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.presale-tag .tag-icon {
    font-size: 1.1rem;
}

/* 统计数据 */
.presale-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.95),
        rgba(30, 41, 59, 0.95));
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    padding: 14px 10px;
    margin-bottom: 18px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.presale-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: radial-gradient(ellipse at top,
        rgba(99, 102, 241, 0.08) 0%,
        transparent 70%);
    pointer-events: none;
}

.stat-box {
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg,
        transparent,
        rgba(99, 102, 241, 0.3),
        transparent);
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    font-family: 'Courier New', monospace;
}

.stat-value.highlight {
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 倒计时 */
.presale-countdown {
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.1),
        rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
}

.countdown-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.countdown-icon {
    font-size: 1.25rem;
}

.countdown-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
}

.countdown-num {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Courier New', monospace;
    line-height: 1;
    margin-bottom: 4px;
}

.countdown-text {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-transform: uppercase;
}

.countdown-sep {
    font-size: 1.2rem;
    color: rgba(139, 92, 246, 0.5);
    font-weight: 700;
    line-height: 1;
    margin: 0 2px;
}

/* 按钮 */
.presale-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.presale-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.presale-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent);
    transition: left 0.5s ease;
}

.presale-btn:hover::before {
    left: 100%;
}

.presale-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    background-size: 200% 200%;
    color: white;
    box-shadow:
        0 8px 24px rgba(99, 102, 241, 0.4),
        0 2px 10px rgba(139, 92, 246, 0.3);
    animation: buttonGradient 3s ease infinite;
}

@keyframes buttonGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.presale-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 12px 32px rgba(99, 102, 241, 0.5),
        0 5px 15px rgba(139, 92, 246, 0.4),
        0 0 40px rgba(99, 102, 241, 0.2);
}

.presale-btn-primary svg {
    width: 18px;
    height: 18px;
}

.presale-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.presale-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 底部提示 */
.presale-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(99, 102, 241, 0.15);
}

.presale-footer p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zeus-presale-overlay {
        padding: 15px;
    }

    .zeus-presale-card {
        max-width: 95%;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 20px;
    }

    .presale-content {
        padding: 32px 20px 24px;
    }

    .presale-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }

    .presale-icon svg {
        width: 30px;
        height: 30px;
    }

    .presale-title {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    .presale-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .presale-tags {
        gap: 6px;
        margin-bottom: 20px;
    }

    .presale-tag {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .presale-stats {
        padding: 16px 12px;
        gap: 12px;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .countdown-block {
        min-width: 45px;
    }

    .countdown-num {
        font-size: 1.5rem;
    }

    .countdown-text {
        font-size: 0.65rem;
    }

    .presale-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .presale-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
    }

    .presale-close svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .zeus-presale-overlay {
        padding: 8px;
    }

    .zeus-presale-card {
        max-width: 96%;
        border-radius: 16px;
    }

    .presale-content {
        padding: 28px 16px 20px;
    }

    .presale-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }

    .presale-icon svg {
        width: 26px;
        height: 26px;
    }

    .presale-title {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    .presale-subtitle {
        font-size: 0.8rem;
        margin-bottom: 16px;
    }

    .presale-tags {
        flex-wrap: wrap;
        gap: 4px;
        margin-bottom: 16px;
    }

    .presale-tag {
        font-size: 0.7rem;
        padding: 5px 8px;
    }

    .presale-stats {
        flex-direction: column;
        gap: 12px;
        padding: 12px 10px;
    }

    .stat-divider {
        width: 50px;
        height: 1px;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .countdown-timer {
        gap: 6px;
    }

    .countdown-block {
        min-width: 42px;
    }

    .countdown-num {
        font-size: 1.5rem;
    }

    .countdown-sep {
        font-size: 1.5rem;
    }
}
