/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 导入字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

/* 副标题分隔符样式 */
.subtitle-separator {
    margin: 0 10px;
    color: #cd853f;
    font-weight: normal;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #e6d3a3;
    overflow-x: hidden;
    background-color: #1a0d00;
}

/* 背景容器样式 */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('../beijingtu/1763197196965.jpg'), url('../img/hero-bg.svg'), url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgdmlld0JveD0iMCAwIDYwIDYwIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0zNiAzNGMtMi4yMSAwLTMuOTk5LTEuNzktMy45OTktNHMyLjAxOC00IDQtNCA0IDIuMjEgNCA0LTIuMDE4IDQtNCA0em0wLTE1YzIuMjEgMCA0IDEuNzkgNCA0cy0xLjc5IDQtNCA0LTQtMi4yMS00LTQgMS43OS00IDQtNHoiIGZpbGw9IiMyNDExMDUiIGZpbGwtb3BhY2l0eT0iMC4yIi8+PHBhdGggZD0iTTQxIDI0YzIuMjEgMCA0IDEuNzkgNCA0cy0xLjc5IDQtNCA0LTQtMi4yMS00LTQgMS43OS00IDQtNHoiIGZpbGw9IiMyNDExMDUiIGZpbGwtb3BhY2l0eT0iMC4yIi8+PHBhdGggZD0iTTI5IDM5YzIuMjEgMCA0LTEuNzkgNC00cy0xLjc5LTQtNC00LTQgMS43OSA0IDQgMS43OSA0IDQgNHoiIGZpbGw9IiMyNDExMDUiIGZpbGwtb3BhY2l0eT0iMC4yIi8+PHBhdGggZD0iTTMgMzRjLTIuMjEgMC00LTEuNzktNC00czEuNzktNCA0LTRiMi4yMSAwIDQgMS43OSA0IDQtMS43OSA0LTQgNC00LTR6IiBmaWxsPSIjMjQxMTA1IiBmaWxsLW9wYWNpdHk9IjAuMiIvPjxwYXRoIGQ9Ik0zNiA0OGMtMi4yMSAwLTMuOTk5LTEuNzktMy45OTktNHMyLjAxOC00IDQtNCA0IDIuMjEgNCA0LTIuMDE4IDQtNCA0em0wLTE1YzIuMjEgMCA0IDEuNzkgNCA0cy0xLjc5IDQtNCA0LTQtMi4yMS00LTQgMS43OS00IDQtNHoiIGZpbGw9IiMyNDExMDUiIGZpbGwtb3BhY2l0eT0iMC4yIi8+PHBhdGggZD0iTTQxIDM0YzIuMjEgMCA0IDEuNzkgNCA0cy0xLjc5IDQtNCA0LTQtMi4yMS00LTQgMS43OS00IDQtNHoiIGZpbGw9IiMyNDExMDUiIGZpbGwtb3BhY2l0eT0iMC4yIi8+PHBhdGggZD0iTTI5IDQ5YzIuMjEgMCA0LTEuNzkgNC00cy0xLjc5LTQtNC00LTQgMS43OSA0IDQgMS43OSA0IDQgNHoiIGZpbGw9IiMyNDExMDUiIGZpbGwtb3BhY2l0eT0iMC4yIi8+PHBhdGggZD0iTTMgNDhjLTIuMjEgMC00LTEuNzktNC00czEuNzktNCA0LTRiMi4yMSAwIDQgMS43OSA0IDQtMS43OSA0LTQgNC00LTR6IiBmaWxsPSIjMjQxMTA1IiBmaWxsLW9wYWNpdHk9IjAuMiIvPjwvZz48L3N2Zz4=');
    background-size: cover, cover, 60px 60px;
    background-position: center, center, center;
    background-attachment: fixed, fixed, fixed;
    animation: subtleFloat 20s ease-in-out infinite;
}

/* 添加背景遮罩 */
.background-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 19, 0, 0.7);
    z-index: -1;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.8) 100%);
}

/* 内容容器样式 */
.content-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* 导航栏样式 - 武侠风格 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to right, rgba(139, 0, 0, 0.9), rgba(165, 42, 42, 0.9), rgba(139, 0, 0, 0.9));
    backdrop-filter: blur(10px);
    border-bottom: 3px solid #ffd700;
    box-shadow: 0 2px 15px rgba(255, 215, 0, 0.3);
}

#main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 2.2rem;
    color: #ffd700;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.logo-slogan {
    font-size: 0.8rem;
    color: #ccc;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #ffd700;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 1px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffd700;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    width: 100%;
    box-shadow: 0 0 10px #ffd700;
}

.nav-register {
    background-color: #ffd700;
    color: #000 !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    border: 2px solid #d4af37;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-register:hover {
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

.nav-register:hover {
    background-color: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.nav-register::after {
    display: none;
}

.nav-links a:hover {
    color: #ffd700;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffd700;
    transition: width 0.3s ease;
}

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

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

/* 区块通用样式 */
.section {
    padding: 4rem 2rem;
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.4) 100%);
    z-index: -1;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffd700;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 0;
    background-color: transparent;
}

