/* 基本样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0;
    background-color: #121212;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 通用样式 */
a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background-color: #8b0000;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: #c00000;
    transform: scale(1.05);
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

section {
    padding: 80px 0;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: #333;
}

/* Header 样式 */
header {
    background-color: #1a0505;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #8b0000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-title h1 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.logo img {
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff6b6b;
}

/* Hero 部分样式 */
#hero {
    background: linear-gradient(135deg, #1a0505 0%, #3d0a0a 50%, #1a0505 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 90px;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero-pattern.png');
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    padding-right: 40px;
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ffffff, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(255, 0, 0, 0.3);
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #f0f0f0;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 30px;
    background: linear-gradient(90deg, #8b0000, #c00000);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.4);
}

.btn-large:hover {
    background: linear-gradient(90deg, #c00000, #ff0000);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 0, 0, 0.6);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-image img {
        max-width: 80%;
        transform: perspective(1000px) rotateY(0deg);
    }
}

@media (max-width: 768px) {
    #hero {
        padding: 100px 0 60px;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    .btn-large {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .hero-image img {
        max-width: 90%;
    }
}

/* 游戏 Iframe 区域样式 */
#game {
    background-color: #1a0505;
    padding: 80px 0;
}

#game h2 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.game-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.6);
}

.game-container iframe {
    width: 100%;
    height: 100%;
    background-color: #000;
}

.game-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.btn-icon {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-icon:hover {
    background-color: rgba(139, 0, 0, 0.8);
    transform: scale(1.1);
}

.btn-icon i {
    font-size: 18px;
}

/* Features 部分样式 */
#features {
    background-color: #0a0a0a;
    color: #f0f0f0;
    padding: 100px 0;
    position: relative;
}

#features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/features-bg-pattern.png');
    background-size: 200px;
    opacity: 0.05;
    z-index: 1;
}

#features .container {
    position: relative;
    z-index: 2;
}

#features h2 {
    color: #ffffff;
    font-size: 42px;
    margin-bottom: 25px;
    text-transform: uppercase;
    text-align: center;
    background: linear-gradient(90deg, #8b0000, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 18px;
    line-height: 1.6;
    color: #cccccc;
}

.feature-row {
    display: flex;
    align-items: center;
    margin-bottom: 100px;
    gap: 50px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
    max-width: 500px;
}

.feature-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.4);
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #ff6b6b;
    position: relative;
    padding-bottom: 15px;
}

.feature-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #8b0000, #ff0000);
}

.feature-content h4 {
    font-size: 20px;
    margin: 25px 0 15px;
    color: #e0e0e0;
}

.feature-content p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #cccccc;
}

.feature-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.feature-content ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
}

.feature-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ff6b6b;
    font-size: 20px;
    top: -2px;
}

.features-conclusion {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.features-conclusion h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #ff6b6b;
}

.features-conclusion p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #cccccc;
}

.cta-center {
    margin-top: 40px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .feature-row {
        flex-direction: column;
        gap: 30px;
    }
    
    .feature-row.reverse {
        flex-direction: column;
    }
    
    .feature-image {
        max-width: 100%;
    }
    
    .feature-content h3 {
        font-size: 24px;
    }
    
    .feature-content h4 {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    #features {
        padding: 70px 0;
    }
    
    #features h2 {
        font-size: 32px;
    }
    
    .section-intro {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .feature-row {
        margin-bottom: 60px;
    }
    
    .feature-content h3 {
        font-size: 22px;
    }
    
    .features-conclusion h3 {
        font-size: 22px;
    }
}

/* About 部分样式 */
#about {
    background-color: #f9f9f9;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text, .about-image {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 18px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* How To Play 部分样式 */
.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #ff6b6b;
    color: white;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
    margin: 0 auto 20px;
}

/* Why Play 部分样式 */
#why-play {
    background-color: #f9f9f9;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.reason-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.reason-card i {
    font-size: 40px;
    color: #ff6b6b;
    margin-bottom: 20px;
}

/* FAQ 部分样式 */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: white;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
}

.faq-toggle {
    font-size: 24px;
    font-weight: bold;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f9f9f9;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

/* Footer 部分样式 */
footer {
    background-color: #333;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-links, .footer-newsletter {
    margin-bottom: 30px;
}

.footer-links h4, .footer-newsletter h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ddd;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #ff6b6b;
}

