/*
 * style.css
 * 基于截图重建的近似样式
 */

:root {
    --main-bg-color: #1a1a1a;
    --text-color: #ffffff;
    --secondary-text-color: #aaaaaa;
    --link-color: #8cafff;
    --accent-color: #f7a000; /* 星星、部分高亮 */
    --button-bg-color: #007bff; /* 蓝色按钮 */
    --hover-color: #0056b3;
    --border-color: #333;
    --max-width: 1200px;
    --padding-sides: 20px;
}

/* 基础重置和全局样式 */
body {
    font-family: Arial, sans-serif;
    background-color: var(--main-bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

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

h1, h2, h3, h4, h5 {
    margin-top: 0;
    font-weight: 600;
}

ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 5px;
}

/* 占位符图标样式 (假设没有实际的图标库) */
.icon-globe, .icon-caret-down, .icon-share, .icon-star, .icon-key, .icon-drift, .icon-friends, .icon-play, .icon-like, .icon-users {
    /* 简单占位符样式 */
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    /* background-color: var(--secondary-text-color); */
    border-radius: 2px;
}

.icon-star {
    color: var(--accent-color);
}

.icon-share, .icon-key, .icon-drift, .icon-friends {
    color: var(--accent-color);
}

/* 头部 Header */
.header {
    background-color: var(--main-bg-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px var(--padding-sides);
    max-width: var(--max-width);
    margin: 0 auto;
}

.header-logo a {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-color);
    display: flex;
}

.header-logo a img {
    width: 30px;
    height: 30px;
    object-fit: cover;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85em;
    color: var(--secondary-text-color);
}

.language-selector {
    cursor: pointer;
}

/* 主要内容 Main Content */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px var(--padding-sides);
}

/* 游戏信息头部 */
.game-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.game-info-left {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.poly-track-logo-link {
    /* 占位符图片容器样式 */
    display: block;
    width: 70px;
    height: 70px;
    background-color: #333; /* 占位色 */
}

.poly-track-logo-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
}

.game-title-container h1 {
    font-size: 2em;
    margin-bottom: 0;
}

.game-title-container h2 {
    font-size: 1.2em;
    color: var(--secondary-text-color);
    margin-top: 0;
}

.game-description-short {
    font-size: 0.9em;
    color: var(--secondary-text-color);
}

.game-rating-share {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
}

.share-button {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.rating {
    background-color: var(--border-color);
    padding: 5px 10px;
    border-radius: 5px;
}

/* 游戏 CTA (Call To Action) 部分 */
.game-cta-section {
    margin-bottom: 30px;
}

.game-display-area {
    width: 100%;
    height: 0; /* 视频/游戏区高度 */
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    background-size: cover; /* 确保图片覆盖整个区域 */
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 56.25%; /* 9 / 16 * 100% = 56.25% */
}

.play-game-button {
    font-size: 2.5em;
    padding: 20px 40px;
    background: linear-gradient(180deg, #66bb66, #00aa00); /* 截图中的绿色渐变 */
    color: var(--text-color);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: background 0.2s;
    margin-top: 80%;
}

.game-actions {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 0.9em;
    color: var(--secondary-text-color);
}

.action-link {
    color: var(--secondary-text-color);
}

.action-link:hover {
    color: var(--text-color);
}

/* 游戏详情和热门游戏 */
.game-details-and-hot-games {
    display: flex;
    gap: 30px;
}

.game-details {
    flex: 3;
}

.details-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.details-summary h3 {
    font-size: 1.5em;
}

.details-stats {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: var(--secondary-text-color);
}

.details-meta p {
    margin: 5px 0;
    font-size: 0.95em;
}

.details-meta p span:first-child {
    font-weight: bold;
    display: inline-block;
    width: 80px;
    color: var(--secondary-text-color);
}

.long-description {
    margin-top: 15px;
}

.game-details h4 {
    color: var(--link-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.game-details h5 {
    margin-top: 10px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.game-details ul {
    list-style-type: '— '; /* 截图中的特殊列表标记 */
    padding-left: 20px;
    font-size: 0.95em;
}

/* 热门游戏 */
.hot-games {
    flex: 1.5;
    min-width: 250px;
    background-color: #242424; /* 略微浅一点的背景 */
    padding: 15px;
    border-radius: 8px;
    align-self: flex-start;
}

.hot-games h3 {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.game-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.hot-game-item {
    display: flex;
    align-items: center;
    background-color: #2c2c2c;
    border-radius: 5px;
    padding: 5px;
    transition: background-color 0.2s;
    color: var(--text-color);
}

.hot-game-item:hover {
    background-color: #3a3a3a;
}

.hot-game-item img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    margin-right: 8px;
    background-color: #444; /* 占位色 */
}

.game-text {
    display: flex;
    flex-direction: column;
    font-size: 0.85em;
}

.game-name {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px; /* 限制宽度以防止溢出 */
}

.game-rating {
    color: var(--secondary-text-color);
    font-size: 0.9em;
}

.game-rating .icon-star {
    margin-right: 2px;
}

/* 页脚 Footer */
.footer {
    background-color: #111;
    padding: 30px var(--padding-sides) 15px;
    border-top: 1px solid var(--border-color);
    /* 里边的内容横向居中 */
    margin: 0 auto;
}

.footer-body {
    display: flex;
    max-width: var(--max-width);
    justify-content: space-around;
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
    margin: 0 auto;
}

.footer-logo {
    max-width: var(--max-width);;
    margin-bottom: 20px;
}

.footer-logo a {
    font-size: 1.5em;
    font-weight: bold;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-logo img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    background-color: #555; /* 占位色 */
    border-radius: 5px;
}

.footer-logo p {
    font-size: 0.85em;
    color: var(--secondary-text-color);
}

.footer-links-container {
    display: flex;
    gap: 50px;
    margin-bottom: 20px;
}

.footer-column h5 {
    color: var(--text-color);
    font-size: 1em;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li a {
    color: var(--secondary-text-color);
    font-size: 0.9em;
    line-height: 2;
}

.footer-column li a:hover {
    color: var(--text-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: var(--secondary-text-color);
}

.footer-legal-links a {
    color: var(--secondary-text-color);
    margin: 0 5px;
}

.footer-legal-links span {
    color: var(--secondary-text-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .play-game-button{
        font-size: 1.0em;
    }
    .game-header-section,
    .game-details-and-hot-games {
        flex-direction: column;
    }

    .game-info-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .game-title-container {
        margin-top: 10px;
    }

    .game-rating-share {
        margin-top: 15px;
        justify-content: center;
        width: 100%;
    }

    .hot-games {
        margin-top: 20px;
        min-width: auto;
    }

    .footer-links-container {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: space-between;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
}