.content {
    display: flex;
    /* height: 620px; */
    margin-bottom: 50px;
}

.description {
    color: #666;
    line-height: 1.6;
    /* margin: 1.5rem auto; */
    max-width: 800px;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.primary-btn {
    background: #6a6bff;
    color: white;
}

.secondary-btn {
    background: white;
    color: #6a6bff;
    border: 2px solid #6a6bff;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 107, 255, 0.3);
}

.cate-container {
    margin-left: 50px;
    width: 22%;
    max-height: 600px;
    overflow-y: hidden;
}

.cate-list {
    
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: left;
}

.game-content, .game-text {
    width: 96%;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.breadcrumbs {
    margin-bottom: 5px;
    font-size: 17px;
    color: #DDDFFE;
    border-bottom: 2px solid #636363;
}

.breadcrumb-link {
    color: #636363;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-link:hover{
    color: #333;
}

.breadcrumbs-span {
    color: #636363;
}

.breadcrumb-separator {
    margin: 0 5px;
    color: #999;
}

.game-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #444;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.game-tag {
    display: inline-block;
    padding: 5px 30px;
    background-color: #DDDFFE;
    color: #333;
    border-radius: 12px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.game-tag:hover {
    background-color: #BABDFF;
    transform: translateY(-1px);
}

.game-content {
    line-height: 1.7;
    font-size: 15px;
}

.game-content p {
    margin-bottom: 15px;
}

.game-text ul ,.game-text ol{
    margin-left: 35px;
    list-style: circle;
}
.game-text p {
    line-height: 1.6;
    margin-bottom: 10px;
}
.game-text h2 {
    line-height: 1.3;
}


.game-container {
    background-color: #333333;
    width: 51%;
    margin: 0 auto;
    border: 1px solid #ddd;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    position: relative; /* 使 iframe 能绝对定位覆盖 */
}
.game-header-rom {
    height: 10%;
    display: flex;
    justify-content: end;
    align-items: center;
    padding: 10px 15px;
    background-color: #333333;
}
.game-container-rom {
    height: 505px;
    width:51%;
    margin-bottom: 60px;
}

.game-header {
    height: 10%;
    display: flex;
    justify-content: end;
    align-items: center;
    padding: 10px 15px;
    background-color: #333333;
    
}

.share-btn {
    background-color: #b252f2;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.game-container-rom  .game-preview {
    position: relative;
    top: -480px;
}

.game-container-rom  .game-image-div {
    text-align: center;
}

.game-container-rom  .game-views{
    text-align: center;
    color: darkgray;
}

.game-container-rom  .game-info h1{
    font-weight: 700;
    font-size: 28px;
    color: rgb(255, 255, 255);
    text-align: center;
}

.game-container .game-preview {
    height: 80%;
    padding: 15px;
    text-align: center;
    transition: opacity 0.3s;
}

.game-container .game-image, .game-container-rom  .game-image{
    width: 300px !important;
    height: 300px !important;
    border-radius: 4px;
}

.game-container .game-info {
    margin-top: 10px;
}

.game-container .game-title {
    color: white;
    font-size: 30px;
    font-weight: bold;
    margin: 5px 0;
}

.game-container .game-views {
    color: darkgray;
    font-size: 14px;
}

.play-btn {
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    box-sizing: inherit;
    display: flex
;
    justify-content: center;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    font-size: 20px;
    line-height: 45px;
    text-transform: uppercase;
    font-weight: bolder;
    position: relative;
    text-decoration: none;
    width: fit-content;
    padding-left: 40px;
    padding-right: 40px;
    white-space: nowrap;
    height: 45px;
    border: 0;
    color: #fff !important;
    border-radius: 35px;
    text-align: center;
    background-color: #1AAFFE;
    box-shadow: 0 0
}

.play-btn:hover {
    box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.4)
}

.game-frame-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: none;
}

.game-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10;
}

/* 当 iframe 激活时，隐藏预览内容 */
.game-frame-container.active {
    display: block;
}
.game-frame-container.active ~ .game-preview,
.game-frame-container.active ~ .play-btn {
    opacity: 0;
    pointer-events: none;
}


/* 基础移动端样式 */
@media (max-width: 1280px) {

    .game-container-rom {
        height: 512px;
        width: 94%;
        margin-left: 3%;
        margin-bottom: 60px;
    }

    .game-container-rom  .game-image {
        left: 7%;
    }

    .game-container-rom .game-preview {
        top: -480px;
    }

    .game-container {
        width: 95% !important;
    }
  

    .content-area {
        margin: 0 !important;
    }
    .container {
        margin-top: 150px;
    }

    .content {
        display: block;
        padding: 0 !important;
        margin-bottom: 30px;
    }

    .description {
        width: 90% !important;
        margin: .5rem auto;
    }

    .button-group {
        display: flex;
        flex-wrap: wrap;
    }

    .btn {
        font-size: .8rem;
        padding: 0.5rem .5rem;
    }
    .cate-container {
        width: 100%;
        margin-left: auto;
        margin-bottom: 5px;
        display: none;
    }

    .game-text iframe {
        width: 100% !important;
    }
    .game-content, .game-text {
        width: 100%;
    }
}