/* 风格4: 简约扁平2.0风格 - Flat Modern Style (Material Design 3) */
/* 专业干净，适合所有年龄段的欧美用户 */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --error-color: #ef4444;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Clean Header */
.page-head {
    display: flex;
    align-items: center;
    height: 0.88rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: box-shadow 0.3s ease;
}

.page-head:hover {
    box-shadow: var(--shadow-md);
}

.page-head-title {
    flex: 1;
    font-size: 0.36rem;
    color: var(--primary-color);
    font-weight: 700;
    text-align: center;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.page-head-actbtn {
    width: 0.48rem;
    height: 0.48rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.2rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 0.24rem;
}

.page-head-actbtn:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
}

.page-head-actbtn:active {
    transform: scale(0.95);
}

.page-head-actbtn img {
    width: 60%;
    height: 60%;
    filter: brightness(0) saturate(100%) invert(26%) sepia(88%) saturate(2711%) hue-rotate(212deg) brightness(95%) contrast(93%);
}

/* 导航栏搜索容器 */
.page-head-search-container {
    display: flex;
    align-items: center;
    position: relative;
}

/* 导航栏搜索输入框 */
.page-head-search-input {
    position: absolute;
    right: 0.7rem;
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border-radius: 0.28rem;
    padding: 0.06rem 0.06rem 0.06rem 0.18rem;
    height: 0.56rem;
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    border: 1px solid var(--border-color);
}

.page-head-search-input.active {
    width: 4.2rem;
    opacity: 1;
    border-color: var(--primary-color);
}

.page-head-search-input input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.28rem;
    color: var(--text-primary);
    padding: 0 0.1rem;
    min-width: 0;
}

.page-head-search-input input::placeholder {
    color: var(--text-tertiary);
}

.header-search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.06rem;
    transition: opacity 0.2s ease;
}

.header-search-btn:hover {
    opacity: 0.7;
}

.header-search-btn:active {
    opacity: 0.5;
}

.header-search-btn img {
    width: auto;
    height: 0.36rem;
    display: block;
}

/* Category Panel */
.page-home-catepanel {
    padding: 0.24rem 0.3rem;
    background: transparent;
}

.page-home-catepanel:first-of-type {
    padding-top: 0.3rem;
}

.page-home-catepanel:last-of-type {
    padding-bottom: 0.15rem;
}

/* 特色游戏区美化 */
.featured-section {
    position: relative;
    overflow: visible;
}

.featured-section .page-home-catepanel-poplist {
    overflow: visible;
}

.page-home-catepanel-title {
    display: flex;
    height: 0.4rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.15rem 0;
    margin-bottom: 0.18rem;
}

