/* 基础样式 */
@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=ZCOOL+XiaoWei&family=ZCOOL+QingKe+HuangYou&display=swap');

:root {
    --primary-color: #8b0000; /* 深红色，符合江湖风格 */
    --secondary-color: #d4af37; /* 金色，古典元素 */
    --dark-color: #2c1e16; /* 暗棕色，古风背景 */
    --light-color: #f7f1e3; /* 米色，竹纸感 */
    --accent-color: #2e4053; /* 深青灰，水墨风 */
    --overlay-color: rgba(0, 0, 0, 0.7);
    --text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'ZCOOL XiaoWei', serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url('https://img.freepik.com/free-photo/beige-wooden-textured-flooring-background_53876-63498.jpg');
    background-attachment: fixed;
    background-size: cover;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Ma Shan Zheng', cursive;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: var(--text-shadow);
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
}

/* 视频背景 */
.video-background {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    z-index: -1;
}

/* 页头 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.7));
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--light-color);
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    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(--secondary-color);
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
    min-width: 200px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(212, 175, 55, 0.3);
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content li {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-content li:last-child {
    border-bottom: none;
}

.dropdown-content a {
    display: block;
    padding: 0.5rem 0;
}

/* 登录注册按钮 */
.auth-buttons {
    display: flex;
    gap: 1rem;
}

.login-btn, .register-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-family: 'ZCOOL QingKe HuangYou', sans-serif;
    transition: var(--transition);
}

.login-btn {
    color: var(--light-color);
    border: 1px solid var(--secondary-color);
}

.register-btn {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: 1px solid var(--primary-color);
}

.login-btn:hover {
    background-color: rgba(212, 175, 55, 0.2);
}

.register-btn:hover {
    background-color: #a50000;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--light-color);
    cursor: pointer;
}

/* Hero 部分 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    z-index: 1;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(5px);
    box-shadow: var(--box-shadow);
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    letter-spacing: 5px;
    text-shadow: var(--text-shadow);
}

.tagline {
    font-size: 1.5rem;
    color: var(--light-color);
    margin-bottom: 2rem;
    font-family: 'ZCOOL QingKe HuangYou', sans-serif;
    text-shadow: var(--text-shadow);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.download-btn {
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 4px;
    font-family: 'ZCOOL QingKe HuangYou', sans-serif;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.download-btn.large {
    padding: 1rem 2.5rem;
    font-size: 1.4rem;
}

.download-btn:hover {
    background-color: #a50000;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* 游戏介绍部分 */
.game-intro {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0;
    position: relative;
}

.game-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://img.freepik.com/free-photo/abstract-grunge-decorative-relief-navy-blue-stucco-wall-texture-wide-angle-rough-colored-background_1258-28311.jpg');
    background-size: cover;
    opacity: 0.1;
    z-index: -1;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.intro-text {
    max-width: 800px;
    font-size: 1.2rem;
    text-align: center;
}

.intro-text p {
    margin-bottom: 1.5rem;
}

.intro-text ul {
    text-align: left;
    margin-bottom: 2rem;
}

.intro-text ul li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.intro-text ul li i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.highlight {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-family: 'Ma Shan Zheng', cursive;
    line-height: 1.8;
}

/* 游戏截图部分 */
.game-screenshots {
    padding: 4rem 0;
    background-color: var(--dark-color);
    position: relative;
}

.game-screenshots .section-title {
    color: var(--secondary-color);
}

.screenshots-slider {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1000px;
}

.slider-container {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    border: 3px solid rgba(212, 175, 55, 0.3);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-item {
    min-width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
}

.slider-item img {
    height: 100%;
    object-fit: contain;
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    padding: 0 1rem;
}

.prev-btn, .next-btn {
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--light-color);
    border: none;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
    background-color: var(--primary-color);
}

/* 游戏特色部分 */
.features {
    padding: 4rem 0;
    background-color: rgba(255, 255, 255, 0.9);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://img.freepik.com/free-photo/abstract-grunge-decorative-relief-navy-blue-stucco-wall-texture-wide-angle-rough-colored-background_1258-28311.jpg');
    background-size: cover;
    opacity: 0.07;
    z-index: -1;
}

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

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

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

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

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

/* 下载部分 */
.download {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 0;
    text-align: center;
}

.download .section-title {
    color: var(--secondary-color);
}

.download-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.qr-placeholder {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px dashed var(--secondary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 页脚 */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding-top: 3rem;
}

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

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    max-width: 300px;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-links-column h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-links-column ul li {
    margin-bottom: 0.8rem;
}

.footer-links-column a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
}

.contact-info {
    margin-bottom: 1.5rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.copyright a {
    color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .auth-buttons {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .slider-item {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .slider-item {
        height: 300px;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
} 