/* ===== home_v2.css - Kite VPN 首页样式 ===== */

/* ===== 基础动画 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 动画类 */
.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}
.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}
.animate-scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}
.animate-glow {
    animation: glow-pulse 4s ease-in-out infinite;
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* 滚动触发动画 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* ===== 自定义 v2 样式 ===== */
.v2-grid-bg {
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}
.v2-glow {
    background: radial-gradient(circle, rgba(109,74,255,0.2) 0%, rgba(109,74,255,0.05) 40%, transparent 70%);
    animation: glow-pulse 4s ease-in-out infinite;
}
.v2-glow-2 {
    background: radial-gradient(circle, rgba(139,111,255,0.15) 0%, rgba(139,111,255,0.03) 40%, transparent 70%);
    animation: glow-pulse 4s ease-in-out infinite;
    animation-delay: 2s;
}

/* 白色渐变文字 - 增强版 */
.v2-gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #e8e8f0 30%, #c4c2d6 60%, #a5a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(109,74,255,0.3);
}

/* 副标题渐变 */
.v2-gradient-subtitle {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 50%, #4b5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== macOS 窗口 mockup 样式 - 升级版 ===== */
.mac-window {
    background: linear-gradient(180deg, #15161d 0%, #0f1016 100%);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 
        0 50px 100px -20px rgba(0,0,0,0.7),
        0 30px 60px -30px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.05),
        inset 0 1px 0 rgba(255,255,255,0.08);
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}
.mac-window:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 
        0 60px 120px -20px rgba(0,0,0,0.8),
        0 40px 80px -30px rgba(109,74,255,0.2),
        0 0 0 1px rgba(255,255,255,0.08),
        inset 0 1px 0 rgba(255,255,255,0.1);
}
.mac-titlebar {
    height: 38px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 10px;
}
.mac-dot { 
    width: 12px; 
    height: 12px; 
    border-radius: 50%;
    transition: transform 0.2s ease;
    position: relative;
}
.mac-dot::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 3px;
    width: 5px;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
}
.mac-dot:hover { transform: scale(1.1); }
.mac-dot-red { background: linear-gradient(180deg, #ff6b6b 0%, #ff5f56 100%); box-shadow: 0 0 0 0.5px rgba(0,0,0,0.2), inset 0 0 0 0.5px rgba(255,255,255,0.2); }
.mac-dot-yellow { background: linear-gradient(180deg, #ffd166 0%, #ffbd2e 100%); box-shadow: 0 0 0 0.5px rgba(0,0,0,0.2), inset 0 0 0 0.5px rgba(255,255,255,0.2); }
.mac-dot-green { background: linear-gradient(180deg, #6bcf7f 0%, #27c93f 100%); box-shadow: 0 0 0 0.5px rgba(0,0,0,0.2), inset 0 0 0 0.5px rgba(255,255,255,0.2); }
.mac-panel { 
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.05);
}

/* Badge 样式 */
.mock-badge-proxy {
    color: #34d399;
    background: linear-gradient(135deg, rgba(16,185,129,0.15) 0%, rgba(16,185,129,0.05) 100%);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(16,185,129,0.2);
    transition: all 0.3s ease;
}
.mock-badge-proxy:hover {
    background: linear-gradient(135deg, rgba(16,185,129,0.25) 0%, rgba(16,185,129,0.1) 100%);
    transform: scale(1.05);
}
.mock-badge-direct {
    color: #60a5fa;
    background: linear-gradient(135deg, rgba(59,130,246,0.15) 0%, rgba(59,130,246,0.05) 100%);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(59,130,246,0.2);
    transition: all 0.3s ease;
}
.mock-badge-direct:hover {
    background: linear-gradient(135deg, rgba(59,130,246,0.25) 0%, rgba(59,130,246,0.1) 100%);
    transform: scale(1.05);
}

/* 脉冲动画 - 增强版 */
@keyframes v2-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(2); opacity: 0; }
}
.v2-node-pulse {
    animation: v2-pulse 2.5s ease-out infinite;
}

/* 节点光晕 */
.node-glow {
    box-shadow: 0 0 20px rgba(109,74,255,0.5), 0 0 40px rgba(109,74,255,0.3);
}
.node-glow-green {
    box-shadow: 0 0 20px rgba(16,185,129,0.5), 0 0 40px rgba(16,185,129,0.3);
}

/* 信号条 */
.signal-bar { width: 4px; height: 14px; border-radius: 2px; }
.signal-good { background: linear-gradient(180deg, #34d399 0%, #10b981 100%); }
.signal-medium { background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%); }
.signal-off { background: #3f3f46; }

/* 功能卡片悬停效果 */
.feature-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(109,74,255,0.3);
}
.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}
.feature-icon {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* CTA 按钮增强 */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cta-button::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 ease;
}
.cta-button:hover::before {
    left: 100%;
}
.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(109,74,255,0.5);
}

/* 统计数字样式 */
.stat-number {
    background: linear-gradient(135deg, #ffffff 0%, #c4c2d6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 平台卡片 */
.platform-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.platform-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.05);
    border-color: rgba(109,74,255,0.3);
}

/* 路由规则项 */
.routing-item {
    transition: all 0.3s ease;
}
.routing-item:hover {
    background: rgba(255,255,255,0.03);
}

/* 玻璃态效果 */
.glass-panel {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
}
