/* =============================================
       设计系统常量（IE10/11兼容：无CSS变量、无oklch）
       颜色值直接内联
    ============================================= */

/* =============================================
       全局重置
    ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    color: #1e293b;
    line-height: 1.5;
    min-width: 1080px;
    overflow-x: hidden;
}

/* 全局：所有模块容器禁止内容溢出，自动裁剪 */
.container,
.hero-section,
.box-panel,
.recommend-bar,
.recommend-inner,
.recommend-scroll,
.section-wrapper,
.section-card,
.server-table,
.games-grid,
.footer,
.footer-inner {
    overflow: hidden;
    *zoom: 1;
}

/* 全局：flex/grid 子元素默认 min-*:0，防止内容撑破容器 */
.featured-games>*,
.more-games-grid>*,
.server-table>*,
.games-grid>*,
.hero-top>*,
.banner-area,
.banner-content {
    min-width: 0;
    min-height: 0;
}

/* 全局：图片不出容器 */
img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

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

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

/* =============================================
       工具类
    ============================================= */
.container {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 10px;
}

.section-title {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 8px 0;
    margin-bottom: 12px;
    border-bottom: 2px solid #1e7fd4;
}

.section-title h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    position: relative;
    padding-left: 10px;
}

.section-title h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: #1e7fd4;
    border-radius: 2px;
}

.more-link {
    font-size: 0.8125rem;
    color: #1e7fd4;
    padding: 2px 8px;
    border: 1px solid #1e7fd4;
    border-radius: 3px;
    -webkit-transition: all 0.2s;
    -ms-transition: all 0.2s;
    transition: all 0.2s;
}

.more-link:hover {
    background: #1e7fd4;
    color: #fff;
}

.btn {
    display: inline-flex;
    display: -ms-inline-flexbox;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 5px 14px;
    border: none;
    border-radius: 3px;
    font-size: 0.8125rem;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
    -webkit-transition: all 0.2s;
    -ms-transition: all 0.2s;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background: #1e7fd4;
    color: #fff;
}

.btn-primary:hover {
    background: #1668b8;
}

.btn-sm {
    padding: 3px 10px;
    font-size: 0.75rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.btn-outline:hover {
    border-color: #1e7fd4;
    color: #1e7fd4;
}

/* =============================================
       2. 主导航栏
       注意：IE不支持 position: sticky，改用相对定位
    ============================================= */
.main-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 100;
}

.main-nav {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: stretch;
    align-items: stretch;
    height: 48px;
}

/* Logo区 */
.nav-logo {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    margin-right: 20px;
    padding-right: 20px;
    border-right: 1px solid #e2e8f0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex: 1;
    flex: 1;
}

.nav-menu>*+* {
    margin-left: 6px;
}

/* 替代 gap */
.nav-item {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    padding: 5px 15px;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    position: relative;
    -webkit-transition: all 0.2s;
    -ms-transition: all 0.2s;
    transition: all 0.2s;
    white-space: nowrap;
    border-radius: 16px;
    text-decoration: none;
}

.nav-item:hover {
    color: #1e7fd4;
}

.nav-item.active {
    background: #1e7fd4;
    color: #fff;
    font-weight: 600;
}

.nav-item.active:hover {
    color: #fff;
}

/* 右侧操作区 */
.nav-actions {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    margin-left: auto;
}

.nav-actions>*+* {
    margin-left: 10px;
}

/* 替代 gap */
.search-wrap {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    -webkit-transition: border-color 0.2s;
    -ms-transition: border-color 0.2s;
    transition: border-color 0.2s;
    height: 32px;
    /* IE兼容：明确高度 */
}

/* IE不支持 :focus-within，用JS替代；这里用focus的父级模拟 */
.search-wrap.focused {
    border-color: #1e7fd4;
    box-shadow: 0 0 0 2px rgba(30, 127, 212, 0.1);
}

.search-input {
    border: none;
    outline: none;
    padding: 5px 12px;
    font-size: 13px;
    color: #1e293b;
    width: 140px;
    background: transparent;
    line-height: normal;
    /* IE兼容：重置行高 */
    *height: 22px;
    /* IE6/7 hack */
}

.search-input::-webkit-input-placeholder {
    color: #94a3b8;
}

.search-input:-ms-input-placeholder {
    color: #94a3b8;
}

/* IE10/11 */
.search-input::placeholder {
    color: #b8c2d0;
}

.search-icon-btn {
    padding: 5px 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transition: color 0.2s;
    -ms-transition: color 0.2s;
    transition: color 0.2s;
}

.search-icon-btn:hover {
    color: #1e7fd4;
}

.welfare-btn {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    padding: 6px 18px 6px 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    -webkit-transition: all 0.25s;
    -ms-transition: all 0.25s;
    transition: all 0.25s;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.welfare-btn>*+* {
    margin-left: 6px;
}

/* gap替代 */
.welfare-btn:hover {
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.welfare-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.welfare-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: #e02424;
    border-radius: 50%;
    border: 2px solid #fff;
    font-size: 10px;
    line-height: 12px;
    text-align: center;
}

/* =============================================
       3. Hero Banner 区
    ============================================= */
.hero-section {
    position: relative;
    overflow: hidden;
    max-width: 1920px;
    margin: 0 auto;
}

.hero-inner {
    max-width: 1290px;
    margin: 0 auto;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-direction: column;
    flex-direction: column;
    position: relative;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

/* 全幅背景轮播层（绝对定位，覆盖整个 hero-section） */
.banner-bg-layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    /* 替代 inset:0 */
}

/* 粒子特效画布 */
.effect-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.banner-bg-slides {
    display: flex;
    display: -ms-flexbox;
    width: 100%;
    height: 100%;
    -webkit-transition: -webkit-transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    -ms-transition: -ms-transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-bg-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    -webkit-transition: filter 0.35s ease;
    -ms-transition: filter 0.35s ease;
    transition: filter 0.35s ease;
}

.banner-bg-slide:hover {
    filter: brightness(1.12);
}

.banner-bg-slide:active {
    filter: brightness(0.95);
}

.banner-bg-slide::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /* 替代 inset:0 */
    pointer-events: none;
    background: rgba(0, 0, 0, 0.15);
}

