:root {
    --dark-purple: #2A1B3D;
    --royal-blue: #4834B1;
    --accent-gold: #FFD700;
    --light-purple: #8E6B9E;
}

.main-header {
    background-color: var(--dark-purple);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    height: 60px; /* 固定header高度 */

}

.nav-primary {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 40px;
    width: auto;
}

.game-title {
    font-family: 'Press Start 2P', cursive; /* 像素风格字体，需要引入 */
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.cta-button {
    background-color: var(--royal-blue);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-gold);
}

.cta-button:hover {
    background-color: var(--accent-gold);
    color: var(--dark-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* 移动端样式调整 */
@media (max-width: 768px) {
    .main-header {
        height: 50px; /* 减小header高度 */
        padding: 0.5rem 1rem;
    }

    .logo-container {
        gap: 0.3rem;
    }

    .logo-image {
        height: 25px; /* 减小logo大小 */
        width: auto;
    }

    .game-title {
        font-size: 1rem; /* 减小标题字体 */
        /* 确保标题文字在需要时可以换行 */
        white-space: normal;
        line-height: 1.2;
    }

    .cta-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
        white-space: nowrap;
        /* 确保按钮不会太大 */
        min-width: auto;
        margin-left: 0.5rem; /* 给按钮左侧留些空间 */
    }
}

@media (max-width: 480px) {
    .game-title {
        display: none; /* 在非常小的屏幕上只显示logo */
    }
}

/* 特小屏幕的额外优化 */
@media (max-width: 360px) {
    .logo-container {
        max-width: 60%; /* 在更小的屏幕上给按钮留更多空间 */
    }

    .game-title {
        font-size: 0.7rem;
    }

    .cta-button {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}




.hero {
    /* 移除最小高度限制 */
    min-height: auto;
    background-color: var(--dark-purple);
    position: relative;
    overflow: hidden;
    padding-top: 60px; /* 保持header空间 */
    padding-bottom: 3rem; /* 添加适当的底部间距 */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(42, 27, 61, 0.9), rgba(72, 52, 177, 0.7));
    z-index: 1;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    color: white;
    padding-top: 1rem; /* 添加适当的顶部内边距 */
}

.hero h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.5rem; /* 稍微减小字体大小 */
    margin-bottom: 1.5rem; /* 减小底部间距 */
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    line-height: 1.4;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 0.8rem; /* 减小段落间距 */
    color: rgba(255, 255, 255, 0.9);
}

.hero-subtitle.accent {
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.4rem;
    margin: 1rem 0; /* 减小强调文字的上下间距 */
}

.cta-container {
    margin-top: 2rem; /* 减小按钮上方间距 */
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.price-tag {
    color: var(--accent-gold);
    font-style: italic;
}

.hero-image {
    display: flex;
    align-items: center;
}
.hero-image img {
    width: 100%;
    height: auto;
    display: block; /* 移除图片底部可能的空白 */
}

.main-illustration {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(72, 52, 177, 0.3);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .cta-container {
        justify-content: center;
    }

    .hero-image {
        order: -1;
        max-width: 80%;
        margin: 0 auto;
    }
    .hero {
        padding-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 50px;
        padding-bottom: 1.5rem;
    }
    .hero-content {
        padding: 0.5rem 1rem;
    }
    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-subtitle.accent {
        font-size: 1.2rem;
    }
}



.trailer {
    background-color: var(--dark-purple);
    padding: 5rem 2rem;
}

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

.trailer h2 {
    font-family: 'Press Start 2P', cursive;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 宽高比 */
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--royal-blue);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.video-container:hover iframe {
    transform: scale(1.02);
}

/* 添加视频容器的加载动画 */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { opacity: 0.6; }
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--royal-blue);
    opacity: 0.1;
    animation: pulse 2s infinite;
    z-index: -1;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .video-grid {
        gap: 1.5rem;
    }
    
    .trailer {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr; /* 手机端单列显示 */
        max-width: 600px;
    }
    
    .trailer h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .trailer {
        padding: 3rem 1rem;
    }
}

.features {
    background-color: var(--dark-purple);
    padding: 4rem 0;
}

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

.features h2 {
    text-align: center;
    color: var(--accent-gold);
    font-family: 'Press Start 2P', cursive;
    font-size: 2rem;
    margin-bottom: 4rem;
}

.feature-row {
    margin-bottom: 4rem;
}

.feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.feature-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.feature-image:hover img {
    transform: scale(1.05);
}

.feature-text {
    color: white;
}

.feature-text h3 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* 响应式设计 */
@media (max-width: 968px) {
    .feature-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-image {
        max-width: 600px;
        margin: 0 auto;
    }

    .feature-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .features {
        padding: 3rem 0;
    }

    .features h2 {
        font-size: 1.5rem;
        margin-bottom: 3rem;
    }

    .feature-row {
        margin-bottom: 3rem;
    }
}

.seo-content {
    background-color: var(--dark-purple);
    padding: 4rem 0;
    color: white;
}

.seo-content .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.seo-content h2 {
    color: var(--accent-gold);
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem;
    font-family: 'Press Start 2P', cursive;
}

.seo-content h3 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.seo-content h4 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem;
}

.seo-content p {
    line-height: 1.6;
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.seo-content ul {
    margin: 1rem 0 1.5rem 2rem;
    list-style-type: disc;
}

.seo-content li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.additional-info {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .seo-content {
        padding: 3rem 0;
    }

    .seo-content h2 {
        font-size: 1.5rem;
    }

    .seo-content h3 {
        font-size: 1.3rem;
    }

    .seo-content h4 {
        font-size: 1.1rem;
    }
}

/* 为新添加的内容补充样式 */
.feature-list {
    background: rgba(72, 52, 177, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.tips-section {
    border-left: 3px solid var(--accent-gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

.tips-section ul {
    margin-top: 1rem;
}

.tips-section li {
    margin-bottom: 1rem;
}

.download-section {
    background-color: var(--dark-purple);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.download-title {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.download-list {
    max-width: 800px;
    margin: 0 auto;
}

.download-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.download-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.download-button {
    background-color: var(--royal-blue);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-right: 1.5rem;
    transition: all 0.3s ease;
}

.download-button:hover {
    background-color: var(--accent-gold);
    transform: translateY(-2px);
}

.download-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.file-name {
    flex: 1;
    font-weight: 500;
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.upload-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.download-help {
    text-align: right;
    margin-top: 1rem;
}

.help-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.9rem;
}

.help-link:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .download-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .file-meta {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .download-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .download-button {
        margin-right: 0;
        width: 100%;
    }

    .download-info {
        align-items: center;
    }
}

/* 添加弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    background-color: var(--dark-purple);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid var(--accent-gold);
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    text-align: center;
    color: white;
}

.close-button {
    position: absolute;
    right: 15px;
    top: 10px;
    color: var(--accent-gold);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #fff;
}

.modal h3 {
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

#countdown {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.ad-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 4px;
}

.download-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 15px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .modal-content {
        margin: 30% auto;
        width: 95%;
        padding: 15px;
    }
    
    .modal h3 {
        font-size: 1rem;
    }
}