/* 寻梦游戏站 - 布局与结构（颜色由 /static/themes/{id}/theme.css 覆盖） */
:root {
    --primary: #3dbd7d;
    --primary-dark: #2a9d62;
    --primary-light: #5ed39a;
    --accent: #ff6600;
    --accent-hover: #ff7722;
    --accent-secondary: #ff8833;
    --bg: #f5f5f5;
    --card: #fff;
    --card-hover: #fafafa;
    --text: #333;
    --text-muted: #999;
    --text-secondary: #666;
    --border: #eee;
    --nav-bg: #3dbd7d;
    --top-bar-bg: #fafafa;
    --footer-bg: #333;
    --footer-text: #aaa;
    --footer-link: #ddd;
    --ribbon-start: #e74c3c;
    --ribbon-end: #ff6600;
    --speed-badge: #5fbcf6;
    --notice-bg: #fff8e6;
    --notice-border: #ffe0a3;
    --notice-text: #856404;
    --hot-tab-bg: #fff;
    --hot-tab-border: #ddd;
    --pill-inactive-bg: #f5f5f5;
    --rank-silver: #f39c12;
    --rank-bronze: #ccc;
    --shadow: 0 1px 6px rgba(0,0,0,.06);
    --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 14px; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; vertical-align: middle; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Header */
.global-header { background: var(--card); margin-bottom: 0; }
.top-bar { background: var(--top-bar-bg); border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; height: 32px; }
.top-links a { margin-left: 16px; color: var(--text-muted); }
.top-links a:hover { color: var(--accent); }
.head-top { padding: 18px 0; border-bottom: 1px solid var(--border); }
.head-inner { display: flex; align-items: center; gap: 40px; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-img { height: 48px; width: auto; max-width: 200px; object-fit: contain; flex-shrink: 0; }
.logo-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; flex-shrink: 0; }
.logo-text-wrap { display: flex; flex-direction: column; gap: 4px; }
.logo-text { font-size: 22px; font-weight: 700; color: var(--primary-dark); line-height: 1.2; }
.logo-slogan { font-size: 12px; color: var(--text-muted); max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-box { flex: 1; max-width: 480px; }
.search-box form { display: flex; border: 2px solid var(--primary); border-radius: 4px; overflow: hidden; }
.search-box input { flex: 1; height: 40px; padding: 0 14px; border: none; font-size: 14px; outline: none; }
.search-box button { width: 80px; height: 40px; border: none; background: var(--primary); color: #fff; font-size: 14px; cursor: pointer; }
.search-box button:hover { background: var(--primary-dark); }
.hot-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--text-muted); }
.hot-search dt { font-weight: normal; }
.hot-search dd { margin: 0; }
.hot-search a { color: var(--text-muted); }
.hot-search a:hover { color: var(--accent); }

.main-nav { background: var(--nav-bg); }
.main-nav .container { display: flex; }
.main-nav a { padding: 14px 36px; color: rgba(255,255,255,.9); font-size: 16px; transition: .2s; }
.main-nav a:hover, .main-nav a.active { background: rgba(0,0,0,.12); color: #fff; text-decoration: none; }

/* Banner */
.hero-banner { position: relative; margin: 12px 0; border-radius: var(--radius); overflow: hidden; height: 300px; background: #ddd; }
.banner-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.banner-slide.active { opacity: 1; z-index: 1; }
.banner-slide img { width: 100%; height: 300px; object-fit: cover; }
.banner-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 20px 16px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: 18px; }
.banner-dots { position: absolute; bottom: 12px; right: 16px; z-index: 2; display: flex; gap: 6px; }
.banner-dots .dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; }
.banner-dots .dot.active { background: var(--accent); }

/* 置顶游戏推荐轮播：外框 + 内框，左 70% ST 视频封面 + 右 30% 白底文案 */
.game-top-carousel {
    margin: 12px 0;
    padding: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow);
}
.game-top-carousel .game-carousel-frame {
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    background: var(--card);
}
.game-top-carousel .game-carousel--hero {
    position: relative;
    height: 400px;
    border: none;
    border-radius: 0;
    overflow: hidden;
    background: var(--card);
    box-shadow: none;
}
.game-top-carousel .game-carousel-track {
    position: relative;
    height: 400px;
}
.game-top-carousel .game-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}
.game-top-carousel .game-carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}
.game-top-carousel .game-carousel-slide-link {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 0;
    height: 400px;
    color: var(--text);
    text-decoration: none;
    background: var(--card);
}
.game-top-carousel .game-carousel-slide-link:hover { color: var(--text); }
.game-top-carousel .game-carousel-media {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: #1a1a1a;
}
.game-top-carousel .game-carousel-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.game-top-carousel .badge,
.game-top-carousel .icon-ribbon,
.game-top-carousel .icon-speed,
.game-top-carousel .game-cover-badges { display: none !important; }
.game-top-carousel .game-carousel-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    height: 400px;
    padding: 28px 22px 44px;
    text-align: left;
    background: var(--card);
    box-sizing: border-box;
    border-left: 1px solid var(--border);
}
.game-top-carousel .game-carousel-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
}
.game-top-carousel .game-carousel-desc {
    margin: 0;
    flex: 1;
    min-height: 0;
    font-size: 13px;
    line-height: 1.85;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 11;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.game-top-carousel .game-carousel-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    width: 40px;
    height: 56px;
    padding: 0;
    border: none;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease, visibility 0.25s ease, background 0.2s;
}
.game-top-carousel .game-carousel--hero.is-nav-visible .game-carousel-nav {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
.game-top-carousel .game-carousel--hero.is-nav-visible .game-carousel-nav:hover {
    background: rgba(0, 0, 0, 0.58);
}
.game-top-carousel .game-carousel-prev { left: 0; }
.game-top-carousel .game-carousel-next {
    left: calc(70% - 40px);
    right: auto;
}
.game-top-carousel .game-carousel-dots {
    position: absolute;
    left: 70%;
    right: 0;
    bottom: 18px;
    z-index: 4;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 7px;
    padding: 0 22px 0 12px;
    margin: 0;
    box-sizing: border-box;
    pointer-events: none;
}
.game-top-carousel .game-carousel-dots .dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--rank-bronze);
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s, transform 0.2s;
}
.game-top-carousel .game-carousel-dots .dot:hover {
    background: var(--text-muted);
}
.game-top-carousel .game-carousel-dots .dot.active {
    background: var(--accent);
    transform: scale(1.1);
}

