/* ===== 变量与全局样式 ===== */
:root {
    --primary: #6a5af9;       /* 主色调 - 紫色 */
    --secondary: #42b883;     /* 辅助色 - 绿色 */
    --accent: #ff7aa2;        /* 强调色 - 粉色 */
    --light: #f8f9ff;         /* 浅色背景 */
    --dark: #2d3748;          /* 深色文本 */
    --card-bg: #ffffff;       /* 卡片背景 */
    --border: #e2e8f0;        /* 边框颜色 */
    --shadow: rgba(149, 157, 165, 0.15); /* 阴影颜色 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), #8a6dff);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(106, 90, 249, 0.25);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(106, 90, 249, 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title .divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 0 auto 25px;
    border-radius: 2px;
}

.section-title p {
    color: #718096;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
}

/* ===== 页眉样式 ===== */
header {
    padding: 25px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

header.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), #8a6dff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    box-shadow: 0 4px 15px rgba(106, 90, 249, 0.25);
}

.logo-icon i {
    color: white;
    font-size: 1.8rem;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--dark);
}

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

.nav-links {
    display: flex;
    gap: 40px;
}

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

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

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

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

.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark);
}

/* ===== 英雄区域 ===== */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9ff, #f0f2ff);
}

.hero::before {
    content: '';
    position: absolute;
    top: -300px;
    right: -300px;
    width: 700px;
    height: 700px;
    background: linear-gradient(135deg, rgba(106, 90, 249, 0.1), rgba(138, 109, 255, 0.1));
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--dark);
}

.hero h1 span {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.3rem;
    color: #4a5568;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-card {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(149, 157, 165, 0.2);
    overflow: hidden;
    border: 1px solid var(--border);
}

.card-header {
    background: linear-gradient(90deg, var(--primary), #8a6dff);
    padding: 20px;
    text-align: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.card-body {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background: var(--light);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(149, 157, 165, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(106, 90, 249, 0.1), rgba(138, 109, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary);
    font-size: 1.8rem;
}

.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* ===== 特点区域 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 15px 30px rgba(149, 157, 165, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(149, 157, 165, 0.2);
}

.feature-card .icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(106, 90, 249, 0.1), rgba(138, 109, 255, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2.2rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.7rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: #4a5568;
    margin-bottom: 25px;
}

/* ===== 游戏展示 ===== */
.games {
    background: linear-gradient(135deg, #f8f9ff, #f0f2ff);
}

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

.game-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 30px rgba(149, 157, 165, 0.1);
    transition: all 0.4s ease;
    border: 1px solid var(--border);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(149, 157, 165, 0.2);
}

.game-img {
    height: 220px;
    background: linear-gradient(135deg, var(--primary), #8a6dff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-img i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.9);
}

.game-content {
    padding: 25px;
}

.game-content h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.game-content p {
    color: #4a5568;
    margin-bottom: 20px;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.game-tag {
    background: rgba(106, 90, 249, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
}

/* ===== 团队展示 ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(149, 157, 165, 0.1);
    transition: all 0.4s ease;
    border: 1px solid var(--border);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(149, 157, 165, 0.2);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #8a6dff);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 8px 20px rgba(106, 90, 249, 0.25);
}

.team-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.team-card .position {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.team-card p {
    color: #4a5568;
    margin-bottom: 20px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(106, 90, 249, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

/* ===== 联系区域 ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(106, 90, 249, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    font-size: 1.5rem;
}

.contact-text h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.contact-text p {
    color: #4a5568;
    line-height: 1.7;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--dark);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(106, 90, 249, 0.2);
}

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

/* ===== 页脚 ===== */
footer {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    color: white;
}

.footer-col h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
}

.footer-col p {
    color: #a0aec0;
    margin-bottom: 20px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    padding: 12px 0;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 10px;
    color: var(--primary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
    font-size: 0.95rem;
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .nav-links {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero {
        padding-top: 140px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2.3rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}