/* 基础样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #e0e0e0;
    background: #121212;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* 导航栏 */

header {
    background: #171718;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #13B056;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-links a:hover,
.nav-links a:focus {
    background: #1E1E1E;
    color: #007ACC;
}


/* 英雄区域 */

.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(19, 176, 86, 0.1) 0%, transparent 50%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    color: #b0b0b0;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    position: relative;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::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: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: #13B056;
    color: white;
    border: 2px solid #13B056;
}

.btn-primary:hover {
    background: #0f8c44;
    border-color: #0f8c44;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(19, 176, 86, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #13B056;
    border: 2px solid #13B056;
}

.btn-secondary:hover {
    background: rgba(19, 176, 86, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(19, 176, 86, 0.2);
}


/* 功能特色 */

.features {
    padding: 80px 0;
    background: #1a1a1a;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #ffffff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #252525;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #333;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: #13B056;
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #13B056;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-card p {
    color: #a0a0a0;
}


/* 支持游戏 */

.games {
    padding: 80px 0;
    background: #121212;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* 固定6列 */
    gap: 0.8rem;
    /* 减小间距 */
    justify-items: center;
    max-width: 1200px;
    /* 限制最大宽度 */
    margin: 0 auto;
    /* 居中 */
}

.game-card {
    background: #252525;
    padding: 1.2rem;
    /* 减小内边距 */
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    border: 1px solid #333;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    /* 减小元素间距 */
    width: 100%;
    /* 使用百分比宽度 */
    max-width: 160px;
    /* 限制最大宽度 */
}

.game-logo {
    width: 120px;
    /* 稍微减小图片尺寸 */
    height: 150px;
    /* 稍微减小图片尺寸 */
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card:hover .game-logo {
    transform: scale(1.05);
}

.game-name {
    font-weight: bold;
    font-size: 0.85rem;
    /* 稍微减小字体 */
    line-height: 1.2;
    min-height: 2.2em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-type {
    font-size: 0.75rem;
    /* 稍微减小字体 */
    color: #888;
}

.game-heat {
    font-size: 0.7rem;
    /* 稍微减小字体 */
    color: #13B056;
    background: rgba(19, 176, 86, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
}

.game-card:hover {
    transform: translateY(-3px);
    border-color: #13B056;
    box-shadow: 0 8px 20px rgba(19, 176, 86, 0.2);
}

.loading {
    text-align: center;
    padding: 3rem;
    color: #888;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top: 3px solid #13B056;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* 响应式设计 */

@media (max-width: 1200px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 中等屏幕显示3列 */
        gap: 1rem;
    }
    .game-card {
        max-width: 180px;
    }
    .game-logo {
        width: 140px;
        height: 170px;
    }
}

@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 小屏幕显示2列 */
    }
    .game-card {
        max-width: 160px;
        padding: 1rem;
    }
    .game-logo {
        width: 120px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 超小屏幕保持2列 */
        gap: 0.5rem;
    }
    .game-card {
        max-width: 140px;
        padding: 0.8rem;
    }
    .game-logo {
        width: 100px;
        height: 130px;
    }
    .game-name {
        font-size: 0.8rem;
    }
    .game-type,
    .game-heat {
        font-size: 0.7rem;
    }
}


/* 下载区域 */

.download {
    padding: 80px 0;
    background: #1a1a1a;
    text-align: center;
}

.download-options {
    margin-top: 2rem;
}

.download-btn {
    background: #13B056;
    color: white;
    padding: 1rem 1.5rem;
    /* 减少水平内边距 */
    border-radius: 10px;
    font-size: 1.1rem;
    /* 稍微减小字体大小 */
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    /* 改为 inline-flex 避免块级元素宽度 */
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
    min-width: auto;
    /* 移除最小宽度限制 */
    width: auto;
    /* 让宽度自适应内容 */
}

.download-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    transition: all 0.3s;
}


/* 悬停时图标动画 */

.download-btn:hover .download-icon {
    transform: translateY(2px);
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(2px);
    }
    50% {
        transform: translateY(-1px);
    }
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    background: #0f8c44;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(19, 176, 86, 0.4);
}

.download-info {
    margin-top: 1rem;
    color: #888;
}


/* 用户评价 */

.testimonials {
    padding: 80px 0;
    background: #121212;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #252525;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
    transition: all 0.3s;
}

.testimonial-card:hover {
    border-color: #13B056;
    transform: translateY(-2px);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #d0d0d0;
}

.testimonial-card span {
    color: #13B056;
    font-weight: bold;
}


/* 页脚 */

footer {
    background: #171718;
    color: #a0a0a0;
    padding: 40px 0 20px;
    border-top: 1px solid #333;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #13B056;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #007ACC;
}


/* 页脚底部备案信息样式 */

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.icp-record {
    font-size: 0.9rem;
}

.icp-record a {
    color: #888;
    transition: color 0.3s;
}

.icp-record a:hover {
    color: #13B056;
}


/* 响应式设计 */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 300px;
    }
    .game-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .game-card {
        width: 150px;
        padding: 1rem;
    }
    .game-logo {
        width: 120px;
        height: 150px;
    }
}


