/* 专题页面通用样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 分类页面头部内容 */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* 分类页面logo样式 */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.logo span {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

/* 分类页面导航样式 */
.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-list li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.nav-list li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 语言选择器样式 */
.language-selector select {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
}

.language-selector select option {
    background: #333;
    color: white;
}

/* 主内容区域 */
.main {
    padding: 20px 0;
}

/* 保持原有的nav-brand样式以兼容其他页面 */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.nav-brand h1 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.separator {
    color: rgba(255,255,255,0.7);
}

.current {
    color: #fff;
    font-weight: 500;
}

/* 主要内容区域 */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

.content-article {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 文章头部 */
.article-header {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    padding: 50px 40px;
    text-align: center;
}

.article-header h1 {
    font-size: 2.5em;
    margin: 0 0 15px 0;
    font-weight: 700;
    line-height: 1.2;
}

.article-meta {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* 文章内容 */
.article-content {
    padding: 50px 40px;
    line-height: 1.8;
    color: #444;
}

.lead {
    font-size: 1.2em;
    font-weight: 500;
    color: #555;
    margin-bottom: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 4px solid #4ecdc4;
}

.article-content h2 {
    color: #333;
    margin: 50px 0 25px 0;
    font-size: 1.8em;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.article-content h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    border-radius: 2px;
}

.article-content h3 {
    color: #4ecdc4;
    margin: 35px 0 20px 0;
    font-size: 1.4em;
    font-weight: 600;
}

.article-content h4 {
    color: #333;
    margin: 25px 0 15px 0;
    font-size: 1.2em;
    font-weight: 600;
}

.article-content p {
    margin: 20px 0;
    text-align: justify;
}

.article-content ul, .article-content ol {
    margin: 25px 0;
    padding-left: 30px;
}

.article-content li {
    margin: 12px 0;
}

.article-content strong {
    color: #333;
    font-weight: 600;
}

/* 游戏分类卡片 */
.game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.category-card {
    background: white;
    border: 2px solid #e9ecef;
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.category-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover {
    border-color: #4ecdc4;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.category-card:hover:before {
    transform: scaleX(1);
}

.category-card h3 {
    color: #4ecdc4;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.category-card p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* 特色框 */
.feature-box {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    padding: 35px;
    border-radius: 15px;
    margin: 40px 0;
    text-align: center;
}

.feature-box h3 {
    margin-bottom: 20px;
    font-size: 1.5em;
}

.feature-box p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.95;
}

/* 优势列表 */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.advantage-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #4ecdc4;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.advantage-item h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.advantage-item p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* CTA 按钮区域 */
.cta-section {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    margin: 60px 0;
}

.cta-section h3 {
    font-size: 2.2em;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 35px;
    opacity: 0.95;
}

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

.cta-button {
    display: inline-block;
    padding: 18px 35px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
}

.cta-button.primary {
    background: white;
    color: #00b894;
}

.cta-button.primary:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-button.secondary:hover {
    background: white;
    color: #00b894;
    transform: translateY(-3px);
}

/* 相关链接 */
.related-links {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    border-radius: 15px;
    margin-top: 60px;
}

.related-links h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.5em;
    text-align: center;
}

.related-links ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.related-links li {
    margin: 0;
}

.related-links a {
    display: block;
    color: #4ecdc4;
    text-decoration: none;
    font-weight: 500;
    padding: 12px 20px;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.related-links a:hover {
    border-color: #4ecdc4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 页脚 */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

.footer p {
    margin: 0;
    opacity: 0.9;
}

.footer a {
    color: #4ecdc4;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* 分类页面移动端样式 */
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-list {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    
    .nav-list li a {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .language-selector select {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .nav-brand {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .article-header {
        padding: 40px 25px;
    }
    
    .article-header h1 {
        font-size: 2em;
    }
    
    .article-content {
        padding: 30px 25px;
    }
    
    .game-categories,
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 40px 25px;
    }
    
    .cta-section h3 {
        font-size: 1.8em;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .related-links ul {
        grid-template-columns: 1fr;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .article-header h1 {
        font-size: 1.6em;
    }
    
    .article-content h2 {
        font-size: 1.5em;
    }
    
    .cta-section h3 {
        font-size: 1.5em;
    }
    
    .category-card,
    .advantage-item {
        padding: 20px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-article {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #44a08d 0%, #4ecdc4 100%);
}

/* 选择文本样式 */
::selection {
    background: rgba(78, 205, 196, 0.3);
    color: #333;
}

::-moz-selection {
    background: rgba(78, 205, 196, 0.3);
    color: #333;
}

/* 游戏网格样式 */
.games-section {
    margin-top: 30px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.game-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
    position: relative;
    aspect-ratio: 1/1;
    border: 2px solid transparent;
    background: white;
}

.game-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15), 0 0 0 2px rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 107, 107, 0.5);
}

.game-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.game-card-image {
    position: relative;
    overflow: hidden;
    height: 80%;
    width: 100%;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-card-image img {
    transform: scale(1.1);
}

.game-card-title {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    height: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-top: 1px solid #eee;
}