/* 第一行：登录 + 轮播内容覆盖层 */
.hero-top {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: stretch;
    align-items: stretch;
    height: 574px;
    padding: 0;
    overflow: hidden;
}

.hero-top>* {
    min-width: 0;
    min-height: 0;
}

/* 登录卡片 */
.login-card {
    width: 280px;
    min-height: 340px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    padding: 22px 24px 18px;
    z-index: 2;
    pointer-events: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    -ms-align-self: flex-start;
    align-self: flex-start;
    margin-bottom: 8px;
    /* var(--space-2) = 8px */
}

.login-title {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    letter-spacing: 0.04em;
}

#tab-account {
    min-height: 210px;
}

/* 登录表单 */
.form-group {
    margin-bottom: 14px;
    position: relative;
}

.form-group label {
    display: none;
}

.form-input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    border: 1px solid rgba(200, 210, 225, 0.6);
    background: rgba(255, 255, 255, 0.45);
    border-radius: 6px;
    font-size: 13px;
    color: #1e293b;
    outline: none;
    -webkit-transition: all 0.2s;
    -ms-transition: all 0.2s;
    transition: all 0.2s;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

.form-input::-webkit-input-placeholder {
    color: #b8c2d0;
}

.form-input:-ms-input-placeholder {
    color: #b8c2d0;
}

.form-input::placeholder {
    color: #b8c2d0;
}