/* 滚动条样式 */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #353536;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #454546;
}


/* 子标题样式 */

.subsection-title {
    text-align: center;
    margin: 4rem 0 1.5rem;
    font-size: 2rem;
    color: #ffffff;
    position: relative;
    font-weight: 600;
}

.subsection-title:first-of-type {
    margin-top: 2rem;
}

.subsection-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #13B056;
    border-radius: 2px;
}


/* 调整游戏区域的padding */

.games {
    padding: 60px 0;
}


/* 更新日志区域 */

.changelog {
    padding: 80px 0;
    background: #121212;
}

.changelog-content {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.version-card {
    background: #252525;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #333;
    transition: all 0.3s;
}

.version-card:hover {
    border-color: #13B056;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.version-header h3 {
    color: #13B056;
    font-size: 1.5rem;
    margin: 0;
}

.version-date {
    color: #888;
    font-size: 0.9rem;
    background: rgba(19, 176, 86, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.update-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.update-list li {
    padding: 0.8rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    border-bottom: 1px solid #2a2a2a;
}

.update-list li:last-child {
    border-bottom: none;
}

.update-type {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.update-type.update {
    background: rgba(0, 122, 204, 0.2);
    color: #007ACC;
    border: 1px solid #007ACC;
}

.update-type.important {
    background: rgba(19, 176, 86, 0.2);
    color: #13B056;
    border: 1px solid #13B056;
}

.update-type.critical {
    background: rgba(255, 65, 54, 0.2);
    color: #FF4136;
    border: 1px solid #FF4136;
}

.update-type.fixed {
    background: rgba(255, 140, 0, 0.2);
    color: #FF8C00;
    border: 1px solid #FF8C00;
}

.update-type.optimized {
    background: rgba(147, 112, 219, 0.2);
    color: #9370DB;
    border: 1px solid #9370DB;
}

.changelog-footer {
    text-align: center;
}


/* 查看完整日志按钮 */

.view-all-btn {
    background: transparent;
    color: #13B056;
    border: 2px solid #13B056;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.view-all-btn::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: left 0.7s;
}

.view-all-btn:hover::before {
    left: 100%;
}

.view-all-btn:hover {
    background: rgba(19, 176, 86, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(19, 176, 86, 0.2);
}


/* 响应式设计 */

@media (max-width: 768px) {
    .version-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .update-list li {
        flex-direction: column;
        gap: 0.5rem;
    }
    .update-type {
        align-self: flex-start;
    }
    .version-date {
        align-self: flex-start;
    }
}


/* 软件预览区域 */

.preview {
    padding: 80px 0;
    background: #1a1a1a;
}

.preview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.preview-text h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.preview-text>p {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #252525;
    border-radius: 10px;
    border: 1px solid #333;
    transition: all 0.3s;
}

.feature-item:hover {
    border-color: #13B056;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.feature-item-content {
    flex: 1;
}

.feature-item h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-item p {
    color: #a0a0a0;
    margin: 0;
    line-height: 1.5;
}

.preview-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    min-height: auto;
    /* 取消溢出隐藏，允许图片超出容器 */
    overflow: visible;
    height: fit-content;
    margin-top: calc(2.5rem + 8.0rem);
    /* 为放大效果提供足够的空间 */
    padding: 0px;
}


/* 修改图片样式，实现无限制放大效果 */

.software-preview {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: block;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* 添加缩放变换原点 */
    transform-origin: center center;
    /* 确保图片在放大时能够覆盖其他元素 */
    position: relative;
    z-index: 1;
}


/* 鼠标悬停时，图片无限制放大 */

.preview-image:hover .software-preview {
    transform: scale(1.15);
    /* 增大缩放比例 */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    /* 确保放大后的图片在最上层 */
    z-index: 10;
}


/* 可选：如果你想要整个预览区域都有轻微的放大效果 */

.preview-image:hover {
    transform: scale(1.02);
    z-index: 5;
    /* 确保容器也在上层 */
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #252525 0%, #2d2d2d 100%);
    border-radius: 12px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 1.1rem;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.placeholder-icon {
    font-size: 3rem;
}

.placeholder-text {
    font-size: 1.2rem;
}


/* 响应式设计 */

@media (max-width: 968px) {
    .preview-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .preview-text {
        text-align: center;
    }
    .preview-text h2 {
        font-size: 2rem;
    }
    .feature-item {
        text-align: left;
    }
    .preview-image {
        margin-top: 0;
        padding: 30px;
        /* 移动端保持较大的内边距 */
    }
    /* 移动端保持放大效果 */
    .preview-image:hover .software-preview {
        transform: scale(1.12);
    }
}

@media (max-width: 768px) {
    .preview {
        padding: 60px 0;
    }
    .preview-text h2 {
        font-size: 1.8rem;
    }
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    .feature-icon {
        margin-top: 0;
    }
    .image-placeholder {
        height: 250px;
    }
    .preview-image {
        padding: 20px;
        /* 移动端适当减少内边距 */
    }
    /* 移动端缩小放大比例 */
    .preview-image:hover .software-preview {
        transform: scale(1.08);
    }
}