:root {
    --bg-base: #1b2838;    /* 经典的经典深蓝色调 */
    --bg-header: #171a21;
    --bg-nav: rgba(42, 71, 94, 0.95);
    
    --text-main: #c6d4df;
    --text-title: #ffffff;
    --text-blue: #66c0f4;
    
    --btn-blue-grad: linear-gradient( to right, #47bfff 5%, #1a44c2 60%);
    --btn-green-grad: linear-gradient( to right, #799905 5%, #536904 95%);
    --box-bg: rgba( 0, 0, 0, 0.2 );
    --box-hover-bg: #101e23;
    
    --border-rad: 3px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: radial-gradient(ellipse at top, #2b394a 0%, var(--bg-base) 100%);
    color: var(--text-main);
    font-family: 'Motiva Sans', 'Noto Sans SC', Arial, Helvetica, sans-serif;
    min-height: 100vh;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

/* 顶部全站黑条 Header */
.global_header {
    background-color: var(--bg-header);
    height: 104px;
    display: flex;
    justify-content: center;
}

.header_content {
    width: 940px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--text-title);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.user_actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn_install {
    background: var(--btn-green-grad);
    color: #fff;
    text-decoration: none;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: var(--border-rad);
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn_login {
    color: #b8b6b4;
    text-decoration: none;
    font-size: 13px;
    padding: 0 10px;
}
.btn_login:hover { color: #fff; }

/* 蓝色导航条 */
.store_nav_area {
    width: 940px;
    margin: 0 auto;
    position: relative;
    top: -30px;
    z-index: 10;
}

.store_nav {
    background: var(--bg-nav);
    box-shadow: 0 0 3px rgba( 0, 0, 0, 0.4 );
    display: flex;
    align-items: center;
    padding: 0;
}

.store_nav a {
    color: var(--text-title);
    text-decoration: none;
    padding: 10px 15px;
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    transition: background 0.2s;
}

.store_nav a:hover, .store_nav a.active {
    background: var(--btn-blue-grad);
}

.search_box {
    margin-left: auto;
    margin-right: 5px;
    display: flex;
    background: #316282;
    border-radius: var(--border-rad);
    padding: 3px;
}

.search_box input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 3px 6px;
    outline: none;
}
.search_box input::placeholder { color: #000; font-style: italic; }

.search_btn {
    background: #67c1f5;
    border: none;
    border-radius: var(--border-rad);
    padding: 3px 8px;
    cursor: pointer;
}

/* 主内容区 */
.page_content {
    width: 940px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.home_cluster {
    margin-bottom: 40px;
}

.cluster_title {
    font-size: 14px;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: normal;
    margin-bottom: 10px;
}

/* Featured Game Banner (横刀图) */
.featured_showcase {
    background: rgba( 0, 0, 0, 0.2 );
    display: flex;
    height: 350px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.featured_showcase:hover {
    box-shadow: 0 0 15px #66c0f4;
}

.featured_img_wrapper {
    width: 616px; /* Steam main cap size typically */
    height: 100%;
}

.featured_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured_info {
    flex: 1;
    padding: 20px;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII='); /* pixel pattern can go here, using dark grad instead */
    background: linear-gradient( to bottom, #0a141d 0%, #16202d 100%);
    display: flex;
    flex-direction: column;
}

.featured_title {
    font-size: 24px;
    color: var(--text-title);
    margin-bottom: 10px;
}

.featured_desc {
    font-size: 13px;
    line-height: 18px;
    flex-grow: 1;
}

.tags_row {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 20px;
}

.feature_tag {
    background: rgba( 103, 193, 245, 0.2 );
    color: var(--text-blue);
    padding: 0 7px;
    line-height: 19px;
    font-size: 11px;
    border-radius: 2px;
}

.price_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sys_req {
    color: #8f98a0;
    font-size: 18px;
}

.price_tag {
    background: #000;
    padding: 2px 8px;
    font-size: 13px;
    color: #66c0f4;
}

/* 常规网格 (Capsule Grid) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.capsule_card {
    background: var(--box-bg);
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.capsule_card:hover {
    transform: translateY(-2px);
    background: var(--box-hover-bg);
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

/* Hover状态下的高亮描边效果 */
.capsule_card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    opacity: 0;
    border: 1px solid #66c0f4;
    transition: opacity 0.2s;
}

.capsule_card:hover::after {
    opacity: 1;
}

.cap_img_container {
    height: 140px;
    overflow: hidden;
}

.cap_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cap_content {
    padding: 10px 12px 14px;
}

.cap_title {
    font-size: 15px;
    color: var(--text-title);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.cap_tags {
    font-size: 12px;
    color: #384959;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 15px;
}

.cap_price_row {
    font-size: 13px;
    color: #8f98a0;
    display: flex;
    justify-content: space-between;
}


/* Footer */
.global_footer {
    background: var(--bg-header);
    padding: 30px 0;
}

.footer_content {
    width: 940px;
    margin: 0 auto;
}

.footer_content hr {
    border: 0;
    height: 1px;
    background: #363c44;
    margin-bottom: 15px;
}

.footer_content p {
    font-size: 12px;
    color: #8f98a0;
}

@media (max-width: 960px) {
    .header_content, .store_nav_area, .page_content, .footer_content {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    .featured_showcase {
        flex-direction: column;
        height: auto;
    }
    .featured_img_wrapper {
        width: 100%;
        height: 250px;
    }
    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }
}
