/* Global Styles */
:root {
    --primary-color: #6c5ce7;
    --secondary-color: #fd79a8;
    --accent-color: #00cec9;
    --dark-color: #2d3436;
    --light-color: #f9f9f9;
    --text-color: #333;
    --text-light: #f5f5f5;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

body.no-scroll {
    overflow: hidden;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

h1, h2, h3, h4 {
    line-height: 1.3;
    margin-bottom: 15px;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(30, 30, 47, 0.95);
    box-shadow: 0 2px 10px rgba(108, 92, 231, 0.3);
    z-index: 1000;
    padding: 10px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.6rem;
    color: #fd79a8;
    margin-bottom: 0;
    text-shadow: 0 0 5px rgba(253, 121, 168, 0.5);
}

.desktop-nav ul {
    display: flex;
}

.desktop-nav ul li {
    margin-left: 25px;
}

.desktop-nav ul li a {
    font-weight: 600;
    color: var(--text-light);
    position: relative;
}

.desktop-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.desktop-nav ul li a:hover::after {
    width: 100%;
}

/* 移动导航 */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 30px;
    height: 3px;
    background-color: var(--text-light);
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: var(--text-light);
    transition: var(--transition);
}

.hamburger::before {
    transform: translateY(-10px);
}

.hamburger::after {
    transform: translateY(10px);
}

.mobile-nav-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
}

.mobile-nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: rgba(30, 30, 47, 0.98);
    padding: 80px 20px 20px;
    transition: right 0.3s ease-in-out;
    z-index: 999;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
}

.mobile-nav ul li {
    margin: 15px 0;
}

.mobile-nav ul li a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
}

/* Hero Section Styles */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e1e2f, #2c214b);
    color: var(--text-light);
    margin-top: 0;
    padding-top: 60px;
    padding-bottom: 40px;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 80% 70%, rgba(253, 121, 168, 0.15) 0%, transparent 50%);
    z-index: 1;
}

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

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
}

.hero-text h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fd79a8;
    text-shadow: 0 0 10px rgba(253, 121, 168, 0.5);
    line-height: 1.1;
}

.hero-text .subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #f5f5f5;
    font-weight: 300;
    line-height: 1.4;
}

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

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    filter: drop-shadow(0 0 15px rgba(108, 92, 231, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 991px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .hero-text h2 {
        font-size: 3rem;
    }
    
    .hero-text .subtitle {
        font-size: 1.3rem;
    }
    
    .hero-image {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 20px 0;
    }
    
    .hero-text h2 {
        font-size: 2.5rem;
    }
    
    .hero-text .subtitle {
        font-size: 1.2rem;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .logo img {
        height: 35px;
    }
    
    .game-container {
        height: 400px;
    }
    
    .fullscreen-btn {
        display: flex;
    }
}

@media (max-width: 576px) {
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .hero-text .subtitle {
        font-size: 1.1rem;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .logo img {
        height: 30px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .game-container {
        height: 300px;
    }
    
    .fullscreen-btn {
        width: 36px;
        height: 36px;
        right: 10px;
        top: 10px;
    }
}

/* Game Section Styles */
.game-section {
    text-align: center;
    background-color: #1e1e2f;
    color: var(--text-light);
    padding-top: 70px;
    padding-bottom: 90px;
    position: relative;
}

.game-section h2 {
    color: #fd79a8;
    text-shadow: 0 0 8px rgba(253, 121, 168, 0.4);
}

.game-container {
    margin-top: 30px;
    height: 600px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 25px rgba(108, 92, 231, 0.5);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid rgba(108, 92, 231, 0.3);
    position: relative;
}

#game-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #000;
    transition: all 0.3s ease;
}

.fullscreen-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(108, 92, 231, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.fullscreen-btn:hover {
    background-color: rgba(253, 121, 168, 0.9);
    transform: scale(1.1);
    opacity: 1;
}

.fullscreen-btn:focus {
    outline: none;
}

.fullscreen-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.game-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    max-width: 100%;
    margin: 0;
    z-index: 2000;
    border: none;
    border-radius: 0;
}

.game-container.fullscreen #game-iframe {
    height: 100vh;
}

.game-container.fullscreen .fullscreen-btn {
    top: 20px;
    right: 20px;
}

/* 在小屏幕上显示全屏按钮 */
@media (min-width: 769px) {
    .fullscreen-btn {
        display: none;
    }
}

/* Features Section Styles */
.features {
    background-color: var(--light-color);
    text-align: center;
}

.features h2 {
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #fff;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    color: var(--primary-color);
}

/* What Is Section Styles */
.what-is {
    background-color: #f5f7fa;
    padding: 90px 0;
}

.content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.text-content, .image-content {
    flex: 1;
    min-width: 300px;
}

.text-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.text-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 20px;
}

.text-content h4 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.game-features-list {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    height: 100%;
}

.game-features-list h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
}

