:root {
    --primary: #6366f1;
    --primary-light: #8b5cf6;
    --dark-bg: #0f172a;
    --card-bg: rgba(15, 23, 42, 0.6);
    --border-glow: rgba(99, 102, 241, 0.3);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: radial-gradient(circle at top right, #1e293b 0%, var(--dark-bg) 80%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* 背景效果 */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
    background-attachment: fixed;
}

.grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* 头部区域 */
.hero {
    position: relative;
    z-index: 1;
    padding: 20vh 5vw 15vh;
    text-align: center;
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.logo {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    z-index: 1;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    filter: blur(40px);
    opacity: 0.2;
    z-index: 0;
}

.slogan {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 10vh;
    letter-spacing: 0.5px;
}

/* 空间卡片容器 */
.spaces-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
    perspective: 1000px;
}

.space-card {
    background: var(--card-bg);
    border-radius: 1.2rem;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(99, 102, 241, 0.15);
    position: relative;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    transform-style: preserve-3d;
    overflow: hidden;
}

.space-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        var(--border-glow) 50%,
        transparent 100%
    );
    transform: rotate(30deg);
    transition: all 0.8s ease;
    opacity: 0;
}

.space-card:hover::before {
    opacity: 1;
    left: 150%;
}

.space-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px var(--border-glow);
    border-color: rgba(99, 102, 241, 0.3);
}

.space-icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
    transition: transform 0.5s ease;
    transform: translateZ(20px);
}

.space-card:hover .space-icon {
    transform: translateZ(30px) scale(1.1);
    color: var(--primary-light);
}

.space-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    transform: translateZ(15px);
}

.space-desc {
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
    transform: translateZ(10px);
}

/* 页脚样式 */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 5rem 5vw 3rem;
    margin-top: 20vh;
    border-top: 1px solid rgba(148, 163, 184, 0.05);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-links a:hover::after {
    width: 100%;
}

.copyright {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .slogan {
        margin-bottom: 8vh;
    }
    .spaces-container {
        gap: 2.5rem;
    }
    .space-card {
        padding: 2.5rem 2rem;
    }
    .footer-links {
        gap: 1.5rem;
    }
}
    