.page-home-catepanel-title label {
    line-height: 0.44rem;
    font-size: 0.34rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.page-home-catepanel-title-more {
    font-size: 0.26rem;
    font-weight: 600;
    color: var(--primary-color);
    height: 0.36rem;
    line-height: 0.36rem;
    padding: 0 0.16rem;
    border-radius: 0.18rem;
    transition: all 0.2s ease;
}

.page-home-catepanel-title-more:hover {
    background: var(--bg-tertiary);
    color: var(--primary-dark);
}

/* Modern Cards - Popular List */
.page-home-catepanel-poplist {
    display: flex;
    margin-bottom: 0;
    gap: 0.24rem;
    flex-wrap: wrap;
}

.page-home-catepanel-poplist-item {
    position: relative;
    width: 2.78rem;
    height: 1.42rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 0.2rem;
    margin-top: 0.5rem;
    overflow: visible;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.page-home-catepanel-poplist-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-home-catepanel-poplist-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.page-home-catepanel-poplist-item:hover::before {
    opacity: 1;
}

.page-home-catepanel-poplist-item:nth-child(2n) {
    margin-right: 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
}

.page-home-catepanel-poplist-item-icon {
    position: absolute;
    width: 1.08rem;
    height: 1.08rem;
    object-fit: cover;
    border-radius: 0.18rem;
    border: 0.03rem solid #FFFFFF;
    left: 0.2rem;
    top: -0.4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    z-index: 2;
}

.page-home-catepanel-poplist-item:hover .page-home-catepanel-poplist-item-icon {
    transform: scale(1.05);
}

.page-home-catepanel-poplist-item-name {
    position: absolute;
    bottom: 0.16rem;
    width: 100%;
    box-sizing: border-box;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    padding: 0 0.2rem;
    font-size: 0.27rem;
    line-height: 0.36rem;
    font-weight: 700;
    color: #FFFFFF;
    z-index: 1;
}

.page-home-catepanel-poplist-item-count {
    position: absolute;
    right: 0.2rem;
    top: 0.18rem;
    font-size: 0.22rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 0.3rem;
    z-index: 1;
}

.page-home-catepanel-poplist-item-count label {
    display: none;
}

/* Clean Game Grid */
.page-home-catepanel-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.20rem;
}

.page-home-catepanel-list-item {
    margin-bottom: 0.16rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.page-home-catepanel-list-item:hover {
    transform: translateY(-3px);
}

.page-home-catepanel-list-item:active {
    transform: translateY(-1px);
}

.page-home-catepanel-list-item:nth-child(3n) {
    margin-right: 0;
}

.page-home-catepanel-list-item-icon {
    width: 1.80rem;
    height: 1.80rem;
    object-fit: cover;
    border-radius: 0.18rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-primary);
}

.page-home-catepanel-list-item:hover .page-home-catepanel-list-item-icon {
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
    transform: scale(1.02);
}

.page-home-catepanel-list-item-name {
    width: 100%;
    height: auto;
    font-size: 0.26rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    margin-top: 0.1rem;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    text-align: center;
    padding: 0 0.04rem;
}

.page-home-catepanel-list-item-count {
    font-size: 0.22rem;
    line-height: 1.4;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 0.04rem;
}

.page-home-catepanel-list-item-count label {
    display: none;
}

/* Clean Footer */
.page-foot {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    text-align: center;
    margin-top: 0.3rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

.page-foot-site {
    padding-top: 0.2rem;
    height: 0.32rem;
    font-size: 0.26rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 0.32rem;
}

.page-foot-agreement {
    padding-top: 0.12rem;
    font-size: 0.24rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 0.34rem;
}

.page-foot-agreement a {
    color: var(--primary-color);
    transition: color 0.2s ease;
}

.page-foot-agreement a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.page-foot-copyright {
    padding-top: 0.12rem;
    font-size: 0.24rem;
    font-weight: 400;
    color: var(--text-tertiary);
    line-height: 0.34rem;
    padding-bottom: 0.2rem;
}

/* Clean Ad Panel */
.ui-ad-pannel {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 0.2rem 0;
    width: 100%;
    box-sizing: border-box;
}

.ui-ad-pannel-tip {
    font-size: 10px;
    line-height: 15px;
    color: var(--text-tertiary);
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ui-ad-pannel-head {
    background: var(--bg-tertiary);
    height: 0.5rem;
    text-align: center;
    line-height: 0.7rem;
    font-size: 0.18rem;
    color: var(--text-secondary);
}

.ui-ad-pannel-foot {
    height: 1.1rem;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ui-ad-pannel-foot-openbtn {
    width: 3.40rem;
    height: 0.60rem;
    background: var(--primary-color);
    border-radius: 0.30rem;
    font-size: 0.24rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 0.6rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
    cursor: pointer;
}

.ui-ad-pannel-foot-openbtn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.ui-ad-pannel-foot-openbtn:active {
    transform: translateY(0);
}

.ui-ad-pannel img {
    width: 6.4rem;
    height: 4.3rem;
    border-radius: 0.20rem;
    box-shadow: var(--shadow-md);
}

/* Clean List Container */
.category-game-container {
    padding: 0.24rem 0;
}

.page-list-itemcontainer {
    background: transparent;
    padding: 0 0.3rem;
}

.page-list-itemcontainer-item {
    display: flex;
    align-items: center;
    margin: 0.16rem 0;
    padding: 0.16rem;
    border-radius: 0.18rem;
    background: var(--bg-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-list-itemcontainer-item:hover {
    background: var(--bg-primary);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

.page-list-itemcontainer-item-icon {
    width: 1.3rem;
    height: 1.3rem;
    object-fit: cover;
    border-radius: 0.16rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.page-list-itemcontainer-item-center {
    margin: 0 0.18rem;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.06rem;
}

.page-list-itemcontainer-item-name {
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    font-size: 0.28rem;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}

.page-list-itemcontainer-item-count {
    font-size: 0.22rem;
    line-height: 1.3;
    font-weight: 500;
    color: var(--text-secondary);
}

.page-list-itemcontainer-item label {
    display: none;
}

.page-list-itemcontainer-item-playbtn {
    width: 1.1rem;
    height: 0.52rem;
    line-height: 0.52rem;
    background: var(--primary-color);
    border-radius: 0.26rem;
    text-align: center;
    font-size: 0.26rem;
    color: #FFFFFF;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.page-list-itemcontainer-item-playbtn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.page-list-itemcontainer-item-playbtn:active {
    transform: scale(0.98);
}

.page-list-loading {
    font-size: 0.28rem;
    color: var(--text-secondary);
    line-height: 0.8rem;
    text-align: center;
    padding-bottom: 0.14rem;
}

/* Game Detail Section */
.game-detail-section {
    padding: 0.3rem;
}

/* Clean Game Detail */
.page-game-detail {
    padding: 0.3rem;
    display: flex;
    background: var(--bg-primary);
    border-radius: 0.2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.page-game-detail-icon {
    width: 2rem;
    height: 2rem;
    object-fit: cover;
    border-radius: 0.18rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.page-game-detail-right {
    flex: 1;
    margin-left: 0.24rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.page-game-detail-right-name {
    font-size: 0.32rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    height: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-game-detail-right-tags {
    margin-top: 0.1rem;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    height: 0.4rem;
}

.page-game-detail-right-tags span {
    height: 0.38rem;
    font-size: 0.24rem;
    border-radius: 0.19rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    line-height: 0.36rem;
    font-weight: 600;
    color: var(--primary-color);
    padding: 0 0.16rem;
    margin-right: 0.06rem;
    margin-bottom: 0.02rem;
    transition: all 0.2s ease;
}

.page-game-detail-right-tags span:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-game-detail-right-review {
    display: flex;
    margin-top: 0.12rem;
}

.page-game-detail-right-stars {
    background-image: url(../images/icon_review_star_bg.png);
    background-size: 0.4rem 0.4rem;
    width: 2rem;
    height: 0.4rem;
}

.page-game-detail-right-stars-score {
    background-image: url(../images/icon_review_star.png);
    background-size: 0.4rem 0.4rem;
    height: 0.4rem;
}

.page-game-detail-right-score {
    height: 0.42rem;
    font-size: 0.30rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 0.42rem;
    margin-left: 0.06rem;
}

.page-game-detail-right-count {
    margin-top: 0.18rem;
    font-size: 0.24rem;
    line-height: 0.34rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.page-game-detail-right-count label {
    display: none;
}

.ui-page-split {
    background: transparent;
    height: 0;
}

/* Clean Preview */
.page-game-preview-screens {
    width: 100%;
    overflow-x: scroll;
    display: flex;
    padding: 0.2rem 0;
}

.page-game-preview-screens img {
    padding-right: 0.30rem;
    border-radius: 0.20rem;
    box-shadow: var(--shadow-md);
}

.page-game-preview-screens img:first-child {
    padding-left: 0.30rem;
}

.page-game-preview-foot {
    padding: 0.24rem 0;
    display: flex;
    justify-content: center;
}

.page-game-preview-foot-playbtn {
    text-align: center;
    width: 100%;
    max-width: 5rem;
    height: 0.7rem;
    background: var(--secondary-color);
    border-radius: 0.35rem;
    font-size: 0.3rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 0.7rem;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.page-game-preview-foot-playbtn:hover {
    background: #059669;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.page-game-preview-foot-playbtn:active {
    transform: translateY(-1px);
}

.page-game-desc-cont {
    font-size: 0.26rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 0.42rem;
}

/* Clean Panel */
.page-pannel {
    background: var(--bg-primary);
    border-radius: 0.2rem;
    margin: 0.2rem 0.3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.page-pannel-title {
    padding: 0.24rem 0.3rem 0.18rem;
    font-size: 0.3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.page-pannel-cont {
    padding: 0 0.3rem 0.3rem;
    font-size: 0.26rem;
    line-height: 1.65;
}

/* 游戏详情页特殊样式 */
.game-desc-panel {
    margin-top: 0.18rem;
}

.similar-games-panel {
    margin-top: 0.18rem;
    margin-bottom: 0.2rem;
}

.similar-games-panel .page-pannel-title {
    padding-bottom: 0.16rem;
}

.similar-games-panel .page-list-itemcontainer {
    padding: 0 0.3rem 0.3rem;
}

/* 移动端推荐游戏列表 */
.similar-games-grid .page-list-itemcontainer-item {
    margin: 0.12rem 0;
}

.similar-games-grid .page-list-itemcontainer-item-icon {
    width: 1.2rem;
    height: 1.2rem;
}

.similar-games-grid .page-list-itemcontainer-item-center {
    margin: 0 0.16rem;
}

.similar-games-grid .page-list-itemcontainer-item-playbtn {
    width: 1rem;
}

/* Play Page */
.page-play {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.page-play-gameboard {
    position: absolute;
    overflow: hidden;
    top: 0;
    width: 100%;
    bottom: 70px;
}

.page-play-gameboard iframe {
    border: none;
    width: 100%;
    height: 100%;
}

.page-play-adpanel {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 70px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    font-size: 0;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Clean Side Panel */
.ui-sidepanel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(15, 23, 42, 0.5);
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.ui-sidepanel-content {
    width: 3.6rem;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.ui-sidepanel-content-closepanel {
    display: flex;
    padding: 0.4rem 0;
    justify-content: center;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.ui-sidepanel-content-closepanel:hover {
    transform: scale(1.1);
}

.ui-sidepanel-content-closepanel img {
    width: 0.72rem;
    height: 0.72rem;
    filter: brightness(0) saturate(100%) invert(26%) sepia(88%) saturate(2711%) hue-rotate(212deg) brightness(95%) contrast(93%);
}

.ui-sidepanel-content-catelist {
    padding: 0 0.4rem;
    display: flex;
    flex-direction: column;
}

.ui-sidepanel-content-catelist-item {
    height: 0.48rem;
    line-height: 0.48rem;
    margin-bottom: 0.3rem;
    font-size: 0.34rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s ease;
    cursor: pointer;
    padding-left: 0.2rem;
    border-radius: 0.12rem;
}

.ui-sidepanel-content-catelist-item:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    padding-left: 0.3rem;
}

/* Clean Toast */
.ui-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--text-primary);
    color: #FFFFFF;
    font-size: 0.30rem;
    padding: 0.16rem 0.42rem;
    line-height: 0.46rem;
    border-radius: 0.16rem;
    max-width: 80%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    font-weight: 600;
}

#gameframediv {
    position: fixed;
    width: 100%;
}

#game_frame {
    width: 100%;
    height: 100%;
}

/* Clean Search */
.search {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 100%;
    height: 70px;
    padding: 10px 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.search .search-input {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: var(--bg-tertiary);
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
    padding-right: 5px;
    margin: 0 20px;
    width: calc(100% - 40px);
    max-width: 500px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.search .search-input:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search .search-input input {
    display: flex;
    height: 100%;
    width: 100%;
    font-size: 15px;
    color: var(--text-primary);
    padding-left: 20px;
    border-width: 0;
    background: transparent;
    font-weight: 500;
}

.search .search-input input::placeholder {
    color: var(--text-tertiary);
}

.search .search-input input:focus {
    outline: none;
}

.search .search-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.search .search-btn:hover {
    transform: scale(1.05);
}

.search .search-btn:active {
    transform: scale(0.95);
}

.search .search-btn > img {
    width: 56px;
    height: 29px;
}

.search .search-tip {
    padding-left: 21px;
}

.search .search-tip-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.search .search-tip-item {
    padding: 5px 10px;
    text-decoration: none;
    font-size: 14px;
    background: var(--bg-tertiary);
    color: var(--primary-color);
    border-radius: 13px;
    line-height: 30px;
    white-space: nowrap;
    font-weight: 600;
    transition: all 0.2s ease;
}

.search .search-tip-item:hover {
    background: var(--primary-color);
    color: white;
}

#close-search-btn > img {
    width: 11px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(26%) sepia(88%) saturate(2711%) hue-rotate(212deg) brightness(95%) contrast(93%);
}

.header {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 60px;
    background: var(--primary-color);
    padding: 0 16px;
}

.header .left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header .body {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
}

.header .right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.adsbygoogle {
    display: inline-block;
    width: 336px;
    height: 280px;
}

@media (max-width: 336px) {
    .adsbygoogle {
        width: 300px;
        height: 250px;
    }
}

/* 移动端布局优化 */
/* 特色区域横向滚动 */
.page-home-catepanel-poplist {
    overflow-x: auto;
    overflow-y: visible;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.2rem;
    padding-top: 0.5rem;
    margin-top: -0.5rem;
    scroll-behavior: smooth;
}

.page-home-catepanel-poplist::-webkit-scrollbar {
    display: none;
}

.page-home-catepanel-poplist-item {
    flex-shrink: 0;
    width: 2.5rem;
    margin-right: 0.2rem;
}

.page-home-catepanel-poplist-item:last-child {
    margin-right: 0;
}

/* 移动端2列网格布局 */
.page-home-catepanel-list {
    gap: 0.16rem;
}

.page-home-catepanel-list-item {
    width: calc(50% - 0.08rem);
    margin-right: 0;
    padding: 0;
    background: transparent;
    transition: all 0.3s ease;
}

.page-home-catepanel-list-item:hover {
    transform: translateY(-3px);
}

.page-home-catepanel-list-item:nth-child(3n) {
    margin-right: 0;
}

.page-home-catepanel-list-item-icon {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 0.14rem;
    display: block;
}

.page-home-catepanel-list-item-name {
    width: 100%;
    padding: 0 0.04rem;
}

/* 移动端隐藏PC导航 */
.pc-side-nav {
    display: none;
}

.pc-main-content {
    width: 100%;
}

/* 响应式设计 - Responsive Design */
/* 平板端优化 */
@media screen and (min-width: 768px) {
    .page-home-catepanel {
        padding: 0.32rem 0.4rem;
    }
    
    .page-home-catepanel-list {
        justify-content: flex-start;
        gap: 0.24rem;
    }
    
    .page-home-catepanel-list-item {
        width: calc(33.333% - 0.16rem);
        margin-right: 0;
        margin-bottom: 0.18rem;
        padding: 0;
    }
    
    .page-home-catepanel-list-item-icon {
        border-radius: 0.16rem;
    }
    
    .page-home-catepanel-list-item-name {
        font-size: 0.27rem;
        margin-top: 0.1rem;
        padding: 0 0.06rem;
    }
    
    .page-home-catepanel-list-item-count {
        font-size: 0.22rem;
    }
    
    .page-home-catepanel-poplist {
        justify-content: flex-start;
        gap: 0.24rem;
    }
    
    .page-home-catepanel-poplist-item {
        width: calc(50% - 0.12rem);
        margin-right: 0;
    }
    
    /* 平板端分类页容器 */
    .category-game-container {
        padding: 0.3rem 0.4rem;
    }
    
    /* 平板端列表改为2列网格 */
    .page-list-itemcontainer {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.24rem;
        padding: 0;
    }
    
    .page-list-itemcontainer-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.18rem;
    }
    
    .page-list-itemcontainer-item-icon {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        max-width: none;
        border-radius: 0.16rem;
    }
    
    .page-list-itemcontainer-item-center {
        margin: 0.14rem 0 0 0;
        width: 100%;
    }
    
    .page-list-itemcontainer-item-name {
        font-size: 0.28rem;
    }
    
    .page-list-itemcontainer-item-count {
        font-size: 0.22rem;
        margin-top: 0.06rem;
    }
    
    .page-list-itemcontainer-item-playbtn {
        width: 100%;
        max-width: 2rem;
        height: 0.54rem;
        line-height: 0.54rem;
        font-size: 0.26rem;
        margin-top: 0.14rem;
    }
    
    /* 平板端推荐游戏2列 */
    .similar-games-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.24rem;
    }
    
    .similar-games-grid .page-list-itemcontainer-item {
        display: flex;
        flex-direction: column;
        padding: 0.18rem;
    }
    
    .similar-games-grid .page-list-itemcontainer-item-icon {
        width: 100%;
        max-width: none;
    }
    
    /* 平板搜索框 */
    .page-head-search-input {
        height: 0.64rem;
        border-radius: 0.32rem;
        padding: 0.08rem 0.08rem 0.08rem 0.2rem;
    }
    
    .page-head-search-input.active {
        width: 5rem;
    }
    
    .header-search-btn {
        padding: 0.08rem;
    }
    
    .header-search-btn img {
        width: auto;
        height: 0.4rem;
    }
}

@media screen and (min-width: 1024px) {
    /* PC端整体布局 */
    body {
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
        font-size: 16px;
    }
    
    * {
        box-sizing: border-box;
    }
    
    html {
        font-size: 16px;
    }
    
    /* 显示左侧固定导航栏 */
    .pc-side-nav {
        display: block;
        position: fixed;
        left: 0;
        top: 70px;
        width: 260px;
        height: calc(100vh - 70px);
        background: var(--bg-primary);
        border-right: 1px solid var(--border-color);
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 100;
        padding: 30px 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .pc-side-nav::-webkit-scrollbar {
        width: 8px;
    }
    
    .pc-side-nav::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .pc-side-nav::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 4px;
    }
    
    .pc-side-nav::-webkit-scrollbar-thumb:hover {
        background: var(--text-tertiary);
    }
    
    .pc-side-nav-item {
        display: block;
        padding: 16px 30px;
        font-size: 15px;
        font-weight: 600;
        color: var(--text-primary);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 3px solid transparent;
        position: relative;
        line-height: 1.5;
    }
    
    .pc-side-nav-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 0;
        background: var(--primary-color);
        transition: width 0.3s ease;
        opacity: 0.1;
    }
    
    .pc-side-nav-item:hover::before {
        width: 100%;
    }
    
    .pc-side-nav-item:hover {
        background: var(--bg-tertiary);
        color: var(--primary-color);
        border-left-color: var(--primary-color);
        padding-left: 35px;
    }
    
    .pc-side-nav-item.active {
        background: var(--bg-tertiary);
        color: var(--primary-color);
        border-left-color: var(--primary-color);
    }
    
    /* PC端主内容区域左移 */
    .pc-main-content {
        margin-left: 260px;
        width: calc(100% - 260px);
        max-width: calc(100vw - 260px);
        overflow-x: hidden;
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* PC端导航栏 */
    .page-head {
        height: 70px;
        padding: 0 40px;
        width: 100%;
        max-width: 100vw;
    }
    
    .page-head-title {
        font-size: 28px;
        letter-spacing: -0.5px;
    }
    
    .page-head-actbtn {
        width: 40px;
        height: 40px;
        margin: 0 15px;
    }
    
    /* 隐藏PC端菜单按钮 */
    .JS-showPageMenuBtn {
        display: none;
    }
    
    /* 内容区域全屏布局 */
    .page-home-catepanel {
        padding: 20px 40px;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .page-home-catepanel:first-of-type {
        padding-top: 25px;
    }
    
    .page-home-catepanel:last-of-type {
        padding-bottom: 15px;
    }
    
    .page-home-catepanel-title {
        padding: 12px 0;
        margin-bottom: 18px;
    }
    
    /* 特色区域美化 */
    .featured-section {
        padding-bottom: 25px;
    }
    
    .page-home-catepanel-title label {
        font-size: 28px;
        font-weight: 700;
        line-height: 1.3;
    }
    
    .page-home-catepanel-title-more {
        font-size: 15px;
        padding: 8px 20px;
        font-weight: 600;
    }
    
    /* 大卡片PC端布局 */
    .page-home-catepanel-poplist {
        gap: 18px;
        flex-wrap: wrap;
        overflow-x: visible;
        padding-bottom: 0;
        max-width: 100%;
    }
    
    .page-home-catepanel-poplist-item {
        width: calc(50% - 9px);
        height: 160px;
        margin-top: 55px;
        margin-right: 0;
        box-sizing: border-box;
        border-radius: 16px;
        box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
        overflow: visible;
    }
    
    .page-home-catepanel-poplist-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
    }
    
    .page-home-catepanel-poplist-item-icon {
        width: 130px;
        height: 130px;
        left: 25px;
        top: -55px;
        border-radius: 16px;
        z-index: 2;
    }
    
    .page-home-catepanel-poplist-item-name {
        font-size: 15px;
        font-weight: 700;
        bottom: 15px;
        top: auto;
        line-height: 1.3;
        padding: 0 25px;
        z-index: 1;
    }
    
    .page-home-catepanel-poplist-item-count {
        right: 20px;
        left: auto;
        top: 15px;
        font-size: 13px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.95);
        z-index: 1;
    }
    
    .page-home-catepanel-poplist-item-count label {
        display: none;
    }
    
    /* 游戏网格PC端4列布局 */
    .page-home-catepanel-list {
        gap: 16px;
        max-width: 100%;
    }
    
    .page-home-catepanel-list-item {
        width: calc(25% - 12px);
        margin-right: 0;
        margin-bottom: 18px;
        box-sizing: border-box;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .page-home-catepanel-list-item:hover {
        transform: translateY(-4px);
    }
    
    .page-home-catepanel-list-item-icon {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
    
    .page-home-catepanel-list-item:hover .page-home-catepanel-list-item-icon {
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
    }
    
    .page-home-catepanel-list-item-name {
        width: 100%;
        font-size: 13px;
        font-weight: 600;
        margin-top: 10px;
        line-height: 1.35;
        height: auto;
        min-height: 34px;
        max-height: 44px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        text-align: center;
        padding: 0 6px;
    }
    
    .page-home-catepanel-list-item-count {
        font-size: 11px;
        font-weight: 500;
        color: var(--text-tertiary);
        margin-top: 4px;
    }
    
    .page-home-catepanel-list-item-count label {
        display: none;
    }
    
    /* 分类页容器 */
    .category-game-container {
        padding: 20px 40px;
    }
    
    /* 列表项PC端优化 */
    .page-list-itemcontainer {
        max-width: 100%;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .page-list-itemcontainer-item {
        padding: 16px;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-radius: 16px;
        background: var(--bg-primary);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }
    
    .page-list-itemcontainer-item:hover {
        box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
        transform: translateY(-4px);
    }
    
    .page-list-itemcontainer-item-icon {
        width: 100%;
        max-width: 180px;
        height: auto;
        aspect-ratio: 1;
        border-radius: 14px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }
    
    .page-list-itemcontainer-item-center {
        margin: 16px 0 0 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .page-list-itemcontainer-item-name {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.4;
        min-height: 44px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .page-list-itemcontainer-item-count {
        font-size: 13px;
        font-weight: 500;
        color: var(--text-secondary);
    }
    
    .page-list-itemcontainer-item-playbtn {
        width: 100%;
        max-width: 160px;
        height: 44px;
        line-height: 44px;
        font-size: 15px;
        font-weight: 700;
        margin-top: 12px;
        border-radius: 22px;
    }
    
    .page-list-itemcontainer-item-playbtn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
    }
    
    .page-list-itemcontainer-item-playbtn:active {
        transform: translateY(0);
    }
    
    /* 游戏详情区PC端 */
    .game-detail-section {
        padding: 25px 40px 20px;
    }
    
    /* 游戏详情卡片PC端 */
    .page-game-detail {
        max-width: 900px;
        margin: 0 auto;
        padding: 30px;
        box-sizing: border-box;
        border-radius: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    
    .page-game-detail-icon {
        width: 200px;
        height: 200px;
        border-radius: 18px;
    }
    
    .page-game-detail-right {
        margin-left: 30px;
    }
    
    .page-game-detail-right-name {
        font-size: 24px;
        font-weight: 700;
        height: auto;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .page-game-detail-right-tags {
        height: auto;
        margin-top: 14px;
    }
    
    .page-game-detail-right-tags span {
        font-size: 12px;
        font-weight: 600;
        padding: 0 14px;
        height: 28px;
        line-height: 26px;
        border-radius: 14px;
    }
    
    .page-game-detail-right-count {
        font-size: 14px;
        font-weight: 500;
        color: var(--text-secondary);
    }
    
    .page-game-detail-right-count label {
        display: none;
    }
    
    .page-game-detail-right-score {
        font-size: 18px;
        font-weight: 700;
    }
    
    /* 播放按钮PC端 */
    .page-game-preview-foot {
        padding: 20px 0;
    }
    
    .page-game-preview-foot-playbtn {
        width: 100%;
        max-width: 360px;
        height: 56px;
        line-height: 56px;
        font-size: 17px;
        font-weight: 700;
        letter-spacing: 0.8px;
        border-radius: 28px;
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    }
    
    .page-game-preview-foot-playbtn:hover {
        box-shadow: 0 10px 30px rgba(16, 185, 129, 0.45);
    }
    
    /* Panel PC端 */
    .page-pannel {
        max-width: 100%;
        margin: 16px 40px;
        box-sizing: border-box;
        border-radius: 20px;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    }
    
    .page-pannel-title {
        font-size: 20px;
        font-weight: 700;
        padding: 24px 30px 16px;
        line-height: 1.3;
    }
    
    .page-pannel-cont {
        padding: 0 30px 30px;
        font-size: 15px;
        line-height: 1.7;
    }
    
    .page-game-desc-cont {
        font-size: 15px;
        line-height: 1.75;
        color: var(--text-secondary);
    }
    
    /* 游戏详情页面板 */
    .game-desc-panel {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .similar-games-panel {
        margin-top: 20px;
    }
    
    .similar-games-panel .page-list-itemcontainer {
        padding: 0 30px 30px;
    }
    
    /* 推荐游戏网格布局 */
    .similar-games-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .similar-games-grid .page-list-itemcontainer-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px;
    }
    
    .similar-games-grid .page-list-itemcontainer-item-icon {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
    
    .similar-games-grid .page-list-itemcontainer-item-center {
        margin: 14px 0 0 0;
        width: 100%;
    }
    
    .similar-games-grid .page-list-itemcontainer-item-playbtn {
        width: 100%;
        max-width: 140px;
        height: 42px;
        line-height: 42px;
        font-size: 14px;
        margin-top: 12px;
    }
    
    /* Footer PC端 */
    .page-foot {
        padding: 30px 40px 20px;
        margin-left: 260px;
        margin-top: 30px;
        width: calc(100% - 260px);
        max-width: calc(100vw - 260px);
        box-sizing: border-box;
    }
    
    .page-foot-site {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.5;
        padding-top: 10px;
    }
    
    .page-foot-agreement {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.5;
        padding-top: 10px;
    }
    
    .page-foot-copyright {
        font-size: 14px;
        font-weight: 400;
        line-height: 1.5;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    /* PC端隐藏移动端侧边栏 */
    .ui-sidepanel {
        display: none !important;
    }
    
    /* 分隔线适配左侧导航 - 已隐藏 */
    .ui-page-split {
        display: none;
    }
    
    /* 广告面板PC端优化 */
    .ui-ad-pannel {
        padding: 20px 0;
        margin: 15px 0;
    }
    
    /* PC端导航栏搜索框 */
    .page-head-search-input {
        height: 42px;
        border-radius: 21px;
        padding: 5px 5px 5px 16px;
    }
    
    .page-head-search-input.active {
        width: 360px;
    }
    
    .page-head-search-input input {
        font-size: 15px;
        padding: 0 8px;
    }
    
    .header-search-btn {
        padding: 6px;
    }
    
    .header-search-btn img {
        width: auto;
        height: 26px;
    }
    
    /* 隐藏原搜索弹窗 */
    .search {
        display: none !important;
    }
}

/* 超大屏幕优化 */
@media screen and (min-width: 1440px) {
    .page-home-catepanel {
        padding: 22px 60px;
        max-width: 100%;
    }
    
    .page-home-catepanel-title {
        padding: 12px 0;
        margin-bottom: 18px;
    }
    
    /* 5列布局 */
    .page-home-catepanel-list {
        gap: 18px;
    }
    
    .page-home-catepanel-list-item {
        width: calc(20% - 14.4px);
        margin-bottom: 20px;
    }
    
    .page-home-catepanel-list-item-name {
        font-size: 14px;
    }
    
    .page-home-catepanel-list-item-count {
        font-size: 11px;
    }
    
    .page-list-itemcontainer {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 18px;
    }
    
    .page-list-itemcontainer-item {
        padding: 14px;
    }
    
    .page-list-itemcontainer-item-icon {
        max-width: 160px;
    }
    
    .page-list-itemcontainer-item-name {
        font-size: 14px;
        min-height: 40px;
    }
    
    .page-list-itemcontainer-item-count {
        font-size: 12px;
    }
    
    /* 推荐游戏4列 */
    .similar-games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .page-game-detail-icon {
        width: 220px;
        height: 220px;
    }
    
    .page-list-itemcontainer,
    .page-pannel {
        max-width: 100%;
    }
}

/* 4K屏幕优化 */
@media screen and (min-width: 1920px) {
    body {
        font-size: 18px;
    }
    
    .page-home-catepanel {
        padding: 25px 80px;
        max-width: 100%;
    }
    
    .page-home-catepanel-title {
        padding: 15px 0;
        margin-bottom: 20px;
    }
    
    .page-home-catepanel-title label {
        font-size: 32px;
        font-weight: 700;
        line-height: 1.3;
    }
    
    .page-home-catepanel-title-more {
        font-size: 16px;
    }
    
    .page-home-catepanel-list {
        gap: 20px;
    }
    
    .page-home-catepanel-list-item {
        width: calc(16.666% - 16.666px);
        margin-bottom: 22px;
    }
    
    .page-home-catepanel-list-item-name {
        font-size: 15px;
    }
    
    .page-home-catepanel-list-item-count {
        font-size: 12px;
    }
    
    .pc-side-nav-item {
        font-size: 16px;
        padding: 18px 30px;
    }
    
    .page-pannel-title {
        font-size: 24px;
    }
    
    .page-list-itemcontainer {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 22px;
    }
    
    .page-list-itemcontainer-item {
        padding: 18px;
    }
    
    .page-list-itemcontainer-item-icon {
        max-width: 200px;
    }
    
    .page-list-itemcontainer-item-name {
        font-size: 16px;
    }
    
    .page-list-itemcontainer-item-playbtn {
        max-width: 180px;
        height: 48px;
        line-height: 48px;
        font-size: 16px;
    }
    
    /* 推荐游戏5列 */
    .similar-games-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .page-game-detail {
        max-width: 1000px;
    }
    
    .page-game-detail-icon {
        width: 240px;
        height: 240px;
    }
    
    .page-game-detail-right-name {
        font-size: 26px;
    }
    
    .page-game-preview-foot-playbtn {
        max-width: 400px;
        height: 60px;
        line-height: 60px;
        font-size: 18px;
    }
    
    .page-list-itemcontainer,
    .page-pannel {
        max-width: 100%;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 6px;
    border: 2px solid var(--bg-tertiary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Focus States for Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Button States */
button, .clickable {
    transition: all 0.2s ease;
}

button:active, .clickable:active {
    transform: scale(0.98);
}

/* 页面加载动画优化 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-home-catepanel {
    animation: fadeInUp 0.5s ease-out;
}

.page-home-catepanel:nth-child(even) {
    animation-delay: 0.1s;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 加载状态优化 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 图片加载优化 */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* 触摸反馈优化 */
@media (hover: none) {
    .page-home-catepanel-list-item:active {
        transform: scale(0.95);
    }
    
    .page-home-catepanel-poplist-item:active {
        transform: scale(0.98);
    }
}
