* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "SimHei", Arial, sans-serif;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    overflow-x: hidden;
}

/* 顶部导航 - 现在在container外面 */
.header {
    width: 100%;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 100;
}

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

.site-title {
    font-size: 18px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.home-link {
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.home-link:hover {
    color: #ffd700;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
}

/* 主横幅 - 改为轮播图 */
.main-banner {
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 轮播图导航点 */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot.active {
    background: #ffd700;
    border-color: #ffd700;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 215, 0, 0.8);
    transform: scale(1.1);
}

/* 轮播图箭头 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

/* 移除原来的img样式 */
.main-banner-img {
    display: none;
}

/* 游戏区域 */
.games-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.games-left {
    flex: 1;
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.8), rgba(20, 20, 40, 0.9));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.games-left h3 {
    color: #ffd700;
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

.game-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: background 0.3s ease;
}

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

.game-rank {
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
}

.game-name {
    flex: 1;
    font-size: 12px;
    color: #ffffff;
}

.game-tag {
    font-size: 11px;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
}

.games-right {
    flex: 2;
}

.games-right h3 {
    color: #ffd700;
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.featured-games {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-game {
    display: flex;
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.8), rgba(20, 20, 40, 0.9));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.featured-game img {
    width: 120px;
    height: 80px;
    object-fit: cover;
}

.game-info {
    padding: 10px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-title {
    font-size: 14px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 5px;
}

.game-desc {
    font-size: 12px;
    color: #cccccc;
    line-height: 1.4;
    margin-bottom: 8px;
}

.play-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.play-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

/* 下载盒子按钮样式 */
.download-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.4);
    background: linear-gradient(45deg, #ffed4e, #ffd700);
    color: #000;
    text-decoration: none;
}

/* 按钮容器样式 */
.game-buttons, .promotion-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* 特戒区域 */
.special-rings {
    width: 100%;
    margin-bottom: 20px;
}

.special-rings-banner {
    width: 100%;
    height: auto;
    display: block;
}

/* 游戏宣传区域 */
.game-promotions {
    margin-bottom: 20px;
    padding: 0 20px;
}

.promotion-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
    justify-content: center;
}

.promotion-game {
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.8), rgba(20, 20, 40, 0.9));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.promotion-game:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.promotion-game img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.promotion-text {
    padding: 15px;
    text-align: center;
}

.promotion-text h4 {
    font-size: 16px;
    color: #ffd700;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.promotion-text p {
    font-size: 12px;
    color: #cccccc;
    line-height: 1.4;
    margin-bottom: 12px;
    min-height: 32px;
}

.enter-game {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-right: 8px;
}

.enter-game:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(78, 205, 196, 0.3);
    color: white;
    text-decoration: none;
}

/* 月灵和超人横幅 */
.moonspirit-banner, .superman-banner {
    width: 100%;
    margin-bottom: 20px;
}

.moonspirit-img, .superman-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 游戏图标区域 */
.game-icons {
    margin-bottom: 20px;
    padding: 0 20px;
}

.icon-row {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.game-icon {
    text-align: center;
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.8), rgba(20, 20, 40, 0.9));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    flex: 1;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.game-icon:hover {
    transform: translateY(-3px);
}

.game-icon img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.game-icon span {
    display: block;
    font-size: 12px;
    color: #ffd700;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 更多游戏 */
.more-games {
    padding: 0 20px;
    margin-bottom: 30px;
}

.more-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.mini-game {
    display: flex;
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.8), rgba(20, 20, 40, 0.9));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.mini-game:hover {
    transform: translateY(-2px);
}

.mini-game img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.mini-game-info {
    padding: 10px;
    flex: 1;
}

.mini-title {
    font-size: 12px;
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 4px;
}

.mini-desc {
    font-size: 10px;
    color: #cccccc;
    line-height: 1.3;
    margin-bottom: 4px;
}

.mini-tag {
    font-size: 9px;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
    padding: 1px 4px;
    border-radius: 8px;
    display: inline-block;
}

/* 中等屏幕响应式设计 */
@media (max-width: 992px) and (min-width: 769px) {
    .promotion-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* 小屏幕响应式设计 */
@media (max-width: 768px) {
    .games-section {
        flex-direction: column;
    }
    
    .promotion-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .icon-row {
        flex-wrap: wrap;
    }
    
    .game-icon {
        min-width: calc(50% - 10px);
    }
    
    .featured-game {
        flex-direction: column;
    }
    
    .featured-game img {
        width: 100%;
        height: 150px;
    }
    
    .main-banner {
        height: 250px;
    }

    /* 移动端按钮样式 */
    .game-buttons, .promotion-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .play-btn, .enter-game, .download-btn {
        flex: 1;
        min-width: calc(50% - 4px);
        text-align: center;
    }

    /* 移动端轮播图样式 */
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .carousel-dots {
        bottom: 15px;
        gap: 8px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    /* 移动端微信二维码样式 */
    .wechat-qr-float {
        right: 15px;
        bottom: 60px;
    }

    .wechat-btn {
        padding: 10px 12px;
        font-size: 12px;
    }

    .wechat-icon {
        font-size: 16px;
    }

    .qr-popup {
        width: 200px;
        right: -10px;
    }

    .qr-image {
        width: 120px;
        height: 120px;
    }
}

/* 动画效果 */
@keyframes glow {
    0%, 100% { text-shadow: 0 0 5px #ffd700, 0 0 10px #ffd700, 0 0 15px #ffd700; }
    50% { text-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700, 0 0 30px #ffd700; }
}

.site-title {
    animation: glow 2s ease-in-out infinite;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ffed4e, #ffd700);
}

/* 底部版权样式 */
.footer {
    width: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.9), rgba(5, 5, 15, 0.95));
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    margin-top: 40px;
    padding: 30px 0 20px;
    position: relative;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.copyright {
    margin-bottom: 20px;
}

.copyright p {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 5px;
}

.copyright p:first-child {
    color: #ffd700;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    transform: translateY(-1px);
}

/* 移动端底部版权响应式 */
@media (max-width: 768px) {
    .footer {
        padding: 20px 0 15px;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    .footer-link {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .copyright p {
        font-size: 13px;
    }
    
    .copyright p:first-child {
        font-size: 15px;
    }
}

/* 微信二维码悬浮模块 */
.wechat-qr-float {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 1000;
}

.wechat-btn {
    background: linear-gradient(45deg, #07c160, #38d9a9);
    color: white;
    padding: 12px 16px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: bold;
    user-select: none;
}

.wechat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(7, 193, 96, 0.4);
    background: linear-gradient(45deg, #06a555, #2ec49e);
}

.wechat-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wechat-text {
    font-size: 12px;
}

.qr-popup {
    position: absolute;
    right: 0;
    bottom: 70px;
    width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.qr-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.qr-header {
    background: linear-gradient(45deg, #07c160, #38d9a9);
    color: white;
    padding: 12px 16px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.qr-content {
    padding: 20px;
    text-align: center;
}

.qr-image {
    width: 150px;
    height: 150px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 12px;
    object-fit: cover;
}

.qr-tip {
    color: #666;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

/* 微信二维码模块箭头 */
.qr-popup::after {
    content: '';
    position: absolute;
    right: 20px;
    bottom: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
} 