@charset "utf-8";
:root,
[data-theme="light"] {
    --pm-c: #2d8a7a;
    --pm-light: #4db6ac;
    --pm-dark: #1a5c50;
    --pm-glow: rgba(45, 138, 122, 0.3);
    --accent: #ffc107;
    --accent-dark: #e6a800;
    --danger: #f56c6c;
    --success: #67c23a;
    --info: #409eff;
    --bg-body: #f0f2f5;
    --bg-card: #ffffff;
    --bg-card-hover: #fafbfc;
    --bg-surface: #f8f9fa;
    --bg-input: #f5f7fa;
    --border-c: #e4e7ed;
    --border-hover: rgba(45, 138, 122, 0.4);
    --text-primary: #303133;
    --text-secondary: #606266;
    --text-muted: #909399;
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px var(--pm-glow);
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.06);
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --tag-bg: #f2f6fc;
    --tag-text: #909399;
    --tag-hover-bg: var(--pm-c);
    --tag-hover-text: #fff;
    --code-bg: #f0f9eb;
    --code-border: #67c23a;
    --code-text: #2d8a7a;
    --pagination-bg: #fff;
    --pagination-active-bg: var(--pm-c);
    --pagination-text: #606266;
    --pagination-active-text: #fff;
    --dialog-bg: #fff;
    --dialog-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    --input-bg: #f5f7fa;
    --input-border: #dcdfe6;
    --input-text: #303133;
    --input-placeholder: #c0c4cc;
    --btn-disabled-bg: #c0c4cc;
    --footer-bg: #1a2332;
    --footer-text: rgba(255, 255, 255, 0.7);
    --footer-muted: rgba(255, 255, 255, 0.4);
    --header-bg: rgba(255, 255, 255, 0.92);
    --header-border: rgba(0, 0, 0, 0.06);
    --header-text: #303133;
    --header-nav-text: #606266;
    --header-nav-hover-bg: rgba(45, 138, 122, 0.08);
    --mobile-bar-bg: rgba(255, 255, 255, 0.96);
    --mobile-menu-bg: #fff;
    --hero-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.6) 50%, var(--bg-body) 100%), linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, transparent 50%);
    --hero-title-gradient: linear-gradient(135deg, #303133 0%, var(--pm-c) 100%);
    --hero-subtitle-color: #606266;
    --hero-stats-border: rgba(0, 0, 0, 0.06);
    --hero-badge-bg: rgba(45, 138, 122, 0.1);
    --hero-badge-border: rgba(45, 138, 122, 0.2);
    --nav-bar-glass: rgba(255, 255, 255, 0.85);
    --nav-bar-border: rgba(0, 0, 0, 0.06);
    --nav-cate-bg: #f2f6fc;
    --nav-group-bg: #f2f6fc;
    --nav-group-border: #e4e7ed;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
    --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}
[data-theme="dark"] {
    --pm-c: #2d8a7a;
    --pm-light: #4db6ac;
    --pm-dark: #1a5c50;
    --pm-glow: rgba(45, 138, 122, 0.4);
    --accent: #ffc107;
    --accent-dark: #e6a800;
    --danger: #f56c6c;
    --success: #67c23a;
    --info: #409eff;
    --bg-body: #0a0f1a;
    --bg-card: #111827;
    --bg-card-hover: #1a2332;
    --bg-surface: #0f1729;
    --bg-input: rgba(255, 255, 255, 0.05);
    --border-c: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(45, 138, 122, 0.3);
    --text-primary: #e8edf5;
    --text-secondary: #8b95a8;
    --text-muted: #5a6478;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--pm-glow);
    --glass: rgba(17, 24, 39, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --overlay-bg: rgba(0, 0, 0, 0.7);
    --tag-bg: rgba(255, 255, 255, 0.06);
    --tag-text: #8b95a8;
    --tag-hover-bg: rgba(45, 138, 122, 0.2);
    --tag-hover-text: var(--pm-light);
    --code-bg: rgba(45, 138, 122, 0.1);
    --code-border: var(--pm-c);
    --code-text: var(--pm-light);
    --pagination-bg: var(--bg-card);
    --pagination-active-bg: var(--pm-c);
    --pagination-text: var(--text-secondary);
    --pagination-active-text: #fff;
    --dialog-bg: var(--bg-card);
    --dialog-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: var(--border-c);
    --input-text: var(--text-primary);
    --input-placeholder: var(--text-muted);
    --btn-disabled-bg: rgba(255, 255, 255, 0.1);
    --footer-bg: #080c16;
    --footer-text: rgba(255, 255, 255, 0.6);
    --footer-muted: rgba(255, 255, 255, 0.3);
    --header-bg: rgba(10, 15, 26, 0.92);
    --header-border: rgba(255, 255, 255, 0.06);
    --header-text: #e8edf5;
    --header-nav-text: #8b95a8;
    --header-nav-hover-bg: rgba(45, 138, 122, 0.15);
    --mobile-bar-bg: rgba(10, 15, 26, 0.96);
    --mobile-menu-bg: #111827;
    --hero-overlay: linear-gradient(180deg, rgba(10, 15, 26, 0.3) 0%, rgba(10, 15, 26, 0.6) 50%, var(--bg-body) 100%), linear-gradient(90deg, rgba(10, 15, 26, 0.8) 0%, transparent 50%);
    --hero-title-gradient: linear-gradient(135deg, #fff 0%, var(--pm-light) 100%);
    --hero-subtitle-color: var(--text-secondary);
    --hero-stats-border: rgba(255, 255, 255, 0.08);
    --hero-badge-bg: rgba(45, 138, 122, 0.2);
    --hero-badge-border: rgba(45, 138, 122, 0.3);
    --nav-bar-glass: rgba(17, 24, 39, 0.75);
    --nav-bar-border: rgba(255, 255, 255, 0.08);
    --nav-cate-bg: rgba(255, 255, 255, 0.05);
    --nav-group-bg: rgba(255, 255, 255, 0.08);
    --nav-group-border: var(--border-c);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --pm-c: #2d8a7a;
        --pm-light: #4db6ac;
        --pm-dark: #1a5c50;
        --pm-glow: rgba(45, 138, 122, 0.4);
        --bg-body: #0a0f1a;
        --bg-card: #111827;
        --bg-card-hover: #1a2332;
        --bg-surface: #0f1729;
        --bg-input: rgba(255, 255, 255, 0.05);
        --border-c: rgba(255, 255, 255, 0.06);
        --border-hover: rgba(45, 138, 122, 0.3);
        --text-primary: #e8edf5;
        --text-secondary: #8b95a8;
        --text-muted: #5a6478;
        --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
        --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.5);
        --shadow-glow: 0 0 30px var(--pm-glow);
        --glass: rgba(17, 24, 39, 0.75);
        --glass-border: rgba(255, 255, 255, 0.08);
        --overlay-bg: rgba(0, 0, 0, 0.7);
        --tag-bg: rgba(255, 255, 255, 0.06);
        --tag-text: #8b95a8;
        --tag-hover-bg: rgba(45, 138, 122, 0.2);
        --tag-hover-text: var(--pm-light);
        --code-bg: rgba(45, 138, 122, 0.1);
        --code-border: var(--pm-c);
        --code-text: var(--pm-light);
        --pagination-bg: var(--bg-card);
        --pagination-active-bg: var(--pm-c);
        --pagination-text: var(--text-secondary);
        --pagination-active-text: #fff;
        --dialog-bg: var(--bg-card);
        --dialog-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        --input-bg: rgba(255, 255, 255, 0.05);
        --input-border: var(--border-c);
        --input-text: var(--text-primary);
        --input-placeholder: var(--text-muted);
        --btn-disabled-bg: rgba(255, 255, 255, 0.1);
        --footer-bg: #080c16;
        --footer-text: rgba(255, 255, 255, 0.6);
        --footer-muted: rgba(255, 255, 255, 0.3);
        --header-bg: rgba(10, 15, 26, 0.92);
        --header-border: rgba(255, 255, 255, 0.06);
        --header-text: #e8edf5;
        --header-nav-text: #8b95a8;
        --header-nav-hover-bg: rgba(45, 138, 122, 0.15);
        --mobile-bar-bg: rgba(10, 15, 26, 0.96);
        --mobile-menu-bg: #111827;
        --hero-overlay: linear-gradient(180deg, rgba(10, 15, 26, 0.3) 0%, rgba(10, 15, 26, 0.6) 50%, var(--bg-body) 100%), linear-gradient(90deg, rgba(10, 15, 26, 0.8) 0%, transparent 50%);
        --hero-title-gradient: linear-gradient(135deg, #fff 0%, var(--pm-light) 100%);
        --hero-subtitle-color: var(--text-secondary);
        --hero-stats-border: rgba(255, 255, 255, 0.08);
        --hero-badge-bg: rgba(45, 138, 122, 0.2);
        --hero-badge-border: rgba(45, 138, 122, 0.3);
        --nav-bar-glass: rgba(17, 24, 39, 0.75);
        --nav-bar-border: rgba(255, 255, 255, 0.08);
        --nav-cate-bg: rgba(255, 255, 255, 0.05);
        --nav-group-bg: rgba(255, 255, 255, 0.08);
        --nav-group-border: var(--border-c);
    }
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body { padding-top: 64px; }
a { text-decoration: none; color: var(--text-primary); transition: var(--transition); }
a:hover { color: var(--pm-c); text-decoration: none; }
ul, ol { padding-left: 0; list-style: none; margin: 0; line-height: normal; }
img { max-width: 100%; display: block; image-rendering: -webkit-optimize-contrast; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.bg-gradient { background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0, transparent 100%); }
.c-pm { color: var(--pm-c) !important; }
.c-md { color: var(--text-secondary) !important; }
.line-2 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; text-overflow: ellipsis; -webkit-line-clamp: 2; }
.line-3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; text-overflow: ellipsis; -webkit-line-clamp: 3; }
.line-4 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; text-overflow: ellipsis; -webkit-line-clamp: 4; }


