/* ==========================================================
   小游戏中心
   ========================================================== */
.games-header {
    text-align: center;
    margin-bottom: 32px;
}

.games-header h2 {
    font-size: 30px;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.games-header p {
    font-size: 14px;
    color: #64748b;
}

.games-section {
    margin-bottom: 34px;
}

.games-section-title {
    font-size: 17px;
    font-weight: 800;
    color: #1e3a8a;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #dbeafe;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}

.game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 26px 16px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.06);
    transition: all 0.22s ease;
}

.game-card:hover {
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(30, 64, 175, 0.14);
    border-color: rgba(37, 99, 235, 0.35);
}

.game-card-icon {
    font-size: 44px;
    line-height: 1;
}

.game-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #1e3a8a;
}

.game-card-desc {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}

/* ==========================================================
   单机游戏页通用
   ========================================================== */
.solo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.solo-wrap h2 {
    font-size: 22px;
    font-weight: 800;
    color: #1e3a8a;
    margin: 0;
}

.solo-score {
    font-size: 15px;
    color: #475569;
    font-weight: 600;
}

.solo-score b {
    color: #1d4ed8;
    font-size: 20px;
}

.solo-btns {
    display: flex;
    gap: 10px;
}

.solo-tip {
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
}

/* ---- 人生模拟器 ---- */
.life-wrap {
    max-width: 680px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.life-header {
    text-align: center;
}

.life-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 4px;
}

.life-age {
    font-size: 14px;
    color: #64748b;
}

.life-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
}

.life-stat {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
}

.life-stat .label {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.life-stat .value {
    display: block;
    font-size: 20px;
    font-weight: 800;
}

.life-stat .value.good { color: #16a34a; }
.life-stat .value.bad { color: #ef4444; }

.life-story {
    min-height: 90px;
    font-size: 15px;
    line-height: 1.8;
    color: #1e293b;
    text-align: center;
    background: #eff6ff;
    border-radius: 12px;
    padding: 16px;
    width: 100%;
}

.life-choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.life-choice {
    padding: 11px 16px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    color: #334155;
    transition: all 0.15s ease;
}

.life-choice:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.life-end {
    text-align: center;
    padding: 20px 0;
}

.life-end-title {
    font-size: 28px;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.life-end-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 18px;
    white-space: pre-line;
}

@media (max-width: 640px) {
    .life-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
