:root {
    --primary-color: #2C3E50;
    --accent-color: #E74C3C;
}

body {
    background: #fff;
    color: #333;
    padding-top: 56px;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.game-canvas {
    position: relative;
    width: 100%;
    height: 600px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.game-canvas::before,
.game-canvas::after {
    display: none;
}

.game-canvas iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
    background: transparent !important;
    border-radius: 15px;
    display: block;
    margin: 0;
}

/* 閸忋劌鐫嗛幐澶愭尦閺嶅嘲绱� */
.fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    color: #333;
    transition: all 0.3s ease;
    z-index: 9999;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fullscreen-btn:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.fullscreen-btn svg {
    width: 20px;
    height: 20px;
    stroke: white;
    stroke-width: 2.5;
}

/* 濞撳憡鍨欓弽鍥暯閸栧搫鐓欓弽宄扮础 */
.game-title-section {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}

.game-title-section h1.display-4 {
    color: #333;
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.game-title-section .lead {
    color: #666;
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.5;
    margin-top: clamp(8px, 2vw, 15px);
}

/* 濞撳憡鍨欓崚妤勩€冮弽宄扮础 */
.game-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

a.game-item {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
    cursor: pointer !important;
    display: block;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

a.game-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.game-thumb {
    position: relative;
    padding-top: 56.25%;
}

.game-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #007bff;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.game-info {
    padding: 10px;
    background: #fff;
}

.game-info span {
    margin: 0;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    display: block;
}

/* FAQ閺嶅嘲绱� */
.accordion-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
}

.custom-accordion-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    padding: 1rem 1.25rem;
    font-weight: 500;
    border: none;
    box-shadow: none !important;
}