.home-bg {
    width: 100%;
    height: 680px;
    background-size: cover;
    position: absolute;
    overflow: hidden;
    background-repeat: no-repeat;
}
.home-bg:after {
    content: '';
    display: block;
    width: 120%;
    height: 260px;
    background-color: var(--bg-body);
    position: absolute;
    bottom: -160px;
    left: 50%;
    filter: blur(20px);
    border-radius: 50%;
    transform: translate(-50%, 0);
}
.home-bg-m { display: none; }
.home-warp { padding-top: 400px; position: relative; z-index: 10; }

.logo { position: absolute; top: 0; left: 0; height: 60px; margin: 40px; }
.logo img { height: 100%; }

.navbar {
    padding: 20px 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
    width: 100%;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.navbar .bar-qr { position: absolute; left: 10px; bottom: 20px; background: rgba(0, 0, 0, 0.7); text-align: center; padding: 15px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }
.navbar .bar-qr img { width: 100%; max-width: 130px; border-radius: 4px; }
.navbar .bar-qr span { display: block; color: #fff; font-size: 13px; margin-bottom: 10px; font-weight: 500; }
.navbar .btn-bar { display: flex; align-items: center; margin-left: 180px; }
.navbar .btn-bar a,
.navbar .btn-bar span { display: flex; align-items: center; height: 54px; line-height: 54px; font-size: 18px; text-align: center; position: relative; float: left; background: linear-gradient(135deg, #ffd900, #ff9900); color: #fff; margin-right: 12px; cursor: pointer; padding-right: 20px; border-radius: 8px; box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3); transition: var(--transition); }
.navbar .btn-bar a:hover,
.navbar .btn-bar span:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(255, 153, 0, 0.4); }
.navbar .btn-bar a:before,
.navbar .btn-bar span:before { content: ''; display: inline-block; width: 54px; height: 54px; background-color: rgba(255, 255, 255, 0.2); background-repeat: no-repeat; background-position: center; background-size: 24px; background-image: url(../images/icon-bar-gift.png); margin-right: 15px; border-radius: 8px 0 0 8px; }
.navbar .down-btn { position: absolute; right: 20px; top: 50%; height: 64px; transform: translate(0, -50%); overflow: hidden; border-radius: 8px; box-shadow: 0 4px 16px rgba(255, 153, 0, 0.4); transition: var(--transition); }
.navbar .down-btn:hover { transform: translate(0, -50%) translateY(-2px); box-shadow: 0 6px 20px rgba(255, 153, 0, 0.5); }
.navbar .down-btn:before { content: ''; left: -250px; z-index: 10; top: 0; width: 60px; height: 64px; background-color: rgba(255, 255, 255, 0.3); display: block; position: absolute; top: 0; transform: skewX(-45deg) translateX(0); transition: none; }
.navbar .down-btn:hover:before { left: 120%; transition: 1s ease; }
.navbar .down-btn a { display: flex; align-items: center; position: relative; height: 64px; background: linear-gradient(135deg, #ffd900, #ff9900); color: #fff; text-align: center; line-height: 64px; font-size: 20px; padding-right: 20px; font-weight: 600; }
.navbar .down-btn a:before { content: ''; display: inline-block; left: 0; top: 0; width: 60px; height: 64px; background-color: rgba(255, 255, 255, 0.2); background-repeat: no-repeat; background-position: center; background-size: 24px; background-image: url(../images/down-btn.png); margin-right: 15px; border-radius: 8px 0 0 8px; }
.navbar .down-btn a:after { content: ''; position: absolute; right: 0; bottom: -5px; border: solid transparent; border-width: 5px 7px 0 0; border-top-color: rgba(0, 0, 0, 0.1); }
.navbar .cate-bar { margin-left: 180px; margin-bottom: 15px; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 10px; }
.navbar .cate-bar .cate-btn { padding: 7px 16px; background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)); color: #fff; border-radius: 20px; font-size: 13px; font-weight: 500; transition: var(--transition); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); }
.navbar .cate-bar .cate-btn:hover { background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15)); border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.navbar .cate-bar .cate-btn.search-toggle-btn { background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1)); border-color: rgba(255, 255, 255, 0.35); padding-left: 10px; display: inline-flex; align-items: center; gap: 6px; }
.navbar .cate-bar .cate-btn.search-toggle-btn:before { content: ''; display: inline-block; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5.5' cy='5.5' r='4.5'/%3E%3Cline x1='9' y1='9' x2='13' y2='13'/%3E%3C/svg%3E") no-repeat center center; background-size: contain; }
.navbar .cate-bar .cate-btn.search-toggle-btn:after { content: none; }

.game-show { padding: 20px; }
.game-show .item { border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); transition: var(--transition); }
.game-show .item:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); }
.game-show .item video { height: 330px; width: 100%; object-fit: cover; }
.game-show .item img { max-height: 330px; height: 330px; width: 100%; object-fit: cover; transition: var(--transition); }
.game-show .item:hover img { transform: scale(1.05); }
.game-main {}
.game-main .item { margin: 25px 20px; padding: 20px; background: var(--bg-surface); border-radius: 10px; transition: var(--transition); }
.game-main .item:hover { background: var(--bg-card); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.game-main .content { margin: 20px 0; border-left: 2px solid var(--border-c); margin-left: 10px; padding-left: 30px; font-size: 15px; line-height: 32px; color: var(--text-secondary); }
.game-main .content p { font-size: 15px; line-height: 32px; margin: 15px 0; }
.game-main .game-desc .tags span { background: var(--tag-bg); border-radius: 3px; color: var(--tag-text); font-size: 13px; display: inline-block; cursor: pointer; padding: 4px 10px; line-height: normal; }
.game-main .game-desc .tags span:hover { background: var(--tag-hover-bg); color: var(--tag-hover-text); }
.game-main .game-news ul li { border-bottom: 1px dashed var(--border-c); font-size: 15px; color: var(--text-secondary); margin-bottom: 15px; padding-bottom: 15px; display: flex; align-items: center; }
.game-main .game-news ul li:last-child { margin-bottom: 0; padding-bottom: 0; border: 0; }
.game-main .game-news ul li a { color: var(--text-secondary); display: block; flex: 1; }
.game-main .game-news ul li .time { color: var(--text-muted); }
.game-main .game-images .thumb { width: 286px; margin-right: 15px; display: block; height: 160px; position: relative; overflow: hidden; }
.game-main .game-comment .comment-item { border-bottom: 3px dashed var(--border-c); margin-bottom: 20px; padding-bottom: 20px; }
.game-main .game-comment .comment-item:last-child { margin-bottom: 0; padding-bottom: 0; border: 0; }
.game-main .game-comment .comment-item .user-top { display: flex; align-items: center; line-height: normal; }
.game-main .game-comment .comment-item .user-top .avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; margin-right: 15px; }
.game-main .game-comment .comment-item .user-top .name { display: flex; align-items: center; font-size: 16px; margin-bottom: 5px; }
.game-main .game-comment .comment-item .user-top .time { color: var(--text-muted); font-size: 11px; background-color: var(--tag-bg); border-radius: 20px; padding: 2px 10px; background-image: url(../images/icon-time.png); background-repeat: no-repeat; background-position: 3px center; padding-left: 18px; margin-left: 10px; }
.game-main .game-comment .comment-item .user-top .reply-time { font-size: 13px; color: var(--text-muted); }
.game-main .game-comment .comment-item .user-top .place span:last-child:after { display: none; }
.game-main .game-comment .comment-item .comment-content { padding-left: 51px; margin-top: 10px; }
.game-main .game-comment .comment-item .comment-content img { max-width: 40%; }
.game-main .game-comment .comment-item .reply-btn { margin-left: 51px; display: inline-block; background: var(--tag-bg); padding: 0px 14px; border-radius: 20px; font-size: 12px; color: var(--text-muted); }