.footer-newsletter p {
    margin-bottom: 15px;
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.footer-newsletter button {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #444;
    padding-top: 20px;
}

.social-icons a {
    color: white;
    margin-left: 15px;
    font-size: 20px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #ff6b6b;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin: 20px 0;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .footer-content > div {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .social-icons {
        margin-top: 20px;
    }
    
    .logo-title h1 {
        font-size: 20px;
    }
    
    .logo img {
        height: 45px;
    }
    
    #game {
        padding: 60px 0;
    }
    
    .game-container {
        aspect-ratio: 16 / 9;
        width: 100%;
        max-width: 100%;
    }
    
    .btn-icon {
        width: 36px;
        height: 36px;
    }
    
    .btn-icon i {
        font-size: 16px;
    }
    
    /* 确保在小屏幕上游戏区域有足够的高度 */
    @media (max-height: 600px) {
        .game-container {
            aspect-ratio: 16 / 9;
            height: 70vh;
        }
    }
}

/* 全屏模式样式 */
.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: #000;
    margin: 0;
    padding: 0;
    border-radius: 0;
}

.fullscreen-mode iframe {
    width: 100%;
    height: 100%;
}

/* What Is, How To Play, Why Play 部分共享样式 */
#what-is, #how-to-play, #why-play {
    padding: 100px 0;
    color: #f0f0f0;
    position: relative;
}

#what-is {
    background-color: #0a0a0a;
}

#how-to-play {
    background: linear-gradient(135deg, #1a0505 0%, #3d0a0a 50%, #1a0505 100%);
}

#why-play {
    background-color: #0a0a0a;
}

#what-is::before, #how-to-play::before, #why-play::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/section-bg-pattern.png');
    background-size: 200px;
    opacity: 0.05;
    z-index: 1;
}

#what-is .container, #how-to-play .container, #why-play .container {
    position: relative;
    z-index: 2;
}

#what-is h2, #how-to-play h2, #why-play h2 {
    color: #ffffff;
    font-size: 42px;
    margin-bottom: 25px;
    text-transform: uppercase;
    text-align: center;
    background: linear-gradient(90deg, #8b0000, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 18px;
    line-height: 1.6;
    color: #cccccc;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.content-block {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-left: 4px solid #8b0000;
}

.content-block h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #ff6b6b;
    position: relative;
    padding-bottom: 15px;
}

.content-block h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, transparent);
}

.content-block h4 {
    font-size: 22px;
    margin: 25px 0 15px;
    color: #f0f0f0;
}

.content-block p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #cccccc;
}

.feature-list, .numbered-steps {
    margin: 20px 0;
    padding-left: 20px;
}

.feature-list li, .numbered-steps li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
}

.feature-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ff6b6b;
    font-size: 20px;
    top: -2px;
}

.numbered-steps {
    counter-reset: step-counter;
}

.numbered-steps li {
    counter-increment: step-counter;
    padding-left: 35px;
}

.numbered-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    height: 25px;
    background-color: #8b0000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.cta-center {
    text-align: center;
    margin-top: 40px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    #what-is, #how-to-play, #why-play {
        padding: 80px 0;
    }
    
    .content-block h3 {
        font-size: 24px;
    }
    
    .content-block h4 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    #what-is, #how-to-play, #why-play {
        padding: 60px 0;
    }
    
    #what-is h2, #how-to-play h2, #why-play h2 {
        font-size: 32px;
    }
    
    .section-intro {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .content-wrapper {
        gap: 40px;
    }
    
    .content-block {
        padding: 20px;
    }
    
    .content-block h3 {
        font-size: 22px;
    }
    
    .content-block h4 {
        font-size: 18px;
    }
}

/* YouTube 视频部分样式 */
.video-section {
    margin-top: 80px;
}

.video-section h3 {
    color: #ffffff;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.video-container {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.video-item {
    flex: 1;
    max-width: 560px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.4);
}

.video-item iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
}

.video-item h4 {
    color: #ff6b6b;
    font-size: 20px;
    margin: 0;
    padding: 15px 20px 10px;
}

.video-item p {
    color: #cccccc;
    font-size: 16px;
    margin: 0;
    padding: 0 20px 20px;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .video-section {
        margin-top: 60px;
    }
    
    .video-section h3 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .video-container {
        flex-direction: column;
        align-items: center;
    }
    
    .video-item {
        max-width: 100%;
        width: 100%;
    }
    
    .video-section h3 {
        font-size: 24px;
    }
    
    .video-item h4 {
        font-size: 18px;
    }
}

.game-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
}

.game-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.game-placeholder .btn {
    position: absolute;
    z-index: 2;
} 