:root {
    --primary-color: #FF6B9D;
    --secondary-color: #98D8C8;
    --accent-color: #FFD700;
    --background-color: #FFF9F0;
    --text-color: #2C3E50;
    --light-text: #FFFFFF;
    --card-bg: #FFFFFF;
    --hover-color: #FFA07A;
    --nav-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --btn-bg: #FF6B9D;
    --btn-hot: #FF6B6B;
    --btn-new: #6BCF7F;
    --brush-pink: #FF6B9D;
    --brush-orange: #FFA07A;
    --brush-gold: #FFD700;
    --brush-cyan: #98D8C8;
    --brush-green: #6BCF7F;
    --brush-purple: #9B88FF;
}

body {
    font-family: 'Fredoka', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #FFF9F0 0%, #FFE8F0 100%);
    margin: 0;
    padding: 0;
}

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

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

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.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, var(--brush-pink), var(--brush-orange));
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.5);
    background: linear-gradient(45deg, var(--brush-orange), var(--brush-gold));
}

.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: 15px;
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.15);
    animation: fadeIn 1s ease-out;
    border: 2px solid rgba(255, 215, 0, 0.2);
}

.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;
    background: linear-gradient(135deg, var(--brush-pink), var(--brush-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.game-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 20px;
    min-height: 800px;
}

.game-main {
    max-width: 450px;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.game-iframe {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    min-height: 700px;
}

/* Mobile ratio for iframe - 9:16 aspect ratio */
.game-iframe.mobile-ratio {
    width: 100%;
    aspect-ratio: 9 / 16;
    min-height: 700px;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(255, 107, 157, 0.9) 0%,
        rgba(155, 136, 255, 0.9) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 15px 15px 0 0;
}

.game-card {
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.95), rgba(60, 60, 60, 0.95));
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.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: 12px 35px;
    font-size: 18px;
    background: linear-gradient(45deg, var(--brush-gold), var(--brush-orange));
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.play-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.5);
    background: linear-gradient(45deg, var(--brush-orange), var(--brush-pink));
}

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

.game-iframe.mobile-ratio iframe {
    min-height: unset;
    height: 100%;
}

.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;
}

/* YouTube Shorts container - vertical format */
.youtube-shorts {
    margin: 30px 0;
    text-align: center;
}

.youtube-shorts p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-color);
}

.shorts-container {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    height: 500px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(155, 136, 255, 0.1));
}

.shorts-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

@media (max-width: 768px) {
    .shorts-container {
        max-width: 250px;
        height: 450px;
    }
}

/* Mode grid and feature grid */
.mode-grid, .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mode-item, .feature-item {
    background: linear-gradient(135deg, rgba(255,107,157,0.08), rgba(152,216,200,0.08));
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(255,215,0,0.3);
    transition: all 0.3s ease;
}

.mode-item:hover, .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255,107,157,0.2);
    border-color: var(--brush-gold);
}

.version-item {
    background: linear-gradient(135deg, rgba(155,136,255,0.08), rgba(107,207,127,0.08));
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid var(--brush-purple);
    transition: all 0.3s ease;
}

.version-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(155,136,255,0.2);
}

.faq-item {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid var(--brush-cyan);
    background: rgba(152,216,200,0.08);
}

.faq-item h3 {
    color: var(--brush-purple);
    margin-top: 0;
}

/* Google Fonts for Fredoka */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600&display=swap');
}