/* 星汇 — 博彩图标 v3 · 黑蓝金主题 · 实心 mask 优化 */
.xh-icon {
    display: inline-block;
    flex-shrink: 0;
    width: 1.25em;
    height: 1.25em;
    vertical-align: -0.15em;
    background-color: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.xh-icon--sm { width: 1em; height: 1em; }
.xh-icon--md { width: 1.5em; height: 1.5em; }
.xh-icon--lg { width: 2em; height: 2em; }
.xh-icon--xl { width: 2.75em; height: 2.75em; }

.xh-icon--live-casino { -webkit-mask-image: url("../image/icons/live-casino.svg?v=3"); mask-image: url("../image/icons/live-casino.svg?v=3"); }
.xh-icon--sports { -webkit-mask-image: url("../image/icons/sports.svg?v=3"); mask-image: url("../image/icons/sports.svg?v=3"); }
.xh-icon--slots { -webkit-mask-image: url("../image/icons/slots.svg?v=3"); mask-image: url("../image/icons/slots.svg?v=3"); }
.xh-icon--poker { -webkit-mask-image: url("../image/icons/poker.svg?v=3"); mask-image: url("../image/icons/poker.svg?v=3"); }
.xh-icon--fish { -webkit-mask-image: url("../image/icons/fish.svg?v=3"); mask-image: url("../image/icons/fish.svg?v=3"); }
.xh-icon--lottery { -webkit-mask-image: url("../image/icons/lottery.svg?v=3"); mask-image: url("../image/icons/lottery.svg?v=3"); }
.xh-icon--esports { -webkit-mask-image: url("../image/icons/esports.svg?v=3"); mask-image: url("../image/icons/esports.svg?v=3"); }
.xh-icon--blockchain { -webkit-mask-image: url("../image/icons/blockchain.svg?v=3"); mask-image: url("../image/icons/blockchain.svg?v=3"); }

/* ---------- 3D 黑金 UI 图标（功能/公告类 · 不含游戏品类） ---------- */
.xh-icon--ui {
    background-color: transparent;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: none;
}

.xh-icon--ui.xh-icon--api { background-image: url("../image/icons/ui/api.svg?v=2"); }
.xh-icon--ui.xh-icon--demo { background-image: url("../image/icons/ui/demo.svg?v=2"); }
.xh-icon--ui.xh-icon--launch { background-image: url("../image/icons/ui/launch.svg?v=2"); }
.xh-icon--ui.xh-icon--server { background-image: url("../image/icons/ui/game-hub.svg?v=2"); }
.xh-icon--ui.xh-icon--shield { background-image: url("../image/icons/ui/shield.svg?v=2"); }
.xh-icon--ui.xh-icon--globe { background-image: url("../image/icons/ui/globe.svg?v=2"); }
.xh-icon--ui.xh-icon--flash { background-image: url("../image/icons/ui/flash.svg?v=2"); }
.xh-icon--ui.xh-icon--users { background-image: url("../image/icons/ui/users.svg?v=2"); }
.xh-icon--ui.xh-icon--package { background-image: url("../image/icons/ui/package.svg?v=2"); }
.xh-icon--ui.xh-icon--alert { background-image: url("../image/icons/ui/alert.svg?v=2"); }
.xh-icon--ui.xh-icon--dashboard { background-image: url("../image/icons/ui/dashboard.svg?v=2"); }
.xh-icon--ui.xh-icon--chevron-up { background-image: url("../image/icons/ui/chevron-up.svg?v=2"); }
.xh-icon--ui.xh-icon--credential { background-image: url("../image/icons/ui/credential.svg?v=2"); }
.xh-icon--ui.xh-icon--game-hub { background-image: url("../image/icons/ui/game-hub.svg?v=2"); }
.xh-icon--ui.xh-icon--stack { background-image: url("../image/icons/ui/game-hub.svg?v=2"); }
.xh-icon--ui.xh-icon--layers { background-image: url("../image/icons/ui/dashboard.svg?v=2"); }

.xh-icon-wrap--ui,
body.ms-luxury .xh-icon-wrap:has(.xh-icon--ui) {
    /* 金色容器见下方 body.ms-luxury .xh-icon-wrap 全站规则 */
}

.xh-icon-wrap--ui .xh-icon--ui,
body.ms-luxury .xh-icon-wrap .xh-icon--ui {
    filter: none;
}

body.ms-luxury .ms-btn .xh-icon--ui {
    filter: none;
}

body.ms-luxury .ms-btn-primary .xh-icon--ui,
body.ms-luxury .ms-btn-outline .xh-icon--ui {
    color: inherit;
}

body.ms-luxury .lux-feat-card-icon .xh-icon--ui {
    width: 40px;
    height: 40px;
}

body.ms-luxury .lux-feat-card-icon .xh-icon--ui.xh-icon--md {
    width: 40px;
    height: 40px;
}

/* ---------- 彩色博彩品类图标（11.good988 同源 PNG · 本地托管） ---------- */
.xh-icon--game {
    background-color: transparent;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.xh-icon--game.xh-icon--slots { background-image: url("../image/icons/cat/slots.png?v=7"); }
.xh-icon--game.xh-icon--live-casino { background-image: url("../image/icons/cat/live-casino.png?v=7"); }
.xh-icon--game.xh-icon--sports { background-image: url("../image/icons/cat/sports.png?v=7"); }
.xh-icon--game.xh-icon--poker { background-image: url("../image/icons/cat/poker.png?v=7"); }
.xh-icon--game.xh-icon--fish { background-image: url("../image/icons/cat/fish.png?v=7"); }
.xh-icon--game.xh-icon--lottery { background-image: url("../image/icons/cat/lottery.png?v=7"); }
.xh-icon--game.xh-icon--esports { background-image: url("../image/icons/cat/esports.png?v=7"); }
.xh-icon--game.xh-icon--blockchain { background-image: url("../image/icons/cat/blockchain.png?v=7"); }

.xh-icon-wrap--game {
    /* 金色容器见下方 body.ms-luxury .xh-icon-wrap 全站规则 */
}

.xh-icon-wrap--game .xh-icon {
    filter: none;
}

.xh-icon-wrap--hero.xh-icon-wrap--game {
    width: 60px;
    height: 60px;
}

.xh-icon-wrap--hero.xh-icon-wrap--game .xh-icon {
    width: 48px;
    height: 48px;
}

.xh-icon-wrap--cat.xh-icon-wrap--game {
    width: 36px;
    height: 36px;
}

.xh-icon-wrap--cat.xh-icon-wrap--game .xh-icon {
    width: 32px;
    height: 32px;
}

body.ms-luxury .ms-hero-card .xh-icon-wrap--hero.xh-icon-wrap--game .xh-icon {
    width: 40px;
    height: 40px;
}

body.ms-luxury .ms-hero-card:hover .xh-icon-wrap--hero.xh-icon-wrap--game {
    transform: translateY(-2px) scale(1.05);
}

body.ms-luxury .lux-cat-item:hover .xh-icon-wrap--game {
    transform: translateY(-1px) scale(1.04);
}

/* ---------- 图标容器（全布局统一 · 金色主题） ---------- */
.xh-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #9a7518 0%, #c9a227 40%, #e8c547 75%, #f5d76e 100%);
    border: 1px solid rgba(232, 197, 71, 0.5);
    box-shadow: 0 4px 24px rgba(201, 162, 39, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.xh-icon-wrap .xh-icon {
    filter: none;
}

.xh-icon-wrap--hero {
    width: 52px;
    height: 52px;
    border-radius: 14px;
}

.xh-icon-wrap--hero .xh-icon {
    width: 28px;
    height: 28px;
}

.xh-icon-wrap--cat {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.xh-icon-wrap--cat .xh-icon {
    width: 16px;
    height: 16px;
}

.xh-icon-wrap--notice {
    width: 46px;
    height: 46px;
}

.xh-icon-wrap--notice .xh-icon {
    width: 26px;
    height: 26px;
}

.xh-icon-wrap--feat {
    width: 64px;
    height: 64px;
    border-radius: 16px;
}

.xh-icon-wrap--feat .xh-icon {
    width: 34px;
    height: 34px;
    filter: none;
}

.xh-icon-wrap--warn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.xh-icon-wrap--warn .xh-icon {
    width: 24px;
    height: 24px;
}

.xh-icon-wrap--inline {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.xh-icon-wrap--inline .xh-icon {
    width: 18px;
    height: 18px;
}

/* ---------- 黑蓝金主题 · 全站图标金色统一（与 API 开发文档按钮一致） ---------- */
body.ms-luxury .xh-icon-wrap {
    background: var(--lux-gradient-gold);
    border: 1px solid rgba(232, 197, 71, 0.5);
    box-shadow: 0 4px 24px rgba(201, 162, 39, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

body.ms-luxury .xh-icon-wrap:hover,
body.ms-luxury .ms-hero-card:hover .xh-icon-wrap,
body.ms-luxury .lux-cat-item:hover .xh-icon-wrap,
body.ms-luxury .lux-notice-card:hover .xh-icon-wrap,
body.ms-luxury .feature-block-li:hover .xh-icon-wrap {
    border-color: rgba(232, 197, 71, 0.65);
    box-shadow: 0 8px 32px rgba(201, 162, 39, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body.ms-luxury .xh-icon-wrap .xh-icon:not(.xh-icon--ui):not(.xh-icon--game) {
    color: var(--lux-on-accent);
    filter: none;
}

body.ms-luxury .ms-hero-card:hover .xh-icon-wrap:not(.xh-icon-wrap--game) {
    transform: translateY(-2px);
}

body.ms-luxury .lux-cat-item .xh-icon-wrap .xh-icon {
    color: inherit;
}

body.ms-luxury .lux-cat-item:hover .xh-icon-wrap {
    transform: translateY(-1px);
}

body.ms-luxury .lux-notice-card:hover .xh-icon-wrap {
    transform: translateY(-1px);
}

body.ms-luxury .lux-notice-card-icon {
    width: auto;
    height: auto;
    margin-bottom: 14px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    font-size: inherit;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

body.ms-luxury .lux-notice-card-icon .xh-icon-wrap .xh-icon {
    color: inherit;
}

body.ms-luxury .lux-notice-card-icon .xh-icon-wrap--ui {
    width: 52px;
    height: 52px;
}

body.ms-luxury .lux-notice-card-icon .xh-icon-wrap--ui .xh-icon {
    width: 40px;
    height: 40px;
}

body.ms-luxury .lux-notice-panel h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.ms-luxury .lux-notice-panel h3 .xh-icon-wrap .xh-icon {
    color: inherit;
}

body.ms-luxury .lux-warning-icon {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    font-size: inherit;
    background: none;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.ms-luxury .lux-feat-visual .xh-icon-wrap {
    position: relative;
    z-index: 1;
}

body.ms-luxury .lux-feat-visual > span:not(.xh-icon):not(.xh-icon-wrap) {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--lux-muted);
    position: relative;
    z-index: 1;
}

body.ms-luxury .ms-btn .xh-icon {
    width: 18px;
    height: 18px;
}

body.ms-luxury .ms-btn-primary .xh-icon {
    color: var(--lux-on-accent);
    filter: none;
}

body.ms-luxury .ms-btn-outline .xh-icon {
    color: var(--lux-on-accent);
}

body.ms-luxury .pass-title .xh-icon-wrap {
    margin-right: 10px;
}

body.ms-luxury .pass-title .xh-icon-wrap .xh-icon {
    color: inherit;
}

body.ms-luxury .pass-title h4.title {
    display: flex;
    align-items: center;
}

body.ms-luxury .store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

body.ms-luxury .store-button .xh-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

body.ms-luxury .store-button-text {
    line-height: 1;
}

body.ms-luxury a.scroll-top .xh-icon {
    width: 20px;
    height: 20px;
    color: var(--lux-on-accent);
    filter: none;
}

body.ms-luxury a.scroll-top .scroll-top-icon {
    display: none;
}

/* Feature section — game icons on gold shell */
.xh-icon-wrap--feat-game {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.xh-icon-wrap--feat-game .xh-icon {
    width: 28px;
    height: 28px;
}

.xh-icon-wrap--feat-game-sm {
    width: 28px;
    height: 28px;
}

.xh-icon-wrap--feat-game-sm .xh-icon {
    width: 24px;
    height: 24px;
}

body.ms-luxury .feature-block-li:hover .xh-icon-wrap--feat-game {
    transform: translateY(-2px) scale(1.06);
    transition: transform 0.2s ease;
}