.custom-accordion-btn:not(.collapsed) {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.custom-accordion-btn::after {
    filter: invert(1);
}

.custom-accordion-body {
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.25rem;
    line-height: 1.6;
}

/* 閸濆秴绨插蹇撶鐏炩偓 */
@media (min-width: 1200px) {
    .game-canvas {
        height: 700px;
        padding-top: 0;
        min-height: 700px;
    }

    .game-title-section {
        padding: 25px 30px;
    }

    .game-title-section h1.display-4 {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .game-canvas {
        height: 500px;
    }

    .game-title-section {
        padding: 20px 25px;
    }

    .game-title-section h1.display-4 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .game-canvas {
        height: 300px;
    }

    .game-title-section {
        padding: 15px 20px;
    }

    .game-title-section h1.display-4 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .game-canvas {
        padding-top: 80%;
    }

    .game-title-section {
        padding: 15px;
    }

    .game-title-section h1.display-4 {
        font-size: 1.5rem;
    }
}

/* 閸欏厖鏅舵潏瑙勭埉閺嶅嘲绱� */
.right-sidebar {
    position: sticky;
    top: 76px;
    /*max-height: calc(100vh - 96px);*/
    overflow-y: auto;
    padding-right: 10px;
}

/* 濞撳憡鍨欓幓蹇氬牚閸栧搫鐓欓弽宄扮础 */
.game-description {
    color: #e0e0e0;
    line-height: 1.7;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.game-description p {
    margin-bottom: 1rem;
}

.game-features li {
    margin-bottom: 10px;
}

/* 鐠囶叀鈻堥柅澶嬪閸ｃ劍鐗卞 */
.language-flag {
    width: 20px;
    height: 15px;
    margin-right: 8px;
    vertical-align: middle;
    object-fit: cover;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
}

.dropdown-item.active {
    background-color: var(--bs-primary);
}

/* 淇敼鎾斁鎸夐挳瀹瑰櫒鏍峰紡 */
.play-button-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    background: linear-gradient(135deg, #87CEEB, #98FB98, #FFFFE0);
    padding: 60px;
}

.game-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

.game-title {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.game-description {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.game-character {
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* 淇敼鎸夐挳鏍峰紡 */
.play-game-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    background: #333;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.play-game-btn::before {
    content: "▶";
    font-size: 0.9em;
}

.play-game-btn:hover {
    background: #444;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.play-game-btn:active {
    transform: translateY(1px);
}

/* 娣诲姞鍝嶅簲寮忔牱寮� */
@media (max-width: 768px) {
    .play-button-container {
        padding: 20px;
        align-items: flex-start;
        min-height: 100%;
        background: linear-gradient(135deg, #87CEEB, #98FB98, #FFFFE0);
    }

    .game-content {
        max-width: 100%;
        padding: 40px 15px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .game-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        text-align: left;
        width: 100%;
    }

    .game-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        text-align: left;
        color: #444;
        background: transparent;
        padding: 0;
        width: 100%;
    }

    .play-game-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
        margin-top: 1rem;
        position: relative;
        z-index: 2;
        align-self: flex-start;
    }

    .game-character {
        width: 100px;
        height: 100px;
        right: 20px;
        top: 20px;
        transform: none;
        opacity: 0.8;
    }

    .game-canvas {
        height: 450px;
        background: transparent;
    }
}

@media (max-width: 576px) {
    .play-button-container {
        padding: 15px;
        min-height: 100%;
        background: linear-gradient(135deg, #87CEEB, #98FB98, #FFFFE0);
    }

    .game-content {
        padding: 30px 15px;
    }

    .game-title {
        font-size: 1.6rem;
    }

    .game-description {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
        line-height: 1.5;
    }

    .play-game-btn {
        padding: 10px 25px;
        font-size: 1rem;
        width: auto;
        min-width: 140px;
    }

    .game-character {
        width: 80px;
        height: 80px;
        right: 15px;
        top: 15px;
    }

    .game-canvas {
        height: 500px;
        overflow: hidden;
    }
}


.play-game-btn {
    position: relative;
    z-index: 10;
    min-width: 150px;
    justify-content: center;
}


.play-button-container {
    background: linear-gradient(135deg, #87CEEB, #98FB98, #FFFFE0);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    padding: 60px;
    box-sizing: border-box;
    overflow: hidden;
}


.game-canvas::before,
.game-canvas::after {
    display: none;
}

.game-canvas {
    background: transparent !important;
    overflow: hidden;
}


.friend-links {
    background: #2c3e50;
    padding: 30px 0;
    margin-top: 40px;
}

.friend-links-title {
    color: #7fdbff;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    padding-left: 15px;
}

.friend-links-title:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: #7fdbff;
    border-radius: 2px;
}

.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links-list a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 12px;
    border-radius: 15px;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.friend-links-list a:hover {
    background: rgba(127,219,255,0.2);
    color: #7fdbff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .friend-links {
        padding: 20px 0;
    }

    .friend-links-list {
        gap: 10px;
    }

    .friend-links-list a {
        font-size: 13px;
        padding: 4px 10px;
    }
}


.nav-new {
    position: relative;
}

.nav-new::after {
    content: 'New';
    position: absolute;
    top: -8px;
    right: -15px;
    background: #ff3b3b;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}


.download-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.game-banner img {
    width: 100%;
    border-radius: 8px;
}

.download-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 20px 0;
}

.version-info {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.download-btn {
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
}

.system-requirements {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.system-requirements h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.system-requirements h4 {
    font-size: 16px;
    color: #444;
    margin-bottom: 15px;
}

.system-requirements ul li {
    color: #666;
    margin-bottom: 8px;
}

.download-sidebar {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sidebar-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.popular-games {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

.game-thumb {
    width: 100%;
    padding-top: 56.25%;
    position: relative;
    overflow: hidden;
}

.game-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-info {
    padding: 12px;
    background: #fff;
}

.game-info h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.3;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.game-category {
    display: flex;
    align-items: center;
    gap: 4px;
}

.game-category:before {
    content: '🎮';
    font-size: 14px;
}

.game-plays {
    color: #888;
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.game-card:hover .game-thumb img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .game-card {
        margin-bottom: 10px;
    }

    .game-info {
        padding: 10px;
    }

    .game-info h5 {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .game-meta {
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .game-thumb {
        padding-top: 75%;
    }
}