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

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部信息栏 */
.top-bar {
    background-color: #2c3e50;
    color: white;
    padding: 8px 0;
    font-size: 12px;
}

.top-info {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.top-info span {
    position: relative;
}

.top-info span:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background-color: #7f8c8d;
}

/* 头部导航 */
.header {
    background-color: #34495e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    color: #ecf0f1;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
}

/* 主要内容区域 */
.main-content {
    min-height: 60vh;
    padding: 40px 0;
}

/* 游戏入口区域 */
.game-entry {
    margin-bottom: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

/* 海报轮换区域 */
.poster-carousel {
    position: relative;
    height: auto;
    min-height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.slide.active {
    opacity: 1;
}

.slide img {
    max-width: 100%;
    max-height: 600px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.indicator.active {
    background-color: white;
    transform: scale(1.2);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* 轮换控制按钮 */
.carousel-prev,
.carousel-next {
    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-prev:hover,
.carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev:active,
.carousel-next:active {
    transform: translateY(-50%) scale(0.95);
}

/* 游戏入口按钮区域 */
.game-entry-content {
    text-align: center;
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.1);
}

.game-entry-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-entry-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
}

.game-entry-btn:active {
    transform: translateY(-1px);
}

/* 行业资讯区域 */
.industry-news {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.industry-news h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

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

.news-column {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.news-list {
    list-style: none;
}

.news-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.news-list li a {
    color: #495057;
    text-decoration: none;
    display: block;
    padding: 2px 0;
    transition: all 0.3s ease;
}

.news-list li a:hover {
    color: #3498db;
    text-decoration: underline;
    transform: translateX(3px);
}

.news-list li:hover {
    background-color: rgba(52, 152, 219, 0.05);
    border-left: 3px solid #3498db;
    padding-left: 8px;
}

.news-list li:last-child {
    border-bottom: none;
}

/* 新闻链接特殊效果 */
.news-list li a:active {
    transform: translateX(1px);
    color: #2980b9;
}

.news-list li a:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
    border-radius: 3px;
}

/* 为移动端优化触摸体验 */
@media (max-width: 768px) {
    .news-list li a {
        min-height: 44px; /* 确保触摸目标足够大 */
        display: flex;
        align-items: center;
    }
    
    .news-list li:hover {
        background-color: rgba(52, 152, 219, 0.08);
    }
}

/* 页脚 */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
}

.health-warning {
    background-color: #e74c3c;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-weight: bold;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.company-info p,
.contact-info p {
    margin-bottom: 8px;
    font-size: 14px;
}

.legal-notice {
    background-color: #34495e;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.6;
}

.footer-links {
    margin-top: 20px;
}

.footer-links a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 10px 0;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .main-nav a {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .top-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        font-size: 11px;
    }
    
    .top-info span:not(:last-child)::after {
        display: none;
    }
    
    .top-info a {
        display: block;
        padding: 2px 0;
    }
    
    .poster-carousel {
        min-height: 200px;
        margin: 20px 0;
    }
    
    .slide img {
        max-height: 300px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .game-entry-btn {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-column {
        padding: 15px;
    }
    
    .news-list li {
        font-size: 13px;
        padding: 8px 0;
    }
    
    .news-list li a {
        font-size: 13px;
        padding: 1px 0;
    }
    
    .news-list li:hover {
        padding-left: 6px;
    }
    
    .footer-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer {
        padding: 30px 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header-content {
        gap: 10px;
        padding: 8px 0;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .main-nav ul {
        gap: 8px;
    }
    
    .main-nav a {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .top-info {
        font-size: 10px;
        gap: 6px;
    }
    
    .poster-carousel {
        min-height: 180px;
        margin: 15px 0;
    }
    
    .slide img {
        max-height: 250px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .carousel-prev {
        left: 3px;
    }
    
    .carousel-next {
        right: 3px;
    }
    
    .game-entry-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .game-entry {
        margin-bottom: 30px;
    }
    
    .industry-news {
        padding: 15px;
    }
    
    .industry-news h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .news-column {
        padding: 12px;
    }
    
    .news-list li {
        font-size: 12px;
        padding: 6px 0;
    }
    
    .news-list li a {
        font-size: 12px;
        padding: 1px 0;
    }
    
    .news-list li:hover {
        padding-left: 5px;
    }
    
    .footer {
        padding: 20px 0 10px;
    }
    
    .footer-info {
        gap: 15px;
    }
    
    .company-info p,
    .contact-info p {
        font-size: 12px;
    }
}

/* 超小屏幕适配 (320px以下) */
@media (max-width: 320px) {
    .container {
        padding: 0 8px;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .main-nav a {
        padding: 4px 6px;
        font-size: 10px;
    }
    
    .top-info {
        font-size: 9px;
    }
    
    .poster-carousel {
        min-height: 150px;
    }
    
    .slide img {
        max-height: 200px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
    
    .game-entry-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .industry-news h2 {
        font-size: 18px;
    }
    
    .news-list li {
        font-size: 11px;
    }
    
    .news-list li a {
        font-size: 11px;
    }
    
    .news-list li:hover {
        padding-left: 4px;
    }
}

/* Footer容器样式 */
.footer-container {
    margin-top: 40px;
    width: 100%;
    /* 确保footer容器稳定显示，避免移动端闪烁 */
    position: relative;
    z-index: 1;
    /* 添加硬件加速 */
    will-change: auto;
    backface-visibility: hidden;
}
