/* 全局样式 - 暗黑炫酷风格 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --color-gold: #ffd700;
    --color-red: #ff4444;
    --color-white: #ffffff;
    --color-gray: #999999;
    --color-dark-gray: #666666;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background-color: var(--bg-primary);
    color: var(--color-white);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-white);
}

/* 头部导航 */
.header {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-gold);
}

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

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

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--color-white);
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav a:hover,
.nav a.active {
    background: var(--color-gold);
    color: var(--bg-primary);
}

/* 横幅区域 */
.banner {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23ffd700" stroke-width="0.5" opacity="0.1"/></svg>') repeat;
    background-size: 100px;
    animation: bgMove 20s linear infinite;
}

@keyframes bgMove {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.banner-content {
    text-align: center;
    z-index: 1;
}

.banner-title {
    font-size: 48px;
    color: var(--color-gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.4);
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.4); }
    to { text-shadow: 0 0 30px rgba(255, 215, 0, 1), 0 0 60px rgba(255, 215, 0, 0.6); }
}

.banner-subtitle {
    font-size: 20px;
    color: var(--color-gray);
}

/* 公告区域 */
.announcements {
    background: var(--bg-secondary);
    padding: 20px;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 8px;
    border-left: 4px solid var(--color-gold);
}

.announcements-title {
    color: var(--color-gold);
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.announcement-item {
    cursor: pointer;
    transition: all 0.3s;
    padding: 10px 15px;
    background: transparent;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--bg-tertiary);
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-item:hover {
    background: rgba(255, 215, 0, 0.05);
}

.announcement-item .ann-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.announcement-item .ann-title {
    color: var(--color-white);
    font-size: 14px;
}

.announcement-item:hover .ann-title {
    color: var(--color-gold);
}

.announcement-item .ann-date {
    color: var(--color-dark-gray);
    font-size: 13px;
    flex-shrink: 0;
}

.announcement-item .ann-pin {
    color: var(--color-red);
    font-weight: bold;
    font-size: 12px;
}

.announcement-item.pinned .ann-title {
    color: var(--color-gold);
    font-weight: bold;
}

/* 游戏列表区域 */
.section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 28px;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin: 10px auto 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.game-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid transparent;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
    border-color: var(--color-gold);
}

.game-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.game-info {
    padding: 20px;
}

.game-name {
    font-size: 20px;
    color: var(--color-white);
    margin-bottom: 10px;
}

.game-desc {
    color: var(--color-gray);
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-align: center;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold) 0%, #ffaa00 100%);
    color: var(--bg-primary);
    font-weight: bold;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffaa00 0%, var(--color-gold) 100%);
    transform: scale(1.05);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--color-white);
    border: 1px solid var(--color-dark-gray);
}

.btn-secondary:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.btn-disabled {
    background: var(--bg-tertiary);
    color: var(--color-dark-gray);
    cursor: not-allowed;
}

/* 下载下拉菜单 */
.download-dropdown {
    position: relative;
    display: inline-block;
}

.download-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--color-gold);
    border-radius: 8px;
    padding: 10px;
    min-width: 150px;
    margin-bottom: 5px;
    z-index: 100;
}

.download-dropdown:hover .download-menu {
    display: block;
}

.download-menu a,
.download-menu span {
    display: block;
    padding: 8px 12px;
    color: var(--color-white);
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 14px;
}

.download-menu a:hover {
    background: var(--color-gold);
    color: var(--bg-primary);
}

.download-menu span {
    color: var(--color-dark-gray);
}

.download-menu a:last-child,
.download-menu span:last-child {
    margin-bottom: 0;
}

/* 客服区域 */
.contact-section {
    background: var(--bg-secondary);
    padding: 40px 20px;
    text-align: center;
}

.contact-title {
    font-size: 24px;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.qrcode-box {
    background: var(--color-white);
    padding: 15px;
    border-radius: 12px;
}

.qrcode-box img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.contact-info {
    text-align: left;
}

.contact-info p {
    color: var(--color-gray);
    margin-bottom: 10px;
}

/* 底部 */
.footer {
    background: var(--bg-secondary);
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--bg-tertiary);
}

.footer p {
    color: var(--color-dark-gray);
    font-size: 14px;
}

.footer a {
    color: var(--color-gray);
}

/* 版本详情页 */
.detail-header {
    background: var(--bg-secondary);
    padding: 20px;
}

.detail-header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.back-btn {
    color: var(--color-gold);
    font-size: 24px;
    cursor: pointer;
}

.detail-title {
    font-size: 24px;
    color: var(--color-white);
}

/* 截图轮播 */
.screenshots-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.screenshots-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.screenshots-wrapper {
    display: flex;
    transition: transform 0.3s ease;
}

.screenshot-item {
    min-width: 100%;
    height: 400px;
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-secondary);
}

.screenshot-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.3s;
}

.screenshot-nav:hover {
    background: var(--color-gold);
    color: var(--bg-primary);
}

.screenshot-nav.prev {
    left: 10px;
}

.screenshot-nav.next {
    right: 10px;
}

.screenshots-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--color-gold);
}

/* 版本介绍 */
.description-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.description-box {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
}

.description-box h3 {
    color: var(--color-gold);
    margin-bottom: 15px;
    font-size: 20px;
}

.description-box p {
    color: var(--color-gray);
    line-height: 1.8;
    white-space: pre-wrap;
}

/* 下载区域 */
.download-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.download-box {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.download-box h3 {
    color: var(--color-gold);
    margin-bottom: 25px;
    font-size: 24px;
}

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

.download-btn {
    min-width: 150px;
    padding: 15px 30px;
    font-size: 16px;
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    color: var(--color-gold);
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-gray);
    font-size: 24px;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--color-white);
}

.modal-body {
    color: var(--color-gray);
    line-height: 1.8;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        gap: 15px;
    }

    .nav a {
        padding: 6px 12px;
        font-size: 14px;
    }

    .banner {
        height: 250px;
    }

    .banner-title {
        font-size: 32px;
    }

    .banner-subtitle {
        font-size: 16px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 22px;
    }

    .contact-content {
        flex-direction: column;
    }

    .screenshot-item {
        height: 250px;
    }

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

    .download-btn {
        width: 100%;
        max-width: 250px;
    }

    .detail-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 18px;
    }

    .logo img {
        height: 40px;
    }

    .banner-title {
        font-size: 24px;
    }

    .announcements-list {
        flex-direction: column;
    }
}