.part { padding: 24px; background-color: var(--bg-card); border-radius: 12px; box-shadow: var(--shadow-card); transition: var(--transition); }
.part:hover { box-shadow: var(--shadow-hover); }
.part-title { position: relative; margin-bottom: 25px; display: flex; justify-content: space-between; align-items: center; }
.part-title .title { font-size: 20px; font-weight: 600; color: var(--text-primary); position: relative; padding-left: 24px; }
.part-title .title:before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 16px; background: var(--pm-c); border-radius: 2px; }
.part-title .title em { font-size: 14px; color: var(--text-secondary); margin-left: 10px; font-weight: normal; }
.part-title .more { color: var(--pm-c); font-size: 13px; font-weight: 500; transition: var(--transition); }
.part-title .more:hover { color: var(--text-primary); transform: translateX(5px); }
.part-title.game:before { background: var(--pm-c); }
.part-title.news:before { background: var(--info); }
.part-title.images:before { background: var(--success); }
.part-title.comment:before { background: #e6a23c; }
.part-title.category:before { background: var(--pm-c); }
.part-title.gift:before { background: var(--danger); }
.part-title.hot:before { background: var(--danger); }

.game-warp {}
.game-part { flex: 1; overflow: hidden; position: relative; box-shadow: var(--shadow-hover); z-index: 10; border-radius: 12px; background: var(--bg-card); }
.game-header { text-align: center; padding: 30px 20px 20px; background: linear-gradient(135deg, rgba(45, 138, 122, 0.05), rgba(45, 138, 122, 0.02)); border-radius: 12px; margin-bottom: 20px; position: relative; overflow: hidden; }
.game-header:before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(45, 138, 122, 0.1) 0%, transparent 70%); animation: rotate 20s linear infinite; }
.game-header .game-title { font-size: 32px; font-weight: 700; color: var(--pm-c); margin: 0 0 10px 0; position: relative; z-index: 1; text-shadow: 0 2px 8px rgba(45, 138, 122, 0.2); }
.game-header .game-subtitle { font-size: 16px; color: var(--text-secondary); margin: 0; position: relative; z-index: 1; letter-spacing: 2px; }

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.game-gift {}
.game-gift .gift-list {}
.game-gift .gift-card { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px dashed var(--border-c); }
.game-gift .gift-card:last-child { border-bottom: none; }
.game-gift .gift-info { flex: 1; min-width: 0; }
.game-gift .gift-name { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.game-gift .gift-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-gift .gift-meta { font-size: 12px; color: var(--text-muted); }
.game-gift .gift-meta .gift-remain { color: var(--danger); margin-right: 10px; }
.game-gift .gift-meta .gift-limit { color: #e6a23c; }
.game-gift .gift-action { margin-left: 15px; flex-shrink: 0; text-align: right; }
.game-gift .gift-action .gift-claim-btn { margin-top: 4px; }
.gift-code-show { margin-bottom: 8px; }
.gift-code-show code { display: inline-block; padding: 6px 14px; background: rgba(45, 138, 122, 0.1); border: 1px dashed var(--pm-c); border-radius: 6px; color: var(--pm-light); font-size: 14px; font-weight: 700; font-family: 'Courier New', monospace; letter-spacing: 1px; }
.gift-claim-btn { padding: 7px 18px; border-radius: 8px; font-size: 13px; font-weight: 600; transition: var(--transition); border: none; cursor: pointer; }
.gift-claim-btn.copy-code-btn { background: rgba(45, 138, 122, 0.15); color: var(--pm-light); border: 1px solid rgba(45, 138, 122, 0.3); }
.gift-claim-btn.copy-code-btn:hover { background: rgba(45, 138, 122, 0.25); }
.gift-claim-btn.copied { background: var(--pm-c); color: #fff; border: 1px solid var(--pm-c); }
.gift-claim-btn.disabled { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); cursor: not-allowed; border: 1px solid var(--border-c); }
.gift-claim-btn.claim-unique { background: linear-gradient(135deg, #e6a23c, #ffc107); color: #1a1a1a; box-shadow: 0 2px 10px rgba(230,162,60,0.35); border: none; }
.gift-claim-btn.claim-unique:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(230,162,60,0.45); }
.game-gift .gift-toggle:hover { text-decoration: underline; }

.gift-list { display: flex; flex-direction: column; gap: 12px; }
.gift-card { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-c); border-radius: var(--radius-md); transition: var(--transition); }
.gift-card:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--border-hover); }
.gift-info { flex: 1; min-width: 0; }
.gift-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.gift-tag { font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 500; }
.gift-tag-unique { background: rgba(230, 162, 60, 0.15); color: var(--accent); }
.gift-tag-universal { background: rgba(45, 138, 122, 0.15); color: var(--pm-light); }
.gift-desc { font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 6px; }
.gift-meta { display: flex; gap: 12px; font-size: 12px; }
.gift-remain { color: var(--danger); }
.gift-limit { color: var(--accent); }
.gift-action { margin-left: 16px; flex-shrink: 0; }
.gift-code { display: inline-block; padding: 4px 12px; background: rgba(45, 138, 122, 0.1); border: 1px dashed var(--pm-c); border-radius: 6px; color: var(--pm-light); font-size: 14px; font-weight: 700; font-family: 'Courier New', monospace; letter-spacing: 1px; margin-bottom: 8px; }
.gift-btn { padding: 7px 18px; border-radius: 8px; font-size: 13px; font-weight: 600; transition: var(--transition); }
.gift-btn-claim { background: linear-gradient(135deg, var(--pm-c), var(--pm-light)); color: #fff; box-shadow: 0 2px 10px var(--pm-glow); }
.gift-btn-claim:hover { transform: translateY(-1px); box-shadow: 0 4px 16px var(--pm-glow); }
.gift-btn-copy { background: rgba(45, 138, 122, 0.15); color: var(--pm-light); border: 1px solid rgba(45, 138, 122, 0.3); }
.gift-btn-copy:hover { background: rgba(45, 138, 122, 0.25); }
.gift-btn-disabled { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); cursor: not-allowed; }
.gift-toggle { text-align: center; padding: 12px; color: var(--pm-light); font-size: 13px; cursor: pointer; transition: var(--transition); }
.gift-toggle:hover { color: var(--pm-c); }