.game-features-list ul {
    list-style-type: none;
}

.game-features-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.game-features-list li:last-child {
    border-bottom: none;
}

.game-features-list li strong {
    color: var(--secondary-color);
    margin-right: 10px;
    display: block;
    margin-bottom: 5px;
}

/* How To Play Section Styles */
.how-to-play {
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 90px 0;
}

.section-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.how-to-play-content {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: left;
}

.how-to-play-content .text-content {
    color: var(--text-light);
    width: 100%;
    flex: none;
}

.how-to-play-content p {
    color: rgba(255, 255, 255, 0.9);
}

.how-to-play-content h3 {
    color: #fff;
}

.how-to-play-content h4 {
    color: var(--accent-color);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.step {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px 25px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    height: 100%;
}

.step:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.step h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.step p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Why Play Section Styles */
.why-play {
    text-align: center;
    background-color: #fff;
    padding: 90px 0;
}

.why-play-content {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: left;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.reason-card {
    background-color: #fff;
    padding: 30px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--accent-color);
    height: 100%;
    text-align: left;
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.reason-card h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.reason-card p {
    color: #444;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .text-content, .image-content {
        width: 100%;
    }
    
    .how-to-play-content, .why-play-content {
        padding: 0 20px;
    }
    
    .text-content h3 {
        font-size: 1.6rem;
    }
    
    .text-content h4 {
        font-size: 1.3rem;
    }
    
    .section-description {
        padding: 0 20px;
        font-size: 1.1rem;
    }
}

/* FAQ Section Styles */
.faq {
    background-color: #f5f7fa;
    padding: 90px 0;
}

.faq-categories {
    margin-top: 40px;
    margin-bottom: 30px;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.category-tabs li {
    padding: 10px 20px;
    background-color: rgba(108, 92, 231, 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.category-tabs li:hover {
    background-color: rgba(108, 92, 231, 0.2);
}

.category-tabs li.active {
    background-color: var(--primary-color);
    color: #fff;
}

.faq-container {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.faq-container h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.faq-item {
    background-color: #fff;
    padding: 25px 30px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 0;
    font-size: 1.3rem;
    position: relative;
    padding-right: 30px;
    cursor: pointer;
}

.faq-answer {
    margin-top: 20px;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item h4::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.open h4::after {
    content: '−';
}

.faq-answer p {
    color: #444;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .faq-item {
        padding: 20px;
    }
    
    .faq-item h4 {
        font-size: 1.2rem;
    }
    
    .category-tabs {
        gap: 10px;
    }
    
    .category-tabs li {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 60px 0 20px;
}

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

.footer-logo h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.footer-links h4, .footer-social h4 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ddd;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

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

.social-icon {
    display: block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.language-selector {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ddd;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: #fff;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .language-selector {
        margin-top: 15px;
        justify-content: center;
    }
}

/* 页面加载动画 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e1e2f, #2c214b);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    animation: pulse-logo 2s infinite alternate;
}

.loader-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.spinner-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--primary-color);
    border-left-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-circle::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 4px solid transparent;
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.8s linear reverse infinite;
}

.loader-text {
    color: #fff;
    font-size: 16px;
    letter-spacing: 2px;
    animation: blink 1.5s infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse-logo {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(108, 92, 231, 0.5));
    }
    100% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px rgba(108, 92, 231, 0.8));
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Video Showcase Section */
.video-showcase {
    background-color: #1e1e2f;
    color: var(--text-light);
    padding: 90px 0;
    text-align: center;
}

.video-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
    justify-content: center;
}

.video-item {
    flex: 1;
    min-width: 300px;
    max-width: 560px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-description {
    padding: 20px;
    text-align: left;
}

.video-description h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.video-description p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .video-container {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .video-container {
        flex-direction: column;
        align-items: center;
    }
    
    .video-item {
        width: 100%;
        max-width: 100%;
    }
} 