:root {
    --font-heading: 'Fredoka', sans-serif;
    --font-main: 'Nunito', sans-serif;
    --color-bg: #F4FAFF;
    --color-text: #2B3445;
    --color-white: #ffffff;
    --theme-pink: #FF6B81;
    --theme-yellow: #FFA502;
    --theme-green: #2ED573;
    --theme-blue: #1E90FF;
    --hero-gradient: linear-gradient(135deg, #70A1FF 0%, #1E90FF 100%);
    --radius-pill: 50px;
    --radius-xl: 40px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-toy: 0 8px 0px #D2E4F6;
    --shadow-toy-hover: 0 14px 0px #D2E4F6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main); color: var(--color-text); background-color: var(--color-bg);
    line-height: 1.6; -webkit-font-smoothing: antialiased;
    background-image: radial-gradient(#D2E4F6 2px, transparent 2px); background-size: 30px 30px;
}
a { text-decoration: none; color: inherit; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.site-header { background: linear-gradient(135deg, #FFD166 0%, #FF9F1C 100%); padding: 12px 0; box-shadow: 0 6px 0 #E06D06, 0 8px 20px rgba(0,0,0,0.15); border-bottom: 3px solid #F4A261; position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo { display: block; }
.logo img { display: block; max-height: 50px; width: auto; } 
.menu-toggle-checkbox, .menu-toggle-label { display: none; }

.main-nav { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; justify-content: flex-end; list-style: none; width: 100%; }
.main-nav li { list-style: none; margin: 0; }
.main-nav a { display: block; padding: 8px 14px; font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; white-space: nowrap; color: #4A2C2A; background: #FFF9E6; border-radius: var(--radius-pill); box-shadow: 0 4px 0 #E8A87C, 0 4px 8px rgba(0,0,0,0.12); border: 2px solid #F4C542; transition: all 0.15s ease; position: relative; top: 0; }
.main-nav a:hover { background: #FFEEBB; color: #D14B2C; box-shadow: 0 2px 0 #E8A87C, 0 6px 12px rgba(0,0,0,0.2); top: -2px; border-color: #F4A261; }
.main-nav a:active { box-shadow: 0 0px 0 transparent; top: 4px; }

.hero-section { position: relative; background: var(--hero-gradient); color: var(--color-white); padding: 80px 20px; text-align: center; margin-bottom: 60px; border-radius: 0 0 var(--radius-xl) var(--radius-xl); box-shadow: 0 10px 0px #D2E4F6; }
.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.hero-section h1 { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 700; margin-bottom: 20px; text-shadow: 3px 3px 0px #095BA1, -1px -1px 0px #095BA1, 1px -1px 0px #095BA1, -1px 1px 0px #095BA1; letter-spacing: 2px; }
.hero-section p { font-size: 1.4rem; font-weight: 900; background: rgba(255, 255, 255, 0.2); display: inline-block; padding: 12px 30px; border-radius: var(--radius-pill); border: 3px solid rgba(255, 255, 255, 0.5); }

.category-hero { position: relative; background: var(--hero-gradient); color: var(--color-white); padding: 40px 20px; text-align: center; margin-bottom: 50px; border-radius: 0 0 var(--radius-xl) var(--radius-xl); box-shadow: 0 8px 0px #D2E4F6; }
.category-hero h1 { font-family: var(--font-heading); font-size: 2.8rem; font-weight: 700; margin-bottom: 10px; text-shadow: 2px 2px 0px #095BA1, -1px -1px 0px #095BA1, 1px -1px 0px #095BA1, -1px 1px 0px #095BA1; letter-spacing: 1px; }
.category-hero p { font-size: 1.2rem; font-weight: 700; opacity: 0.95; }

.section-title { font-family: var(--font-heading); font-size: 2.5rem; text-align: center; margin-bottom: 40px; color: var(--theme-pink); text-shadow: 3px 3px 0px #FFD1D8; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 25px; margin-bottom: 60px; }
.game-card { background-color: var(--color-white); border-radius: var(--radius-lg); border: 4px solid var(--color-white); box-shadow: var(--shadow-toy); transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; top: 0; }
.game-card:hover { top: -6px; box-shadow: var(--shadow-toy-hover); border-color: var(--theme-yellow); }
.img-wrapper { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background-color: #E2F0FF; }
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.5); opacity: 0; width: 60px; height: 60px; background-color: var(--theme-yellow); border-radius: 50%; border: 4px solid var(--color-white); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); z-index: 10; }
.game-card:hover .img-wrapper img { transform: scale(1.1); }
.game-card:hover .play-btn { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.game-title { font-family: var(--font-heading); font-size: 1.15rem; text-align: center; padding: 15px 10px; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.seo-text-block { margin-bottom: 80px; }
.seo-card { background-color: var(--color-white); padding: 50px 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-toy); border: 4px solid var(--color-white); text-align: center; position: relative; }
.seo-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 10px; background: linear-gradient(90deg, var(--theme-pink) 0%, var(--theme-yellow) 50%, var(--theme-green) 100%); border-radius: 16px 16px 0 0; }
.seo-card h2 { font-family: var(--font-heading); font-size: 2.2rem; color: var(--theme-blue); margin-bottom: 20px; }
.seo-card p { font-size: 1.2rem; font-weight: 700; color: #4A5568; max-width: 900px; margin: 0 auto; line-height: 1.8; }
.seo-card strong { color: var(--theme-pink); background-color: #FFF0F2; padding: 2px 8px; border-radius: 8px; }

.pagination-wrapper { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin: 40px auto 80px; width: 100%; font-family: var(--font-heading); font-size: 0 !important; color: transparent !important; }
.pagination-wrapper > * { margin: 0; }
.pagination-wrapper select, .pagination-wrapper span, .pagination-wrapper font { display: none !important; }
.pagination-wrapper a, .pagination-wrapper b, .pagination-wrapper strong { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; font-size: 1.1rem !important; font-weight: 700; border-radius: 12px; text-decoration: none; transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; top: 0; }
.pagination-wrapper a { background-color: var(--color-white); color: var(--theme-blue) !important; border: 2px solid #D2E4F6; box-shadow: 0 4px 0px #D2E4F6; }
.pagination-wrapper a:hover { top: -4px; box-shadow: 0 8px 0px #D2E4F6; background-color: var(--theme-yellow); border-color: var(--theme-yellow); color: var(--color-white) !important; }
.pagination-wrapper a:active { top: 4px; box-shadow: 0 0px 0px transparent; }
.pagination-wrapper b, .pagination-wrapper strong { background-color: var(--theme-pink); color: var(--color-white) !important; border: 2px solid var(--theme-pink); box-shadow: 0 4px 0px #D8556A; pointer-events: none; }


.site-footer { background-color: #2B3445; color: #A0AEC0; border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding-top: 60px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; padding-bottom: 40px; }
.footer-col h3 { font-family: var(--font-heading); font-size: 1.4rem; color: var(--color-white); margin-bottom: 20px; position: relative; padding-bottom: 8px; }
.footer-col h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 4px; background-color: var(--theme-yellow); border-radius: 4px; }
.footer-col p { font-size: 1rem; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #A0AEC0; font-weight: 700; transition: all 0.3s ease; display: inline-block; }
.footer-col ul li a:hover { color: var(--theme-yellow); transform: translateX(6px); }
.footer-bottom { background-color: #1F2633; padding: 20px 0; text-align: center; font-size: 0.95rem; font-weight: 700; color: #718096; }

.lang-select-wrapper { position: relative; max-width: 250px; width: 100%; }
.lang-select { appearance: none; -webkit-appearance: none; width: 100%; padding: 12px 40px 12px 20px; font-family: var(--font-main); font-size: 1rem; font-weight: 700; color: var(--color-text); background-color: var(--color-white); border: 3px solid var(--theme-blue); border-radius: var(--radius-pill); box-shadow: 0 4px 0px #1A202C; cursor: pointer; outline: none; transition: all 0.2s; position: relative; top: 0; }
.lang-select:hover { top: -2px; box-shadow: 0 6px 0px #1A202C; border-color: var(--theme-yellow); }
.lang-select:active { top: 4px; box-shadow: 0 0px 0px transparent; }
.lang-select-wrapper::after { content: '▼'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--theme-blue); font-size: 0.8rem; pointer-events: none; }

.content-page { margin-top: 30px; }
.breadcrumbs { font-size: 1rem; font-weight: 700; color: #718096; margin-bottom: 20px; background: var(--color-white); padding: 12px 20px; border-radius: var(--radius-pill); box-shadow: 0 4px 0px #D2E4F6; border: 2px solid var(--color-white); display: inline-block; }
.breadcrumbs a { color: var(--theme-blue); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--theme-pink); }
.game-play-section { background: var(--hero-gradient); border-radius: var(--radius-xl); padding: 30px; box-shadow: 0 10px 0px #D2E4F6; margin-bottom: 50px; text-align: center; }
.game-header h1 { font-family: var(--font-heading); color: var(--color-white); font-size: 2.5rem; margin-bottom: 20px; text-shadow: 2px 2px 0px #095BA1; }

.native-game-wrapper { width: 100%; margin: 0 auto; }
#skg-wrapper { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: flex-start; }
#skg-content { flex: 1 1 600px; max-width: 1200px; background-color: var(--color-white); padding: 15px; border-radius: var(--radius-lg); border: 4px solid var(--color-white); box-shadow: 0 8px 0px #095BA1; }

#game-container { width: 100% !important; margin: 0 auto; display: flex; justify-content: center; }
#game-content { position: relative !important; width: 100% !important; height: 0 !important; border-radius: 12px; overflow: hidden; background-color: #000; }
#game-iframe, #splash-area, #pre-content-container { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; border: none !important; margin: 0 !important; padding: 0 !important; }

#splash-area { display: flex; align-items: center; justify-content: center; z-index: 10; background: #000; }
#splash { width: 100%; height: 100%; position: relative; }
#splash img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

#skg-sidebar { width: 300px; flex-shrink: 0; background-color: rgba(255, 255, 255, 0.2); border-radius: var(--radius-lg); padding: 10px; }

#full-screen-button { margin-top: 20px; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--color-white); background-color: var(--theme-green); padding: 12px 30px; border-radius: var(--radius-pill); border: 3px solid rgba(255, 255, 255, 0.4); box-shadow: 0 6px 0px #24AE5E; cursor: pointer; transition: all 0.2s; position: relative; top: 0; width: 100%; }
#full-screen-button:hover { top: -4px; box-shadow: 0 10px 0px #24AE5E; filter: brightness(1.1); }
#full-screen-button:active { top: 6px; box-shadow: 0 0 transparent; }
#full-screen-button:disabled { background-color: #ccc; box-shadow: 0 6px 0px #aaa; cursor: not-allowed; top: 0; }

#play-button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: var(--theme-yellow) !important; border-radius: var(--radius-pill) !important; font-family: var(--font-heading) !important; font-size: 1.5rem; padding: 15px 40px; color: var(--color-text) !important; box-shadow: 0 6px 0px #D68A00 !important; border: 3px solid #fff !important; cursor: pointer; transition: 0.2s; z-index: 20; }
#play-button:hover { margin-top: -4px; box-shadow: 0 10px 0px #D68A00 !important; }

.game-details { margin-bottom: 60px; text-align: left; }
.game-details h2 { text-align: center; }

@media screen and (max-width: 768px) {
    .site-header { padding: 10px 0; }
    .logo img { max-height: 40px; }
    
    .menu-toggle-label { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; width: 44px; height: 44px; background: #FFF9E6; border: 2px solid #F4C542; border-radius: 10px; box-shadow: 0 4px 0 #E8A87C; cursor: pointer; transition: all 0.15s; margin-left: auto; }
    .menu-toggle-label:active { box-shadow: 0 0 0 transparent; transform: translateY(4px); }
    .burger-line { width: 22px; height: 3px; background: #4A2C2A; border-radius: 2px; transition: all 0.3s ease; }
    
    .menu-toggle-checkbox:checked + .menu-toggle-label .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle-checkbox:checked + .menu-toggle-label .burger-line:nth-child(2) { opacity: 0; }
    .menu-toggle-checkbox:checked + .menu-toggle-label .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #FFF9E6; padding: 20px; margin-top: 15px; border-radius: var(--radius-lg); box-shadow: 0 10px 25px rgba(0,0,0,0.2), 0 8px 0px #E8A87C; border: 3px solid #F4C542; z-index: 999; flex-direction: column; gap: 12px; opacity: 0; visibility: hidden; transform: translateY(-20px) scale(0.95); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
    .menu-toggle-checkbox:checked ~ .main-nav { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
    .main-nav a { width: 100%; text-align: center; font-size: 1.15rem; padding: 12px; white-space: normal; }

    .hero-section { padding: 50px 15px; border-radius: 0 0 30px 30px; margin-bottom: 40px; }
    .hero-section h1 { font-size: 2.2rem; }
    .category-hero { padding: 30px 15px; border-radius: 0 0 30px 30px; }
    .category-hero h1 { font-size: 2rem; text-shadow: 2px 2px 0px #095BA1; }
    .section-title { font-size: 2rem; }
    
    .game-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; }
    .game-card { border-width: 3px; box-shadow: 0 6px 0px #D2E4F6; }
    .game-card:hover { top: -4px; box-shadow: 0 10px 0px #D2E4F6; }
    .play-btn { transform: translate(-50%, -50%) scale(0.85); opacity: 0.95; width: 45px; height: 45px; }

    .pagination-wrapper { gap: 6px; margin: 30px auto 50px; }
    .pagination-wrapper a, .pagination-wrapper b, .pagination-wrapper strong { min-width: 36px; height: 36px; padding: 0 10px; font-size: 0.95rem !important; border-radius: 8px; }
    .pagination-wrapper a { box-shadow: 0 3px 0px #D2E4F6; }
    .pagination-wrapper b, .pagination-wrapper strong { box-shadow: 0 3px 0px #D8556A; }
    .pagination-wrapper a:hover { top: -2px; box-shadow: 0 5px 0px #D2E4F6; }

    .game-play-section { padding: 20px 10px; border-radius: var(--radius-lg); }
    .game-header h1 { font-size: 1.8rem; }
    #skg-wrapper { flex-direction: column; align-items: center; }
    #skg-content { width: 100%; padding: 10px; }
    #skg-sidebar { width: 100%; display: flex; justify-content: center; }
    #full-screen-button { font-size: 1.1rem; padding: 10px 20px; }
    
    .breadcrumbs { font-size: 0.9rem; padding: 8px 15px; white-space: nowrap; overflow-x: auto; width: 100%; display: block; }

    .seo-card { padding: 40px 20px; }
    .site-footer { border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding-top: 40px; }
    .footer-grid { gap: 30px; text-align: center; }
    .footer-col h3::after { left: 50%; transform: translateX(-50%); }
    .lang-select-wrapper { margin: 0 auto; }
}

@media screen and (max-width: 360px) {
    .game-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
/* =========================================
   10. 单页排版样式 (Privacy Policy / Terms / About)
   ========================================= */
.privacy-policy-content {
    background-color: var(--color-white);
    padding: 40px 50px;
    border-radius: var(--radius-lg);
    /* 覆盖外层的居中对齐，让长文本左对齐，方便阅读 */
    text-align: left; 
    color: var(--color-text);
    box-shadow: 0 8px 0px rgba(0,0,0,0.1);
    border: 4px solid var(--color-white);
}

/* 标题样式：带可爱的虚线分割 */
.privacy-policy-content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--theme-blue);
    margin: 40px 0 20px;
    border-bottom: 3px dashed #D2E4F6;
    padding-bottom: 10px;
    text-shadow: none; /* 去掉外层继承的阴影 */
}

/* 消除第一个标题的顶部间距 */
.privacy-policy-content h2:first-of-type {
    margin-top: 10px;
}

/* 正文段落排版 */
.privacy-policy-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 600;
    color: #4A5568;
}

/* 列表样式美化 */
.privacy-policy-content ul {
    margin-bottom: 25px;
    padding-left: 25px;
}

.privacy-policy-content li {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 12px;
    font-weight: 600;
    color: #4A5568;
    list-style-type: disc;
}

/* 把列表的小圆点变成可爱的粉色 */
.privacy-policy-content li::marker {
    color: var(--theme-pink);
    font-size: 1.2em;
}

/* 文本内的强调加粗字块 */
.privacy-policy-content strong {
    color: var(--theme-pink);
    background-color: #FFF0F2;
    padding: 2px 8px;
    border-radius: 6px;
}

/* 文本内的超链接 */
.privacy-policy-content a {
    color: var(--theme-blue);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 4px;
}

.privacy-policy-content a:hover {
    color: var(--theme-pink);
    text-decoration-style: solid;
}

/* =========================================
   单页移动端适配
   ========================================= */
@media screen and (max-width: 768px) {
    .privacy-policy-content {
        padding: 25px 20px;
        border-radius: var(--radius-md);
        border-width: 3px;
    }
    .privacy-policy-content h2 {
        font-size: 1.5rem;
        margin: 30px 0 15px;
    }
    .privacy-policy-content p, 
    .privacy-policy-content li {
        font-size: 1.05rem;
    }
}