.games8-overlay { display: flex; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--overlay-bg); z-index: 10000; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.games8-dialog { background: var(--dialog-bg); border-radius: 16px; width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto; box-shadow: var(--dialog-shadow); animation: games8-dialog-in 0.25s ease-out; }
@keyframes games8-dialog-in { from { opacity: 0; transform: translateY(-20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.games8-dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 0; }
.games8-dialog-title { font-size: 18px; font-weight: bold; color: var(--text-primary); }
.games8-dialog-close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--text-muted); cursor: pointer; border-radius: 50%; transition: all 0.2s; }
.games8-dialog-close:hover { background: var(--bg-surface); color: var(--text-primary); }
.games8-dialog-body { padding: 20px 24px 24px; }
.games8-form-group { margin-bottom: 16px; }
.games8-label { display: block; font-size: 14px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 500; }
.games8-required { color: var(--danger); }
.games8-input { width: 100%; padding: 10px 14px; border: 1px solid var(--input-border); border-radius: 8px; font-size: 15px; box-sizing: border-box; outline: none; transition: border-color 0.2s; -webkit-appearance: none; background: var(--input-bg); color: var(--input-text); }
.games8-input:focus { border-color: var(--pm-c); }
.games8-input-readonly { background: var(--input-bg); color: var(--text-muted); }
.games8-textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--input-border); border-radius: 8px; font-size: 15px; box-sizing: border-box; outline: none; height: 72px; resize: vertical; transition: border-color 0.2s; -webkit-appearance: none; background: var(--input-bg); color: var(--input-text); }
.games8-textarea:focus { border-color: var(--pm-c); }
.games8-captcha-row { display: flex; align-items: center; gap: 10px; }
.games8-captcha-row .games8-input { flex: 1; min-width: 0; }
.games8-captcha-img { height: 42px; border-radius: 6px; cursor: pointer; flex-shrink: 0; border: 1px solid var(--border-c); }
.games8-btn { padding: 10px 20px; border: none; border-radius: 8px; font-size: 15px; cursor: pointer; transition: all 0.2s; outline: none; }
.games8-btn-primary { background: var(--pm-c); color: #fff; }
.games8-btn-primary:hover { opacity: 0.85; }
.games8-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.games8-btn-block { width: 100%; display: block; }
.games8-msg { margin-top: 12px; text-align: center; font-size: 14px; min-height: 20px; }
.games8-msg-error { color: var(--danger); }
.games8-msg-success { color: var(--success); }
.games8-qr-section { margin-top: 20px; text-align: center; padding-top: 20px; border-top: 1px solid var(--border-c); }
.games8-qr-title { font-size: 15px; font-weight: bold; margin-bottom: 12px; color: var(--text-primary); }
.games8-qr-img { width: 150px; height: 150px; border-radius: 10px; display: block; margin: 0 auto; }
.games8-qr-tip { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

.breadcrumb { padding: 10px 0; margin-bottom: 10px; font-size: 13px; color: var(--text-muted); border-bottom: 1px dashed var(--border-c); }
.breadcrumb a { color: var(--text-secondary); transition: var(--transition); }
.breadcrumb a:hover { color: var(--pm-c); }
.breadcrumb span { color: var(--text-muted); }

.category-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed var(--border-c); }
.category-filter .filter-btn { padding: 6px 16px; background: var(--tag-bg); color: var(--text-secondary); border-radius: 20px; font-size: 13px; transition: var(--transition); border: 1px solid var(--border-c); }
.category-filter .filter-btn:hover,
.category-filter .filter-btn.active { background: var(--pm-c); color: #fff; border-color: var(--pm-c); }

.category-news { flex: 1; overflow: hidden; position: relative; box-shadow: var(--shadow-card); z-index: 10; padding: 30px; }
.category-news .news-item { display: flex; align-items: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px dashed var(--border-c); }
.category-news .news-item .thumb { display: block; width: 220px; height: 138px; position: relative; overflow: hidden; margin-right: 20px; }
.category-news .news-item .title a { font-size: 17px; font-weight: bold; }
.category-news .news-item .desc { margin: 20px 0; color: var(--text-muted); line-height: 28px; font-size: 14px; }
.category-news .news-item .info span { color: var(--text-muted); font-size: 14px; margin-right: 20px; }

.news-list { display: flex; flex-direction: column; }
.news-item { display: flex; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border-c); gap: 12px; }
.news-item:last-child { border-bottom: none; }
.news-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pm-c); flex-shrink: 0; }
.news-item a { flex: 1; font-size: 14px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-item a:hover { color: var(--pm-light); }
.news-time { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.news-thumb { display: block; position: relative; overflow: hidden; }
.news-info { flex: 1; min-width: 0; }
.news-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.news-meta { font-size: 12px; color: var(--text-muted); }

.single-news { flex: 1; overflow: hidden; position: relative; box-shadow: var(--shadow-card); z-index: 10; padding: 30px; }
.single-news .news-header { padding: 10px 0; text-align: center; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--border-c); }
.single-news .news-header h1 { font-size: 26px; margin-bottom: 30px; }
.single-news .news-header .info span { color: var(--text-secondary); font-size: 14px; margin: 0 20px; }
.single-news .single-content p { font-size: 16px; line-height: 30px; text-indent: 2em; }
.single-news .single-content h3 { margin: 20px 0; border-left: 3px solid var(--pm-c); background: var(--code-bg); color: var(--pm-c); font-size: 15px; font-weight: bold; padding: 10px; }
.single-news .single-content img { display: block; margin: 0 auto; width: auto; max-width: 68%; max-height: 300px; }

.single-news h1, .single-news h2, .single-news h3, .single-news h4, .single-news h5, .single-news h6 { color: var(--text-primary); }

.article-detail { margin-bottom: 24px; }
.article-detail-header { padding: 28px 28px 20px; border-bottom: 1px solid var(--border-c); }
.article-detail-title { font-size: 26px; font-weight: 800; line-height: 1.4; margin-bottom: 16px; color: var(--text-primary); }
.article-detail-meta { display: flex; gap: 20px; flex-wrap: wrap; }
.article-meta-item { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-muted); }
.article-detail-content { padding: 28px; line-height: 1.8; font-size: 15px; color: var(--text-secondary); }
.article-detail-content p { margin-bottom: 16px; }
.article-detail-content h2 { font-size: 20px; font-weight: 700; margin: 28px 0 14px; padding-left: 12px; border-left: 3px solid var(--pm-c); color: var(--text-primary); }
.article-detail-content h3 { font-size: 18px; font-weight: 600; margin: 24px 0 12px; color: var(--text-primary); }
.article-detail-content img { border-radius: 8px; margin: 16px auto; max-width: 100%; }
.article-detail-content a { color: var(--pm-c); text-decoration: underline; }
.article-detail-content blockquote { margin: 16px 0; padding: 12px 20px; background: var(--bg-surface); border-left: 3px solid var(--pm-c); border-radius: 0 8px 8px 0; color: var(--text-secondary); }
.article-detail-tags { padding: 16px 28px; border-top: 1px solid var(--border-c); display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.article-tags-label { font-size: 13px; color: var(--text-muted); flex-shrink: 0; }
.article-nav { display: flex; gap: 16px; margin-top: 24px; }
.article-nav-item { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border-c); border-radius: var(--radius-md); text-decoration: none; transition: var(--transition); }
.article-nav-item:hover { border-color: var(--border-hover); box-shadow: var(--shadow-card); }
.article-nav-next { text-align: right; }
.article-nav-label { font-size: 12px; color: var(--text-muted); }
.article-nav-title { font-size: 14px; font-weight: 600; color: var(--text-primary); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

.article-tags { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border-c); }
.article-tags .tags-title { font-size: 15px; color: var(--text-secondary); margin-bottom: 10px; font-weight: bold; }
.article-tags .tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags .tag-item { padding: 6px 14px; background: var(--tag-bg); color: var(--text-secondary); border-radius: 16px; font-size: 13px; transition: all 0.3s ease; }
.article-tags .tag-item:hover { background: var(--pm-c); color: #fff; }

.pagination { padding: 20px 10px; text-align: center; background: var(--pagination-bg); border-radius: 6px; }
.pagination a { background-color: var(--pagination-bg); border-color: var(--border-c); border-style: solid; border-width: 1px; color: var(--pagination-text); margin: 2px; padding: 5px 15px; text-decoration: none; border-radius: 4px; height: 36px; line-height: 36px; transition: all 0.2s ease 0s; }
.pagination a:hover { background-color: var(--pagination-active-bg); border-color: var(--pagination-active-bg); border-style: solid; border-width: 1px; color: var(--pagination-active-text); }
.pagination a:active { border-color: var(--pm-c); border-style: solid; border-width: 1px; color: var(--text-primary); }
.pagination .thisclass { background-color: var(--pagination-active-bg); border-color: var(--pagination-active-bg); border-style: solid; border-width: 1px; color: var(--pagination-active-text); font-weight: bold; margin: 2px; padding: 5px 15px; border-radius: 4px; }
.pagination b { background-color: var(--pagination-active-bg); border-color: var(--pagination-active-bg); border-style: solid; border-width: 1px; color: var(--pagination-active-text); margin: 2px; padding: 5px 15px; text-decoration: none; border-radius: 4px; height: 36px; line-height: 36px; transition: all 0.2s ease 0s; }
.page-item { display: inline-block; }
.page-link { display: inline-block; padding: 5px 15px; border: 1px solid var(--border-c); border-radius: 4px; color: var(--pagination-text); transition: var(--transition); }
.page-link:hover { background: var(--pagination-active-bg); color: var(--pagination-active-text); border-color: var(--pagination-active-bg); }

.search-refine-box { padding: 20px; background: var(--bg-card); border-radius: var(--radius-md); margin-bottom: 20px; }
.search-refine-form { display: flex; gap: 10px; }
.search-refine-input { flex: 1; height: 44px; padding: 0 16px; border: 1px solid var(--input-border); border-radius: 8px; font-size: 14px; background: var(--input-bg); color: var(--input-text); outline: none; transition: var(--transition); }
.search-refine-input:focus { border-color: var(--pm-c); }
.search-refine-btn { padding: 0 24px; height: 44px; background: var(--pm-c); color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.search-refine-btn:hover { opacity: 0.85; }

.search-page-warp { margin-top: 20px; }
.search-page-main { flex: 1; }
.search-page-box { padding: 40px 30px; text-align: center; }
.search-page-title { font-size: 28px; font-weight: 700; color: var(--pm-c); margin-bottom: 30px; }
.search-page-form { display: flex; max-width: 500px; margin: 0 auto 30px; border-radius: 30px; overflow: hidden; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); }
.search-page-input { flex: 1; height: 50px; border: 2px solid var(--pm-c); border-right: none; padding: 0 20px; font-size: 15px; outline: none; border-radius: 30px 0 0 30px; transition: var(--transition); background: var(--input-bg); color: var(--input-text); }
.search-page-input:focus { box-shadow: 0 0 0 3px rgba(45, 138, 122, 0.15); }
.search-page-submit { width: 90px; height: 50px; background: var(--pm-c); color: #fff; border: none; cursor: pointer; font-size: 15px; font-weight: 600; border-radius: 0 30px 30px 0; transition: var(--transition); }
.search-page-submit:hover { opacity: 0.85; }
.search-hot-tags { max-width: 500px; margin: 0 auto; text-align: left; }
.search-hot-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; }
.search-hot-list { display: flex; flex-wrap: wrap; gap: 8px; }
.search-hot-item { padding: 5px 14px; background: var(--tag-bg); color: var(--text-secondary); border-radius: 20px; font-size: 13px; transition: var(--transition); }
.search-hot-item:hover { background: var(--pm-c); color: #fff; }

.search-empty { text-align: center; padding: 60px 20px; }
.search-empty-icon { font-size: 48px; color: var(--text-muted); margin-bottom: 16px; }
.search-empty-text { font-size: 18px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.search-empty-tip { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.search-empty-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.tag-page { padding: 30px; }
.tag-info { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border-c); }
.tag-articles { display: flex; flex-direction: column; gap: 16px; }

.topnav { display: none; }
.li-btn, .game-url-btn { display: none; }

.score { width: 90px; height: 45px; background-image: url(../images/icon-rank-bg.png); background-size: 100%; background-repeat: no-repeat; text-align: center; }
.score .size { color: var(--pm-c); font-size: 20px; font-weight: bold; font-style: italic; }
.score .size em { color: var(--pm-c); font-size: 12px; }
.score .title { color: var(--pm-c); font-size: 12px; }

.game-category { margin: 30px 0; }
.game-category .category-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.game-category .category-btn { padding: 10px 20px; background: var(--tag-bg); color: var(--text-secondary); border-radius: 25px; font-size: 14px; transition: all 0.3s ease; border: 1px solid var(--border-c); }
.game-category .category-btn:hover { background: var(--pm-c); color: #fff; border-color: var(--pm-c); transform: translateY(-2px); }

.game-hot .hot-warp { display: grid; grid-template-columns: 1fr; gap: 15px; margin: 20px 0; }
.game-hot .hot-item { display: flex; align-items: center; background: var(--bg-surface); padding: 12px; border-radius: 8px; transition: var(--transition); }
.game-hot .hot-item:hover { background: var(--bg-card); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.game-hot .hot-thumb { display: block; width: 80px; height: 60px; border-radius: 6px; overflow: hidden; position: relative; flex-shrink: 0; margin-right: 12px; }
.game-hot .hot-thumb img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.game-hot .hot-item:hover .hot-thumb img { transform: scale(1.1); }
.game-hot .hot-rank { position: absolute; top: 0; left: 0; width: 20px; height: 20px; background: linear-gradient(135deg, var(--danger), #e6393b); color: #fff; font-size: 11px; font-weight: bold; text-align: center; line-height: 20px; border-radius: 6px 0 6px 0; }
.game-hot .hot-info { flex: 1; overflow: hidden; }
.game-hot .hot-title { display: block; font-size: 14px; color: var(--text-primary); margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: var(--transition); }
.game-hot .hot-title:hover { color: var(--pm-c); }
.game-hot .hot-meta { display: flex; gap: 10px; font-size: 12px; color: var(--text-muted); }

.side-title { position: relative; border-bottom: 1px solid var(--border-c); margin-bottom: 20px; }
.side-title .title { font-size: 17px; line-height: 17px; font-weight: bold; display: inline-block; padding-bottom: 20px; position: relative; }
.side-title .title:after { content: ''; display: inline-block; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--pm-c); }
.side-game-box {}
.side-game-box .icon { width: 68px; height: 68px; border-radius: 12px; overflow: hidden; margin-right: 20px; }
.side-game-box h1 { font-size: 17px; margin-bottom: 25px; }
.side-game-box .type span { background: var(--tag-bg); border-radius: 3px; color: var(--tag-text); font-size: 12px; display: inline-block; cursor: pointer; padding: 4px 10px; line-height: normal; margin-right: 2px; }
.side-game-box .desc { background: var(--bg-surface); padding: 15px; margin-top: 20px; color: var(--text-muted); line-height: 24px; }
.side-game-box .down-btn { display: block; margin-top: 20px; background: var(--pm-c); color: #fff; text-align: center; line-height: 42px; font-weight: bold; }
.side-game-box .info-box { margin-top: 20px; background: var(--bg-surface); padding: 15px; font-size: 15px; margin-bottom: 20px; }
.side-game-box .info-box li { display: flex; align-items: center; font-size: 13px; margin-bottom: 18px; }
.side-game-box .info-box li:last-child { margin-bottom: 0; }
.side-game-box .info-box li .t { color: var(--text-muted); flex: 1; overflow: hidden; }
.side-news {}
.side-news .item { display: flex; align-items: center; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed var(--border-c); }
.side-news .item:last-child { margin-bottom: 0; }
.side-news .item .thumb { display: block; width: 120px; height: 75px; position: relative; overflow: hidden; margin-right: 15px; }
.side-news .item .title { margin-bottom: 15px; line-height: 20px; }
.side-news .item .title a { font-size: 15px; }
.side-news .item span { color: var(--text-muted); font-size: 13px; }
.side-news .more { display: block; text-align: center; background: var(--tag-bg); color: var(--pm-c); line-height: 42px; font-weight: bold; }
.side-hot-game {}
.side-hot-game .item { display: flex; align-items: center; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed var(--border-c); }
.side-hot-game .item .icon { display: block; width: 68px; height: 68px; border-radius: 12px; overflow: hidden; position: relative; margin-right: 15px; }
.side-hot-game .item .title { margin-bottom: 30px; }
.side-hot-game .item .title a { font-size: 16px; }
.side-hot-game .item .type span { background: var(--tag-bg); border-radius: 3px; color: var(--tag-text); font-size: 12px; display: inline-block; cursor: pointer; padding: 4px 10px; line-height: normal; margin-right: 2px; }
.side-hot-game .item .view { display: inline-block; background: var(--pm-c); color: #fff; border-radius: 40px; padding: 6px 12px; }
.side-links {}
.side-links li { display: inline-block; margin-right: 15px; margin-bottom: 10px; }
.side-links li a { font-size: 13px; color: var(--text-secondary); }
.side-tags-box {}
.side-tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.side-tag-item { padding: 4px 12px; background: var(--tag-bg); color: var(--tag-text); border-radius: 3px; font-size: 12px; transition: var(--transition); }
.side-tag-item:hover { background: var(--tag-hover-bg); color: var(--tag-hover-text); }

.footer {}
.footer a { color: var(--footer-text) !important; margin-left: 3px; }
.footer-notice { color: var(--footer-muted); font-size: 12px; margin-top: 10px; line-height: 1.8; letter-spacing: 0.5px; }

.hero {
    position: relative;
    height: 720px;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
}
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--pm-light);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s infinite;
}
@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    animation: heroFadeIn 1s ease-out;
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--hero-badge-bg);
    border: 1px solid var(--hero-badge-border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--pm-light);
    font-weight: 500;
    margin-bottom: 12px;
}
.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.hero-title {
    font-family: var(--font-body);
    font-size: 52px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 12px;
    background: var(--hero-title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 17px;
    color: var(--hero-subtitle-color);
    margin-bottom: 32px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--hero-stats-border);
}
.hero-stat-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--pm-light);
}
.hero-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--pm-c), var(--pm-light));
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px var(--pm-glow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.6s;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 30px var(--pm-glow); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.15); transform: translateY(-2px); }

