:root {
    --primary: #0a192f;
    --secondary: #112240;
    --accent: #64ffda;
    --text: #ccd6f6;
    --light-text: #a8b2d1;
    --card-bg: rgba(17, 34, 64, 0.7);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background: linear-gradient(135deg, var(--primary) 0%, #020c1b 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative; /* 为雪花容器提供定位基准 */
    width: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%230a192f"/><path d="M0 0L100 100M100 0L0 100" stroke="%23112240" stroke-width="0.5"/></svg>');
    background-size: 100px;
    line-height: 1.6;
}

/* 导航栏样式 */
header {
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container img {
    width: 40px;
    height: 40px;
}

.game-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent), #4db5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.5px;
}

/* 桌面导航 */
.desktop-nav {
    display: flex;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

.desktop-nav a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.desktop-nav a:hover {
    color: var(--accent);
}

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

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



/* 导航栏滚动效果 */
header {
    transition: var(--transition);
}

header.scrolled {
    padding: 0.5rem 5%;
    background-color: rgba(10, 25, 47, 0.98);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
}

header.scrolled .game-title {
    font-size: 1.3rem;
}

header.scrolled .logo-container img {
    width: 35px;
    height: 35px;
}



/* 内容区域 */
.hero {
    padding: 6rem 5% 4rem;
    text-align: center;
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.9)), 
                url('https://images.unsplash.com/photo-1533134486753-c833f0ed4866?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #64ffda, #4db5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(100, 255, 218, 0.2);
}

.hero p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    color: var(--light-text);
    line-height: 1.6;
}

.cta-button {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 12px 28px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: button;
    transition: var(--transition);
    margin: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-button:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
}

.cta-button.primary {
    background: var(--accent);
    color: var(--primary);
    font-weight: 600;
}

.section {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    background: linear-gradient(90deg, var(--accent), #4db5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 218, 0.1);
}



.card-header {
    padding: 20px;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i {
    color: var(--accent);
}

.card-body {
    padding: 20px;
}

.dev-log {
    background: var(--secondary);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    transition: var(--transition);
    border: 1px solid rgba(100, 255, 218, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}



.dev-log h4 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.dev-log .date {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

.dev-log p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.dev-log a {
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.dev-log a:hover {
    color: #4db5ff;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.feature {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

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

.team-member {
    text-align: center;
    padding: 30px 20px;
    background: var(--card-bg);
    border-radius: 30px 30px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(100, 255, 218, 0.1);
}



.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--accent);
    border: 2px solid var(--accent);
    overflow: hidden;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--accent);
}

.member-role {
    color: var(--light-text);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.sponsor-tiers {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.tier {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    width: 320px;
    text-align: center;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}



.tier h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.tier .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent);
}

.tier ul {
    list-style: none;
    margin-bottom: 25px;
}

.tier ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.tier ul li:last-child {
    border-bottom: none;
}

.qr-codes {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.qr-section {
    background: rgba(10, 25, 47, 0.5);
    padding: 15px;
    border-radius: 8px;
}

.qr-section h4 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.qr-image {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.8rem;
    text-align: center;
    padding: 10px;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
}

.download-btn {
    background: var(--accent);
    color: var(--primary);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.3);
}

footer {
    background: var(--secondary);
    padding: 3rem 5%;
    text-align: center;
    margin-top: 50px;
}

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

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--accent), #4db5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.5px;
}

.copyright {
    color: var(--light-text);
    margin-top: 20px;
    font-size: 0.9rem;
}

/* 赞助说明卡片样式 */
.sponsor-info-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    margin-top: 50px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(100, 255, 218, 0.1);
    text-align: center;
}



.sponsor-info-card h3 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sponsor-info-card p {
    line-height: 1.6;
    color: var(--light-text);
}


/* 内容卡片样式 */
.card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(100, 255, 218, 0.1);
}

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

.card p {
    color: var(--light-text);
    line-height: 1.6;
}

/* 开发日志折叠相关样式 */
.log-toggle-btn {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    margin: 0 auto 30px;
    display: block;
    align-items: center;
    gap: 8px;
}

.log-toggle-btn:hover {
    background: rgba(100, 255, 218, 0.1);
}

.dev-logs-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.dev-log.hidden {
    display: none;
}

#game-intro {
    margin-top: 10vh;
    padding-top: 5rem;
}

.loading-indicator {
    text-align: center;
    padding: 40px 0;
    color: var(--light-text);
}

.loading-indicator i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.error-message {
    color: #ff4d4f;
    text-align: center;
    padding: 20px;
}