.form-input:focus {
    border-color: #1e7fd4;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30, 111, 240, 0.1);
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.form-options {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-align: center;
    align-items: center;
    font-size: 12px;
    margin-bottom: 16px;
    margin-top: -4px;
}

.form-check {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    color: #475569;
    cursor: pointer;
}

.form-check input {
    margin-right: 5px;
}

/* 替代 gap */
.forget-link {
    color: #64748b;
    font-size: 12px;
}

.forget-link:hover {
    text-decoration: underline;
    color: #1e7fd4;
}

.login-btn {
    width: 100%;
    padding: 11px;
    background: linear-gradient(180deg, #f5a623 0%, #e8930c 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    -webkit-transition: all 0.2s;
    -ms-transition: all 0.2s;
    transition: all 0.2s;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 8px rgba(232, 147, 12, 0.25);
}

.login-btn:hover {
    background: linear-gradient(180deg, #f8b342 0%, #ec9c1a 100%);
    box-shadow: 0 4px 14px rgba(232, 147, 12, 0.45);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
}

.third-divider {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    margin: 14px 0 12px;
    color: #64748b;
    font-size: 11px;
}

.third-divider>*+* {
    margin-left: 8px;
}

/* gap替代 */
.third-divider::before,
.third-divider::after {
    content: '';
    -ms-flex: 1;
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.third-party {
    margin-top: 0;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    font-size: 12px;
    color: #475569;
}

.third-icons {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
}

.third-icons>*+* {
    margin-left: 10px;
}

/* gap替代 */
.third-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    cursor: pointer;
    -webkit-transition: all 0.2s;
    -ms-transition: all 0.2s;
    transition: all 0.2s;
}

.third-icon:hover {
    -ms-transform: scale(1.15);
    transform: scale(1.15);
}

.third-icon.wechat {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    flex-shrink: 0;
}

.third-icon.qq {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    flex-shrink: 0;
}

.register-link {
    text-align: right;
    margin-top: 0;
    font-size: 12px;
}

.register-link a {
    color: #1e7fd4;
}

.register-link a:hover {
    text-decoration: underline;
}

/* ===== 登录成功状态面板 ===== */
#panel-logged {
    display: none;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 2px 0 6px;
}

.logged-profile {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 12px;
}

.logged-profile>*+* {
    margin-left: 10px;
}

/* gap替代 */
.logged-avatar {
    width: 48px;
    height: 48px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #3182ce 0%, #1a56db 100%);
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 3px 10px rgba(30, 127, 212, 0.3);
}

.logged-meta {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
}

.logged-username {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logged-edit {
    font-size: 11px;
    color: #2563eb;
    cursor: pointer;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    -webkit-transition: opacity 0.2s;
    -ms-transition: opacity 0.2s;
    transition: opacity 0.2s;
}

.logged-edit>*+* {
    margin-left: 3px;
}

/* gap替代 */
.logged-edit:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.logged-edit svg {
    width: 11px;
    height: 11px;
}

.logged-game-title {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 6px;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.logged-game-count {
    font-size: 10px;
    color: #64748b;
    font-weight: 400;
}

.logged-game-list {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-bottom: 10px;
}

.logged-game-item {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    padding: 6px 4px;
    border-radius: 5px;
    cursor: pointer;
    -webkit-transition: background 0.2s;
    -ms-transition: background 0.2s;
    transition: background 0.2s;
}

.logged-game-item:hover {
    background: #e8f4fd;
}

.logged-game-item>*+* {
    margin-left: 8px;
}

/* gap替代 */
.logged-game-icon {
    width: 34px;
    height: 34px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    border-radius: 5px;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    font-weight: 700;
}

.lgi-0 {
    background: linear-gradient(135deg, #e02424, #c81e1e);
}

.lgi-1 {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.lgi-2 {
    background: linear-gradient(135deg, #059669, #047857);
}

.lgi-3 {
    background: linear-gradient(135deg, #d97706, #b45309);
}

.lgi-4 {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.logged-game-info {
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
}

.logged-game-name {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logged-game-server {
    font-size: 10px;
    color: #64748b;
}

.logged-game-btn {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    padding: 3px 10px;
    background: #1e7fd4;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    -webkit-transition: all 0.2s;
    -ms-transition: all 0.2s;
    transition: all 0.2s;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.logged-game-btn:hover {
    background: #1668b8;
}

.logout-link {
    font-size: 11px;
    color: #64748b;
    cursor: pointer;
    -webkit-transition: color 0.2s;
    -ms-transition: color 0.2s;
    transition: color 0.2s;
    text-align: center;
}

.logout-link:hover {
    color: #e02424;
}

#panel-login,
#panel-logged {
    -webkit-transition: opacity 0.25s;
    -ms-transition: opacity 0.25s;
    transition: opacity 0.25s;
}

/* Banner 内容覆盖层 */
.banner-area {
    -ms-flex: 1;
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.banner-slides {
    display: flex;
    display: -ms-flexbox;
    width: 100%;
    height: 100%;
    -webkit-transition: -webkit-transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    -ms-transition: -ms-transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: relative;
}

/* 幻灯片指示器 */
.banner-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    display: flex;
    display: -ms-flexbox;
    z-index: 10;
}

.banner-dots>*+* {
    margin-left: 6px;
}

/* gap替代 */
.banner-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    -webkit-transition: all 0.3s;
    -ms-transition: all 0.3s;
    transition: all 0.3s;
    pointer-events: auto;
}

.banner-dot.active {
    background: #fff;
    width: 20px;
    border-radius: 3px;
}

/* 游戏卡片行 */
.hero-games-row {
    padding: 16px 0 20px;
    width: 100%;
    overflow: hidden;
}

/* =============================================
       4. 游戏推荐卡片区
    ============================================= */
.games-grid {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-pack: center;
    justify-content: center;
    overflow: hidden;
}

.games-grid>*+* {
    margin-left: 10px;
}

/* gap替代 */

.game-card {
    -ms-flex: 0 0 245px;
    flex: 0 0 245px;
    width: 245px;
    cursor: pointer;
    position: relative;
    pointer-events: auto;
    -webkit-transition: -webkit-transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    -ms-transition: -ms-transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 5px;
    overflow: hidden;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.35);
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-direction: column;
    flex-direction: column;
}

.game-card:hover {
    -ms-transform: translateY(-6px);
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

.game-thumb {
    width: 245px;
    height: 300px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* 悬停时扫光效果 */
.game-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
    -ms-transform: skewX(-25deg);
    transform: skewX(-25deg);
    z-index: 3;
    pointer-events: none;
    -webkit-transition: left 0.65s ease;
    -ms-transition: left 0.65s ease;
    transition: left 0.65s ease;
}

.game-card:hover .game-thumb::after {
    left: 120%;
}

/* 游戏卡片内缩略图透明 */
.game-thumb .thumb-placeholder {
    background: transparent !important;
}

.game-thumb .thumb-placeholder::before {
    background: transparent !important;
}

.game-thumb .thumb-placeholder span {
    color: transparent;
}

.game-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -ms-object-fit: fill;
    -webkit-transition: -webkit-transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), -webkit-filter 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    -ms-transition: -ms-transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), -ms-filter 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), filter 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-card:hover .game-thumb-img {
    -ms-transform: scale(1.06);
    transform: scale(1.06);
    -webkit-filter: brightness(1.1);
    filter: brightness(1.1);
}

/* 悬停操作条 — 覆盖游戏名称区，从下向上滑出 */
.game-hover-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.35));
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    padding: 10px 8px 10px 8px;
    -ms-transform: translateY(100%);
    transform: translateY(100%);
    -webkit-transition: -webkit-transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
    -ms-transition: -ms-transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 5;
    pointer-events: none;
}

.game-card:hover .game-hover-bar {
    -ms-transform: translateY(0);
    transform: translateY(0);
    pointer-events: auto;
}

.game-hover-btn {
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.03em;
    -webkit-transition: color 0.15s;
    -ms-transition: color 0.15s;
    transition: color 0.15s;
}

.game-hover-btn:hover {
    color: #ffcc00;
}

.game-hover-btn .btn-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    border-radius: 50%;
    line-height: 16px;
    text-align: center;
    font-size: 9px;
    font-style: normal;
}

.game-hover-btn.btn-play .btn-icon {
    background: #f5a623;
}

.game-hover-btn.btn-gift .btn-icon {
    background: #e02424;
}

.game-hover-btn.btn-site .btn-icon {
    background: #1e7fd4;
}

/* 分隔线 */
.game-hover-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
}

.thumb-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /* inset:0 替代 */
    background: inherit;
    filter: brightness(0.7);
    -ms-filter: "brightness(0.7)";
}

.thumb-placeholder span {
    position: relative;
    z-index: 1;
}

.game-hot-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #e02424;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 2px;
}

.game-new-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #f5770a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 2px;
}

