body {
    margin: 0;
    background-color: #49677e;
    font-family: Arial, sans-serif;
}

body a {
    text-decoration: none;
    color: inherit;
}

#app{max-width:640px;text-align: center;margin:0 auto;}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #415463;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 3rem;
    height: 3rem;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    visibility: visible;
    width: 500px;
    margin-left: 150px;
}

.nav-item {
    font-size: 1rem;
    color: white;
    cursor: pointer;
}

.nav-item:hover {
    color: #ff6b6b;
}

.menu-toggle {
    display: none;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
}

.menu-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.close-btn {
    background: none;
    border: none;
    font-size: 3rem;
}

.sidebar-menu {
    padding: 1rem;
}

.menu-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-item:hover {
    color: #ff6b6b;
}

.menu-item.active {
    color: #ff6b6b;
    font-weight: bold;
}

.game-frame-container {
    height: 600px;
    position: relative;
    padding: 10px;
    text-align: center;
}

.game-iframe {
    height: 100%;
    border: none;
    border-radius: 5px;
}

.title-game {
    margin: auto;
    text-align: center;
}

.title-game h1 {
    margin: 0;
    font-size: 26px;
    color: #fff;
    font-weight: bold;
    text-align: center;
    min-width: 200px;
    overflow: hidden;
    padding-top: 5px;
}

.des-container {
    display: flex;
    justify-content: space-between;
    padding: 40px;
    color: white;
}

.mess-box{
    margin: 10px;
    background-color: #415463;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: left;
}



.game-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.game-item {
    width: 130px;
    height: 130px;
    background-color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: white;
    border-radius: 5px;
}

.game-item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.game-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.game-name {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0px 10px 5px 10px;
    background: linear-gradient(180deg, transparent 0, #000);
    font-size: 18px;
    font-weight: 400;
    line-height: 21px;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.about-game {
   
}

.about-game a {
    color: #f34b4c;
}



.my-dynamic-related-cards {margin: 32px 0; display: flex; flex-direction: column; gap: 14px;}
.related-card {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 22px; background: #f8f9fa; border: 1px solid #e5e7eb;
    border-radius: 14px; text-decoration: none; color: #111; font-size: 16px;
    transition: all 0.25s; box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.my-dynamic-related-cards .related-card:nth-child(1) {
    background: #e3f2fd;           /* 浅蓝 */
    /* 或使用渐变：background: linear-gradient(135deg, #e3f2fd, #bbdefb); */
}

.my-dynamic-related-cards .related-card:nth-child(2) {
    background: #e8f5e9;           /* 浅绿 */
}

.my-dynamic-related-cards .related-card:nth-child(3) {
    background: #fff3e0;           /* 浅橙 */
}

.my-dynamic-related-cards .related-card:nth-child(4) {
    background: #f3e5f5;           /* 浅紫 */
}

/* 悬停效果（可选） */
.related-card:hover {
    filter: brightness(1.08);
    transform: translateY(-3px);
    transition: all 0.2s;
}


.related-card:hover {
    background: #eef2ff; border-color: #4f46e5; transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79,70,229,0.15);
}
.card-title {font-weight: 700; font-size: 17px; line-height: 1.3;}
.card-desc {font-size: 14px; color: #555; margin-top: 5px; line-height: 1.4;}
.card-arrow {font-size: 30px; color: #4f46e5; font-weight: bold;}
@media (max-width: 768px) {.related-card {padding: 18px;}}



.other-container {
    background-color: #415463;
    margin: 20px auto;
    color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    width: 60%;
}

.float {
    width: 50px;
    height: 50px;
    position: fixed;
    bottom: 50px;
    right: 50px;
    z-index: 100;
    cursor: pointer;
    display: block;
    opacity: 0.9;
    box-shadow: 0 0 3px 0 #f0f0f0;
    border: 2px solid #ffcd42;
    border-radius: 50%;
    overflow: hidden;
    text-align: center;
    background-color: #125696;
}

.float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer {
    background-color: #415463;
    color: #ecf0f1;
    padding: 20px 0 20px;
    margin-top: 10px;
}

.footer-content h2 {
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

.footer-bottom a:hover {
    color: #ff6b6b;
}

.footer-bottom a {
    text-decoration: none;
    color: #bdc3c7;
}

.rating-section {
    font-size: 14px;
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rating-section .stars {
    font-size: 18px;
    color: #FFD700;
    /* 金色 */
}

.rating-section .votes {
    color: #ff6b6b;
}

@media (max-width: 1200px) {
    .des-container {
        display: block;
        padding-top: 0px;
    }

 
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .menu-sidebar.active {
        left: 0;
    }

    .des-container {
        padding: 0px 10px 10px 10px;
    }



    .float {
        right: 20px;
    }

    .other-container {
        margin: 10px;
        padding: 10px;
        width: auto;
    }

    .game-item {
        width: 105px;
        height: 105px;
    }
}