/* 基础样式 */
:root {
    --primary-color: #6e45e2;
    --secondary-color: #88d3ce;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --text-light: #f8f9fa;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark-color);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* 背景动画 */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle, .particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

.particle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 20%;
    left: 10%;
    animation-duration: 20s;
}

.particle:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 70%;
    animation-duration: 15s;
}

.particle:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 80%;
    left: 30%;
    animation-duration: 25s;
}

.particle:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 30%;
    left: 80%;
    animation-duration: 12s;
}

.particle:nth-child(5) {
    width: 250px;
    height: 250px;
    top: 70%;
    left: 20%;
    animation-duration: 18s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-100px) rotate(180deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

/* 导航栏 */
header {
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
}

.logo-text {
    transition: all 0.3s ease;
}

.logo-dot {
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.logo:hover .logo-text {
    color: var(--primary-color);
}

.logo:hover .logo-dot {
    transform: scale(1.5);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2.5rem;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

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

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 5px;
    transition: all 0.3s ease;
}

/* 主要内容 */
main {
    margin-top: 80px;
}

section {
    padding: 6rem 5%;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.highlight {
    color: var(--primary-color);
}

/* 英雄区域 */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glitch {
    position: relative;
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    animation: glitch-effect 3s infinite;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: var(--primary-color);
    z-index: -1;
    animation: glitch-effect 3s infinite reverse;
}

.glitch::after {
    color: var(--secondary-color);
    z-index: -2;
    animation: glitch-effect 2s infinite alternate-reverse;
}

@keyframes glitch-effect {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-3px, 3px);
    }
    40% {
        transform: translate(-3px, -3px);
    }
    60% {
        transform: translate(3px, 3px);
    }
    80% {
        transform: translate(3px, -3px);
    }
    100% {
        transform: translate(0);
    }
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn.primary {
    background: var(--gradient);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(110, 69, 226, 0.4);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(110, 69, 226, 0.6);
}

.btn.secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 立方体动画 */
.cube-animation {
    perspective: 1000px;
    width: 200px;
    height: 200px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 10s infinite linear;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    opacity: 0.8;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.front {
    background: linear-gradient(45deg, var(--primary-color), rgba(110, 69, 226, 0.5));
    transform: translateZ(100px);
}

.back {
    background: linear-gradient(45deg, var(--secondary-color), rgba(136, 211, 206, 0.5));
    transform: rotateY(180deg) translateZ(100px);
}

.right {
    background: linear-gradient(45deg, var(--accent-color), rgba(255, 107, 107, 0.5));
    transform: rotateY(90deg) translateZ(100px);
}

.left {
    background: linear-gradient(45deg, #4e54c8, rgba(78, 84, 200, 0.5));
    transform: rotateY(-90deg) translateZ(100px);
}

.top {
    background: linear-gradient(45deg, #8f94fb, rgba(143, 148, 251, 0.5));
    transform: rotateX(90deg) translateZ(100px);
}

.bottom {
    background: linear-gradient(45deg, #a18cd1, rgba(161, 140, 209, 0.5));
    transform: rotateX(-90deg) translateZ(100px);
}

@keyframes rotate {
    from {
        transform: rotateX(0) rotateY(0) rotateZ(0);
    }
    to {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

/* 功能区域 */
.features {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(110, 69, 226, 0.5);
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    color: var(--text-light);
    font-size: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
}

/* 关于区域 */
.about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.about-content {
    flex: 1;
    max-width: 600px;
}

.about-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gradient-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary-color),
        var(--secondary-color),
        var(--accent-color),
        var(--primary-color)
    );
    animation: rotate-gradient 10s linear infinite;
    filter: blur(20px);
    opacity: 0.5;
}

@keyframes rotate-gradient {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* 联系区域 */
.contact {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(110, 69, 226, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* 页脚 */
footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

.footer-links a {
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero, .about {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content, .about-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }
    
    h2::after {
        left: 25%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 50%;
        height: calc(100vh - 80px);
        background: rgba(26, 26, 46, 0.9);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.5s ease;
        backdrop-filter: blur(10px);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }
    
    .burger {
        display: block;
    }
    
    .burger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .burger.active .line2 {
        opacity: 0;
    }
    
    .burger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    section {
        padding: 4rem 5%;
    }
    
    .glitch {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .cube-animation {
        width: 150px;
        height: 150px;
    }
    
    .face {
        width: 150px;
        height: 150px;
    }
    
    .front {
        transform: translateZ(75px);
    }
    
    .back {
        transform: rotateY(180deg) translateZ(75px);
    }
    
    .right {
        transform: rotateY(90deg) translateZ(75px);
    }
    
    .left {
        transform: rotateY(-90deg) translateZ(75px);
    }
    
    .top {
        transform: rotateX(90deg) translateZ(75px);
    }
    
    .bottom {
        transform: rotateX(-90deg) translateZ(75px);
    }
}