.game-info {
    padding: 10px 10px;
    overflow: hidden;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.game-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* =============================================
       5. 内容主区：左侧新闻(260px) + 右侧精选
       IE Grid 兼容：使用 -ms-grid 或 fallback 为 table/flex
    ============================================= */
.content-main {
    max-width: 1290px;
    margin: 0 auto;
    /* IE10+ 兼容：使用 flexbox 替代不可靠的 -ms-grid */
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: stretch;
    align-items: stretch;
    margin-bottom: 12px;
}

.content-main>*:first-child {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    -ms-flex: none;
    flex: none;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.content-main>*+* {
    margin-left: 12px;
    -ms-flex: 1;
    flex: 1;
}

/* Modern browser: grid 覆盖 flex（更好的等高拉伸 + min-width:0 防溢出） */
@supports (display: grid) {
    .content-main {
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 12px;
    }

    .content-main>* {
        min-width: 0;
    }

    .content-main>*:first-child {
        width: auto;
        -ms-flex: auto;
        flex: auto;
    }

    .content-main>*+* {
        margin-left: 0;
    }
}

.card-panel {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    /* IE嵌套flex修复：overflow:visible 让高度正确传递 */
    overflow: visible;
}

/* 现代浏览器：border-radius 裁剪交给子元素，父容器允许内容自然撑开 */
@supports (display: grid) {
    .card-panel {
        overflow: visible;
    }
}

/* 新闻标题栏 */
.card-panel-header {
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    background: #f8fafc;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.card-panel-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
}

.card-panel-header h3>*+* {
    margin-left: 6px;
}

/* gap替代 */
.card-panel-header h3::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #1e7fd4;
    border-radius: 2px;
    display: inline-block;
}

.card-panel-body {
    padding: 16px;
    -ms-flex: 1 1 0%;
    flex: 1 1 0%;
    overflow: visible;
}

/* 精选页游标题栏 */
.featured-header {
    padding: 10px 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    background: #fff;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.featured-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
}

.featured-header h3>*+* {
    margin-left: 6px;
}

.featured-header h3::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #1e7fd4;
    border-radius: 2px;
    display: inline-block;
}

.featured-header .more-link {
    color: #94a3b8;
}

/* 新闻公告 */
.news-list {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-direction: column;
    flex-direction: column;
}

.news-item {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: start;
    align-items: flex-start;
    padding: 7px 0;
    border-bottom: 1px dotted #e2e8f0;
    cursor: pointer;
    -webkit-transition: all 0.2s;
    -ms-transition: all 0.2s;
    transition: all 0.2s;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item>*+* {
    margin-left: 8px;
}

/* gap替代 */
.news-item:hover .news-title {
    color: #1e7fd4;
}

.news-item-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1e7fd4;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin-top: 6px;
}