/* 响应式设计：小屏幕设备优化 */
@media (max-width: 768px) {
    /* 全局字体大小调整 */
    body {
        font-size: 14px;
        line-height: 1.7; /* 增加行高提高可读性 */
        letter-spacing: 0.2px; /* 微调字间距 */
    }
    
    /* 导航栏调整 */
    header {
        padding: 0.6rem 4%;
        height: 60px;
    }
    
    .game-title {
        font-size: 1.2rem;
    }
    
    .logo-container img {
        width: 32px;
        height: 32px;
    }
    
    .desktop-nav {
        overflow-x: auto;
        padding-bottom: 5px; /* 预留滚动条空间 */
        margin-left: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .desktop-nav::-webkit-scrollbar {
        height: 0px; /* 隐藏滚动条 */
        background: transparent;
    }

    .desktop-nav ul {
        gap: 1rem;
        padding-right: 20px;
        width: max-content; /* 确保不换行 */
    }
    
    .desktop-nav a {
        font-size: 0.9rem;
        white-space: nowrap; /* 禁止文字换行 */
    }
    
    /* Hero区域调整 */
    .hero {
        padding: 4rem 4% 3rem;
        min-height: 70vh;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    /* 内容区域调整 */
    .section {
        padding: 3rem 4%;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .section-title::after {
        width: 60px;
    }
    
    /* 卡片调整 */
    .card-header h3 {
        font-size: 1.3rem;
    }
    
    .card h3 {
        font-size: 1.2rem;
    }
    
    .dev-log h4 {
        font-size: 1.1rem;
    }
    
    .dev-log .date {
        font-size: 0.85rem;
    }
    
    /* 团队成员调整 */
    .member-name {
        font-size: 1.2rem;
    }
    
    .member-role {
        font-size: 0.85rem;
    }
    
    /* 赞助等级调整 */
    .tier {
        width: 100%;
        padding: 25px;
    }
    
    .tier h3 {
        font-size: 1.5rem;
    }
    
    .tier .price {
        font-size: 2rem;
    }
    
    /* 页脚调整 */
    footer {
        padding: 2rem 4%;
    }
    
    .footer-logo {
        font-size: 1.6rem;
    }
    
    .copyright {
        font-size: 0.85rem;
    }
    
}

/* 响应式设计：智能手机优化 */
@media (max-width: 480px) {
    /* 进一步缩小字体 */
    body {
        font-size: 13px;
        line-height: 1.8;
        letter-spacing: 0.3px;
    }
    
    /* 导航栏进一步调整 */
    header {
        padding: 0.5rem 3%;
        height: 55px;
    }
    
    .game-title {
        font-size: 1.1rem;
    }
    
    .desktop-nav {
        display: block; /* 恢复显示，依靠上面的横向滚动 */
    }
    
    /* Hero区域进一步调整 */
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 8px 16px;
        font-size: 0.9rem;
        margin: 8px 4px;
    }
    
    /* 内容区域进一步调整 */
    .section {
        padding: 2.5rem 3%;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    /* 卡片容器调整 */
    .cards-container {
        gap: 20px;
    }
    
    .card, .dev-log {
        padding: 15px;
    }
    
    .card-header {
        padding: 15px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    /* 视频容器进一步调整 */
    .embedded-video {
        height: 200px;
    }
    
    /* 功能标签调整 */
    .feature {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* 确保所有容器在小屏幕上无横向滚动 */
* {
    max-width: 100%;
    box-sizing: border-box;
}

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

/* 确保文本内容在小屏幕上适当换行 */
p, li, a {
    word-wrap: break-word;
    hyphens: auto;
}

/* 确保表格在小屏幕上适应 */
table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

/* 返回顶部按钮样式 */
section[id] {
    scroll-margin-top: 80px;
}
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary);
    color: var(--accent);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.back-to-top.visible {
    opacity: 1;
}
.back-to-top:hover {
    background-color: var(--accent);
    color: var(--primary);
    transform: translateY(-5px);
}

/* 下载模块样式 */
.download-container-horizontal {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    margin-bottom: 20px;
    padding-bottom: 20px;
    padding-top: 15px; /* 为悬停效果预留顶部空间 */
}

.download-wrapper {
    display: flex;
    gap: 30px;
    min-width: max-content;
    padding: 15px 0; /* 为悬停效果预留垂直空间 */
}

.download-item-horizontal {
    flex-shrink: 0;
    width: min(540px, 85vw); /* 在小屏幕上自适应宽度 */
}

.download-item-horizontal .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}



.download-item-horizontal .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    gap: 10px;
}

.download-buttons .download-btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
}

.system-requirements {
    background: var(--secondary);
    padding: 15px;
    border-radius: 5px;
    margin-top: auto;
}

.system-requirements h4 {
    margin-bottom: 10px;
    color: var(--accent);
}

.system-requirements ul {
    list-style: none;
    padding-left: 10px;
}

/* 下载模块滚动条样式 - 与开发日志保持一致 */
.download-container-horizontal::-webkit-scrollbar {
    height: 8px;
}

.download-container-horizontal::-webkit-scrollbar-track {
    background: rgba(17, 34, 64, 0.5);
    border-radius: 4px;
}

.download-container-horizontal::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.download-container-horizontal::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 255, 218, 0.8);
}

/* 替代内联样式的CSS类 */
.logo-container img {
    border-radius: 50%;
}

.download-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.platform {
    flex: 1;
    min-width: 300px;
}

.download-buttons {
    flex-direction: column;
    align-items: center;
}

.download-btn {
    width: 100%;
    max-width: 250px;
    margin-bottom: 10px;
    justify-content: center;
}

.system-requirements {
    margin-top: 30px;
    background: var(--secondary);
    padding: 15px;
    border-radius: 5px;
}

.system-requirements h4 {
    margin-bottom: 10px;
    color: var(--accent);
}

.system-requirements ul {
    list-style: none;
    padding-left: 10px;
}

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

.large-text {
    font-size: 18px;
}

.margin-bottom-20 {
    margin-bottom: 20px;
}

.margin-bottom-30 {
    margin-bottom: 30px;
}

.margin-top-30 {
    margin-top: 30px;
}

.margin-top-50 {
    margin-top: 50px;
}

.center-features {
    justify-content: center;
    margin-top: 15px;
}

.member-avatar img {
    width: 115px;
    height: 115px;
    border-radius: 50%;
}

