/* 游戏页面专用样式 */

/* 面包屑导航 */
.breadcrumb {
    background: var(--darker-bg);
    padding: 12px 0;
    margin-top: 70px;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin: 0 10px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb li:last-child span {
    color: var(--text-primary);
    font-weight: 500;
}

/* 游戏主要内容 */
.game-main {
    min-height: calc(100vh - 70px);
}

/* 游戏横幅 */
.game-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.game-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.game-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.8) 0%, rgba(15, 15, 35, 0.6) 100%);
    z-index: 2;
}

.game-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-hero-content {
    position: relative;
    z-index: 3;
    padding: 60px 0;
}

.game-info {
    max-width: 600px;
}

.game-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.game-subtitle {
    font-size: 2.5rem;
    display: block;
    margin-top: 10px;
}

.game-tagline {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.game-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.game-meta span {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.game-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* 内容网格 */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.main-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.main-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.main-content h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--text-primary);
}

.main-content h4 {
    font-size: 1.2rem;
    margin: 20px 0 10px;
    color: var(--primary-color);
}

.main-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list strong {
    color: var(--primary-color);
}

/* 策略部分 */
.strategy-section {
    background: rgba(99, 102, 241, 0.05);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    border-left: 4px solid var(--primary-color);
}

.strategy-section ol {
    color: var(--text-secondary);
    line-height: 1.8;
}

.strategy-section li {
    margin-bottom: 15px;
}

.strategy-section strong {
    color: var(--primary-color);
}

/* 高级技巧卡片 */
.advanced-tips {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.tip-card {
    background: var(--darker-bg);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.tip-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.tip-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.game-specs,
.game-tags {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.game-specs h3,
.game-tags h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.specs-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.spec-item span {
    color: var(--text-secondary);
    text-align: right;
}

/* 标签 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* 游戏截图 */
.game-screenshots {
    padding: 60px 0;
    background: #f8f9fa;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.screenshot-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: box-shadow 0.3s ease;
}

.screenshot-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.screenshot-image {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
}

.screenshot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.screenshot-caption {
    padding: 15px;
    background: #ffffff;
    border-top: 1px solid #f1f3f4;
}

.screenshot-caption h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
}

/* 下载区域 */
.game-download {
    padding: 60px 0;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.download-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.download-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    position: relative;
}

.download-card.featured::before {
    content: '推荐';
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.download-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.download-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.download-size {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.download-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.download-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.download-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.download-actions {
    text-align: center;
}

.download-note {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 下载帮助 */
.download-help {
    margin-top: 60px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.download-help h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    text-align: center;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.help-item {
    text-align: center;
    padding: 20px;
}

.help-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.help-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.help-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 相关游戏推荐 */
.related-games {
    padding: 60px 0;
    background: var(--darker-bg);
}

.related-games .games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.related-games .game-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.related-games .game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.related-games .game-image {
    height: 200px;
    overflow: hidden;
}

.related-games .game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-games .game-card:hover .game-image img {
    transform: scale(1.1);
}

.related-games .game-info {
    padding: 25px;
    text-align: center;
}

.related-games .game-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.related-games .game-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .game-title {
        font-size: 2.5rem;
    }

    .game-subtitle {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .game-hero {
        min-height: 50vh;
    }

    .game-title {
        font-size: 2rem;
    }

    .game-subtitle {
        font-size: 1.5rem;
    }

    .game-meta {
        flex-direction: column;
        gap: 10px;
    }

    .game-actions {
        flex-direction: column;
    }

    .main-content,
    .game-specs,
    .game-tags,
    .download-help {
        padding: 25px;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .download-cards {
        grid-template-columns: 1fr;
    }

    .help-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        padding: 10px 0;
    }

    .breadcrumb li:not(:last-child)::after {
        margin: 0 5px;
    }

    .game-hero-content {
        padding: 40px 0;
    }

    .game-title {
        font-size: 1.8rem;
    }

    .game-subtitle {
        font-size: 1.3rem;
    }

    .btn-large {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .main-content,
    .game-specs,
    .game-tags {
        padding: 20px;
    }

    .spec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}