:root {
    --bg-color: #0c0d10;
    --text-color: #f0f2f5;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
    /* 霓虹发光色 */
    --neon-stardew: #ffaa00; 
    --neon-zelda: #3fffcf;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 300;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.lobby-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
    box-sizing: border-box;
    /* 整体背景加个暗纹，更有質感 */
    background: radial-gradient(circle at center, #1a1b21 0%, #0c0d10 70%);
}

.main-header {
    text-align: center;
    margin-bottom: 6vh;
}

.library-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 10px rgba(255,255,255,0.1);
}

.library-subtitle {
    font-size: 1rem;
    color: #888;
    margin: 10px 0 0 0;
    letter-spacing: 2px;
}

.game-showcase {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1100px;
    width: 100%;
}

.game-card {
    position: relative;
    width: 320px;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    /* 玻璃拟态基础层 */
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}

/* 霓虹发光与悬浮特效 (重要：iPad上的hover效果只有点击时才显示) */
.stardew-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(255, 170, 0, 0.3), 0 0 20px rgba(255, 170, 0, 0.2);
    border: 1px solid rgba(255, 170, 0, 0.4);
}

.zelda-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(63, 255, 207, 0.3), 0 0 20px rgba(63, 255, 207, 0.2);
    border: 1px solid rgba(63, 255, 207, 0.4);
}

/* 卡片背景图 (之后可以替换为实际海报图) */
.stardew-card { background: #2c1a4d; }
.zelda-card { background: #0f342e; }

/* 优雅的半透明渐变蒙层 */
.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.1) 100%);
}

.card-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 30px 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.platform-tag {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    color: #fff;
    background-color: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.game-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.game-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin: 0 0 25px 0;
    font-weight: 300;
}

.view-btn {
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 25px;
    border-radius: 30px;
    letter-spacing: 1.5px;
    background-color: rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.game-card:hover .view-btn {
    background-color: #fff;
    color: #000;
    border: 1px solid #fff;
}

.lobby-footer {
    font-size: 0.8rem;
    color: #444;
    text-align: center;
    margin-top: 6vh;
    letter-spacing: 2px;
}

/* ==========================================================================
   🚀 终极 HTML 直连图样式增强
   ========================================================================== */
.card-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;      /* 提升层级，防止被卡片默认背景色吃掉 */
    opacity: 0.75;   /* 留有一点暗色基调衬托白字 */
}

/* 悬浮时放大并完全变亮 */
.game-card:hover .card-bg-img {
    transform: scale(1.1);
    opacity: 1;
}

/* 强行让蒙层和文字浮在图片上面 */
.card-overlay { z-index: 2; }
.card-content { z-index: 3; }

/* ==================== 📬 新增：底部联系方式样式（带标题版） ==================== */
.contact-section {
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: center;
}

/* 标题样式：采用跟你大厅卡片里的标签类似的浅灰质感 */
.contact-title {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 2px;
    color: #6d6d6d5d;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.contact-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8e8e93;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.01);
    transition: all 0.25s ease-in-out;
}

.contact-item:hover {
    color: #ffffff;
    background: rgba(63, 255, 207, 0.05); /* 悬停时淡淡的霓虹绿微光 */
    border-color: rgba(63, 255, 207, 0.3);
    box-shadow: 0 0 10px rgba(63, 255, 207, 0.1);
}
