:root {
    --primary-color: #ff1a4d;
    --primary-dark: #cc0028;
    --primary-light: #ff4d7a;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --text-light: #e8e8f0;
    --text-dim: #a0a0b8;
    --glass-bg: rgba(20, 20, 30, 0.6);
    --glass-border: rgba(255, 26, 77, 0.3);
    --glow-color: rgba(255, 26, 77, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#particle-canvas,
#ion-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

#ion-canvas {
    z-index: 2;
}

.glow-ambient {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    opacity: 0.3;
    animation: breathe 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes breathe {
    0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.4; transform: translate(-50%, -50%) scale(1.1); }
}

.main-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding: 60px 40px;
    z-index: 10;
}

.worlds-hero {
    text-align: center;
    padding: 40px 20px 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.worlds-title {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 1s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.worlds-subtitle {
    font-size: 18px;
    color: var(--text-dim);
    animation: fadeIn 1.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.version-cards {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.version-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 28px;
    padding: 50px 40px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-height: 240px;
    animation: slideInUp 0.8s ease;
    animation-fill-mode: both;
}

.version-card:nth-child(1) { animation-delay: 0.2s; }
.version-card:nth-child(2) { animation-delay: 0.4s; }
.version-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.version-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 26, 77, 0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.version-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: var(--primary-color);
    box-shadow: 0 30px 80px rgba(255, 26, 77, 0.4);
}

.version-card:hover::before {
    opacity: 1;
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.version-card:hover .card-glow {
    opacity: 0.8;
}

.version-card:active {
    transform: translateY(-8px) scale(1.01);
}

.version-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.version-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 26, 77, 0.15);
    border-radius: 20px;
    border: 2px solid var(--glass-border);
    transition: all 0.4s ease;
}

.version-card:hover .version-icon {
    background: rgba(255, 26, 77, 0.25);
    border-color: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
}

.version-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--primary-color);
}

.version-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-light);
}

.version-desc {
    font-size: 16px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 500px;
}

.version-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 26, 77, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--primary-light);
    transition: all 0.3s ease;
}

.version-card:hover .feature-tag {
    background: rgba(255, 26, 77, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.worlds-footer-hint {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    animation: fadeIn 2s ease;
}

.worlds-footer-hint p {
    font-size: 14px;
    color: var(--text-dim);
    font-style: italic;
}

.corner-quote {
    position: fixed;
    bottom: 40px;
    right: 40px;
    max-width: 300px;
    padding: 20px 24px;
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-dim);
    font-style: italic;
    z-index: 50;
    animation: fadeInUp 1.5s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .main-container {
        padding: 40px 20px;
    }
    
    .worlds-hero {
        padding: 20px 10px 40px;
    }
    
    .worlds-title {
        font-size: 32px;
    }
    
    .worlds-subtitle {
        font-size: 16px;
    }
    
    .version-cards {
        gap: 30px;
        padding: 10px;
    }
    
    .version-card {
        padding: 40px 30px;
        min-height: auto;
    }
    
    .version-icon {
        width: 70px;
        height: 70px;
    }
    
    .version-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .version-title {
        font-size: 26px;
    }
    
    .version-desc {
        font-size: 15px;
    }
    
    .feature-tag {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .corner-quote {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
}