.nav-bar {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    margin-bottom: 40px;
}
.nav-bar-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 28px;
    background: var(--nav-bar-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--nav-bar-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}
.nav-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-c);
    flex-shrink: 0;
}
.nav-qr img { width: 90px; height: 90px; border-radius: 6px; }
.nav-qr span { font-size: 11px; color: var(--text-muted); }
.nav-cates { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.nav-cate-btn {
    padding: 8px 18px;
    background: var(--nav-cate-bg);
    border: 1px solid var(--border-c);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
}
.nav-cate-btn:hover { background: rgba(45, 138, 122, 0.15); border-color: var(--border-hover); color: var(--pm-light); }
.nav-btns { display: flex; gap: 10px; flex-shrink: 0; }
.nav-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}
.nav-action-btn.gift { background: linear-gradient(135deg, #e6a800, #ffc107); color: #1a1a1a; box-shadow: 0 2px 12px rgba(255, 193, 7, 0.25); }
.nav-action-btn.gift:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(255, 193, 7, 0.35); }
.nav-action-btn.group { background: var(--nav-group-bg); border: 1px solid var(--nav-group-border); color: var(--text-primary); }
.nav-action-btn.group:hover { background: rgba(255, 255, 255, 0.14); }
.nav-download { flex-shrink: 0; }
.nav-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--pm-c), var(--pm-light));
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px var(--pm-glow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.nav-download-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
}
.nav-download-btn:hover::after { animation: shimmer 1.2s ease; }
@keyframes shimmer { to { left: 150%; } }
.nav-download-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 30px var(--pm-glow); }

.main-layout { display: flex; gap: 24px; margin-bottom: 60px; }
.main-content { flex: 1; min-width: 0; }
.sidebar { width: 320px; flex-shrink: 0; }

.section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-c);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    transition: var(--transition);
}
.section-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-hover); }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-c);
}
.section-title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.section-title-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.section-title-icon.green { background: rgba(45, 138, 122, 0.15); color: var(--pm-light); }
.section-title-icon.blue { background: rgba(64, 158, 255, 0.15); color: var(--info); }
.section-title-icon.red { background: rgba(245, 108, 108, 0.15); color: var(--danger); }
.section-title-icon.yellow { background: rgba(230, 162, 60, 0.15); color: var(--accent); }
.section-more { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; transition: var(--transition); }
.section-more:hover { color: var(--pm-light); }
.section-body { padding: 24px; }

.game-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.game-desc-content { font-size: 15px; line-height: 1.8; color: var(--text-secondary); }
.game-desc-content p { margin-bottom: 12px; }
.game-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.game-tag { padding: 5px 14px; background: rgba(45, 138, 122, 0.1); border: 1px solid rgba(45, 138, 122, 0.2); border-radius: 6px; font-size: 13px; color: var(--pm-light); transition: var(--transition); }
.game-tag:hover { background: rgba(45, 138, 122, 0.2); }
.game-tags span { padding: 5px 14px; background: rgba(45, 138, 122, 0.1); border: 1px solid rgba(45, 138, 122, 0.2); border-radius: 6px; font-size: 13px; color: var(--pm-light); transition: var(--transition); display: inline-block; margin-bottom: 4px; }
.game-tags span:hover { background: rgba(45, 138, 122, 0.2); }
.side-game-tags span { padding: 2px 8px; background: rgba(45, 138, 122, 0.1); border-radius: 4px; font-size: 11px; color: var(--pm-light); display: inline-block; margin-right: 2px; margin-bottom: 2px; }
.game-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.game-meta-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; background: rgba(255, 255, 255, 0.03); border-radius: var(--radius-sm); border: 1px solid var(--border-c); }
.game-meta-label { font-size: 12px; color: var(--text-muted); }
.game-meta-value { font-size: 14px; font-weight: 600; color: var(--text-primary); }

.gallery-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.gallery-scroll::-webkit-scrollbar { height: 4px; }
.gallery-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); border-radius: 4px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--pm-c); border-radius: 4px; }
.gallery-item { flex-shrink: 0; width: 300px; height: 180px; border-radius: var(--radius-md); overflow: hidden; scroll-snap-align: start; position: relative; cursor: pointer; }
.gallery-item.video-item { width: 450px; height: auto; min-height: 180px; }
.gallery-item.portrait-item { width: 220px; height: 280px; }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); display: block; }
.gallery-item.video-item video { width: 100%; height: auto; min-height: 180px; object-fit: cover; }
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.08); }
.gallery-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4) 100%); pointer-events: none; }
.gallery-item.video-item:hover::after { opacity: 0; }

.hot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hot-card { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-c); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); }
.hot-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.hot-card-thumb { position: relative; height: 120px; overflow: hidden; }
.hot-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.hot-card:hover .hot-card-thumb img { transform: scale(1.1); }
.hot-rank { position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; font-family: var(--font-display); }
.hot-rank.r1 { background: linear-gradient(135deg, #f56c6c, #e6393b); color: #fff; }
.hot-rank.r2 { background: linear-gradient(135deg, #e6a23c, #ffc107); color: #1a1a1a; }
.hot-rank.r3 { background: linear-gradient(135deg, var(--pm-c), var(--pm-light)); color: #fff; }
.hot-card-info { padding: 12px; }
.hot-card-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-card-meta { display: flex; gap: 10px; font-size: 12px; color: var(--text-muted); }

.reviews-scroll { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.reviews-scroll::-webkit-scrollbar { height: 4px; }
.reviews-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); border-radius: 4px; }
.reviews-scroll::-webkit-scrollbar-thumb { background: var(--accent-dark); border-radius: 4px; }
.review-card { flex-shrink: 0; width: 300px; padding: 20px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-c); border-radius: var(--radius-md); scroll-snap-align: start; transition: var(--transition); }
.review-card:hover { border-color: rgba(230, 162, 60, 0.3); background: rgba(255, 255, 255, 0.06); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex-shrink: 0; position: relative; }
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-online { position: absolute; bottom: 0; right: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--success); border: 2px solid var(--bg-card); }
.review-name { font-size: 14px; font-weight: 600; }
.review-meta { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.review-stars { display: flex; gap: 2px; color: var(--accent); font-size: 12px; }
.review-quote { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.7; color: var(--text-secondary); }
.review-quote::before { content: '\201C'; position: absolute; left: 0; top: -4px; font-size: 28px; color: var(--accent); font-family: Georgia, serif; line-height: 1; }

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-c);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    transition: var(--transition);
}
.sidebar-card:hover { border-color: var(--border-hover); }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-c); }
.sidebar-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sidebar-body { padding: 16px 20px; }
.side-game-info { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.side-game-icon { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; flex-shrink: 0; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.side-game-icon img { width: 100%; height: 100%; object-fit: cover; }
.side-game-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.side-game-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.side-game-tag { padding: 2px 8px; background: rgba(45, 138, 122, 0.1); border-radius: 4px; font-size: 11px; color: var(--pm-light); }
.side-game-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-download-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background: linear-gradient(135deg, var(--pm-c), var(--pm-light));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 12px var(--pm-glow);
    transition: var(--transition);
}
.side-download-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--pm-glow); }
.side-info-list { margin-top: 16px; }
.side-info-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-c); font-size: 13px; }
.side-info-item:last-child { border-bottom: none; }
.side-info-label { color: var(--text-muted); }
.side-info-value { color: var(--text-primary); font-weight: 500; }
.side-news-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-c); align-items: center; }
.side-news-item:last-child { border-bottom: none; }
.side-news-thumb { width: 80px; height: 54px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.side-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-news-title { font-size: 13px; font-weight: 500; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-news-title:hover { color: var(--pm-light); }
.side-news-meta { font-size: 11px; color: var(--text-muted); }
.side-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.side-tag { padding: 5px 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-c); border-radius: 6px; font-size: 12px; color: var(--text-secondary); transition: var(--transition); }
.side-tag:hover { background: rgba(45, 138, 122, 0.15); border-color: var(--border-hover); color: var(--pm-light); }
.side-links { display: flex; flex-wrap: wrap; gap: 12px; }
.side-links a { font-size: 13px; color: var(--text-muted); transition: var(--transition); }
.side-links a:hover { color: var(--pm-light); }

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--header-border);
    transition: var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); }
