html,
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    color: #c7d5e0;
    overflow-x: hidden;
}

#main {
    min-height: 100vh;
    padding: 0 0 0 0;
    background: #1b2838;
    /* 覆盖 body 渐变，避免任何露蓝 */
}

/* Steam风格头部 */
.header-section {
    background: linear-gradient(135deg, #171a21 0%, #2a475e 100%);
    padding: 2rem;
}

.game-hero {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.hero-logo {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-content {
    flex: 1;
}

.game-title {
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.game-subtitle {
    font-size: 1.1rem;
    color: #66c0f4;
    margin: 0 0 1rem 0;
}

.game-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(102, 192, 244, 0.2);
    color: #66c0f4;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid rgba(102, 192, 244, 0.3);
}

.hero-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: #8f98a0;
    border-left: 3px solid #66c0f4;
    padding-left: 1rem;
}

/* 主要内容区域 */
.main-content {
    background: #1b2838;
    padding: 2rem 2rem 0 2rem;
    margin-bottom: 0;
}

/* 产品概览区域：使用不透明渐变，去掉 rgba 半透明 */
.product-overview {
    max-width: 1200px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #071426 0%, #0b2540 40%, #133a56 100%);
    box-shadow: 0 8px 30px rgba(4, 8, 15, 0.6);
}

/* 媒体画廊 */
.media-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    height: fit-content;
}

.main-screenshot {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 0;
    overflow: hidden;
}

.screenshot-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #2a475e, #1e3c72);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: background 0.3s;
}

.video-play-btn:hover {
    background: linear-gradient(45deg, #3a5a7a, #2e4c8c);
}

.play-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.video-play-btn span {
    font-size: 1.2rem;
    color: #c7d5e0;
}

.screenshot-thumbnails {
    display: flex;
    gap: 0.5rem;
}

.thumbnail {
    width: 120px;
    height: 68px;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.thumbnail.active {
    border-color: #66c0f4;
}

.thumbnail:hover {
    border-color: rgba(102, 192, 244, 0.5);
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #2a475e, #1e3c72);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.play-mini {
    font-size: 1.5rem;
    color: #66c0f4;
}

/* 游戏信息区域 */
.game-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    height: fit-content;
    align-self: start;
}

.game-cover {
    text-align: center;
}

.cover-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.game-description p {
    color: #c7d5e0;
    line-height: 1.6;
    font-size: 0.9rem;
}

.game-features {
    margin-bottom: 0.8rem;
}

.feature {
    color: #8f98a0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.platform-support {
    margin-top: 0.8rem;
}

.platform-support h4 {
    display: none;
}

.platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.platform {
    background: rgba(102, 192, 244, 0.1);
    color: #66c0f4;
    padding: 0.2rem 0.2rem;
    border-radius: 4px;
    font-size: 0.7rem;
    border: 1px solid rgba(102, 192, 244, 0.2);
}

/* 购买区域 */
.purchase-section {
    max-width: 1200px;
    margin: 5rem auto 5rem;
    border-radius: 0;
    overflow: hidden;
}

/* 上部绿条 */
.purchase-section .purchase-top {
    height: 40px;
    background: linear-gradient(90deg, rgb(109, 140, 27) 0%, rgb(56, 80, 43) 100%);
    border-radius: 0;
    margin: 0;
}

.purchase-top .purchase-tip {
    display: inline-block;
    color: rgb(163, 207, 10);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 40px;
    padding-left: 18px;
    letter-spacing: 1px;
}

/* 下部灰色主体 */
.purchase-section .purchase-bottom {
    min-height: 90px;
    background: linear-gradient(to right, rgb(48, 58, 69) 0%, rgb(85, 99, 113) 100%);
    border-radius: 0;
    display: flex;
    align-items: center;
    padding: 0 18px;
    box-sizing: border-box;
}

/* 购买选项容器 */
.purchase-section .purchase-options {
    display: flex;
    gap: 30px;
    justify-content: flex-start;
    align-items: center;
}

/* 单个购买块 */
.purchase-section .purchase-block {
    width: 280px;
    padding: 10px 16px;
    border-radius: 6px;
    background: rgb(165, 200, 220);
    color: rgb(43, 80, 102);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

/* 标题和描述样式 */
.purchase-section .purchase-block p {
    margin: 0;
    line-height: 1.3;
}

.purchase-section .purchase-block .version-title {
    font-weight: 700;
}

.purchase-section .purchase-block .version-desc {
    font-size: 0.95rem;
    color: rgba(43, 80, 102, 0.9);
}

/* 悬停效果 */
.purchase-section .purchase-block:hover,
.purchase-section .purchase-block:focus {
    background: rgb(53, 143, 194);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    outline: none;
}

/* 内容区块 */
.section-block {
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.section-title {
    color: #ffffff;
    font-size: 1.2rem;
    margin: 0 0 1.2rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #66c0f4, transparent) 1;
    position: relative;
}

.section-content {
    color: #c7d5e0;
    line-height: 1.6;
}

.section-content p {
    margin: 0 0 1rem 0;
}

.section-content a {
    color: #66c0f4;
    text-decoration: none;
}

.section-content a:hover {
    text-decoration: underline;
}

.story-quote {
    background: rgba(27, 40, 56, 0.5);
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 1.5rem;
    text-align: center;
    border-left: 4px solid #66c0f4;
    line-height: 1.6;
}

/* 操作指南 */
.controls-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.controls-content .control-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.controls-content .control-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    font-size: 1rem;
}

.controls-content .control-keys {
    min-width: 140px;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.controls-content .control-desc {
    flex: 1;
    color: #fff;
}

.controls-content kbd {
    background: #222e3c;
    color: #66c0f4;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.95rem;
    border: 1px solid #66c0f4;
}


.control-tips p {
    color: #8f98a0;
}

/* 详细玩法 */
.gameplay-group {
    margin-bottom: 1.5rem;
}

.gameplay-group h4 {
    color: #66c0f4;
    margin: 0 0 0.8rem 0;
    font-size: 1.1rem;
}

.gameplay-group ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #c7d5e0;
}

.gameplay-group li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.credits-note {
    font-size: 0.8rem;
    color: #8f98a0;
}

/* 确保主要内容底部不露出 body 渐变，与 footer 紧密相连 */
.main-content {
    background: #1b2838;
    padding: 2rem 2rem 0 2rem;
    margin-bottom: 0;
}

.section-block:last-of-type {
    margin-bottom: 0;
}

/* 页脚：实色背景、备案号居中、作者链接固定在页面最右侧（绝对定位） */
.beian-bar {
    background: rgb(23, 26, 33);
    color: #ffffff;
    width: 100%;
    margin-top: 0;
    position: relative;
    /* 以便子元素绝对定位 */
    backdrop-filter: none;
    box-shadow: none;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

/* 内部容器用于在大屏时约束宽度并保证备案号居中 */
.beian-bar .beian-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    /* 让 beian-info 居中 */
}

/* 备案号居中显示并且链接始终白色（包括已访问状态） */
.beian-bar .beian-info {
    margin: 0;
    text-align: center;
}

.beian-bar .beian-info a,
.beian-bar .beian-info a:visited {
    color: #aaaaaa !important;
    /* 强制白色，覆盖浏览器已访问样式 */
    text-decoration: none;
}

/* 作者链接定位到浏览器视口右侧（靠近页面右缘） */
.beian-bar .beyondxin-link {
    position: absolute;
    right: 16px;
    /* 距离页面右侧 16px */
    top: 50%;
    transform: translateY(-50%);
    color: #aaaaaa;
    text-decoration: none;
}