/* 前台样式 · 深色科技 · 橙红主色（参考九游云游戏配色） */
:root {
    --primary: #f96432;
    --primary-dark: #e04a1e;
    --primary-light: rgba(249, 100, 50, .16);
    --accent: #ff8a5c;
    --gold: linear-gradient(90deg, #ffe1b1, #fdd498 50%, #f6c27c);
    --text: #f2f3f5;
    --muted: #9aa0a6;
    --border: rgba(255, 255, 255, .09);
    --glass: hsla(0, 0%, 100%, .05);
    --glass-strong: hsla(0, 0%, 100%, .08);
    --glass-border: hsla(0, 0%, 100%, .09);
    --shadow: 0 8px 30px rgba(0, 0, 0, .35);
    --shadow-hover: 0 18px 44px rgba(0, 0, 0, .5);
    --radius: 18px;
}

body {
    background: #1b1d21 linear-gradient(170deg, #23262b 0%, #1b1d21 45%, #16181b 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    min-height: 100vh;
}

/* 背景光斑（橙红光晕 + 冷色衬托） */
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-decor span {
    position: absolute; border-radius: 50%; filter: blur(90px); opacity: .28;
}
.bg-decor span:nth-child(1) { width: 460px; height: 460px; top: -140px; left: -80px; background: #ff663c; }
.bg-decor span:nth-child(2) { width: 420px; height: 420px; top: 18%; right: -120px; background: #f22446; }
.bg-decor span:nth-child(3) { width: 380px; height: 380px; bottom: 8%; left: 22%; background: #ffb020; }

/* 通用毛玻璃容器 */
.glass {
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

a { color: inherit; }
a:hover { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }

.container { max-width: 1200px; }

/* ============ 头部（毛玻璃吸顶） ============ */
.site-header {
    background: rgba(28, 30, 34, .82);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner { height: 70px; display: flex; align-items: center; }
.site-logo { display: flex; align-items: center; font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: .5px; }
.site-logo img { height: 38px; margin-right: 8px; }
.site-logo .logo-icon {
    width: 38px; height: 38px; border-radius: 12px; margin-right: 10px;
    background: linear-gradient(135deg, #ff8a5c, #f22446); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
    box-shadow: 0 6px 16px rgba(249, 100, 50, .4);
}
.site-nav { margin-left: 36px; display: flex; }
.site-nav a {
    position: relative; padding: 9px 18px; font-size: 15px; color: #b8bcc4; border-radius: 22px; transition: all .25s;
}
.site-nav a:hover { color: #fff; background: rgba(249, 100, 50, .18); }
.site-nav a.active {
    color: #fff; font-weight: 600;
    background: linear-gradient(135deg, #ff8a5c, #f22446);
    box-shadow: 0 6px 16px rgba(249, 100, 50, .35);
}

.header-search { margin-left: auto; position: relative; }
.header-search i { position: absolute; left: 15px; top: 11px; color: #8b9099; }
.header-search input {
    width: 250px; height: 40px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px;
    padding: 0 16px 0 38px; font-size: 13px; color: var(--text); transition: all .25s;
    background: rgba(255, 255, 255, .06);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.header-search input::placeholder { color: #7c818a; }
.header-search input:focus {
    border-color: rgba(249, 100, 50, .55); background: rgba(255, 255, 255, .1); outline: none;
    box-shadow: 0 0 0 4px rgba(249, 100, 50, .14);
}

/* 移动端菜单按钮 */
.nav-toggle {
    display: none; margin-left: auto; width: 40px; height: 40px; border: none; border-radius: 12px;
    background: rgba(255, 255, 255, .08); color: #d6d9de; font-size: 17px; cursor: pointer;
}
.nav-toggle:hover { color: var(--primary); }

/* ============ 通用区块 ============ */
.section { margin-top: 34px; }

/* 表单控件（覆盖 Bootstrap 白底） */
.form-control {
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: var(--text);
}
.form-control::placeholder { color: #7c818a; }
.form-control:focus {
    background: rgba(255, 255, 255, .1); border-color: rgba(249, 100, 50, .55); color: var(--text);
    box-shadow: 0 0 0 3px rgba(249, 100, 50, .14);
}
.section-head { display: flex; align-items: center; margin-bottom: 18px; }
.section-head h2 {
    font-size: 22px; font-weight: 700; margin: 0; padding-left: 14px; position: relative; color: #f2f3f5; letter-spacing: .5px;
}
.section-head h2:before {
    content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 5px;
    border-radius: 4px; background: linear-gradient(180deg, #ff8a5c, #f22446);
}
.section-head .more {
    margin-left: auto; font-size: 13px; color: var(--muted); padding: 5px 14px; border-radius: 16px;
    background: rgba(255, 255, 255, .06); transition: all .25s;
}
.section-head .more:hover { color: #fff; background: rgba(249, 100, 50, .2); box-shadow: var(--shadow); }

/* ============ 焦点区（主轮播 + 头条 + 热玩榜） ============ */
.hero { margin-top: 20px; }
.hero-grid { display: grid; grid-template-columns: 1fr 330px; gap: 14px; align-items: stretch; }
.hero-main { position: relative; border-radius: 16px; overflow: hidden; background: #212429; }
.hero-carousel, #heroCarousel .carousel-inner, #heroCarousel .carousel-item { height: 100%; }
.hero-item {
    height: 100%; min-height: 330px; background-size: cover; background-position: center; position: relative;
    display: flex; align-items: flex-end;
}
.hero-item:after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10, 14, 30, 0) 32%, rgba(10, 14, 30, .88) 100%);
}
.hero-info { position: relative; z-index: 2; color: #fff; padding: 0 34px 28px; max-width: 640px; }
.hero-info h3 { font-size: 30px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; }
.hero-info h3 i { margin-left: 14px; font-size: 28px; color: rgba(255, 255, 255, .9); }
.hero-info .hero-slogan { font-size: 15px; color: rgba(255, 255, 255, .85); margin-bottom: 6px; }
.hero-info .hero-intro {
    font-size: 13px; color: rgba(255, 255, 255, .65); margin-bottom: 4px;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-btns { display: flex; gap: 12px; margin-top: 14px; }
.hero-btn {
    display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 30px; border-radius: 21px;
    background: linear-gradient(135deg, #ff8a5c, #f22446); color: #fff; font-size: 15px; font-weight: 600;
    box-shadow: 0 8px 20px rgba(242, 36, 70, .35);
}
.hero-btn:hover { color: #fff; transform: translateY(-2px); }
.hero-btn.ghost {
    background: rgba(255, 255, 255, .16); box-shadow: none; backdrop-filter: blur(4px);
}
.hero-btn.ghost:hover { background: rgba(255, 255, 255, .3); }
/* 轮播右下角切换缩略图 */
.hero-thumbs { position: absolute; right: 22px; bottom: 20px; z-index: 5; display: flex; gap: 12px; }
.hero-thumb { width: 74px; text-align: center; position: relative; cursor: pointer; transition: transform .25s; }
.ht-badge {
    position: absolute; top: -2px; left: 50%; transform: translateX(-50%); z-index: 2; white-space: nowrap;
    background: linear-gradient(135deg, #ff8a5c, #f22446); color: #fff; font-size: 10px; line-height: 16px;
    padding: 0 8px; border-radius: 9px; box-shadow: 0 3px 8px rgba(242, 36, 70, .4);
    opacity: .8; transition: opacity .25s, background .25s;
}
.ht-pic {
    display: flex; align-items: center; justify-content: center; width: 62px; height: 62px; margin: 9px auto 0;
    border-radius: 14px; border: 2px solid rgba(255, 255, 255, .55); overflow: hidden;
    color: #fff; font-weight: 700; font-size: 22px; box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
    opacity: .72; filter: saturate(.65); transform: scale(.92);
    transition: opacity .25s, filter .25s, transform .25s, border-color .25s, box-shadow .25s;
}
.ht-pic img { width: 100%; height: 100%; object-fit: cover; }
.ht-name {
    display: block; margin-top: 6px; font-size: 11px; color: rgba(255, 255, 255, .6);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
    transition: color .25s, font-weight .25s;
}
.ht-name:after {
    content: ""; display: block; width: 0; height: 2px; margin: 4px auto 0; border-radius: 2px;
    background: linear-gradient(90deg, #ff8a5c, #f22446); transition: width .25s;
}

/* 当前切换项：放大、提亮、橙色描边 + 下划线 */
.hero-thumb:hover .ht-pic { opacity: 1; filter: none; }
.hero-thumb.active .ht-pic {
    border-color: #fff; opacity: 1; filter: none; transform: scale(1.06) translateY(-4px);
    box-shadow: 0 0 0 3px var(--primary), 0 10px 22px rgba(249, 100, 50, .45);
}
.hero-thumb.active .ht-badge { opacity: 1; background: linear-gradient(135deg, #ffb020, #f22446); }
.hero-thumb.active .ht-name { color: #fff; font-weight: 600; }
.hero-thumb.active .ht-name:after { width: 34px; }

/* 焦点区右侧 */
.hero-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hero-quote {
    display: block; position: relative; border-radius: 16px; overflow: hidden; padding: 16px 18px 18px;
    color: #fff; background: #26292f center/cover no-repeat; min-height: 148px;
}
.hero-quote:before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(12, 13, 15, .74), rgba(12, 13, 15, .92)); }
.hero-quote:hover { color: #fff; }
.hq-tag {
    position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 11px; line-height: 18px; padding: 0 10px;
    background: linear-gradient(135deg, #ff8a5c, #f22446); border-radius: 9px;
}
.hq-title {
    position: relative; z-index: 2; margin-top: 30px; font-size: 19px; font-weight: 700; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hq-mark { font-family: Georgia, serif; font-style: normal; font-size: 32px; line-height: .5; color: rgba(255, 255, 255, .45); margin-left: 8px; }
.hq-sub { position: relative; z-index: 2; font-size: 12px; color: rgba(255, 255, 255, .72); margin-top: 8px; }
.hq-icons { position: relative; z-index: 2; display: flex; gap: 9px; margin-top: 14px; }
.hq-icon {
    width: 38px; height: 38px; border-radius: 9px; overflow: hidden; flex: none;
    border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .1);
    display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px;
}
.hq-icon img { width: 100%; height: 100%; object-fit: cover; }

.hero-rank {
    flex: 1; border-radius: 16px; padding: 14px 16px 8px; color: #fff;
    background: linear-gradient(165deg, #26292f, #1c1e22);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
}
.hr-head { display: flex; align-items: center; margin-bottom: 4px; }
.hr-head h3 { font-size: 19px; font-weight: 700; color: #fff; margin: 0; }
.hr-head .more { margin-left: auto; font-size: 12px; color: rgba(255, 255, 255, .6); }
.hr-head .more:hover { color: #ff8a5c; }
.hr-list { display: flex; flex-direction: column; }
.hr-item { display: flex; align-items: center; padding: 8px 0; border-bottom: 1px dashed rgba(255, 255, 255, .12); }
.hr-list .hr-item:last-child { border-bottom: none; }
.hr-item .rank-no { background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .85); }
.hr-list .hr-item:nth-child(1) .rank-no { background: #f22446; color: #fff; }
.hr-list .hr-item:nth-child(2) .rank-no { background: #ff8a5c; color: #fff; }
.hr-list .hr-item:nth-child(3) .rank-no { background: #ffb020; color: #fff; }
.hr-item .rank-thumb { background: rgba(255, 255, 255, .1); }
.hr-item .rank-name { color: #fff; }
.hr-item .rank-desc { color: rgba(255, 255, 255, .55); }
.hr-btn {
    flex: none; margin-left: 12px; padding: 5px 16px; border-radius: 14px; font-size: 12px; font-weight: 600;
    color: #fff; background: linear-gradient(135deg, #ff8a5c, #f22446);
}
.hr-btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(242, 36, 70, .4); }

/* ============ 分类导航 ============ */
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-nav a {
    padding: 9px 18px; border-radius: 22px; font-size: 14px; color: #b8bcc4; transition: all .25s;
    background: rgba(255, 255, 255, .05);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.cat-nav a:hover, .cat-nav a.active {
    background: linear-gradient(135deg, #ff8a5c, #f22446); color: #fff;
    border-color: transparent; box-shadow: 0 8px 20px rgba(249, 100, 50, .28); transform: translateY(-2px);
}

/* ============ 游戏卡片 ============ */
.game-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.game-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }

.game-card {
    border-radius: var(--radius); padding: 16px 12px 14px; text-align: center; position: relative;
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
}
.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.gc-thumb {
    width: 74px; height: 74px; margin: 0 auto 12px; border-radius: 22px; display: block;
    position: relative; overflow: hidden; background: rgba(255, 255, 255, .08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .4);
}
.gc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gc-char {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 30px; font-weight: 700;
}
.gc-tag {
    position: absolute; right: 0; top: 0; font-size: 11px; color: #fff; padding: 1px 6px;
    border-radius: 0 18px 0 10px;
}
.gc-tag.hot { background: #f22446; }
.gc-tag.new { background: #21c987; }
.gc-name {
    display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gc-desc {
    font-size: 12px; color: var(--muted); height: 34px; overflow: hidden; line-height: 17px; margin-bottom: 6px;
}
.gc-meta { font-size: 12px; color: #8b9099; margin-bottom: 10px; }
.gc-meta .dot { margin: 0 4px; }
.gc-score { margin-left: 6px; color: #ff8a5c; font-weight: 600; }
.gc-btn {
    display: block; height: 34px; line-height: 34px; border-radius: 17px;
    background: rgba(249, 100, 50, .12); color: var(--primary); font-size: 13px; font-weight: 600;
    transition: all .25s;
}
.gc-btn:hover { background: linear-gradient(135deg, #ff8a5c, #f22446); color: #fff; box-shadow: 0 8px 18px rgba(249, 100, 50, .3); }

/* ============ 排行榜 ============ */
.rank-wrap {
    border-radius: var(--radius); padding: 18px;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--glass-border); box-shadow: var(--shadow);
}
.rank-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 26px; }
.rank-item { display: flex; align-items: center; padding: 10px 6px; border-radius: 10px; transition: background .2s; }
.rank-item:hover { background: rgba(255, 255, 255, .05); }
.rank-no {
    width: 24px; height: 24px; flex: none; border-radius: 6px; font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); color: #9aa0a6; margin-right: 10px;
}
.rank-item:nth-child(1) .rank-no { background: #f22446; color: #fff; }
.rank-item:nth-child(2) .rank-no { background: #ff8a5c; color: #fff; }
.rank-item:nth-child(3) .rank-no { background: #ffb020; color: #fff; }
.rank-thumb {
    width: 46px; height: 46px; border-radius: 12px; flex: none; margin-right: 12px; overflow: hidden;
    display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 20px;
}
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-info { flex: 1; min-width: 0; }
.rank-name { font-size: 14px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-desc { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-btn {
    flex: none; padding: 5px 14px; border-radius: 14px; font-size: 12px; font-weight: 600;
    background: var(--primary-light); color: var(--primary);
}
.rank-btn:hover { background: linear-gradient(135deg, #ff8a5c, #f22446); color: #fff; }

/* ============ 资讯 ============ */
.news-card {
    border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s;
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--glass-border); box-shadow: var(--shadow);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.news-cover { height: 152px; background-size: cover; background-position: center; background-color: rgba(255, 255, 255, .06); }
.news-card-body { padding: 12px 14px; }
.news-title { font-size: 14px; font-weight: 600; color: var(--text); height: 40px; overflow: hidden; line-height: 20px; }
.news-info { font-size: 12px; color: var(--muted); margin-top: 8px; }

.news-row { display: flex; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.news-row:last-child { border-bottom: none; }
.news-row .nr-cover { width: 160px; height: 96px; border-radius: 10px; object-fit: cover; flex: none; margin-right: 16px; background: rgba(255, 255, 255, .06); }
.news-row .nr-title { font-size: 16px; font-weight: 600; }
.news-row .nr-desc { font-size: 13px; color: var(--muted); margin: 6px 0; height: 38px; overflow: hidden; }
.news-row .nr-meta { font-size: 12px; color: #8b9099; }

/* ============ 左侧悬浮栏 ============ */
.side-float {
    position: fixed; left: 14px; top: 50%; transform: translateY(-50%); z-index: 900;
    width: 132px; padding: 26px 12px 14px; text-align: center;
    background: linear-gradient(180deg, #47525d 0%, #3d4854 55%, #35404b 100%);
    border: 1px solid #6d7a86; border-radius: 8px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .05);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.sf-close {
    position: absolute; top: 6px; right: 6px; width: 22px; height: 22px;
    border: none; border-radius: 50%; cursor: pointer; font-size: 12px; line-height: 22px;
    color: #cfd6dd; background: rgba(255, 255, 255, .12); transition: background .2s;
}
.sf-close:hover { background: rgba(255, 255, 255, .28); color: #fff; }

.sf-title {
    font-size: 17px; line-height: 1.55; font-weight: 700; letter-spacing: 2px;
    color: #e9cf9a;
}
.sf-qrcode {
    display: flex; align-items: center; justify-content: center;
    width: 104px; height: 104px; border-radius: 4px; background: #fff;
    border: 3px solid #caa96a; box-shadow: inset 0 0 0 2px #fff;
    overflow: hidden;
}
.sf-qrcode img { width: 100%; height: 100%; object-fit: contain; }
.sf-qrcode i { font-size: 46px; color: #2c343e; }

.sf-btns { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.sf-btn {
    display: flex; align-items: center; gap: 8px; padding: 7px 10px;
    border-radius: 6px; border: 1px solid rgba(255, 255, 255, .16);
    color: #fff; text-decoration: none; transition: filter .2s, transform .2s;
}
.sf-btn:hover { filter: brightness(1.12); transform: translateY(-1px); color: #fff; text-decoration: none; }
.sf-btn i { font-size: 20px; flex: none; }
.sf-btn-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; min-width: 0; }
.sf-btn-txt b { font-size: 12px; font-weight: 600; }
.sf-btn-txt em { font-style: normal; font-size: 11px; opacity: .85; }
.sf-ios { background: linear-gradient(180deg, #23272b, #101315); }
.sf-android { background: linear-gradient(180deg, #e8c27a, #b98d3e); color: #3a2c0d; }
.sf-android:hover { color: #2c210a; }
.sf-emu { background: linear-gradient(180deg, #6f9bd6, #4a76b4); }

.sf-socials { display: flex; justify-content: center; gap: 10px; }
.sf-social {
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #d9c391;
    border: 1px solid #96865f; background: rgba(255, 255, 255, .04);
    text-decoration: none; transition: background .2s, color .2s;
}
.sf-social:hover { background: rgba(233, 207, 154, .18); color: #f2e0b6; text-decoration: none; }

.sf-line {
    display: block; width: 100%; padding: 7px 0; border-radius: 6px; text-align: center;
    font-size: 14px; font-weight: 700; letter-spacing: 2px; text-indent: 2px; text-decoration: none;
    transition: filter .2s;
}
.sf-line:hover { filter: brightness(1.15); text-decoration: none; }
.sf-open { color: #f0d9a8; background: linear-gradient(180deg, #5a6672, #46525e); border: 1px solid #96865f; }
.sf-open:hover { color: #ffe9bd; }
.sf-arrow { font-size: 12px; color: #caa96a; margin: 0 4px; }
.sf-kefu { color: #eaf0f7; background: linear-gradient(180deg, #3b517a, #2c3d5e); border: 1px solid rgba(255, 255, 255, .14); }
.sf-kefu:hover { color: #fff; }

.sf-age {
    width: 76px; border-radius: 6px; overflow: hidden;
    border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
}
.sf-age-top {
    background: linear-gradient(180deg, #ffb62e, #f79c1d);
    color: #fff; font-size: 26px; font-weight: 800; line-height: 1.25;
}
.sf-age-mid { background: #fff; color: #333; font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.sf-age-bot { background: #fff; color: #333; font-size: 12px; font-weight: 700; border-top: 1px solid #e2e2e2; padding-bottom: 2px; }

@media (max-width: 1500px) {
    .side-float { left: 8px; width: 118px; transform: translateY(-50%) scale(.94); transform-origin: left center; }
}
@media (max-width: 1280px) {
    .side-float { left: 4px; width: 108px; transform: translateY(-50%) scale(.88); }
}
@media (max-width: 1100px) {
    .side-float { display: none; }
}

/* 移动端：关注条横铺在内容区（首页“全新上线”上方） */
.side-float-m { display: none; }
@media (max-width: 1100px) {
    .side-float-m {
        position: relative; display: block; margin: 26px 0 20px; padding: 16px 14px 14px;
        border-radius: 18px; overflow: hidden;
        background: linear-gradient(155deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03) 60%);
        -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
        border: 1px solid var(--glass-border); box-shadow: var(--shadow);
    }
    .side-float-m::before {
        content: ''; position: absolute; inset: 0; pointer-events: none;
        background: radial-gradient(420px 170px at 14% -20%, rgba(255, 176, 32, .16), transparent 70%);
    }

    .sfm-top {
        position: relative; display: flex; align-items: center; gap: 14px;
        padding-bottom: 14px; border-bottom: 1px dashed rgba(255, 255, 255, .12);
    }
    .sfm-qr {
        flex: none; width: 84px; height: 84px; border-radius: 10px; background: #fff; overflow: hidden;
        border: 3px solid #caa96a; display: flex; align-items: center; justify-content: center;
        box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
    }
    .sfm-qr img { width: 100%; height: 100%; object-fit: contain; }
    .sfm-qr i { font-size: 40px; color: #2c343e; }

    .sfm-head { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
    .sfm-title { font-size: 17px; font-weight: 700; letter-spacing: 1px; color: #e9cf9a; }
    .sfm-sub { font-size: 12px; color: var(--muted); line-height: 1.6; }
    .sfm-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .sfm-age {
        display: inline-flex; align-items: stretch; border-radius: 6px; overflow: hidden;
        border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
    }
    .sfm-age-num {
        display: flex; align-items: center; padding: 0 7px; font-size: 17px; font-weight: 800; color: #fff;
        background: linear-gradient(180deg, #ffb62e, #f79c1d);
    }
    .sfm-age-txt { display: flex; flex-direction: column; justify-content: center; background: #fff; padding: 0 7px; }
    .sfm-age-txt b { font-size: 10px; color: #333; letter-spacing: .5px; }
    .sfm-age-txt em { font-style: normal; font-size: 11px; font-weight: 700; color: #333; }
    .sfm-tag {
        font-size: 11px; padding: 3px 9px; border-radius: 20px; color: #f0d9a8;
        border: 1px solid rgba(233, 207, 154, .45); background: rgba(233, 207, 154, .1);
    }

    .sfm-btns { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
    .sfm-btns .sf-btn { justify-content: center; padding: 9px 8px; border-radius: 10px; }
    .sfm-btns .sf-btn i { font-size: 18px; }

    .sfm-acts { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
    .sfm-acts .sf-line { border-radius: 10px; padding: 9px 0; letter-spacing: 1px; text-indent: 1px; }

    .sfm-socials { position: relative; display: flex; justify-content: center; gap: 14px; margin-top: 13px; }
    .sfm-socials .sf-social { width: 34px; height: 34px; font-size: 14px; }
}
@media (max-width: 560px) {
    .sfm-btns { grid-template-columns: repeat(2, 1fr); }
    .sfm-btns .sf-btn:last-child { grid-column: span 2; }
    .sfm-acts { grid-template-columns: 1fr; }
    .sfm-qr { width: 74px; height: 74px; }
    .sfm-title { font-size: 16px; }
}
@media (max-width: 380px) {
    .sfm-btns { grid-template-columns: 1fr; }
    .sfm-btns .sf-btn:last-child { grid-column: auto; }
}

/* ============ 横幅广告 ============ */
.ad-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.ad-banner {
    position: relative; display: flex; align-items: center; min-height: 104px; padding: 20px 22px;
    border-radius: 18px; overflow: hidden; text-decoration: none;
    background: linear-gradient(120deg, #ffb020, #ff6a00 55%, #f22446);
    border: 1px solid rgba(255, 255, 255, .14); box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
}
.ad-banner:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); text-decoration: none; }
.ad-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-mask {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .12));
}
.ad-body { position: relative; z-index: 2; min-width: 0; }
.ad-title {
    display: block; font-size: 17px; font-weight: 700; color: #fff;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.ad-desc {
    display: block; margin-top: 5px; font-size: 13px; color: rgba(255, 255, 255, .88);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ad-tag {
    position: absolute; top: 0; right: 0; z-index: 2; font-size: 11px; line-height: 1;
    padding: 5px 9px; border-bottom-left-radius: 10px; color: rgba(255, 255, 255, .85);
    background: rgba(0, 0, 0, .28);
}
.ad-banner:hover .ad-title { color: #fff; }

/* ============ 友情链接 ============ */
.link-note { margin-left: auto; font-size: 12px; color: var(--muted); }
.link-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 12px; }
.link-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--glass-border); box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.link-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(249, 100, 50, .45); }
.link-logo {
    flex: none; width: 38px; height: 38px; border-radius: 12px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #ff8a5c, #f22446);
}
.link-logo img { width: 100%; height: 100%; object-fit: cover; }
.link-text { min-width: 0; }
.link-name { display: block; font-size: 14px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-desc { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-item:hover .link-name { color: var(--primary); }

/* ============ 面包屑 / 页面头 ============ */
.page-banner {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, #f22446 0%, #f96432 55%, #ff8a5c 130%);
    border-radius: var(--radius); padding: 30px 32px; color: #fff; margin-top: 20px;
    box-shadow: 0 14px 34px rgba(242, 36, 70, .25);
}
.page-banner:after {
    content: ""; position: absolute; right: -60px; top: -70px; width: 240px; height: 240px; border-radius: 50%;
    background: rgba(255, 255, 255, .18); filter: blur(4px);
}
.page-banner h1 { font-size: 24px; font-weight: 700; margin: 0 0 6px; }
.page-banner p { margin: 0; color: rgba(255, 255, 255, .75); font-size: 14px; }
.breadcrumb-bar { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.breadcrumb-bar a { color: var(--muted); }

.filter-bar {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 16px; border-radius: var(--radius);
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--glass-border); box-shadow: var(--shadow);
}
.filter-bar .fb-label { font-size: 13px; color: var(--muted); }
.filter-bar a {
    padding: 6px 15px; border-radius: 15px; font-size: 13px; color: #b8bcc4;
    background: rgba(255, 255, 255, .06); transition: all .25s;
}
.filter-bar a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.filter-bar a.active {
    background: linear-gradient(135deg, #ff8a5c, #f22446); color: #fff;
    box-shadow: 0 6px 16px rgba(249, 100, 50, .28);
}

/* ============ 详情页 ============ */
.detail-panel {
    border-radius: var(--radius); padding: 26px;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid var(--glass-border); box-shadow: var(--shadow);
}
.detail-top { display: flex; }
.detail-icon {
    width: 108px; height: 108px; border-radius: 26px; flex: none; margin-right: 22px; overflow: hidden;
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 44px; font-weight: 700;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
}
.detail-icon img { width: 100%; height: 100%; object-fit: cover; }
.detail-title { font-size: 24px; font-weight: 700; margin: 0 0 6px; }
.detail-sub { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.detail-tags span {
    display: inline-block; padding: 3px 12px; border-radius: 14px; background: var(--primary-light);
    color: var(--primary); font-size: 12px; margin-right: 8px;
}
.detail-actions { margin-top: 16px; }
.btn-download {
    display: inline-flex; align-items: center; height: 46px; padding: 0 34px; border-radius: 24px;
    background: linear-gradient(135deg, #ff8a5c, #f22446); color: #fff; font-size: 16px; font-weight: 600;
    box-shadow: 0 8px 20px rgba(242, 36, 70, .28);
}
.btn-download:hover { color: #fff; }
.btn-dl-ios { background: linear-gradient(135deg, #4f7bf7, #1f4fd8); box-shadow: 0 8px 20px rgba(79, 123, 247, .28); }
.btn-dl-ios:hover { color: #fff; }
.btn-dl-off { background: rgba(255, 255, 255, .08); color: #9aa2b1; box-shadow: none; cursor: default; }
.btn-dl-off:hover { color: #9aa2b1; }

/* 详情页侧栏下载按钮 */
.dl-mini { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dl-mini-btn {
    display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px;
    border-radius: 20px; font-size: 13px; font-weight: 600; color: #fff; text-decoration: none;
    background: linear-gradient(135deg, #ff8a5c, #f22446);
    box-shadow: 0 6px 16px rgba(242, 36, 70, .25); transition: filter .2s, transform .2s;
}
.dl-mini-btn:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; text-decoration: none; }
.dl-mini-ios { background: linear-gradient(135deg, #4f7bf7, #1f4fd8); box-shadow: 0 6px 16px rgba(79, 123, 247, .25); }
.dl-mini-off { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; height: 38px; }
.btn-special {
    display: inline-flex; align-items: center; height: 46px; padding: 0 26px; border-radius: 24px;
    background: rgba(255, 255, 255, .08); color: #d6d9de; font-size: 15px; font-weight: 600; margin-left: 10px;
}
.btn-special:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.detail-info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.detail-info div span { display: block; font-size: 12px; color: var(--muted); }
.detail-info div strong { font-size: 14px; font-weight: 600; color: var(--text); }

.detail-body { margin-top: 22px; }
.detail-body h4 { font-size: 17px; font-weight: 700; margin-bottom: 12px; padding-left: 10px; border-left: 3px solid var(--primary); }
.detail-content { font-size: 14px; line-height: 1.9; color: #c3c7ce; }
.detail-content img { max-width: 100%; border-radius: 8px; }

.detail-video { width: 100%; border-radius: 12px; margin-top: 12px; background: #000; }

.side-card {
    border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--glass-border); box-shadow: var(--shadow);
}
.side-card h5 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.side-rank { display: flex; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.side-rank:last-child { border-bottom: none; }
.side-rank .rank-no { width: 22px; height: 22px; font-size: 12px; margin-right: 8px; }
.side-rank .sr-thumb { width: 36px; height: 36px; border-radius: 9px; margin-right: 10px; object-fit: cover; }
.side-rank .sr-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ 站点维护页 ============ */
.maintain-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.maintain-box {
    width: 100%; max-width: 560px; text-align: center; padding: 46px 38px 34px;
    border-radius: 22px; background: var(--glass-strong);
    -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid var(--glass-border); box-shadow: var(--shadow-hover);
}
.maintain-icon {
    width: 78px; height: 78px; margin: 0 auto 20px; border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; color: #fff; background: linear-gradient(135deg, #ff8a5c, #f22446);
    box-shadow: 0 14px 30px rgba(242, 36, 70, .35);
}
.maintain-box h1 { font-size: 26px; font-weight: 700; color: var(--text); margin: 0 0 12px; }
.maintain-box .mt-desc { font-size: 14px; line-height: 1.9; color: var(--muted); margin-bottom: 22px; }
.maintain-contact { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 22px; }
.maintain-contact span {
    font-size: 12px; color: var(--muted); padding: 5px 12px; border-radius: 16px;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--glass-border);
}
.maintain-box .mt-foot { font-size: 12px; color: var(--muted); }
.maintain-box .mt-foot a { color: var(--primary); }
.mt-btn {
    display: inline-block; padding: 8px 20px; border-radius: 20px; font-size: 13px; color: #fff;
    background: linear-gradient(135deg, #ffb020, #ff6a00); text-decoration: none;
    box-shadow: 0 8px 18px rgba(255, 106, 0, .3);
}
.mt-btn:hover { color: #fff; opacity: .9; text-decoration: none; }
.mt-link { display: inline-block; margin-left: 12px; font-size: 12px; color: var(--muted); }
.mt-link:hover { color: var(--primary); }

/* 管理员预览提示条 */
.preview-tip {
    position: relative; z-index: 100; padding: 9px 0; font-size: 13px; text-align: center;
    color: #fff8e6; background: linear-gradient(90deg, #ff6a00, #f22446);
}
.preview-tip .preview-exit { color: #fff; text-decoration: underline; margin-left: 8px; }

/* ============ 底部 ============ */
.site-footer {
    position: relative; margin-top: 56px; padding: 42px 0 24px; color: #9aa0a6;
    background: linear-gradient(135deg, #191b1e 0%, #202226 60%, #26282d 100%);
}
.site-footer:before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
}
.site-footer .container { position: relative; z-index: 1; }
.footer-brand { color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; }
.footer-brand .logo-icon {
    width: 34px; height: 34px; border-radius: 9px; margin-right: 8px; font-size: 17px;
    background: linear-gradient(135deg, #ff8a5c, #f22446); display: flex; align-items: center; justify-content: center;
}
.footer-desc { margin-top: 12px; font-size: 13px; }
.footer-contact { font-size: 13px; margin-bottom: 4px; }
.footer-title { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.footer-links a { display: inline-block; margin: 0 12px 8px 0; font-size: 13px; color: #a8aebf; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 24px; padding-top: 18px; text-align: center; font-size: 12px; }
.footer-copy p { margin: 0; }

/* ============ 其它 ============ */
.empty-box {
    border-radius: var(--radius); padding: 60px; text-align: center; color: var(--muted);
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border); box-shadow: var(--shadow);
}
.empty-box i { font-size: 44px; color: rgba(255, 255, 255, .22); display: block; margin-bottom: 10px; }

.pagination { justify-content: center; margin-top: 26px; }
.pagination .page-link {
    border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; margin: 0 4px; color: #b8bcc4;
    background: rgba(255, 255, 255, .05);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3); transition: all .25s;
}
.pagination .page-link:hover { background: rgba(255, 255, 255, .12); color: #fff; transform: translateY(-2px); }
.pagination .active .page-link {
    background: linear-gradient(135deg, #ff8a5c, #f22446); color: #fff; border-color: transparent;
    box-shadow: 0 8px 18px rgba(249, 100, 50, .3);
}

#backTop {
    position: fixed; right: 26px; bottom: 30px; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(38, 41, 46, .95); color: #d6d9de; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .4); cursor: pointer; opacity: 0; pointer-events: none; transition: all .25s;
}
#backTop.show { opacity: 1; pointer-events: auto; }
#backTop:hover { background: linear-gradient(135deg, #ff8a5c, #f22446); color: #fff; }

.stat-bar {
    display: flex; border-radius: var(--radius); padding: 20px; margin-top: 20px;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid var(--glass-border); box-shadow: var(--shadow);
}
.stat-bar div { flex: 1; text-align: center; border-right: 1px solid var(--border); }
.stat-bar div:last-child { border-right: none; }
.stat-bar b {
    display: block; font-size: 24px; color: var(--primary); letter-spacing: .5px;
    background: var(--gold);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-bar span { font-size: 13px; color: var(--muted); }

/* ============ 响应式 ============ */
@media (max-width: 1199px) {
    .game-grid { grid-template-columns: repeat(4, 1fr); }
    .hero-grid { grid-template-columns: 1fr 300px; }
    .hero-item { min-height: 300px; }
}
@media (max-width: 991px) {
    .header-search input { width: 160px; }
    .site-nav { margin-left: 16px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-item { min-height: 250px; }
    .hero-thumbs { display: none; }
    .hero-side { flex-direction: row; }
    .hero-side > * { flex: 1; min-width: 0; }
    .rank-list { grid-template-columns: 1fr; }
    .detail-info { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .game-grid, .game-grid.grid-4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .header-search { display: none; }
    .nav-toggle { display: block; }
    .header-inner { position: relative; }
    .site-nav {
        position: absolute; top: 70px; left: 12px; right: 12px; margin: 0; padding: 10px;
        flex-direction: column; border-radius: 16px; z-index: 999; display: none;
        background: rgba(28, 30, 34, .96);
        -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--shadow-hover);
    }
    .site-nav.show { display: flex; }
    .site-nav a { padding: 10px 14px; text-align: center; }
    .detail-top { flex-direction: column; }
    .detail-icon { margin-bottom: 16px; }
    .ad-wall { grid-template-columns: 1fr; gap: 10px; }
    .ad-banner { min-height: 88px; padding: 16px 18px; }
    .link-wall { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hero-item { min-height: 200px; }
    .hero-info { padding: 0 20px 30px; }
    .hero-btn { height: 36px; padding: 0 20px; font-size: 13px; }
    .hero-side { flex-direction: column; }
    .hq-icons { flex-wrap: wrap; }
    .stat-bar { flex-wrap: wrap; }
    .stat-bar div { flex: 0 0 50%; margin-bottom: 12px; border-right: none; }
    .page-banner { padding: 22px 20px; }
    .page-banner h1 { font-size: 20px; }
}
@media (max-width: 480px) {
    .game-grid, .game-grid.grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .game-card { padding: 12px 8px; }
    .gc-thumb { width: 62px; height: 62px; border-radius: 18px; }
    .detail-info { grid-template-columns: 1fr; }
    .site-logo .logo-text { font-size: 17px; }
    .section-head h2 { font-size: 19px; }
}
