:root {
    --primary-color: #6200EA;
    --secondary-color: #00E5FF;
    --accent-color: #FFC400;
    --background-color: #F5F5F5;
    --text-color: #212121;
    --light-text: #FFFFFF;
    --card-bg: #FFFFFF;
    --hover-color: #B388FF;
    --nav-bg: #2c3e50;
    --btn-bg: #e67e22;
    --btn-hot: #e74c3c;
    --btn-new: #2ecc71;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px;
}

.top-nav, .site-footer {
    background-color: var(--nav-bg);
    color: var(--light-text);
    padding: 10px 20px;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(45deg, #FF8E53, #FF6B6B);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.btn.hot { background-color: var(--btn-hot); }
.btn.new { background-color: var(--btn-new); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.section {
    background-color: var(--card-bg);
    margin-bottom: 10px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out;
}

.section.full-width {
    padding: 0;
    margin-bottom: 20px;
}

h1, h2, h3 {
    color: var(--primary-color);
}

h1 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

h2 {
    margin-top: 0;
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.game-container {
    display: flex;
    gap: 10px;
    height: 700px; /* 设置一个固定高度，可以根据需要调整 */

}

.game-main {
    flex: 3;
    display: flex;
    flex-direction: column;
}

.game-iframe {
    position: relative;
    flex-grow: 1;
}
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(98, 0, 234, 0.85) 0%,
        rgba(0, 229, 255, 0.85) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 10px 10px 0 0;
}

.game-card {
    background-color: #2c2c2c;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.game-preview {
    width: 100%;
    max-width: 300px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.game-card h2 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.play-btn {
    padding: 10px 30px;
    font-size: 18px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.play-btn:hover {
    background-color: var(--hover-color);
}

.play-btn:active {
    transform: scale(0.98);
}

.domain-name {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2em;
    margin-top: 20px;
    font-family: Arial, sans-serif;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.domain-name {
    animation: fadeInUp 0.5s ease-out 0.5s both;
}


.game-iframe iframe {
    width: 100%;
    height: 100%;
    min-height: 580px;
    border-radius: 10px 10px 0 0;
    border: none;
}

.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    background-color: #f0f0f0;
    border-top: 1px solid #ddd;
}

.game-title {
    font-size: 14px;
    margin: 0;
}

.game-actions {
    display: flex;
    align-items: center;
    justify-content: center; /* 水平居中对齐 */
    gap: 10px;
}

.fullscreen-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    align-items: center; /* 垂直居中对齐图标和文本 */
    display: flex; /* 使按钮内部元素也使用 Flexbox */

}

.likes-count {
    font-size: 0.9rem;
}

.game-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-align: center;
}

.game-recommendations {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

.game-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.game-image-container {
    position: relative;
    padding-top: 40.25%; /* 16:9 Aspect Ratio */
}

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

.game-title {
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

.site-footer {
    padding: 20px;
    margin-top: 30px;
    text-align: center;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

.footer-nav {
    margin-bottom: 15px;
}

.footer-nav a {
    color: var(--light-text);
    text-decoration: none;
    margin: 0 10px;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.footer-disclaimer {
    font-size: 12px;
    color: #bbb;
    max-width: 600px;
    margin: 0 auto;
}

.game-recommendations-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.game-recommendations-section .section-title {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.game-recommendations-section .game-recommendations {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.game-recommendations-section .game-item {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-recommendations-section .game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.game-recommendations-section .game-image-container {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.game-recommendations-section .game-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-recommendations-section .game-title {
    padding: 10px;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-buttons {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    margin: 0 5px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.share-button i {
    margin-right: 5px;
}

.facebook { background-color: #3b5998; }
.twitter { background-color: #1da1f2; }
.linkedin { background-color: #0077b5; }
.email { background-color: #7d7d7d; }
.whatsapp { background-color: #25d366; }
.reddit { background-color: #ff4500; }

.share-button:hover {
    opacity: 0.8;
}

#cusdis_thread {
    height: 600px;
    overflow: visible;
}

.feature-image {
    width: 100%; /* 设置宽度为100%以适应父容器 */
    height: auto; /* 高度自动以保持纵横比 */
    max-width: 600px; /* 设置最大宽度以限制图片的大小 */
    border-radius: 10px; /* 可选：添加圆角效果 */
    object-fit: cover; /* 确保图片覆盖整个容器，同时保持比例 */
}

a {
    text-decoration: none;
}

@media (max-width: 768px) {
    .game-container {
        flex-direction: column;
        height: auto;
    }

    .game-main {
        width: 100%;
    }

    .game-iframe {
        height: 600px; /* 调整iframe的高度 */
        z-index: 1;

    }

    .game-sidebar {
        width: 100%;
    }

    .game-recommendations {
        flex-direction: column;
        gap: 10px;
    }

    .game-item {
        width: 100%;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--nav-bg);
        flex-direction: column;
        padding: 20px;
        z-index: 1000; /* 添加高 z-index */

    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        z-index: 1001; /* 确保菜单按钮在最上层 */

    }

    .share-buttons {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-around;
        width: 100%;
        overflow-x: auto;
    }

    .share-button {
        margin: 5px;
        font-size: 20px; /* 增大图标尺寸 */
        padding: 8px;
        width: auto;
    }

    .share-text {
        display: none; /* 隐藏文字 */
    }

    /* 确保图标垂直居中 */
    .share-button i {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .game-recommendations-section .game-recommendations {
        grid-template-columns: 1fr;
    }

    .game-recommendations-section .game-item {
        width: 100%;
    }
}

@media (max-width: 580px) {
    .share-buttons {
        flex-direction: row; /* 保持水平排列 */
        justify-content: space-around;
    }

    .share-button {
        width: auto;
        margin: 5px;
    }
}

@media (orientation: landscape) and (max-width: 768px) {
    .game-container {
        flex-direction: row;
        height: 100vh; /* 使用视口高度 */
        max-height: 450px; /* 设置一个最大高度 */
    }

    .game-main {
        flex: 2;
        height: 100%;
    }

    .game-iframe {
        height: 100%;
    }

    .game-iframe iframe {
        height: 100%;
        min-height: unset; /* 移除最小高度限制 */
    }

    .game-sidebar {
        flex: 1;
        height: 100%;
        overflow-y: auto; /* 添加垂直滚动条 */
    }

    .game-recommendations {
        height: auto;
    }

    .game-item {
        flex: 0 0 auto;
        height: 120px; /* 设置一个固定高度 */
    }

    .game-image-container {
        height: 80px;
        padding-top: 0;
    }

    .game-title {
        font-size: 0.8rem;
        padding: 5px;
    }
}

.domain-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 1); /* 深色背景，可以调整透明度 */
    color: white;
    text-align: center;
    padding: 9px;
    font-size: 14px;
}

/* Responsive video grid and containers */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    margin: 20px 0;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}