/* 武侠风格装饰边框 */
.wuxia-border {
    position: relative;
    border: 2px solid #cd853f;
    background-color: rgba(26, 13, 0, 0.7);
    padding: 20px;
    box-shadow: 0 0 20px rgba(184, 115, 51, 0.3);
}

.wuxia-border::before,
.wuxia-border::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: #8b0000;
    border-style: solid;
}

.wuxia-border::before {
    top: -10px;
    left: -10px;
    border-width: 2px 0 0 2px;
}

.wuxia-border::after {
    bottom: -10px;
    right: -10px;
    border-width: 0 2px 2px 0;
}

/* 首页样式 */
.home-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 2rem;
}

.game-intro {
    width: 35%;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    border: 2px solid #cd853f;
    background-color: rgba(26, 13, 0, 0.8);
    box-shadow: 0 0 20px rgba(184, 115, 51, 0.3);
}

.game-intro h2 {
    font-size: 4.5rem;
    margin: 2.5rem auto;
    line-height: 1.0;
    color: #f5e7d3;
    font-weight: bold;
    text-shadow: 6px 6px 12px rgba(0, 0, 0, 0.9);
    text-align: center;
    width: 100%;
    display: block;
    position: relative;
    z-index: 10;
    letter-spacing: 2px;
}

.intro-subtitle {
    font-size: 1.2rem;
    color: #cd853f;
    margin-bottom: 2rem;
    font-style: italic;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image {
    width: 60%;
    max-width: 60%;
    height: 500px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    animation: pulse 3s ease-in-out infinite;
}

/* 轮播容器样式 */
.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.carousel-item.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, rgba(255,215,0,0) 70%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}



.game-intro p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* 按钮样式 */
.btn-primary,
.btn-secondary,
.btn-download,
.btn-submit {
    display: inline-block;
    padding: 0.8rem 2rem;
    margin: 0 0.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #8b0000;
    color: #e6d3a3;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease-in-out;
}

.btn-primary:hover {
    background-color: #a80000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background-color: transparent;
    color: #e6d3a3;
    border: 2px solid #e6d3a3;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease-in-out;
}

.btn-secondary:hover {
    background-color: #a80000;
    color: #e6d3a3;
    border-color: #a80000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.4);
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-download {
    background-color: #b87333;
    color: #e6d3a3;
    width: 100%;
}

.btn-download:hover {
    background-color: #cd853f;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(184, 115, 51, 0.4);
}

.btn-submit {
    background-color: #8b0000;
    color: #000;
    width: 100%;
    padding: 1rem;
}

.btn-submit:hover {
    background-color: #ffed4e;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* 玩法介绍样式 */
.gameplay-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gameplay-item h3 {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.gameplay-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #ffd700;
}

.gameplay-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.gameplay-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
}

/* 核心特色样式 */
.features-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item h3 {
    font-size: 1.2rem;
    color: #ffd700;
    margin-bottom: 0.8rem;
}

.feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

/* 开发团队样式 */
.team-intro {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #ccc;
}

.team-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.team-member h3 {
    font-size: 1.2rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: #ccc;
    font-size: 0.9rem;
}

.team-member {
    text-align: center;
}

.member-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid #ffd700;
    background-color: #333;
}

/* 版本特色样式 */
.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.version-number {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffd700;
}

.version-date {
    font-size: 1rem;
    color: #ccc;
}

.version-content {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
}

.version-item p {
    margin: 0;
    line-height: 1.8;
}

.version-item {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.version-item::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #ffd700;
}

/* 游戏下载样式 */
.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.download-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.download-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
}

.download-item i {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

/* 注册表单样式 */
#register-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* 页脚样式 */
footer {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffd700;
}

.copyright {
    margin-bottom: 1rem;
    color: #888;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ffd700;
}

/* 动画效果 */
@keyframes subtleFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(0, -20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.95; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 响应式设计 - 中等屏幕 (平板) */
@media (max-width: 1024px) {
    #main-nav {
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .section-content {
        max-width: 90%;
    }
    
    .features-grid,
    .team-grid,
    .version-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-image {
        max-width: 700px;
    }
}

/* 响应式设计 - 小屏幕 (平板/手机) */
@media (max-width: 768px) {
    #main-nav {
        flex-direction: column;
        padding: 1rem;
    }

    .logo h1 {
        font-size: 1.5rem;
        margin-bottom: 0.2rem;
    }
    
    .logo-slogan {
        font-size: 0.7rem;
    }
    
    .nav-register {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .section {
        padding: 6rem 1rem;
    }

    .section-content {
        padding: 2rem 1rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .hero-image {
        height: 250px;
        max-width: 100%;
    }

    .game-intro p {
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }

    .footer-links a {
        display: block;
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .section h2 {
        font-size: 1.8rem;
    }

    .section-content {
        padding: 1.5rem 1rem;
    }

    .gameplay-content,
    .features-content,
    .team-content,
    .download-options {
        grid-template-columns: 1fr;
    }
}