.news-title {
    font-size: 0.8125rem;
    color: #334155;
    -webkit-transition: color 0.2s;
    -ms-transition: color 0.2s;
    transition: color 0.2s;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 首条新闻（带头图）*/
.news-item-first {
    display: flex;
    display: -ms-flexbox;
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    -ms-flex-align: start;
    align-items: flex-start;
    cursor: pointer;
}

.news-item-first>*+* {
    margin-left: 10px;
}

/* gap替代 */
.news-first-thumb {
    width: 90px;
    height: 60px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
    background: #f1f5f9;
}

.news-first-thumb img,
.news-first-thumb .thumb-placeholder {
    width: 100%;
    height: 100%;
    /* object-fit 不支持IE，图片自然填充即可 */
}

.news-first-body {
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
}

.news-first-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-first-desc {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 推荐游戏（3个，横向布局）*/
.featured-games {
    display: flex;
    display: -ms-flexbox;
    -ms-flex: 1 1 0%;
    flex: 1 1 0%;
    min-height: 0;
    -ms-flex-pack: distribute;
    -ms-flex-pack: space-around;
    justify-content: space-evenly;
    overflow: visible;
}

.featured-games>*+* {
    margin-left: 12px;
}

/* gap替代 */
.featured-games>* {
    min-width: 0;
    min-height: 0;
}

.feat-card {
    -ms-flex: 1 1 0%;
    flex: 1 1 0%;
    min-width: 240px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    -webkit-transition: all 0.25s;
    -ms-transition: all 0.25s;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    display: -ms-flexbox;
    -ms-flex-direction: column;
    flex-direction: column;
}

.feat-card:hover {
    box-shadow: 0 6px 20px rgba(30, 127, 212, 0.15);
    border-color: #1e7fd4;
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
}

.feat-thumb {
    width: 100%;
    height: 210px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
    -ms-align-self: auto;
    align-self: center;
}

.feat-thumb .thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 56px;
    color: rgba(255, 255, 255, 0.65);
}

.feat-info {
    padding: 10px 14px;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.feat-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.feat-link {
    font-size: 0.75rem;
    color: #fff;
    background: #f59e0b;
    padding: 4px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    -webkit-transition: background 0.2s;
    -ms-transition: background 0.2s;
    transition: background 0.2s;
}

.feat-link:hover {
    background: #d97706;
    text-decoration: none;
}

.feat-hot-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #e02424;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 0 5px 0 5px;
}

/* =============================================
       6. 第二行内容：开服列表+盒子 + 热门游戏
    ============================================= */
.content-second {
    max-width: 1290px;
    margin: 0 auto;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: stretch;
    align-items: stretch;
    margin-bottom: 12px;
}

.content-second>* {
    min-width: 0;
}

.content-second>*:first-child {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    -ms-flex: none;
    flex: none;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.content-second>*+* {
    margin-left: 12px;
    -ms-flex: 1;
    flex: 1;
}

@supports (display: grid) {
    .content-second {
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 12px;
    }

    .content-second>*:first-child {
        width: auto;
        -ms-flex: auto;
        flex: auto;
    }

    .content-second>*+* {
        margin-left: 0;
    }
}

/* 开服列表左列 */
.server-box-col {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-direction: column;
    flex-direction: column;
    min-height: 0;
}

.server-box-col>*+* {
    margin-top: 12px;
}

/* gap替代 */

/* 开服列表 */
.server-list-panel {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    -ms-flex: 1;
    flex: 1;
    min-height: 340px;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-direction: column;
    flex-direction: column;
}

.server-header {
    background: linear-gradient(135deg, #2b6cb8 0%, #1e4e8c 100%);
    padding: 9px 16px;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.server-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.server-tabs {
    display: flex;
    display: -ms-flexbox;
    border-bottom: 1px solid #e2e8f0;
    background: #fafafa;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.server-tab {
    -ms-flex: 1;
    flex: 1;
    text-align: center;
    padding: 7px 0;
    font-size: 12px;
    cursor: pointer;
    color: #64748b;
    -webkit-transition: all 0.2s;
    -ms-transition: all 0.2s;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.server-tab.active {
    color: #1e7fd4;
    font-weight: 700;
    border-bottom-color: #1e7fd4;
}

.server-tab-content {
    display: none;
    -ms-flex: 1;
    flex: 1;
    overflow: hidden;
}

.server-tab-content.active {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-direction: column;
    flex-direction: column;
}

/* 表格 — 用flex模拟grid */
.server-table-head {
    display: flex;
    display: -ms-flexbox;
    font-size: 12px;
    color: #64748b;
    padding: 6px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.server-table-head>* {
    -ms-flex: 1;
    flex: 1;
}

.server-table-head>*:last-child {
    -ms-flex: none;
    flex: none;
    width: 90px;
}

.server-row {
    display: flex;
    display: -ms-flexbox;
    font-size: 12px;
    padding: 6px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    -webkit-transition: background 0.2s;
    -ms-transition: background 0.2s;
    transition: background 0.2s;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
}

.server-row>* {
    -ms-flex: 1;
    flex: 1;
}

.server-row>*:last-child {
    -ms-flex: none;
    flex: none;
    width: 90px;
}

.server-row:hover {
    background: #a0cef0;
}

.server-row:last-child {
    border-bottom: none;
}

.server-game {
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-server {
    color: #475569;
}

.server-time {
    color: #94a3b8;
}

/* 热门游戏 3x3 网格 — IE用table或flex模拟 */
.hot-games-panel {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-direction: column;
    flex-direction: column;
}

.hot-games-grid {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    background: #f1f5f9;
    -ms-flex: 1;
    flex: 1;
    padding: 8px;
    -ms-flex-pack: start;
    justify-content: flex-start;
    overflow: hidden;
}

.hot-games-grid>* {
    margin: 4px;
    /* 模拟 gap:8px */
    overflow: hidden;
}

.hot-game-item {
    cursor: pointer;
    -webkit-transition: all 0.25s;
    -ms-transition: all 0.25s;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
    width: calc(33.333% - 8px);
    min-width: 180px;
    height: 150px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.hot-game-item:hover {
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hot-game-body {
    position: absolute;
    top: 12px;
    left: 14px;
    right: 14px;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-direction: column;
    flex-direction: column;
    z-index: 2;
}

.hot-game-body>*+* {
    margin-bottom: 5px;
}

/* stack gap替代 */
.hot-game-body> :first-child {
    margin-bottom: 5px;
}

.hot-game-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    line-height: 1.1;
}

.hot-game-type {
    font-size: 12px;
    color: #888;
    line-height: 1;
}

.hot-tags {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-top: 2px;
}

.hot-tags>*+* {
    margin-left: 5px;
}

/* gap替代 */
.hot-tag-hot,
.hot-tag-new {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 2px 0 0 2px;
    font-weight: 600;
    line-height: 1;
    position: relative;
    transition: transform 0.2s ease;
}

.hot-game-item:hover .hot-tag-hot,
.hot-game-item:hover .hot-tag-new {
    transform: scale(1.05);
}

.hot-tag-hot::after,
.hot-tag-new::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left-width: 5px;
    border-left-style: solid;
}

.hot-tag-hot {
    background: #ff6b8a;
    color: #fff;
}

.hot-tag-hot::after {
    border-left-color: #ff6b8a;
}

.hot-tag-new {
    background: #4caf50;
    color: #fff;
}

.hot-tag-new::after {
    border-left-color: #4caf50;
}

.hot-game-avatar {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /* inset:0 替代 */
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.hot-game-avatar .avatar-placeholder {
    font-size: 56px;
    opacity: 0.22;
}

/* Hover 操作按钮层 — 横排渐变半透明遮罩 */
.hot-game-item .hot-action-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.1) 80%, transparent 100%);
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: end;
    align-items: flex-end;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    padding: 0 4px 10px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity 0.3s ease, visibility 0.3s ease;
    -ms-transition: opacity 0.3s ease, visibility 0.3s ease;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    border-radius: 0 0 6px 6px;
}

.hot-game-item:hover .hot-action-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hot-action-btn {
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 6px;
    cursor: pointer;
    white-space: nowrap;
    border: none;
    background: transparent;
    -webkit-transition: color 0.15s, text-shadow 0.15s;
    -ms-transition: color 0.15s;
    transition: color 0.15s;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hot-action-btn:hover {
    color: #ffcc00;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hot-action-btn .btn-icon {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 3px;
    border-radius: 50%;
    line-height: 15px;
    text-align: center;
    font-size: 8px;
    font-style: normal;
}

.hot-action-btn.btn-play .btn-icon {
    background: #f5a623;
}

.hot-action-btn.btn-gift .btn-icon {
    background: #e02424;
}

.hot-action-btn.btn-site .btn-icon {
    background: #1e7fd4;
}

.hot-action-sep {
    width: 1px;
    height: 13px;
    background: rgba(255, 255, 255, 0.3);
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

/* 快玩盒子 */
.box-panel {
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.box-inner {
    position: relative;
    width: 100%;
    height: 170px;
    overflow: hidden;
    cursor: pointer;
}

.box-banner {
    width: 100%;
    height: 100%;
    display: block;
    -webkit-transition: -webkit-transform 0.4s ease;
    -ms-transition: -ms-transform 0.4s ease;
    transition: transform 0.4s ease;
}

.box-inner:hover .box-banner {
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}

.box-download-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 10px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.08em;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    -webkit-transition: all 0.2s;
    -ms-transition: all 0.2s;
    transition: all 0.2s;
}

.box-inner:hover .box-download-overlay {
    padding-bottom: 18px;
    font-size: 17px;
}

/* =============================================
       7. 更多游戏区 + 客服中心
    ============================================= */
.content-third {
    max-width: 1290px;
    margin: 0 auto;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: stretch;
    align-items: stretch;
    margin-bottom: 12px;
}

.content-third>* {
    min-width: 0;
}

.content-third>*:first-child {
    width: 260px;
    -ms-flex: none;
    flex: none;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.content-third>*+* {
    margin-left: 12px;
    -ms-flex: 1;
    flex: 1;
}

@supports (display: grid) {
    .content-third {
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 12px;
    }

    .content-third>*:first-child {
        width: auto;
        -ms-flex: auto;
        flex: auto;
    }

    .content-third>*+* {
        margin-left: 0;
    }
}

/* 客服中心 */
.service-panel {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: visible;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-direction: column;
    flex-direction: column;
}

.service-grid {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    background: #e2e8f0;
    overflow: visible;
    border-radius: 0 0 5px 5px;
    /* 用margin模拟border/gap */
    margin: -0.5px;
}

.service-grid>* {
    margin: 0.5px;
    /* 模拟 gap:1px */
    /* 每个 item 占50%，IE不兼容calc+flex，用百分比 */
    width: 49%;
    *width: 48.5%;
    /* IE6-7 fallback */
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
}

.service-item {
    background: #fff;
    padding: 16px;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    cursor: pointer;
    -webkit-transition: background 0.2s;
    -ms-transition: background 0.2s;
    transition: background 0.2s;
    text-align: center;
    overflow: hidden;
    height: 128px;
    /* 与 more-game-item 高度一致: 108px thumb + 20px padding */
}

.service-item>*+* {
    margin-top: 6px;
}

/* gap替代 */
.service-item:hover {
    background: #a0cef0;
}

.service-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 19px;
    position: relative;
    -webkit-transition: -webkit-transform 0.2s, box-shadow 0.2s;
    -ms-transition: transform 0.2s, box-shadow 0.2s;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-item:hover .service-icon {
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

/* 免费注册 — 绿色 */
.service-item:nth-child(1) .service-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.25);
}

/* 快速充值 — 金色 */
.service-item:nth-child(2) .service-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.25);
}

/* 账号申诉 — 蓝色 */
.service-item:nth-child(3) .service-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.25);
}

/* 找回密码 — 红色 */
.service-item:nth-child(4) .service-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.25);
}

/* 在线客服 — 紫色 */
.service-item:nth-child(5) .service-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 3px 8px rgba(139, 92, 246, 0.25);
}