.site-header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 20px; }
.site-header-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-header-logo-icon { width: 36px; height: 36px; flex-shrink: 0; }
.site-header-logo-text { font-size: 17px; font-weight: 700; color: var(--header-text); }
.site-header-nav { display: flex; gap: 4px; }
.site-header-nav a { padding: 7px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--header-nav-text); transition: var(--transition); }
.site-header-nav a:hover, .site-header-nav a.active { color: var(--pm-c); background: var(--header-nav-hover-bg); }
.site-header-actions { display: flex; align-items: center; gap: 8px; }
.btn-search {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--tag-bg);
    border: 1px solid var(--border-c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}
.btn-search:hover { color: var(--pm-c); border-color: var(--border-hover); }
.btn-download-header {
    padding: 7px 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--pm-c), var(--pm-light));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 10px var(--pm-glow);
    transition: var(--transition);
}
.btn-download-header:hover { transform: translateY(-1px); box-shadow: 0 4px 16px var(--pm-glow); }
.btn-theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--tag-bg);
    border: 1px solid var(--border-c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}
.btn-theme-toggle:hover { color: var(--accent); border-color: var(--border-hover); }

.mobile-topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--mobile-bar-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-c);
}
.mobile-topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 12px; gap: 8px; }
.mobile-topbar-logo { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.mobile-topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mobile-topbar-name { font-size: 16px; font-weight: 700; color: var(--text-primary); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 52px;
    left: 0;
    width: 100%;
    height: calc(100vh - 52px);
    background: var(--mobile-menu-bg);
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}
.mobile-menu.open {
    transform: translateX(0);
    max-height: none;
}
.mobile-menu-inner { padding: 12px 16px 16px; }
.mobile-menu-search form { display: flex; border-radius: 24px; overflow: hidden; margin-bottom: 12px; }
.mobile-menu-search input { flex: 1; height: 40px; border: none; padding: 0 16px; font-size: 14px; outline: none; background: var(--input-bg); color: var(--input-text); }
.mobile-menu-search input::placeholder { color: var(--input-placeholder); }
.mobile-menu-search button { width: 70px; height: 40px; background: var(--pm-c); color: #fff; border: none; cursor: pointer; font-size: 14px; }
.mobile-menu-cates { display: flex; flex-wrap: wrap; gap: 8px; }
.mobile-menu-cates a { padding: 7px 14px; background: var(--tag-bg); color: var(--text-secondary); border-radius: 16px; font-size: 13px; transition: var(--transition); }
.mobile-menu-cates a:hover { background: var(--tag-hover-bg); color: var(--tag-hover-text); }

.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    background: var(--mobile-bar-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-c);
    padding: 8px 12px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}
.mobile-bottom-bar-inner { display: flex; gap: 8px; }
.mobile-bottom-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 8px; border-radius: 8px; font-size: 14px; font-weight: 700; color: #fff; text-decoration: none; }
.mobile-bottom-btn.download { background: linear-gradient(135deg, var(--pm-c), var(--pm-light)); box-shadow: 0 2px 10px var(--pm-glow); }
.mobile-bottom-btn.gift-btn { background: linear-gradient(135deg, #e6a800, #ffc107); color: #1a1a1a; }
.mobile-bottom-btn.group-btn { background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border-c); color: var(--text-primary); }

.site-footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border-c);
    padding: 40px 0 0;
}
.site-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.site-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 32px; }
.site-footer-brand { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.site-footer-desc { font-size: 13px; color: var(--footer-muted); line-height: 1.7; }
.site-footer-col-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.site-footer-links { display: flex; flex-direction: column; gap: 8px; }
.site-footer-links a { font-size: 13px; color: var(--footer-text); transition: var(--transition); }
.site-footer-links a:hover { color: var(--pm-light); }
.site-footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; }
.site-footer-copyright { font-size: 13px; color: var(--footer-muted); }
.site-footer-notice { font-size: 12px; color: var(--footer-muted); max-width: 500px; line-height: 1.6; text-align: right; }

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    cursor: pointer;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { color: var(--pm-c); border-color: var(--border-hover); }

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99998;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}
.search-overlay.show { opacity: 1; visibility: visible; }
.search-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.search-overlay-box {
    position: relative;
    z-index: 1;
    width: 92%;
    max-width: 520px;
    background: var(--dialog-bg);
    border-radius: 20px;
    padding: 0;
    box-shadow: var(--dialog-shadow);
    transform: translateY(-30px) scale(0.96);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.search-overlay.show .search-overlay-box { transform: translateY(0) scale(1); }
.search-overlay-header { display: flex; align-items: center; padding: 20px 24px 0; gap: 10px; }
.search-overlay-icon { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--pm-c), var(--pm-light)); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.search-overlay-title { flex: 1; font-size: 18px; font-weight: 600; color: var(--text-primary); margin: 0; }
.search-overlay-close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); cursor: pointer; border-radius: 50%; transition: var(--transition); flex-shrink: 0; }
.search-overlay-close:hover { background: var(--bg-surface); color: var(--text-secondary); }
.search-overlay-form { display: flex; margin: 16px 24px 20px; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 12px rgba(45, 138, 122, 0.1); border: 2px solid transparent; transition: var(--transition); }
.search-overlay-form:focus-within { border-color: var(--pm-c); box-shadow: 0 2px 12px rgba(45, 138, 122, 0.2); }
.search-overlay-input-wrap { flex: 1; display: flex; align-items: center; background: var(--input-bg); padding: 0 4px 0 14px; }
.search-overlay-input-icon { color: var(--text-muted); flex-shrink: 0; margin-right: 8px; }
.search-overlay-input { flex: 1; height: 48px; background: transparent; border: none; padding: 0; font-size: 15px; outline: none; color: var(--input-text); }
.search-overlay-input::placeholder { color: var(--input-placeholder); }
.search-overlay-submit { width: 84px; height: 48px; background: linear-gradient(135deg, var(--pm-c), var(--pm-light)); color: #fff; border: none; cursor: pointer; font-size: 15px; font-weight: 600; transition: var(--transition); letter-spacing: 2px; }
.search-overlay-submit:hover { filter: brightness(1.1); }
.search-overlay-hot { padding: 0 24px 20px; }
.search-overlay-hot-header { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); font-weight: 500; margin-bottom: 12px; }
.search-overlay-hot-header svg { color: #e6a23c; }
.search-overlay-hot-list { display: flex; flex-wrap: wrap; gap: 8px; }
.search-overlay-tag { padding: 6px 14px; background: var(--tag-bg); color: var(--text-secondary); border-radius: 20px; font-size: 13px; transition: var(--transition); border: 1px solid transparent; }
.search-overlay-tag:hover { background: rgba(45, 138, 122, 0.08); color: var(--pm-c); border-color: rgba(45, 138, 122, 0.2); }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    margin-left: 10px;
    flex-shrink: 0;
    gap: 5px;
}
.mobile-menu-btn span { display: block; width: 20px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s ease; }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
    .sidebar { width: 280px; }
    .hero-title { font-size: 42px; }
    .site-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    .site-header { display: none; }
    .mobile-topbar { display: block; }
    .mobile-bottom-bar { display: block; }
    .mobile-menu-btn { display: flex; }
    body { padding-top: 52px; padding-bottom: 72px; }
    .hero { height: auto; min-height: 420px; padding-top: 20px; padding-bottom: 30px; }
    .hero-content { max-width: 100%; padding-top: 8px; }
    .hero-badge { font-size: 12px; padding: 5px 12px; margin-bottom: 14px; }
    .hero-title { font-size: 30px; margin-bottom: 10px; }
    .hero-subtitle { font-size: 14px; margin-bottom: 20px; -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
    .hero-actions { gap: 10px; }
    .btn-primary { padding: 11px 22px; font-size: 14px; }
    .btn-secondary { padding: 11px 22px; font-size: 14px; }
    .hero-stats { gap: 20px; margin-top: 28px; padding-top: 20px; }
    .hero-stat-value { font-size: 20px; }
    .hero-stat-label { font-size: 12px; }
    .nav-bar { display: none; }
    .main-layout { flex-direction: column; gap: 16px; }
    .sidebar { width: 100%; }
    .sidebar-card:first-child { display: none; }
    .game-info-grid { grid-template-columns: 1fr; gap: 16px; }
    .game-meta-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .game-meta-item { padding: 10px 12px; }
    .hot-grid { grid-template-columns: 1fr; gap: 12px; }
    .section-card { margin-bottom: 16px; border-radius: var(--radius-md); }
    .section-header { padding: 14px 16px; }
    .section-title { font-size: 16px; }
    .section-body { padding: 14px 16px; }
    .gift-card { flex-direction: row; align-items: flex-start; gap: 12px; }
    .gift-info { flex: 1; min-width: 0; }
    .gift-action { margin-left: 0; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
    .gift-claim-btn { width: auto; white-space: nowrap; }
    .gift-btn { width: 100%; text-align: center; }
    .gallery-item { width: 220px; height: 150px; }
    .gallery-item.video-item { width: 300px; }
    .gallery-item.portrait-item { width: 160px; height: 210px; }
    .review-card { width: 260px; padding: 16px; }
    .site-footer { padding-top: 32px; }
    .site-footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .site-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .site-footer-notice { text-align: center; }
    .back-to-top { bottom: 76px; right: 16px; width: 40px; height: 40px; }
    .topnav { display: flex; align-items: center; justify-content: space-between; padding: 10px; background: var(--bg-body); text-align: center; }
    .topnav .icon { width: 26px; height: 26px; border-radius: 6px; overflow: hidden; margin-right: 10px; }
    .topnav .title { font-size: 17px; line-height: 26px; font-weight: bold; color: #fff; flex: 1; text-align: left; }
    .part-title { margin-bottom: 20px; }
    .part-title .title { font-size: 20px; }
    .part-title .title em { font-size: 14px; color: var(--text-muted); margin-left: 10px; }
    .part-title .more { color: var(--text-secondary); font-size: 13px; }
    .game-warp { background: var(--bg-card); margin: 0 !important; box-shadow: none; padding: 10px; }
    .game-part { box-shadow: none; padding: 0px; }
    .game-header { padding: 16px 12px; border-radius: 0; margin-bottom: 0; }
    .game-header .game-title { font-size: 22px; margin-bottom: 6px; }
    .game-header .game-subtitle { font-size: 13px; letter-spacing: 1px; }
    .game-main .item { border-bottom: 12px solid var(--bg-surface); }
    .game-main .content { padding-left: 0; border-left: 0; margin: 20px 0; }
    .game-main .content p { font-size: 14px; line-height: 28px; }
    .game-main .game-desc .tags span { font-size: 12px; }
    .game-main .game-comment .comment-content { padding-left: 0; }
    .game-show { padding: 10px; }
    .game-show .item { padding-left: 6px; }
    .game-show .item:first-child { display: none; }
    .game-show .item img { height: 190px; max-height: 190px; }
    .side-game-box { display: none; }
    .home-bg-m { display: block; overflow: hidden; width: 100%; }
    .home-bg-m video { width: 100%; }
    .home-bg { display: none; }
    .home-warp { padding-top: 0; padding-left: 0; padding-right: 0; }
    .navbar { display: none; }
    .mobile-menu { display: block; }
    .mobile-menu-cate { flex-direction: column; }
    .mobile-menu-cate a { padding: 10px 14px; border-radius: 8px; font-size: 14px; }
    .mobile-menu-search { margin-top: 12px; }
    .navbar .cate-bar { margin-left: 0; margin: 10px; padding: 10px; justify-content: center; }
    .navbar .cate-bar .cate-btn { font-size: 12px; padding: 5px 12px; }
    .game-url-btn { display: block; background: var(--pm-c); color: #fff; border-radius: 4px; padding: 15px; text-align: center; font-weight: bold; font-size: 17px; }
    .game-mobile-actions { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
    .mobile-action-btn { flex: 1; min-width: 80px; display: block; padding: 10px 8px; text-align: center; color: #fff; border-radius: 4px; font-size: 14px; font-weight: bold; text-decoration: none; }
    .mobile-btn-android { background: #4caf50; }
    .mobile-btn-ios { background: #2196f3; }
    .mobile-btn-gift { background: #ff9800; }
    .li-btn { display: flex; gap: 10px; margin-top: 10px; }
    .li-btn a { flex: 1; display: block; padding: 12px; text-align: center; background: #ff9800; color: #fff; border-radius: 4px; }
    .li-btn1 { display: flex; gap: 10px; margin-top: 10px; }
    .li-btn1 a { flex: 1; display: block; padding: 12px; text-align: center; background: var(--pm-c); color: #fff; border-radius: 4px; }
    .category-news { padding: 15px; }
    .category-news .news-item .thumb { height: 80px; width: 100px; margin-right: 10px; }
    .category-news .news-item .desc { display: none; }
    .category-news .news-item .title { height: 45px; margin-bottom: 15px; white-space: normal; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; text-overflow: ellipsis; -webkit-line-clamp: 2; }
    .category-news .news-item .title a { font-size: 15px; }
    .category .sidebar { padding: 15px; }
    .single-news { padding: 15px; }
    .single-news .news-header h1 { font-size: 20px; line-height: 32px; margin-bottom: 20px; }
    .single-news .news-header { padding-bottom: 20px; margin-bottom: 20px; }
    .single-news .single-content p { text-indent: 1em; line-height: 26px; font-size: 14px; }
    .single-news .single-content h3 { margin: 15px 0; border-left: 3px solid var(--pm-c); background: var(--code-bg); color: var(--pm-c); font-size: 15px; font-weight: bold; padding: 10px; }
    .single-news .single-content img { display: block; margin: 0 auto; max-height: 300px; width: auto; max-width: 100%; }
    .single .sidebar { padding: 15px; }
    p { margin: 0 0 15px 0; }
    * + p { margin-top: 15px; }
    .single-news .news-header .info { display: flex; justify-content: space-between; }
    .single-news .news-header .info span { margin: 0; }
    .search-overlay { padding-top: 60px; }
    .article-detail-header { padding: 20px 16px 16px; }
    .article-detail-title { font-size: 20px; }
    .article-detail-content { padding: 16px; font-size: 14px; }
    .article-detail-tags { padding: 12px 16px; }
    .article-nav { flex-direction: column; gap: 10px; }
    .article-item { flex-direction: column; gap: 14px; padding: 16px; }
    .article-item-thumb { width: 100%; height: 180px; }
    .article-item-title { font-size: 16px; }
    .article-item-meta { gap: 14px; flex-wrap: wrap; }
    .tag-header { padding: 32px 16px; margin-bottom: 20px; }
    .tag-icon { font-size: 42px; }
    .tag-name { font-size: 22px; }
    .search-result-header { padding: 28px 16px; margin-bottom: 20px; }
    .search-result-title { font-size: 20px; }
    .search-empty { padding: 40px 16px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .related-thumb { height: 90px; }
    .article-share { padding: 14px 16px; justify-content: center; }
    /* 侧边栏在移动端完全隐藏（已有底部操作栏） */
    .sidebar { display: none; }
}

@media (max-width: 480px) {
    .hero { min-height: 360px; padding-bottom: 20px; }
    .hero-title { font-size: 26px; }
    .hero-subtitle { font-size: 13px; }
    .hero-actions { flex-direction: row; }
    .btn-primary, .btn-secondary { flex: 1; justify-content: center; padding: 10px 14px; font-size: 13px; }
    .btn-secondary { display: none; }
    .hero-stats { flex-wrap: wrap; gap: 14px; }
    .hero-stat-value { font-size: 18px; }
    .gallery-item { width: 180px; height: 120px; }
    .gallery-item.video-item { width: 260px; }
    .gallery-item.portrait-item {width: 130px;height: auto;}
    .game-meta-grid { grid-template-columns: 1fr 1fr; }
    .games8-dialog { max-width: 100%; border-radius: 12px; }
    .games8-dialog-header { padding: 16px 18px 0; }
    .games8-dialog-body { padding: 16px 18px 20px; }
    .games8-dialog-title { font-size: 16px; }
    .games8-input, .games8-textarea { font-size: 16px; padding: 12px 14px; }
    .games8-captcha-img { height: 44px; }
    .games8-btn { padding: 12px 20px; font-size: 16px; }
}

/* 文章列表 */
.article-list { display: flex; flex-direction: column; gap: 16px; }
.article-item { display: flex; gap: 20px; padding: 20px; background: var(--bg-surface); border: 1px solid var(--border-c); border-radius: 12px; transition: all 0.25s ease; cursor: pointer; }
.article-item:hover { border-color: var(--pm-c); transform: translateX(6px); box-shadow: 0 4px 20px rgba(45,138,122,0.12); }
.article-item-thumb { width: 200px; height: 140px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, rgba(45,138,122,0.15), rgba(64,158,255,0.15)); }
.article-item-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.article-item:hover .article-item-thumb img { transform: scale(1.08); }
.article-item-content { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.article-item-cats { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.article-item-cat { padding: 4px 12px; background: rgba(45,138,122,0.12); color: var(--pm-light); border-radius: 6px; font-size: 12px; font-weight: 600; }
.article-item-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; color: var(--text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
.article-item:hover .article-item-title { color: var(--pm-light); }
.article-item-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-item-meta { display: flex; gap: 20px; font-size: 13px; color: var(--text-muted); }

/* 分类筛选 */
.category-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.filter-btn { padding: 10px 20px; background: var(--bg-surface); border: 1px solid var(--border-c); border-radius: 24px; font-size: 14px; color: var(--text-secondary); cursor: pointer; transition: all 0.2s; }
.filter-btn:hover { border-color: var(--pm-c); color: var(--pm-light); background: rgba(45,138,122,0.08); }
.filter-btn.active { background: var(--pm-c); border-color: var(--pm-c); color: #fff; box-shadow: 0 4px 14px var(--pm-glow); }

/* Tag页面头部 */
.tag-header { text-align: center; padding: 48px 24px; margin-bottom: 32px; background: var(--bg-card); border: 1px solid var(--border-c); border-radius: 16px; }
.tag-icon { font-size: 56px; margin-bottom: 16px; animation: tagBounce 2s ease-in-out infinite; }
@keyframes tagBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.tag-name { font-size: 30px; font-weight: 800; margin-bottom: 10px; color: var(--text-primary); }
.tag-count { font-size: 15px; color: var(--text-muted); }

/* 搜索结果头部 */
.search-result-header { text-align: center; padding: 40px 24px; margin-bottom: 32px; background: var(--bg-card); border: 1px solid var(--border-c); border-radius: 16px; }
.search-result-icon { font-size: 48px; margin-bottom: 16px; }
.search-result-title { font-size: 26px; font-weight: 800; margin-bottom: 10px; color: var(--text-primary); }
.search-result-count { font-size: 15px; color: var(--text-muted); }
.search-refine-box { margin-bottom: 24px; }
.search-refine-form { display: flex; gap: 12px; }
.search-refine-input { flex: 1; padding: 14px 20px; border: 1px solid var(--border-c); border-radius: 12px; background: var(--bg-card); color: var(--text-primary); font-size: 15px; outline: none; transition: border-color 0.2s; }
.search-refine-input:focus { border-color: var(--pm-c); box-shadow: 0 0 0 3px rgba(45,138,122,0.1); }
.search-refine-btn { padding: 0 28px; background: var(--pm-c); color: #fff; border: none; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.search-refine-btn:hover { background: var(--pm-light); transform: translateY(-2px); }

/* 空结果提示 */
.search-empty { text-align: center; padding: 60px 24px; background: var(--bg-card); border: 1px solid var(--border-c); border-radius: 16px; }
.search-empty-icon { font-size: 64px; margin-bottom: 20px; opacity: 0.6; }
.search-empty-text { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.search-empty-tip { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.search-empty-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

/* 阅读进度条 */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--pm-c), var(--pm-light)); z-index: 10000; transition: width 0.1s; box-shadow: 0 0 10px var(--pm-glow); }

/* 文章分享按钮 */
.article-share { padding: 16px 28px; border-top: 1px solid var(--border-c); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.article-share-label { font-size: 14px; color: var(--text-muted); font-weight: 600; }
.share-btn { padding: 8px 16px; background: var(--bg-surface); border: 1px solid var(--border-c); border-radius: 8px; font-size: 13px; color: var(--text-secondary); cursor: pointer; transition: all 0.2s; }
.share-btn:hover { border-color: var(--pm-c); color: var(--pm-light); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(45,138,122,0.15); }

/* 相关推荐网格 */
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.related-item { background: var(--bg-surface); border: 1px solid var(--border-c); border-radius: 10px; overflow: hidden; transition: all 0.2s; }
.related-item:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.related-thumb { height: 110px; overflow: hidden; background: linear-gradient(135deg, rgba(45,138,122,0.15), rgba(64,158,255,0.15)); }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.related-item:hover .related-thumb img { transform: scale(1.1); }
.related-info { padding: 12px; }
.related-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.related-meta { font-size: 12px; color: var(--text-muted); }

/* 侧边栏快捷操作 */
.side-actions { display: flex; flex-direction: column; gap: 10px; }
.side-action-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; background: var(--bg-surface); border: 1px solid var(--border-c); border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-primary); text-decoration: none; transition: all 0.2s; }
.side-action-btn:hover { border-color: var(--pm-c); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(45,138,122,0.1); }
.side-action-btn.side-action-primary { background: linear-gradient(135deg, var(--pm-c), var(--pm-light)); border-color: var(--pm-c); color: #fff; box-shadow: 0 4px 14px var(--pm-glow); }
.side-action-btn.side-action-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px var(--pm-glow); }
.side-action-btn.side-action-warning { background: linear-gradient(135deg, #e6a23c, #ffc107); border-color: #e6a23c; color: #1a1a1a; box-shadow: 0 4px 14px rgba(230, 162, 60, 0.3); }
.side-action-btn.side-action-warning:hover { box-shadow: 0 6px 18px rgba(230, 162, 60, 0.4); }

/* 新增的样式类，用于替代内联样式 */
.logo-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.mobile-logo-img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.mobile-theme-toggle {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.btn-ios {
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    box-shadow: 0 4px 20px rgba(30, 136, 229, 0.3);
}

.gallery-video-item {
    position: relative;
}

.gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gift-loading,
.gift-no-data {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
}

.gift-toggle {
    text-align: center;
    padding: 10px;
    color: var(--pm-c);
    cursor: pointer;
    font-size: 13px;
}

.hidden-textarea {
    position: fixed;
    left: -9999px;
}

.gift-code-highlight {
    color: var(--pm-c);
    font-weight: bold;
}

.section-card-spacing {
    margin-top: 24px;
}

.reading-progress-alt {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.article-share {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-c);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.article-share-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.share-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-c);
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--pm-c);
    color: #fff;
    border-color: var(--pm-c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--pm-glow);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.related-item {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-c);
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.related-thumb {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-item:hover .related-thumb img {
    transform: scale(1.05);
}

.related-info {
    padding: 16px;
}

.related-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.related-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-meta {
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    min-height: 50vh;
}

.error-code {
    font-family: var(--font-display);
    font-size: 120px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pm-c), var(--pm-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.error-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.error-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.error-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 40px;
}

.error-suggestions {
    background: var(--bg-surface);
    border: 1px solid var(--border-c);
    border-radius: var(--radius-md);
    padding: 20px 28px;
    text-align: left;
    max-width: 400px;
    width: 100%;
}

.error-suggestions-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.error-suggestions-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.error-suggestions-links a {
    padding: 6px 14px;
    background: var(--tag-bg);
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 13px;
    transition: var(--transition);
}

.error-suggestions-links a:hover {
    background: rgba(45, 138, 122, 0.15);
    color: var(--pm-light);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-category-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-c);
}

.faq-item {
    border: 1px solid var(--border-c);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-item.open {
    border-color: var(--pm-c);
    box-shadow: 0 2px 12px var(--pm-glow);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
    user-select: none;
}

.faq-question:hover {
    background: var(--bg-surface);
}

.faq-q-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pm-c), var(--pm-light));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.faq-arrow {
    margin-left: auto;
    font-size: 14px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-arrow {
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 600px;
    padding: 0 20px 20px;
}

.faq-answer p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.faq-answer ol,
.faq-answer ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.faq-answer li {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.faq-answer a {
    color: var(--pm-c);
    text-decoration: underline;
}

.faq-answer strong {
    color: var(--text-primary);
}

[data-theme="eyecare"] {
    --pm-c: #5b8c5a;
    --pm-light: #7ab37a;
    --pm-dark: #3d6b3d;
    --pm-glow: rgba(91, 140, 90, 0.3);
    --bg-body: #f5f0e8;
    --bg-card: #faf6ef;
    --bg-card-hover: #f0ebe2;
    --bg-surface: #ede8df;
    --bg-input: #f0ebe2;
    --border-c: #d9d2c4;
    --border-hover: rgba(91, 140, 90, 0.4);
    --text-primary: #3d3a33;
    --text-secondary: #6b665c;
    --text-muted: #9a9488;
    --shadow-card: 0 2px 12px rgba(61, 58, 51, 0.06);
    --shadow-hover: 0 4px 20px rgba(61, 58, 51, 0.1);
    --shadow-glow: 0 0 20px var(--pm-glow);
    --glass: rgba(250, 246, 239, 0.85);
    --glass-border: rgba(61, 58, 51, 0.06);
    --overlay-bg: rgba(61, 58, 51, 0.5);
    --tag-bg: #ede8df;
    --tag-text: #9a9488;
    --tag-hover-bg: rgba(91, 140, 90, 0.15);
    --tag-hover-text: #5b8c5a;
    --code-bg: rgba(91, 140, 90, 0.1);
    --code-border: var(--pm-c);
    --code-text: var(--pm-light);
    --pagination-bg: var(--bg-card);
    --pagination-active-bg: var(--pm-c);
    --pagination-text: var(--text-secondary);
    --pagination-active-text: #fff;
    --dialog-bg: var(--bg-card);
    --dialog-shadow: 0 20px 60px rgba(61, 58, 51, 0.15);
    --input-bg: #f0ebe2;
    --input-border: #d9d2c4;
    --input-text: #3d3a33;
    --input-placeholder: #b0a99d;
    --btn-disabled-bg: #d9d2c4;
    --footer-bg: #2c2a24;
    --footer-text: rgba(250, 246, 239, 0.7);
    --footer-muted: rgba(250, 246, 239, 0.4);
    --header-bg: rgba(250, 246, 239, 0.92);
    --header-border: rgba(61, 58, 51, 0.06);
    --header-text: #3d3a33;
    --header-nav-text: #6b665c;
    --header-nav-hover-bg: rgba(91, 140, 90, 0.08);
    --mobile-bar-bg: rgba(250, 246, 239, 0.96);
    --mobile-menu-bg: #faf6ef;
    --hero-overlay: linear-gradient(180deg, rgba(245, 240, 232, 0.3) 0%, rgba(245, 240, 232, 0.6) 50%, var(--bg-body) 100%), linear-gradient(90deg, rgba(245, 240, 232, 0.8) 0%, transparent 50%);
    --hero-title-gradient: linear-gradient(135deg, #3d3a33 0%, var(--pm-c) 100%);
    --hero-subtitle-color: #6b665c;
    --hero-stats-border: rgba(61, 58, 51, 0.06);
    --hero-badge-bg: rgba(91, 140, 90, 0.1);
    --hero-badge-border: rgba(91, 140, 90, 0.2);
    --nav-bar-glass: rgba(250, 246, 239, 0.85);
    --nav-bar-border: rgba(61, 58, 51, 0.06);
    --nav-cate-bg: #ede8df;
    --nav-group-bg: #ede8df;
    --nav-group-border: #d9d2c4;
}

.btn-eyecare-toggle {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--tag-bg);
    border: 1px solid var(--border-c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

.btn-eyecare-toggle:hover {
    color: var(--pm-c);
    border-color: var(--border-hover);
}

.btn-eyecare-toggle.active {
    background: rgba(91, 140, 90, 0.15);
    color: var(--pm-c);
    border-color: var(--pm-c);
}

.mobile-eyecare-toggle {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .section-card-spacing {
        margin-top: 16px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .related-thumb {
        height: 100px;
    }
    
    .related-info {
        padding: 12px;
    }
    
    .related-title {
        font-size: 14px;
    }
    
    .article-share {
        justify-content: center;
    }
    
    .share-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.article-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-c);
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-decoration: none;
}
.article-item:hover {
    background: var(--bg-card);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}
.article-item-thumb {
    width: 200px;
    height: 130px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}
.article-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.article-item:hover .article-item-thumb img {
    transform: scale(1.08);
}
.article-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.article-item-cats {
    margin-bottom: 8px;
}
.article-item-cat {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(45, 138, 122, 0.1);
    border: 1px solid rgba(45, 138, 122, 0.2);
    border-radius: 4px;
    font-size: 12px;
    color: var(--pm-light);
    font-weight: 500;
}
.article-item-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}
.article-item:hover .article-item-title {
    color: var(--pm-c);
}
.article-item-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}
.article-item-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}
.article-item-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
@media (max-width: 768px) {
    .article-item {
        flex-direction: column;
        padding: 14px;
    }
    .article-item-thumb {
        width: 100%;
        height: 160px;
    }
    .article-item-title {
        font-size: 15px;
    }
    .article-item-desc {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
    .article-item-meta {
        font-size: 12px;
        gap: 12px;
    }
}
