/* 基础样式和重置 */
:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --text-color: #2A2A2A;
    --light-text: #6C757D;
    --bg-color: #ffffff;
    --light-bg: #F7F7F7;
    --dark-bg: #292F36;
    --border-color: #EBEBEB;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
}

a:hover {
    color: var(--secondary-color);
}

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

/* 按钮样式 */
.cta-button {
    display: inline-block;
    padding: 16px 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--secondary-color);
    transition: var(--transition);
    z-index: -1;
    border-radius: 50px;
}

.cta-button:hover {
    color: white;
    transform: translateY(-3px);
}

.cta-button:hover:before {
    width: 100%;
}

/* 标题样式 */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.2rem;
}

h1 {
    font-size: 3.2rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
}

h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
}

h3 {
    font-size: 1.8rem;
}

section {
    padding: 100px 0;
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    padding: 5px 0;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo a:before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

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

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 6px 0;
    position: relative;
}

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

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

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(78, 205, 196, 0.1) 100%);
    text-align: center;
    padding: 100px 0 80px;
    /* 减小padding，缩小整体高度 */
    overflow: hidden;
    position: relative;
}

.hero:before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    opacity: 0.05;
    border-radius: 50%;
    top: -100px;
    left: -100px;
    z-index: 0;
}

.hero:after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--secondary-color);
    opacity: 0.05;
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease;
}

.hero h1 span {
    color: var(--primary-color);
    position: relative;
}

.hero h1 span:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 6px;
    background: var(--accent-color);
    bottom: 8px;
    left: 0;
    z-index: -1;
    opacity: 0.6;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: var(--light-text);
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero .cta-button {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
    background-color: var(--secondary-color);
    /* 改变按钮颜色，区分于顶部 */
}

.hero .cta-button:before {
    background-color: var(--primary-color);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 游戏部分 */
.game-section {
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    /* 增加顶部padding，因为现在游戏区域在顶部，需要留出导航栏的空间 */
}

.game-section:before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: var(--accent-color);
    opacity: 0.05;
    top: -200px;
    right: -200px;
}

.game-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 0 auto;
    max-width: 900px;
    aspect-ratio: 16/9;
    background-color: var(--dark-bg);
    /* 移除透视效果和旋转 */
    position: relative;
}

/* 移除鼠标悬停效果 */
.game-container:hover {
    transform: none;
}

.game-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    z-index: 2;
}

.game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 特色部分 */
.features {
    position: relative;
    overflow: hidden;
}

.features:after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.05;
    bottom: -150px;
    left: -150px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.feature-card:hover:before {
    height: 100%;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
    transition: var(--transition);
}

.feature-card h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    transform: translateX(-50%);
    transition: var(--transition);
}

.feature-card:hover h3:after {
    width: 60px;
    background: var(--primary-color);
}

.feature-card p {
    color: var(--light-text);
    line-height: 1.7;
}

/* 关于部分 */
.about {
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.about:before,
.about:after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    z-index: 0;
}

.about:before {
    background-color: var(--primary-color);
    opacity: 0.04;
    top: -150px;
    right: -150px;
}

.about:after {
    background-color: var(--secondary-color);
    opacity: 0.05;
    bottom: -150px;
    left: -150px;
}

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

.about-text {
    max-width: 800px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* FAQ部分 */
.faq {
    position: relative;
    overflow: hidden;
}

.faq:before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    opacity: 0.05;
    top: -200px;
    left: -200px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.faq-question:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
}

.faq-item.active .faq-question:before,
.faq-question:hover:before {
    opacity: 1;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    transition: var(--transition);
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 25px;
}

.faq-answer p {
    margin-bottom: 20px;
    color: var(--light-text);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding-bottom: 20px;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-item:hover {
    transform: translateY(-3px);
}

.faq-item.active {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

/* 订阅部分 */
.newsletter {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.newsletter:before,
.newsletter:after {
    content: '';
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.newsletter:before {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -100px;
}

.newsletter:after {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -50px;
}

.newsletter h2,
.newsletter p {
    color: white;
    position: relative;
    z-index: 2;
}

.newsletter h2 {
    margin-bottom: 15px;
}

.newsletter h2:after {
    background-color: rgba(255, 255, 255, 0.3);
}

.newsletter p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    position: relative;
    z-index: 2;
}

.newsletter-form input {
    flex: 1;
    padding: 18px 20px;
    border-radius: 50px 0 0 50px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: white;
    font-size: 1rem;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-form button {
    padding: 0 30px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 0 50px 50px 0;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--accent-color);
    color: var(--dark-bg);
}

/* 页脚 */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.link-group h4 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.link-group h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.link-group a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    transition: var(--transition);
}

.link-group a:hover {
    color: white;
    transform: translateX(5px);
}

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

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.link-group a i {
    margin-right: 8px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

/* 政策页面样式 */
.policy-section {
    padding: 150px 0 80px;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
}

.policy-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.policy-content p,
.policy-content ul {
    margin-bottom: 1rem;
}

.policy-content ul {
    margin-left: 2rem;
}

/* 联系页面样式 */
.contact-section {
    padding: 150px 0 80px;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin: 40px 0;
}

.contact-info,
.contact-form {
    flex: 1;
    min-width: 300px;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

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

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

.faq-link {
    text-align: center;
    margin-top: 40px;
}

.faq-link h3 {
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    section {
        padding: 80px 0;
    }

    .hero {
        padding: 180px 0 100px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
        z-index: 998;
        gap: 40px;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 999;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 15px;
    }

    .newsletter-form input {
        border-radius: 50px;
        text-align: center;
    }

    .newsletter-form button {
        border-radius: 50px;
        padding: 15px;
    }

    .hero:before,
    .hero:after,
    .about:before,
    .about:after,
    .features:after,
    .game-section:before,
    .faq:before {
        display: none;
    }

    /* 在小屏幕上减小hero部分的间距 */
    .hero {
        padding: 70px 0 60px;
    }

    .game-section {
        padding-top: 90px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero {
        padding: 150px 0 80px;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .feature-card {
        padding: 30px 20px;
    }

    section {
        padding: 60px 0;
    }

    .about-text {
        padding: 30px 20px;
    }

    .faq-question h3 {
        font-size: 1.1rem;
    }
}

/* 滚动动画 */
.feature-card,
.about-text,
.faq-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.scrolled,
.about-text.scrolled,
.faq-item.scrolled {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(1) {
    transition-delay: 0.1s;
}

.feature-card:nth-child(2) {
    transition-delay: 0.2s;
}

.feature-card:nth-child(3) {
    transition-delay: 0.3s;
}

.feature-card:nth-child(4) {
    transition-delay: 0.4s;
}

.faq-item:nth-child(1) {
    transition-delay: 0.1s;
}

.faq-item:nth-child(2) {
    transition-delay: 0.2s;
}

.faq-item:nth-child(3) {
    transition-delay: 0.3s;
}

.faq-item:nth-child(4) {
    transition-delay: 0.4s;
}

/* 移动菜单动画 */
.mobile-menu-btn.active span {
    transition: transform 0.3s ease, opacity 0.3s ease;
}