/* 快玩公众号 — 青色 */
.service-item:nth-child(6) .service-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: 0 3px 8px rgba(6, 182, 212, 0.25);
}

.service-label {
    font-size: 0.75rem;
    color: #334155;
    font-weight: 500;
}

/* 快玩公众号 — hover 二维码（下方弹出） */
.service-item.qr-gzh {
    position: relative;
    overflow: visible;
    cursor: pointer;
}

.service-item.qr-gzh:hover {
    background: #a0cef0;
}

.qr-gzh-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 170px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    padding: 12px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    -webkit-transition: opacity 0.25s ease;
    -ms-transition: opacity 0.25s ease;
    transition: opacity 0.25s ease;
    visibility: hidden;
    z-index: 999;
}

.service-item.qr-gzh:hover .qr-gzh-popup {
    opacity: 1;
    visibility: visible;
}

.qr-gzh-popup::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: #fff;
}

.qr-gzh-popup img {
    width: 146px;
    height: 146px;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

.qr-gzh-popup .qr-title {
    font-size: 13px;
    color: #0f172a;
    font-weight: 700;
    margin-top: 8px;
}

.qr-gzh-popup .qr-desc {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 3px;
}

/* 更多游戏 */
.more-games-panel {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: visible;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-direction: column;
    flex-direction: column;
    border: 1px solid #e2e8f0;
}

.more-games-grid {
    display: flex;
    display: -ms-flexbox;
    background: #e2e8f0;
    overflow: visible;
    /* 模拟 3列 grid */
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: -0.5px;
}

.more-games-grid>* {
    margin: 0.5px;
    /* 3列均分宽度，扣除 margin 后精确填充 */
    width: calc(33.333% - 1px);
    -ms-flex: none;
    flex: none;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.more-game-item {
    background: #fff;
    padding: 10px 12px;
    cursor: pointer;
    -webkit-transition: background 0.2s;
    -ms-transition: background 0.2s;
    transition: background 0.2s;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    overflow: hidden;
}

.more-game-item>*+* {
    margin-left: 10px;
}

/* gap替代 */
.more-game-item:hover {
    background: #a0cef0;
}

.more-game-thumb {
    width: 108px;
    height: 108px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.more-game-thumb .thumb-placeholder {
    height: 108px !important;
    border-radius: 6px;
}

.more-game-info {
    min-width: 0;
    -ms-flex: 1;
    flex: 1;
}

.more-game-name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.more-game-type {
    font-size: 0.75rem;
    color: #64748b;
}

.more-game-btn {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    font-size: 11px;
    padding: 3px 8px;
    background: #1e7fd4;
    color: #fff;
    border-radius: 2px;
    cursor: pointer;
    white-space: nowrap;
    -webkit-transition: background 0.2s;
    -ms-transition: background 0.2s;
    transition: background 0.2s;
}

.more-game-item:hover .more-game-btn {
    background: #1668b8;
}

/* =============================================
       8. 推荐游戏滚动条
       IE scrollbar 隐藏用 -ms-overflow-style
    ============================================= */
.recommend-bar {
    background: #fff;
    margin-bottom: 12px;
    border-top: 2px solid #1e7fd4;
    overflow: hidden;
}

.recommend-inner {
    max-width: 1290px;
    margin: 0 auto;
    padding: 12px 10px;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    overflow: hidden;
}

.recommend-inner>*+* {
    margin-left: 12px;
}

/* gap替代 */
.recommend-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.recommend-scroll {
    -ms-flex: 1;
    flex: 1;
    display: flex;
    display: -ms-flexbox;
    overflow-x: auto;
    /* IE scrollbar 隐藏 */
    -ms-overflow-style: none;
    /* 现代浏览器隐藏 */
    scrollbar-width: none;
}

.recommend-scroll::-webkit-scrollbar {
    display: none;
}

.recommend-scroll>*+* {
    margin-left: 10px;
}

/* gap替代 */
.recommend-game {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #475569;
    padding: 3px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    cursor: pointer;
    -webkit-transition: all 0.2s;
    -ms-transition: all 0.2s;
    transition: all 0.2s;
    white-space: nowrap;
}

.recommend-game:hover {
    color: #1e7fd4;
    border-color: #1e7fd4;
    background: #e8f4fd;
}

/* =============================================
       9. 页脚
    ============================================= */
.footer {
    background: #2c3e60;
    color: #bac7d8;
    padding: 20px 0 12px;
}

.footer-inner {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 10px;
}

.footer-company {
    text-align: center;
    margin-bottom: 16px;
    font-size: 0.75rem;
    line-height: 1.8;
    color: #8a9ab8;
}

.footer-company strong {
    color: #bac7d8;
}

.footer-nav {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 16px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 0;
}

.footer-nav a {
    font-size: 0.8125rem;
    color: #bac7d8;
    line-height: 1.4;
    padding: 0 8px;
    background: none;
    border: none;
    -webkit-transition: color 0.2s;
    -ms-transition: color 0.2s;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-nav a::after {
    content: '|';
    margin-left: 8px;
    color: rgba(186, 199, 216, 0.3);
    pointer-events: none;
}

.footer-nav a:first-child::after,
.footer-nav a:last-child::after {
    content: none;
}

.footer-nav .footer-logo {
    height: 26px;
    width: auto;
    vertical-align: middle;
    opacity: 0.9;
}

.footer-nav .footer-logo:hover {
    opacity: 1;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-icons {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-pack: center;
    justify-content: center;
    margin-bottom: 16px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.footer-icons>*+* {
    margin-left: 20px;
}

/* gap替代 */
.footer-icon-item {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    font-size: 0.75rem;
    color: #8a9ab8;
}

.footer-icon-item>*+* {
    margin-left: 6px;
}

/* gap替代 */
.footer-icon-item .icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    color: #8a9ab8;
}

.footer-bottom a {
    color: #8a9ab8;
}

.footer-bottom a:hover {
    color: #bac7d8;
}

.icp {
    margin-top: 4px;
}

/* =============================================
       侧边广告浮窗
    ============================================= */
.side-ad {
    position: fixed;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 180px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-left: none;
    border-radius: 8px;
    overflow: visible;
    box-shadow: none;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-direction: column;
    flex-direction: column;
    z-index: 50;
}

.side-ad-left {
    left: 0;
    border-radius: 0 8px 8px 0;
}

.side-ad-right {
    right: 0;
    border-radius: 8px 0 0 8px;
}

.side-ad-inner {
    width: 100%;
    height: 100%;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.side-ad-thumb {
    width: 180px;
    height: 370px;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 40px;
    background: transparent !important;
    border-radius: 0 8px 8px 0;
    overflow: hidden;
    cursor: pointer;
    -webkit-transition: -webkit-filter 0.25s, filter 0.25s, -ms-transform 0.25s, transform 0.25s;
    -ms-transition: -ms-filter 0.25s, filter 0.25s, -ms-transform 0.25s, transform 0.25s;
    transition: filter 0.25s, transform 0.25s;
}

.side-ad-thumb:hover {
    -webkit-filter: brightness(1.12);
    filter: brightness(1.12);
    -ms-transform: scale(1.02);
    transform: scale(1.02);
}

.side-ad-thumb:active {
    -webkit-filter: brightness(0.95);
    filter: brightness(0.95);
    -ms-transform: scale(0.98);
    transform: scale(0.98);
}

.side-ad-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-transition: all 0.2s;
    -ms-transition: all 0.2s;
    transition: all 0.2s;
    line-height: 1;
    z-index: 5;
}

.side-ad-close:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.5);
}

/* =============================================
       游戏缩略图色彩
    ============================================= */
.g-color-1 {
    background: linear-gradient(135deg, #1a237e, #283593);
}

.g-color-2 {
    background: linear-gradient(135deg, #4a148c, #6a1b9a);
}

.g-color-3 {
    background: linear-gradient(135deg, #b71c1c, #c62828);
}

.g-color-4 {
    background: linear-gradient(135deg, #004d40, #00695c);
}

.g-color-5 {
    background: linear-gradient(135deg, #e65100, #ef6c00);
}

.g-color-6 {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
}

.g-color-7 {
    background: linear-gradient(135deg, #0d47a1, #1565c0);
}

.g-color-8 {
    background: linear-gradient(135deg, #880e4f, #ad1457);
}

.g-color-9 {
    background: linear-gradient(135deg, #33691e, #558b2f);
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        -ms-transform: translateY(8px);
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        -ms-transform: translateY(0);
        transform: translateY(0);
    }
}

.animate-in {
    -webkit-animation: fadeIn 0.3s ease forwards;
    -o-animation: fadeIn 0.3s ease forwards;
    animation: fadeIn 0.3s ease forwards;
}

/* =============================================
       响应式（窄屏优化）
    ============================================= */
@media (max-width: 1550px) {

    .container,
    .hero-inner,
    .content-main,
    .content-second,
    .content-third,
    .recommend-inner,
    .footer-inner,
    .section-wrapper {
        max-width: 1200px;
    }

    .side-ad {
        display: none;
    }

    /* 热门游戏 3×3 网格：计算可用宽度=(1200-260-12-16)÷3-8≈296px */
    .hot-game-item {
        width: calc(33.333% - 8px);
        min-width: 180px;
    }

    /* 推荐游戏卡片窄屏适配 */
    .feat-card {
        min-width: 200px;
    }

    .feat-thumb {
        height: 170px;
    }
}

@media (max-width: 1300px) {

    .container,
    .hero-inner,
    .content-main,
    .content-second,
    .content-third,
    .recommend-inner,
    .footer-inner,
    .section-wrapper {
        max-width: 1050px;
    }

    /* 热门游戏 3×3 网格窄屏保持 */
    .hot-game-item {
        width: calc(33.333% - 8px);
        min-width: 160px;
    }

    /* 推荐游戏卡片更窄适配 */
    .feat-card {
        min-width: 170px;
    }

    .feat-thumb {
        height: 140px;
    }
}

/* 游戏内容布局段 */
.section-wrapper {
    max-width: 1290px;
    margin: 0 auto 12px;
}

.section-card {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.section-card-header {
    padding: 8px 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.section-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
}

.section-card-header h3>*+* {
    margin-left: 6px;
}

.section-card-header h3 .htag {
    width: 4px;
    height: 16px;
    background: #1e7fd4;
    border-radius: 2px;
}

.section-card-body {
    padding: 16px;
}

/* =============================================
       右侧悬浮工具栏
    ============================================= */
.float-toolbar {
    position: fixed;
    right: 6px;
    bottom: 120px;
    z-index: 100;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-direction: column;
    flex-direction: column;
}

.float-toolbar>*+* {
    margin-top: 2px;
}

/* gap替代 */
.float-tool-item {
    position: relative;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    cursor: pointer;
    -webkit-transition: all 0.2s;
    -ms-transition: all 0.2s;
    transition: all 0.2s;
    color: #475569;
}

.float-tool-item:hover {
    background: #1e7fd4;
    color: #fff;
    border-color: #1e7fd4;
}

/* =============================================
       banner轮播
    ============================================= */
.banner-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.banner-game-name {}

.float-tool-item svg {
    width: 20px;
    height: 20px;
}

/* tooltip */
.float-tool-item .tooltip {
    position: absolute;
    right: 48px;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    background: #1e7fd4;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    -webkit-transition: opacity 0.2s;
    -ms-transition: opacity 0.2s;
    transition: opacity 0.2s;
}

.float-tool-item .tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #1e7fd4;
}

.float-tool-item:hover .tooltip {
    opacity: 1;
}

/* 右侧悬浮 — 关注公众号 hover 二维码 */
.float-tool-item.qr-tool .qr-tool-popup {
    position: absolute;
    right: 56px;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 170px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 12px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    -webkit-transition: opacity 0.25s ease;
    -ms-transition: opacity 0.25s ease;
    transition: opacity 0.25s ease;
    visibility: hidden;
    z-index: 999;
}

.float-tool-item.qr-tool:hover .qr-tool-popup {
    opacity: 1;
    visibility: visible;
}

.qr-tool-popup::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: #fff;
}

.qr-tool-popup img {
    width: 146px;
    height: 146px;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

.qr-tool-popup .qr-tool-title {
    font-size: 13px;
    color: #0f172a;
    font-weight: 700;
    margin-top: 8px;
}

.qr-tool-popup .qr-tool-desc {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 3px;
}

.float-tool-item.qr-tool .qr-tool-icon {
    width: 28px;
    height: 28px;
    display: block;
}

/* 单行省略，兼容 IE */
.ellipsis {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.multi-ellipsis {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;
    max-height: 3em;
    /* 2行 × 1.5em */
}

/* === IE 兼容布局修复 === */
.content-main {
    display: table;
    width: 100%;
    border-collapse: separate;
}

.cell {
    display: table-cell;
    vertical-align: top;
    width: 50%;
    padding: 0 10px;
    box-sizing: border-box;
}

.cell:first-child {
    padding-left: 0;
}

.cell:last-child {
    padding-right: 0;
}

.cell:nth-child(1) {
    width: 280px;
}

.cell:nth-child(2) {
    width: auto;
}

.card-panel-body {
    width: 100%;
    overflow: hidden;
}