/* 首页：左侧类型 Tab + 右侧图标横条（图二样式） */
.home-type-icons-panel.panel {
    padding: 0;
    margin-bottom: 12px;
    overflow: hidden;
}
.home-type-icons-panel .type-icons-layout {
    display: flex;
    align-items: flex-start;
}
.home-type-icons-panel .type-icons-tabs {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 92px;
    flex-shrink: 0;
    align-self: stretch;
    background: var(--pill-inactive-bg);
    border-right: 1px solid var(--border);
}
.home-type-icons-panel .type-tab {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-height: 0;
    padding: 9px 6px;
    border: none;
    border-bottom: 1px solid var(--border);
    background: var(--pill-inactive-bg);
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.home-type-icons-panel .type-tab:last-child { border-bottom: none; }
.home-type-icons-panel .type-tab:hover:not(.active) {
    background: var(--card-hover);
    color: var(--text-secondary);
}
.home-type-icons-panel .type-tab.active {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}
.home-type-icons-panel .type-tab.active::after {
    content: '';
    position: absolute;
    right: -7px;
    top: 50%;
    margin-top: -7px;
    border: 7px solid transparent;
    border-left-color: var(--accent);
    z-index: 2;
}
.home-type-icons-panel .type-tab-label {
    display: block;
    max-width: 100%;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-type-icons-panel .type-tab-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.home-type-icons-panel .type-tab-icon--flame {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 23C7 18 4 14 4 9.5 4 6 6.5 3 9.5 3c1.5 0 2.9.7 3.8 1.8C14.2 3.7 15.6 3 17 3 20 3 22.5 6 22.5 9.5 22.5 14 19 18 14 23h-2z'/%3E%3C/svg%3E");
}
.home-type-icons-panel .type-tab-icon--dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    background-image: none;
}
.home-type-icons-panel .type-tab-icon--new,
.home-type-icons-panel .type-tab-icon--hot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    background-image: none;
}
.home-type-icons-panel .type-icons-body {
    flex: 1;
    min-width: 0;
    padding: 10px 14px 10px 8px;
    background: var(--card);
}
.home-type-icons-panel .type-icons-body .tab-content { display: none; }
.home-type-icons-panel .type-icons-body .tab-content.active { display: block; }
.home-type-icons-panel .type-icons-track {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(6px, 1vw, 14px);
    width: 100%;
}
.home-type-icons-panel .type-icon-item {
    flex: 1 1 0;
    min-width: 0;
    max-width: 108px;
    text-align: center;
    color: var(--text);
    text-decoration: none;
}
.home-type-icons-panel .type-icon-item:hover {
    color: var(--accent);
    text-decoration: none;
}
.home-type-icons-panel .type-icon-item:hover .type-icon-title {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0;
}
.home-type-icons-panel .type-icon-img {
    position: relative;
    display: block;
    width: min(76px, 92%);
    aspect-ratio: 1;
    margin: 0 auto 8px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border);
    background: var(--pill-inactive-bg);
}
.home-type-icons-panel .type-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-type-icons-panel .type-icon-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    max-width: 92%;
    padding: 2px 6px 4px 4px;
    background: linear-gradient(135deg, var(--ribbon-start), var(--ribbon-end));
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 0 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-type-icons-panel .type-icon-speed {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 1px 5px;
    background: var(--speed-badge);
    color: #fff;
    font-size: 10px;
    border-radius: 6px 0 0 0;
}
.home-type-icons-panel .type-icon-title {
    display: inline-block;
    max-width: 100%;
    font-size: 12px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.home-type-icons-panel .type-icons-empty {
    padding: 36px 12px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* Icon scroll（横条图标均分铺满容器宽度） */
.home-page > .home-type-icons-panel:first-child,
.home-page > .hero-banner:first-child { margin-top: 12px; }
.icon-scroll-wrap { width: 100%; overflow: hidden; }
.icon-scroll-track {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(8px, 1.2vw, 16px);
    width: 100%;
    padding: 4px 0;
    box-sizing: border-box;
}
.icon-scroll-item {
    flex: 1 1 0;
    min-width: 0;
    max-width: 120px;
    text-align: center;
    color: var(--text);
}
.icon-scroll-item:hover { color: var(--accent); text-decoration: none; }
.icon-scroll-img {
    display: block;
    width: min(72px, 88%);
    aspect-ratio: 1;
    height: auto;
    margin: 0 auto 6px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--border);
    background: #f8f8f8;
}
.icon-scroll-img img { width: 100%; height: 100%; object-fit: cover; }
.icon-scroll-title {
    display: block;
    font-size: 12px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Panel */
.panel { background: var(--card); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.panel-head h2 { font-size: 18px; color: var(--text); font-weight: 700; }
.panel-head h2::before { content: '▎'; color: var(--primary); margin-right: 6px; }
.panel-head .more { font-size: 13px; color: var(--text-muted); }
.panel-head .more:hover { color: var(--accent); }
.panel-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.pill-tabs .tab-btn { padding: 6px 18px; background: var(--pill-inactive-bg); border: 1px solid var(--border); border-radius: 20px; cursor: pointer; font-size: 13px; color: var(--text-muted); }
.pill-tabs .tab-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.tab-btn { padding: 10px 24px; background: none; border: none; cursor: pointer; font-size: 15px; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Home layout */
.home-split { display: grid; grid-template-columns: 1fr 320px; gap: 12px; align-items: start; }
.home-aside .panel { margin-bottom: 0; }
.section-block { margin-top: 0; }

/* 热门游戏 - 梨子手游网格 */
.hot-games-panel { padding-top: 14px; }
.hot-games-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.hot-games-head-left { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.hot-games-head h2 { font-size: 18px; font-weight: 700; color: var(--text); margin: 0; border: none; padding: 0; }
.hot-games-head h2::before { display: none; }
.head-flame { font-size: 16px; margin-right: 4px; }
.hot-tabs { display: flex; gap: 8px; margin: 0; }
.hot-tabs .tab-btn { padding: 5px 16px; background: var(--hot-tab-bg); border: 1px solid var(--hot-tab-border); border-radius: 3px; cursor: pointer; font-size: 13px; color: var(--text-secondary); margin-bottom: 0; }
.hot-tabs .tab-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.hot-tabs .tab-btn:hover:not(.active) { border-color: var(--accent); color: var(--accent); }
.hot-games-empty {
    grid-column: 1 / -1;
    padding: 24px 12px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.hot-games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.hot-game-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px 12px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--card); transition: background .2s; min-height: 96px; }
.hot-game-card:hover { background: var(--card-hover); text-decoration: none; }
.hot-game-icon { position: relative; width: 72px; height: 72px; flex-shrink: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #f8f8f8; }
.hot-game-icon img { width: 100%; height: 100%; object-fit: cover; }
.icon-ribbon { position: absolute; top: 0; left: 0; background: linear-gradient(135deg, var(--ribbon-start), var(--ribbon-end)); color: #fff; font-size: 10px; line-height: 1.2; padding: 2px 6px 4px 4px; border-radius: 0 0 8px 0; font-weight: 600; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-speed { position: absolute; bottom: 0; right: 0; background: var(--speed-badge); color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 6px 0 0 0; }
.hot-game-info { flex: 1; min-width: 0; padding-top: 2px; }
.hot-game-info h3 { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-game-card:hover h3 { color: var(--accent); }
.hot-game-version { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.hot-game-version .hot-pf-icons { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; vertical-align: middle; }
.hot-game-version .hot-pf-icons .pf-icon { width: 22px; height: 22px; border-radius: 6px; }
.hot-game-version .hot-pf-icons .pf-icon svg { width: 14px; height: 14px; }
.hot-game-version .hot-pf-icons .pf-android { background: #79c343; color: #fff; }
.hot-game-version .hot-pf-icons .pf-ios { background: #5fbcf6; color: #fff; }
.hot-game-category,
.hot-game-type { font-size: 12px; color: var(--text-muted); line-height: 1.45; margin-bottom: 2px; }
.hot-game-category em,
.hot-game-type em { color: var(--text-secondary); font-style: normal; }

/* Game row list (其他页面复用) */
.game-row-list { display: flex; flex-direction: column; }
.game-row-item { display: flex; align-items: center; gap: 14px; padding: 12px 8px; border-bottom: 1px dashed var(--border); transition: background .2s; }
.game-row-item:last-child { border-bottom: none; }
.game-row-item:hover { background: #fafafa; text-decoration: none; }
.game-row-cover { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); }
.game-row-body { flex: 1; min-width: 0; }
.game-row-body h3 { font-size: 15px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 4px; }
.game-row-item:hover h3 { color: var(--accent); }
.game-row-meta { font-size: 12px; color: var(--text-muted); }
.game-row-meta em { color: var(--accent); font-style: normal; }
.game-row-dl { flex-shrink: 0; padding: 6px 20px; background: var(--accent); color: #fff !important; border-radius: 4px; font-size: 13px; }
.game-row-dl:hover { background: var(--accent-hover); }

/* Game grid */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.game-grid.featured { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.game-grid.compact { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.game-card { display: block; background: #fafafa; border-radius: var(--radius); padding: 10px; transition: transform .2s, box-shadow .2s; }
.game-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.game-cover { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; margin-bottom: 8px; background: #eee; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-cover-badges { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.game-cover .badge {
    position: absolute;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    padding: 3px 7px;
    border-radius: 4px;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.game-cover .badge.top {
    top: 0;
    left: 0;
    border-radius: 8px 0 8px 0;
    background: linear-gradient(135deg, #3d9e48, #2e7d32);
}
.game-cover .badge.hot {
    top: 0;
    right: 0;
    left: auto;
    border-radius: 0 8px 0 8px;
    background: linear-gradient(135deg, #ff8a4c, #e85d04);
}
.game-cover .badge.rec {
    bottom: 0;
    right: 0;
    top: auto;
    left: auto;
    border-radius: 8px 0 0 0;
    background: linear-gradient(135deg, #a66bd8, #7b4397);
}
.game-card h3 { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-card p { font-size: 11px; color: var(--text-muted); margin-top: 4px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Rank */
.rank-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.rank-list li:last-child { border-bottom: none; }
.rank-no { width: 22px; height: 22px; border-radius: 4px; background: #ccc; color: #fff; text-align: center; line-height: 22px; font-size: 12px; flex-shrink: 0; }
.rank-no.rank-1 { background: #e74c3c; }
.rank-no.rank-2 { background: var(--rank-silver); }
.rank-no.rank-3 { background: var(--primary); }
.rank-list img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.rank-meta { flex: 1; min-width: 0; }
.rank-meta a { display: block; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-meta a:hover { color: var(--accent); }
.rank-meta span { font-size: 11px; color: var(--text-muted); }
.rank-dl { padding: 4px 14px; background: var(--accent); color: #fff !important; border-radius: 4px; font-size: 12px; flex-shrink: 0; }
.rank-dl:hover { background: var(--accent-hover); text-decoration: none; }
.rank-list.full li { padding: 14px 0; }

.rank-box--sidebar .panel-head { margin-bottom: 10px; }
.rank-box--sidebar .rank-list img { width: 44px; height: 44px; }

.rank-triple-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rank-triple-grid .rank-box { box-shadow: none; border: 1px solid var(--border); margin: 0; }
.section-ranks-triple { padding: 0; background: transparent; box-shadow: none; }
.section-ranks-triple .rank-triple-grid .panel { background: var(--card); box-shadow: var(--shadow); }

/* News */
.lizisy-news .news-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.lizisy-news .news-title:hover { color: var(--accent); }
.news-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.news-list li:last-child { border-bottom: none; }
.news-date { color: var(--text-muted); font-size: 12px; margin-left: 12px; flex-shrink: 0; }

.sub-tab-content { display: none; }
.sub-tab-content.active { display: block; }

/* Games list + sidebar */
.games-layout { display: grid; grid-template-columns: 1fr 320px; gap: 12px; align-items: start; }
.games-main { min-width: 0; }
.list-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.games-sidebar { position: sticky; top: 12px; }
.games-sidebar .rank-list li { padding: 8px 0; }
.games-sidebar .rank-meta a { font-size: 13px; }

/* 游戏大全：导航下方类型 / 分类筛选 */
.games-filter-strip {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.games-filter-inner { padding: 12px 15px 10px; }
.games-filter-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}
.games-filter-row:last-child { margin-bottom: 0; }
.games-filter-label {
    flex-shrink: 0;
    min-width: 40px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 28px;
}
.games-filter-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.games-filter-tags a {
    display: inline-block;
    padding: 4px 14px;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 3px;
    border: 1px solid var(--hot-tab-border);
    background: var(--pill-inactive-bg);
    color: var(--text-secondary);
    white-space: nowrap;
}
.games-filter-tags a:hover {
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}
.games-filter-tags a.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}
.page-games-wrap .page-games { padding-top: 16px; }

/* Page */
.page-title { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 12px; }
.page-title h1 { font-size: 22px; color: var(--text); }
.page-title h1::before { content: '▎'; color: var(--primary); margin-right: 6px; }
.sort-tabs a { padding: 6px 16px; margin-left: 8px; background: var(--card); border-radius: 20px; color: var(--text); border: 1px solid var(--border); font-size: 13px; }
.sort-tabs a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.breadcrumb { padding: 12px 0; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--primary-dark); }

/* Detail - 梨子手游双栏布局 */
.lizisy-detail { padding-bottom: 24px; }
.detail-layout { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
.detail-sidebar { position: sticky; top: 12px; }
.sidebar-card { background: var(--card); border-radius: 8px; padding: 18px 14px 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06); border: 1px solid #eee; text-align: center; }
.sidebar-cover-wrap { position: relative; width: 160px; height: 160px; margin: 0 auto 14px; }
.sidebar-cover-default { position: relative; width: 100%; height: 100%; transition: opacity .2s ease; }
.sidebar-cover { width: 160px; height: 160px; border-radius: 16px; object-fit: cover; border: 2px solid var(--border); display: block; }
.sidebar-cover-wrap.is-qr-active .sidebar-cover-default { opacity: 0; visibility: hidden; pointer-events: none; }
.sidebar-cover-qr { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .2s ease; pointer-events: none; }
.sidebar-cover-wrap.is-qr-active .sidebar-cover-qr { opacity: 1; visibility: visible; pointer-events: auto; }
.sidebar-qr-inner { position: relative; width: 152px; height: 152px; background: #fff; border-radius: 14px; border: 2px solid var(--border); box-sizing: border-box; overflow: hidden; }
.sidebar-qr-host { width: 148px; height: 148px; margin: 0 auto; display: flex; align-items: center; justify-content: center; min-height: 148px; }
.sidebar-qr-host img { display: block !important; width: 148px !important; height: 148px !important; max-width: 148px !important; max-height: 148px !important; }
.sidebar-qr-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 8px; object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); background: #fff; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .15s ease; }
.sidebar-cover-wrap.is-qr-ready .sidebar-qr-logo { opacity: 1; }
.sidebar-qr-loading,
.sidebar-qr-fail { display: flex; align-items: center; justify-content: center; width: 148px; height: 148px; font-size: 12px; color: #999; text-align: center; padding: 8px; box-sizing: border-box; }
.sidebar-qr-fail { color: #c55; }
.dl-btn-side.is-qr-hover { filter: brightness(1.08); }
.cover-badge { position: absolute; top: 0; left: 0; z-index: 3; background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 0 0 8px 0; font-weight: 600; }
.sidebar-cover-wrap.is-qr-active .cover-badge { display: none; }
.sidebar-title { font-size: 15px; font-weight: 700; line-height: 1.45; margin-bottom: 14px; text-align: center; color: var(--text); padding: 0 4px; }
.dl-btns { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.dl-btn { display: flex; align-items: stretch; width: 100%; min-height: 42px; border: none; border-radius: 6px; cursor: pointer; overflow: hidden; text-decoration: none; color: #fff; font-size: 14px; transition: filter .2s, transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.dl-btn:hover { filter: brightness(1.05); text-decoration: none; color: #fff; transform: translateY(-1px); }
.dl-btn:active { transform: translateY(0); filter: brightness(.96); }
.dl-btn-main { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; min-width: 0; }
.dl-btn-side { width: 46px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.14); }
.dl-btn-side svg { width: 20px; height: 20px; opacity: .95; pointer-events: none; }
.dl-btn-side * { pointer-events: none; }
.dl-btn-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dl-btn-icon svg { width: 22px; height: 22px; display: block; }
.dl-btn-text { font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.dl-android { background: linear-gradient(180deg, #8ed44f 0%, #79c343 100%); }
.dl-android .dl-btn-side { background: #6aad38; }
.dl-ios { background: linear-gradient(180deg, #72c8f8 0%, #5fbcf6 100%); }
.dl-ios .dl-btn-side { background: #4aa8e0; }
.dl-box { background: linear-gradient(180deg, #ffc233 0%, #f5a623 100%); }
.dl-box .dl-btn-side { background: #e09518; }
.dl-game-admin { background: linear-gradient(180deg, #9b7de8 0%, #7b5ad6 100%); }
.dl-game-admin .dl-btn-side { background: #6548b8; }
.dl-btn-side { cursor: pointer; }
.dl-btn:disabled { opacity: .7; cursor: wait; transform: none; }
.dl-qr-modal { display: none; position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; padding: 16px; }
.dl-qr-modal.is-open { display: flex; }
.dl-qr-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.dl-qr-dialog { position: relative; background: #fff; border-radius: 12px; padding: 20px 20px 16px; max-width: 300px; width: 100%; text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.dl-qr-close { position: absolute; top: 8px; right: 10px; border: none; background: transparent; font-size: 24px; line-height: 1; color: #999; cursor: pointer; padding: 4px 8px; }
.dl-qr-close:hover { color: #333; }
.dl-qr-title { font-size: 16px; font-weight: 700; margin: 0 0 14px; color: #333; }
.dl-qr-canvas { display: inline-flex; align-items: center; justify-content: center; min-height: 200px; min-width: 200px; }
.dl-qr-canvas img { display: block; max-width: 100%; height: auto; }
.dl-qr-hint { margin: 12px 0 0; font-size: 13px; color: #888; }
.sidebar-meta { text-align: left; font-size: 13px; border-top: 1px dashed var(--border); padding-top: 14px; margin-top: 4px; }
.meta-row { display: flex; padding: 6px 0; line-height: 1.5; }
.meta-row dt { color: #888; flex-shrink: 0; min-width: 72px; }
.meta-row dd { color: #333; margin: 0; flex: 1; }
.platform-icons { display: inline-flex; align-items: center; gap: 10px; }
.pf-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; }
.pf-icon svg { width: 16px; height: 16px; display: block; }
.pf-android { background: #79c343; color: #fff; }
.pf-ios { background: #5fbcf6; color: #fff; }

.detail-main { min-width: 0; }
.detail-notice { background: var(--notice-bg); border: 1px solid var(--notice-border); border-radius: 4px; padding: 12px 16px; margin-bottom: 12px; font-size: 13px; color: var(--notice-text); }
.detail-section { background: var(--card); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 12px; box-shadow: var(--shadow); }
.section-head-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.section-head-row .section-title { margin-bottom: 0; border: none; padding: 0; }
.section-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); display: flex; align-items: center; gap: 8px; }
.section-icon { color: var(--accent); font-size: 16px; }
.section-body.intro-text { font-size: 14px; line-height: 1.9; color: #555; }
.detail-section.detail-section-video {
    padding: 0;
    overflow: hidden;
}
.game-video-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    border: none;
    border-radius: 0;
    overflow: hidden;
    background: #0a0a0a;
    line-height: 0;
}
.game-video-wrap--mp4 {
    height: clamp(220px, 34vw, 380px);
    max-height: min(48vh, 400px);
}
.game-video-html5 {
    display: block;
    width: 100%;
    height: 100%;
    min-height: clamp(220px, 34vw, 380px);
    max-height: min(48vh, 400px);
    object-fit: cover;
    object-position: center top;
    background: #000;
    vertical-align: top;
}
.game-video-ratio {
    position: relative;
    width: 100%;
    padding-top: 42%;
    background: #000;
}
.game-video-ratio iframe {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.feature-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 16px; }
.feature-tab { padding: 10px 24px; background: none; border: none; cursor: pointer; font-size: 14px; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: .2s; }
.feature-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.feature-panel { display: none; }
.feature-panel.active { display: block; }
.feature-list { list-style: none; padding: 0; }
.feature-list li { padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; line-height: 1.7; color: #555; }
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: '●'; color: var(--accent); margin-right: 8px; font-size: 10px; vertical-align: middle; }
.info-list li::before { content: '▸'; }
.empty-hint { color: var(--text-muted); font-size: 13px; padding: 12px 0; }

.screenshot-slider { position: relative; padding: 0 40px; }
.ss-viewport { overflow: hidden; }
.ss-track { display: flex; gap: 12px; transition: transform .35s ease; }
.ss-slide { flex-shrink: 0; width: 200px; height: 356px; border-radius: 8px; overflow: hidden; background: #f0f0f0; }
.ss-slide img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 8px; }
.ss-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 48px; border: none; background: rgba(0,0,0,.45); color: #fff; font-size: 24px; cursor: pointer; border-radius: 4px; z-index: 2; line-height: 1; }
.ss-nav:hover { background: rgba(0,0,0,.65); }
.ss-prev { left: 0; }
.ss-next { right: 0; }

.related-scroll { display: flex; gap: 16px; overflow-x: auto; padding: 4px 0; scrollbar-width: thin; }
.related-item { flex-shrink: 0; width: 80px; text-align: center; color: var(--text); }
.related-item:hover { color: var(--accent); text-decoration: none; }
.related-item img { width: 68px; height: 68px; border-radius: 12px; object-fit: cover; border: 2px solid var(--border); margin-bottom: 6px; }
.related-item span { display: block; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 旧版详情兼容 */
.detail-card { display: flex; gap: 24px; background: var(--card); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; }
.detail-cover { width: 140px; height: 140px; border-radius: 16px; object-fit: cover; flex-shrink: 0; border: 2px solid var(--border); }
.detail-body h1 { font-size: 24px; margin-bottom: 8px; }
.detail-sub { color: var(--accent); margin-bottom: 10px; font-size: 14px; }
.detail-tags { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); margin-bottom: 12px; flex-wrap: wrap; }
.detail-desc { font-size: 14px; line-height: 1.8; margin-bottom: 16px; color: #666; }
.btn-download { padding: 12px 40px; background: linear-gradient(135deg, var(--accent), #ff8833); color: #fff; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; }
.btn-download:hover { opacity: .92; }
.detail-content { background: var(--card); padding: 24px; border-radius: var(--radius); line-height: 1.8; margin-bottom: 12px; box-shadow: var(--shadow); }
.detail-content h2 { font-size: 18px; color: var(--text); margin: 20px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }
.detail-content h2:first-child { margin-top: 0; }
.detail-content .game-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 12px 0; }
.detail-content .game-gallery figure { margin: 0; border-radius: 8px; overflow: hidden; background: #f8f8f8; }
.detail-content .game-gallery img { width: 100%; height: auto; display: block; border-radius: 8px; }
.detail-content .welfare-block,
.detail-content .features-block { font-size: 14px; color: var(--text); }
.detail-content .xm-st-collect-notice { background: #fff8e6; border: 1px solid #ffe0a3; border-radius: 6px; padding: 12px 16px; margin-bottom: 16px; font-size: 13px; color: #856404; }

/* Articles */
.article-list { list-style: none; }
.article-item { display: flex; gap: 16px; background: var(--card); padding: 16px; margin-bottom: 12px; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-cover { width: 160px; flex-shrink: 0; }
.article-cover img { width: 160px; height: 100px; object-fit: cover; border-radius: 6px; }
.article-body h2 { font-size: 17px; margin-bottom: 8px; }
.article-body p { color: var(--text-muted); font-size: 13px; margin-bottom: 8px; }
.article-meta { font-size: 12px; color: #aaa; }
.article-detail { background: var(--card); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-detail h1 { font-size: 26px; margin-bottom: 12px; }
.article-cover-img { max-height: 360px; margin: 16px 0; border-radius: 8px; }
.article-content { line-height: 1.9; font-size: 15px; }

.page-static-detail { padding-bottom: 32px; }
.static-page {
    background: var(--card);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.static-page__title { font-size: 26px; margin: 0 0 12px; color: var(--text); }
.static-page__summary {
    margin: 0 0 20px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.static-page__content { line-height: 1.9; font-size: 15px; }
.static-page__content h2,
.static-page__content h3 { margin: 1.2em 0 0.6em; }
.static-page__content p { margin-bottom: 0.8em; }
.static-page__content ul,
.static-page__content ol { margin: 0.5em 0 1em 1.5em; }

.pagination { display: flex; justify-content: center; gap: 8px; margin: 24px 0; }
.pagination a { padding: 6px 14px; background: var(--card); border-radius: 4px; color: var(--text); border: 1px solid var(--border); }
.pagination a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.empty-tip { text-align: center; padding: 40px; color: var(--text-muted); }
.page-404 .error-box { text-align: center; padding: 80px 0; }
.page-404 h1 { font-size: 72px; color: var(--primary); }
.btn-back { display: inline-block; margin-top: 20px; padding: 10px 24px; background: var(--primary); color: #fff; border-radius: 4px; }

/* Friend links (above footer) */
.friend-links-section { margin-top: 16px; }
.friend-links-box {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 14px 20px 16px;
    box-shadow: var(--shadow);
}
.friend-links-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.friend-links-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    position: relative;
    padding-bottom: 8px;
    line-height: 1.2;
}
.friend-links-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    background: #e74c3c;
    border-radius: 1px;
}
.friend-links-qq {
    display: inline-block;
    padding: 6px 14px;
    background: #e74c3c;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 2px;
    white-space: nowrap;
}
.friend-links-list { font-size: 13px; line-height: 1.8; color: var(--text-secondary); }
.friend-links-list a { color: var(--text); }
.friend-links-list a:hover { color: var(--accent); }
.friend-links-list .sep { color: #ccc; margin: 0 8px; user-select: none; }

.footer-color-bar { display: flex; height: 4px; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.footer-color-bar span { flex: 1; }
.footer-color-bar .c1 { background: var(--primary); }
.footer-color-bar .c2 { background: #f1c40f; }
.footer-color-bar .c3 { background: var(--accent); }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 0; padding: 28px 0; }
.footer-inner { text-align: center; }
.footer-nav { margin-bottom: 14px; }
.footer-nav a { color: var(--footer-link); margin: 0 14px; font-size: 14px; }
.footer-nav a:hover { color: var(--accent); }
.footer-notice { font-size: 12px; color: #888; margin-bottom: 8px; }
.footer-copy { font-size: 13px; margin: 4px 0; color: #888; }
.footer-copy a { color: #888; }

/* Footer custom HTML：Copyright 下全宽横条，左免责声明（压行高）右二维码（正常尺寸） */
.site-footer .footer-custom-html {
    margin-top: 12px;
    padding: 14px 0 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer .footer-custom-inner {
    width: 100%;
    font-size: 13px;
    line-height: 1.5;
    color: #999;
    text-align: center;
}
.site-footer .footer-custom-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 28px 48px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
}
.site-footer .footer-disclaimer-box,
.site-footer .footer-custom-inner fieldset {
    flex: 1 1 520px;
    max-width: 540px;
    min-width: 280px;
    margin: 0;
    box-sizing: border-box;
    border: 1.5px dashed #008cff;
    padding: 8px 14px 10px;
    border-radius: 5px;
    line-height: 1.5;
    font-weight: 600;
    font-size: 13px;
    color: #bbb;
    background: rgba(255, 255, 255, 0.04);
}
.site-footer .footer-custom-inner legend {
    padding: 2px 16px;
    margin: 0 auto 4px;
    width: auto;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    background: linear-gradient(to right, #ffcc99, #ff99cc);
    border: 1.5px dashed #008cff;
    border-radius: 999px;
}
.site-footer .footer-disclaimer-text,
.site-footer .footer-custom-inner fieldset p {
    margin: 0;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.5;
}
.site-footer .footer-disclaimer-num,
.site-footer .footer-custom-inner .btn-info.btn-xs {
    display: inline-block;
    min-width: 1.35em;
    margin-right: 3px;
    padding: 0 4px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    color: #cce8ff;
    background: rgba(0, 140, 255, 0.4);
    border-radius: 3px;
    vertical-align: baseline;
}
.site-footer .footer-miniimg-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 36px 44px;
    flex: 0 0 auto;
}
.site-footer .footer-miniimg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex: 0 0 auto;
    width: 150px;
    text-align: center;
    box-sizing: border-box;
}
.site-footer .footer-miniimg p {
    margin: 0;
    line-height: 0;
}
.site-footer .footer-miniimg img {
    display: block;
    width: 128px;
    height: 128px;
    max-width: none;
    object-fit: contain;
    margin: 0;
    flex-shrink: 0;
}
.site-footer .footer-miniimg span {
    display: block;
    width: 100%;
    font-size: 12px;
    line-height: 1.4;
    color: #aaa;
    word-break: break-word;
}
/* 兼容旧版 list-inline 结构 */
.site-footer .footer-custom-inner ul.list-inline,
.site-footer .footer-custom-inner ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    gap: 20px 28px;
}
.site-footer .footer-custom-inner li {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 0 1 auto;
    max-width: none;
}
.site-footer .footer-custom-inner li:empty {
    display: none;
}
.site-footer .footer-custom-inner .fcode-links > div {
    display: block;
}
.site-footer .footer-custom-inner p.fcode-links {
    margin: 0;
}

@media (max-width: 992px) {
    .rank-triple-grid { grid-template-columns: 1fr; }
    .site-footer .footer-custom-row {
        flex-wrap: wrap;
        gap: 20px 24px;
    }
    .site-footer .footer-custom-inner ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .site-footer .footer-miniimg-group {
        flex-wrap: wrap;
        gap: 24px 32px;
    }
    .site-footer .footer-disclaimer-box,
    .site-footer .footer-custom-inner fieldset {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .site-footer .footer-miniimg img {
        width: 112px;
        height: 112px;
    }
}

@media (max-width: 768px) {
    .game-top-carousel {
        padding: 8px;
    }
    .game-top-carousel .game-carousel--hero,
    .game-top-carousel .game-carousel-track {
        height: auto;
        min-height: 0;
    }
    .game-top-carousel .game-carousel-slide {
        position: relative;
        inset: auto;
        opacity: 1;
        visibility: hidden;
        display: none;
        height: auto;
        transition: none;
    }
    .game-top-carousel .game-carousel-slide.active {
        display: block;
        visibility: visible;
    }
    .game-top-carousel .game-carousel-slide-link,
    .game-top-carousel .game-carousel-media,
    .game-top-carousel .game-carousel-body {
        height: auto;
        min-height: 0;
    }
    .game-top-carousel .game-carousel-slide-link {
        grid-template-columns: 1fr;
    }
    .game-top-carousel .game-carousel-media {
        height: 200px;
    }
    .game-top-carousel .game-carousel-body {
        min-height: 120px;
        padding: 16px 16px 40px;
        border-left: none;
        border-top: 1px solid var(--border);
    }
    .game-top-carousel .game-carousel-dots {
        left: 0;
        right: 0;
        bottom: 12px;
        padding: 0 16px;
    }
    .game-top-carousel .game-carousel-next {
        left: auto;
        right: 0;
    }
    .game-top-carousel .game-carousel-nav {
        width: 36px;
        height: 48px;
        font-size: 22px;
    }
    .home-type-icons-panel .type-icons-layout {
        flex-direction: column;
        min-height: 0;
    }
    .home-type-icons-panel .type-icons-tabs {
        flex-direction: row;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .home-type-icons-panel .type-tab {
        flex: 1 1 0;
        min-height: 40px;
        flex-direction: row;
        gap: 6px;
        border-bottom: none;
        border-right: 1px solid var(--border);
    }
    .home-type-icons-panel .type-tab:last-child { border-right: none; }
    .home-type-icons-panel .type-tab.active::after {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -7px;
        margin-left: -7px;
        margin-top: 0;
        border: 7px solid transparent;
        border-top-color: var(--accent);
        border-left-color: transparent;
    }
    .home-type-icons-panel .type-icons-body { padding: 12px 10px; }
    .home-type-icons-panel .type-icons-track {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
    }
    .home-type-icons-panel .type-icon-item {
        flex: 0 0 72px;
        min-width: 72px;
        max-width: 72px;
    }
    .icon-scroll-track {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
    .icon-scroll-item {
        flex: 0 0 72px;
        min-width: 72px;
        max-width: 72px;
    }
    .icon-scroll-img { width: 68px; }
    .games-filter-row { flex-direction: column; gap: 6px; }
    .games-filter-label { line-height: 1.4; }
    .games-filter-tags { gap: 6px; }
    .games-filter-tags a { padding: 4px 10px; font-size: 12px; }
    .friend-links-head { flex-direction: column; align-items: flex-start; }
    .friend-links-qq { font-size: 12px; padding: 5px 10px; }
    .head-inner { flex-direction: column; align-items: stretch; gap: 16px; }
    .logo-slogan { white-space: normal; }
    .hot-games-grid { grid-template-columns: repeat(2, 1fr); }
    .hot-games-head { flex-direction: column; align-items: flex-start; }
    .home-split { grid-template-columns: 1fr; }
    .games-layout { grid-template-columns: 1fr; }
    .games-sidebar { position: static; }
    .detail-card { flex-direction: column; align-items: center; text-align: center; }
    .detail-tags { justify-content: center; }
    .detail-layout { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; }
    .screenshot-slider { padding: 0 36px; }
    .ss-slide { width: 160px; height: 284px; }
    .main-nav a { padding: 12px 16px; font-size: 14px; flex: 1; text-align: center; }
    .hero-banner { height: 180px; }
    .banner-slide img { height: 180px; }
    .top-bar-inner { flex-direction: column; height: auto; padding: 6px 0; gap: 4px; }
    .hot-games-grid { grid-template-columns: 1fr; }
    .game-row-item { flex-wrap: wrap; }
}
