body {
    background-color: #21272f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PT Sans", Arial;
}

.navbar {
    background-color: #20272f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    height: 5.938rem;
    z-index: 1000;
    transition: height 0.3s ease;
}

a.logo {
    /*background-color: #d5211b;*/
    background-image: url("../imgs/logo_bg.jpg");
    height: 95px;
    width: 18.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: height 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.logo img {
    height: 3.875rem;
    object-fit: contain;
    pointer-events: none;
}

.nav-links {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Brandon Grotesque', Arial, sans-serif;
    font-size: 0.938rem;
    letter-spacing: 0.063rem;
    padding: 0 2.5rem;
    height: 5.938rem;
    transition: height 0.3s ease;
}

.nav-links a:hover,
.nav-links .dropdown:hover > a {
    background-color: #911cd7;
}

.nav-links .dropdown-content a:hover {
    background-color: #1f2730 !important;
}

.slider {
    width: 100%;
    height: 0;
    padding-bottom: 45.44%;  /* 818/1800 = 0.4544 = 45.44% */
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #1a0f40, #4a1b6f);
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-item {
    min-width: 100%;
    height: 100%;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* 改为 cover 以确保图片铺满 */
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dot.active {
    background-color: #c43629;
}

.featured-section {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #f6f6f6;
}

.featured-section h5 {
    font-size: 0.938rem;
    font-weight: 400;
    letter-spacing: 0.125rem;
    color: #222c37;
    margin-bottom: 0.5rem;
}

.featured-section h2 {
    font-size: 3.625rem;
    color: #222c37;
    margin-bottom: 7rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    /* border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); */
}

.game-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    margin: 0.15rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.game-card .view-game {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    font-weight: 400px;
    margin-top: 0;
}

.game-card img {
    /*width: 100%;
    height: auto; */
    object-fit: contain;
}

.game-card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-device {
    max-width: 300px;
    margin: 0 auto;
}

.game-card p {
    color:#222c37;
    line-height: 2rem;
    margin-bottom: 1rem;
}
.left-desc-card {
    padding: 1rem 3rem;
}
.left-desc-card p {
    font-size: 1rem;
    margin-top: 1rem;
    text-align: left;
    line-height: 2.0rem;
}

.view-game {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #333;
    margin-top: auto;
}

footer {
    background-color: #1c1f23;
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-text {
    max-width: 800px;
    margin: 2rem auto;
    line-height: 1.6;
}

.footer-links {
    margin: 2rem 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
}

.menu-icon {
    width: 234px;
    display: none;
    cursor: pointer;
    padding: 1rem 2rem;
    margin-left: auto;
    text-align: right;
}

.menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s;
}

.language-select {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    height: 95px;
    padding: 0 2rem;
    display: none;
}

.language-select select {
    background: transparent;
    border: none;
    color: white;
    font-family: 'Brandon Grotesque', Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    padding-right: 1rem;
}

.language-select select option {
    background-color: #1c1f23;
    color: white;
}

.desc {
    margin:60px auto;
    margin-top:100px;
    max-width: 1100px;
    line-height:26px;
    font-size: 16px;
    color:#222c37;
    font-family: 'PT Sans',Arial;
    letter-spacing:1px;
}

.desc img {
    width: 300px;
}

@media screen and (min-width: 769px) and (max-width: 1000px){
    .nav-links {
        left: 200px;
    }
}
@media screen and (max-width: 768px) {
    body {
        padding-top: 3.25rem;
    }
    .navbar {
        height: 3.25rem;  /* 52px */
        /*background-color: #d5211b;*/
        background-image: url("../imgs/logo_bg.jpg");
    }

    a.logo {
        background-image: none;
        width: 3.875rem;  /* 62px */
        height: 3.25rem;  /* 52px */
        padding-left: 1.5rem;  /* 24px */
    }

    .logo img {
        width: 100%;
        height: 3.25rem;  /* 52px */
    }

    .menu-icon {
        display: block;
        width: auto;
        padding-right: 1.5rem;  /* 24px */
        transition: opacity 0.3s ease;  /* 添加过渡效果 */
    }

    /* 当遮照层激活时隐藏菜单按钮 */
    .overlay.active ~ .navbar .menu-icon {
        opacity: 0;
        visibility: hidden;
    }

    .nav-links a {
        height: 52px;
    }

    .overlay {
        height: 52px;
    }

    .menu-icon {
        display: block;
        width: auto;
        padding-right: 24px;
    }

    .nav-links {
        position: fixed;
        top: 3.25rem;
        left: 0;
        right: 0;
        width: 100%;
        justify-content: flex-start;
        flex-direction: column;
        background-color: transparent;
        display: none;
        z-index: 1000;
    }

    .nav-links a:hover,
    .nav-links .dropdown:hover > a {
        background-color: #20272f;
    }

    .nav-links.active {
        display: flex;
        background-color: transparent;
    }

    .nav-links a {
        background-color: transparent;
        transition: background-color 0.3s;
    }

    /* .nav-links.active a {
        background-color: #d5211b;
    } */

    .language-select {
        display: none;
    }

    .nav-links .dropdown-content {
        position: static;
        width: 100%;
        background-color: #bf1e18 !important;
        display: none;
        overflow: hidden;
        transition: none;
    }

    .nav-links .dropdown-content a {
        padding: 1rem 0;
        justify-content: center;
        text-align: center;
        opacity: 1;
        transform: none;
        transition: none;
        border-bottom: none;
        background-color: #bf1e18;
    }

    .nav-links .dropdown-content a:hover {
        background-color: #444 !important;
    }

    .nav-links .dropdown.active .dropdown-content {
        display: block;
    }

    .overlay .logo img {
        width: 100%;
        height: 52px;
        object-fit: contain;
    }

    .close-button {
        position: fixed;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
        display: none;
        opacity: 0;
    }

    .slider {
        height: 300px;  /* 移动端保持固定高度 */
        padding-bottom: 0;
    }

    .slider-container {
        position: relative;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .game-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    .game-card {
        margin: 0;
        padding: 1rem;
        position: relative;
        padding-bottom: 4rem;  /* 为View Game按钮留出空间 */
    }

    .game-card .view-game {
        position: absolute;
        bottom: 1rem;         /* 调整底部距离 */
        right: 1rem;         /* 调整右侧距离 */
        background-color: rgba(255, 255, 255, 0.9);  /* 添加半透明背景 */
        padding: 0.5rem 1rem;  /* 添加内边距 */
        border-radius: 4px;    /* 添加圆角 */
    }

    .game-card img {
        margin-bottom: 1rem;  /* 图片底部添加间距 */
    }

    /* 特定游戏卡片的调整 */
    .game-card.poker-frenzy,
    .game-card.melon-match,
    .game-card.sohoo-poker {
        width: 100%;
        padding: 1rem;
        padding-bottom: 4rem;  /* 确保所有戏卡片都有足够空间 */
    }

    .desc img {
        width: 300px;
    }
}

@media screen and (max-width: 480px) {
    .featured-section h2 {
        font-size: 1.5rem;  /* 24px */
    }

    .game-card.poker-frenzy img,
    .game-card.melon-match img,
    .game-card.sohoo-poker img {
        width: 100%;
    }

    .game-card.poker-frenzy-desc img,
    .game-card.melon-match-desc img,
    .game-card.sohoo-poker-desc img {
        width: 70%;
    }

    .company-section p {
        font-size: 0.813rem;  /* 13px */
    }

    .game-card {
        padding-bottom: 3.5rem;  /* 更小屏幕稍微减少底部间距 */
    }

    .game-card .view-game {
        bottom: 0.75rem;
        right: 0.75rem;
        font-size: 0.875rem;  /* 更小屏幕稍微减小字体 */
    }
}

@font-face {
    font-family: 'Brandon Grotesque';
    src: url('../fonts/Brandon-Grotesque-Medium.woff');
    font-weight: 600;
}

@font-face {
    font-family: "PT Sans";
    src: url('../fonts/PT-Sans-Regular.woff');
    font-weight: 400;
}
@font-face {
    font-family: "PT Sans";
    src: url('../fonts/PT-Sans-Bold.woff');
    font-weight: 700;
}

.nav-links .dropdown {
    position: relative;
}

.nav-links .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background-color: #911cd7;
    z-index: 1000;
}

@media screen and (min-width: 768px) {
    body {
        padding-top: 5.938rem;
    }
    .nav-links .dropdown:hover .dropdown-content {
        display: block;
    }
}

.nav-links .dropdown-content a {
    height: auto;
    padding: 1.5rem 2.4rem;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    justify-content: flex-start;
    padding-right: 40px;
}

.nav-links .dropdown-content a:last-child {
    border-bottom: none;
}

@media screen and (max-width: 768px) {
    .nav-links .dropdown-content {
        position: static;
        width: 100%;
        /*background-color: #bf1e18 !important;*/
        background-color: #444 !important;
        display: none;
        transition: none;
    }

    .nav-links .dropdown-content a {
        padding: 1rem 0;
        justify-content: center;
        text-align: center;
        opacity: 1;
        transform: none;
        transition: none;
        border-bottom: none;
        /*background-color: #bf1e18;*/
        background-color: #444;
    }

    .nav-links .dropdown.active .dropdown-content {
        display: block !important;
    }
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    /*background-color: #d5211b;*/
    background-color: #20272f;
    /*background-color: #0000c9;*/
    z-index: 999;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid rgba(255,255,255, 0.6);
}

.overlay.active {
    width: 100%;
    height: 100%;
    top: 3.25rem;
}

.nav-links.active a {
    opacity: 0;
    transform: translateY(-20px);
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.2s;
}

.nav-links.active .dropdown-content a {
    opacity: 255;
    transform: none;
    animation: none;
    /* animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.2s; */
}
/* .nav-links.active a:nth-child(2) {
    animation-delay: 0.25s;
}

.nav-links.active a:nth-child(3) {
    animation-delay: 0.3s;
} */

.close-button {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    display: none;
    opacity: 0;
}

.close-button.active {
    display: block;
    animation: rotateIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.4s;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: translateX(-50%) rotate(0deg);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) rotate(360deg);
    }
}

@media screen and (max-width: 768px) {
    .overlay.active {
        display: block;
    }

    .overlay-nav {
        width: 100%;
        height: 3.25rem;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        /*background-color: #d5211b;*/
        background-color: #0000c9;
    }

    .nav-links {
        position: fixed;
        top: 3.25rem;
        left: 0;
        right: 0;
        width: 100%;
        justify-content: flex-start;
        flex-direction: column;
        background-color: transparent;
        display: none;
        z-index: 1000;
    }
}

.overlay a.logo {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    height: 3.25rem;
    width: 3.875rem;
    padding-left: 1.5rem;
}

.overlay.active .logo {
    visibility: visible;
}

/* .overlay.active ~ .navbar .logo {
    visibility: hidden;
} */

@media screen and (min-width: 769px) {
    a.logo img {
        content: url('../imgs/logo.png');
    }
}

.company-section {
    background: #f6f6f6;
    padding: 5rem 2rem;
    text-align: center;
    margin: 0 auto;
    font-family: "PT Sans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 100;
}

.company-section .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.company-section .logo-container img {
    height: 72px;
}

.company-section .logo-container span {
    color: #222c37;
    font-size: 24px;
    font-weight: 500;
}

.company-section p {
    color: #666;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 1100px;
}

.company-section .small-text {
    margin-top: 2rem;
    font-size: 14px;
}

.footer {
    background-color: #1c1f23;
    padding: 2rem 0;
    color: #666;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 900px;
    margin: 1.5rem auto;
    padding-bottom: 2rem;
}

.footer-logo img {
    height: 48px;
}

.footer-line {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo span {
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    /* padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
}

.footer-links:last-of-type {
    border-bottom: none;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.footer-copyright {
    font-size: 14px;
    color: #666;
    text-align: center;
    padding-top: 1rem;
}

.game-card.poker-frenzy img {
    width: 86%;
}

.game-card.poker-frenzy-desc img {
    width: 50%;
    padding-top: 1.5rem;
}

.game-card.melon-match-desc img {
    width: 30%;
}

.game-card.melon-match {
    padding-bottom: 0;
    padding-left: 1rem;
}

.game-card.melon-match img {
    width: 45%;
    padding: 5rem auto;
}

.game-card.sohoo-poker {
    padding: 1rem;
}

.game-card.sohoo-poker img {
    width: 100%;
}

.game-card.sohoo-poker-desc img {
    width: 50%;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

@media screen and (max-width: 768px) {
    .featured-section {
        padding: 2rem 1rem;
    }

    .featured-section h5 {
        font-size: 0.875rem;  /* 14px */
    }

    .featured-section h2 {
        font-size: 2rem;  /* 32px */
        margin-bottom: 2rem;
    }

    .game-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .game-card {
        margin: 0;
        padding: 1rem;
    }

    .game-card.poker-frenzy,
    .game-card.melon-match,
    .game-card.sohoo-poker {
        width: 100%;
        padding: 1rem;
    }

    .left-desc-card {
        padding: 1rem;
    }

    .left-desc-card p {
        font-size: 0.875rem;  /* 14px */
        line-height: 1.6;
    }

    .company-section {
        padding: 2rem 1rem;
    }

    .company-section .logo-container img {
        height: 3rem;  /* 48px */
    }

    .company-section p {
        font-size: 0.875rem;  /* 14px */
    }

    .footer-logo {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-logo img {
        height: 2.5rem;  /* 40px */
    }

    .footer-logo span {
        font-size: 0.875rem;  /* 14px */
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links a {
        font-size: 0.75rem;  /* 12px */
    }
}

@media screen and (max-width: 480px) {
    .featured-section h2 {
        font-size: 1.5rem;  /* 24px */
    }

    .game-card.poker-frenzy img,
    .game-card.melon-match img,
    .game-card.sohoo-poker img {
        width: 100%;
    }

    .game-card.poker-frenzy-desc img,
    .game-card.melon-match-desc img,
    .game-card.sohoo-poker-desc img {
        width: 70%;
    }

    .company-section p {
        font-size: 0.813rem;  /* 13px */
    }
}

.game-detail {
    padding: 0;
    background: #fff;
}

.game-banner {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.game-info {
    max-width: 800px;
}

.game-info h1 {
    font-size: 3rem;
    color: #222c37;
    margin-bottom: 0.5rem;
}

.game-category {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.game-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 3rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
}

.download-buttons img {
    height: 48px;
    transition: opacity 0.3s ease;
}

.download-buttons img:hover {
    opacity: 0.8;
}

@media screen and (max-width: 768px) {
    .game-banner {
        height: 300px;
    }

    .game-content {
        padding: 2rem 1rem;
    }

    .game-info h1 {
        font-size: 2rem;
    }

    .game-description {
        font-size: 1rem;
    }

    .download-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}


.store-buttons {
    display: flex;
    gap: 1rem;
}

.store-button {
    position: relative;
    display: inline-block;
    width: 177px; /* 固定按钮宽度（匹配图片尺寸） */
    height: 60px; /* 固定按钮高度（匹配图片尺寸） */
    text-decoration: none;
    -webkit-tap-highlight-color: transparent; /* 移除Safari点击高亮 */
}

.store-button img {
    height: 100%;
    transition: opacity 0.3s ease;
}

.store-button:hover img {
    opacity: 0.8;
}

.store-button-text {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 75px; /* 精准避开图标，对齐文字区域 */
    color: #ffffff;
    font-size: 15px; /* 适配177x60px按钮的最佳字号 */
    font-weight: 500;
    box-sizing: border-box;
    text-align: left;
}