/* ==========================================================================
   解压小游戏聚合页 /games —— 专属样式
   依赖全站 --c-* 变量（home.css 定义，dark 由 [data-theme="dark"] 覆盖）
   面包屑 .hot-crumb 与返回顶部 .hot-top 复用 hot-tools.css
   ========================================================================== */

/* ===== Hero ===== */
.hot-hero {
    padding: 10px 0 6px;
}
.hot-hero-inner {
    background:
        radial-gradient(600px 240px at 12% 0%, rgba(99, 102, 241, .14), transparent 60%),
        radial-gradient(520px 220px at 88% 8%, rgba(168, 85, 247, .12), transparent 60%),
        var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: 20px;
    padding: 30px 34px 26px;
    text-align: center;
}
.hot-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--hero-accent, #6366f1);
    background: rgba(99, 102, 241, .10);
    border: 1px solid rgba(99, 102, 241, .28);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.hot-hero h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--c-text);
    margin: 0 0 10px;
    letter-spacing: .5px;
}
.hot-lead {
    font-size: 14.5px;
    line-height: 1.9;
    color: var(--c-text-sub);
    max-width: 720px;
    margin: 0 auto 18px;
}
.hot-lead b {
    color: var(--c-text);
}

/* 快捷按钮 */
.hot-quick {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.hot-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 10px 18px;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.hot-quick-btn:hover {
    transform: translateY(-1px);
    border-color: var(--hero-accent, #6366f1);
    box-shadow: var(--shadow-sm);
}
.hot-quick-btn.is-primary {
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
}
.hot-quick-btn.is-primary:hover {
    box-shadow: 0 6px 18px rgba(99, 102, 241, .35);
}

/* 数据统计 */
.hot-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.hot-stat {
    min-width: 128px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 18px;
    background: var(--c-surface-soft, rgba(0, 0, 0, .03));
    border: 1px solid var(--c-border);
    border-radius: 14px;
}
.hot-stat b {
    font-size: 20px;
    font-weight: 800;
    color: var(--hero-accent, #6366f1);
}
.hot-stat span {
    font-size: 12px;
    color: var(--c-text-muted);
}
.hot-realnote {
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--c-text-muted);
    margin: 0;
    padding-top: 14px;
    border-top: 1px dashed var(--c-border);
}
.hot-realnote b {
    color: var(--c-text-sub);
}

/* ===== 通用区块 ===== */
.hot-section {
    padding: 26px 0 8px;
}
.hot-head {
    margin-bottom: 18px;
}
.hot-head h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--c-text);
    margin: 0 0 4px;
}
.hot-head p {
    font-size: 13px;
    color: var(--c-text-muted);
    margin: 0;
}

/* ===== 分组 ===== */
.hot-group {
    margin-bottom: 26px;
}
.group-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 4px;
}
.group-head h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--c-text);
    margin: 0;
}
.group-head b {
    color: var(--hero-accent, #6366f1);
}
.group-count {
    font-size: 12px;
    color: var(--c-text-muted);
    border: 1px solid var(--c-border);
    border-radius: 999px;
    padding: 2px 10px;
    background: var(--c-bg-card);
}
.group-desc {
    font-size: 13px;
    color: var(--c-text-muted);
    margin: 0 0 12px;
}

/* ===== 游戏卡片网格 ===== */
.hot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.hot-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: 14px;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.hot-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, .55);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}
.hot-card-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}
.hot-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hot-card-body b {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hot-card-body small {
    font-size: 12px;
    line-height: 1.55;
    color: var(--c-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hot-card-hot {
    flex-shrink: 0;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--hero-accent, #6366f1);
    white-space: nowrap;
}

/* ===== 玩游戏须知（SEO 文案区） ===== */
.hot-seo {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    padding: 24px 28px;
}
.hot-seo h2 {
    font-size: 16px;
    font-weight: 800;
    color: var(--c-text);
    margin: 0 0 8px;
}
.hot-seo h2 + p {
    margin-top: 0;
}
.hot-seo p {
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--c-text-sub);
    margin: 0 0 18px;
}
.hot-seo p:last-child {
    margin-bottom: 0;
}
.hot-seo b {
    color: var(--c-text);
}

/* ===== 相关页面 ===== */
.hot-rel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.hot-rel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: 14px;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.hot-rel-item:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, .55);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}
.hot-rel-icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}
.hot-rel-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hot-rel-body b {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--c-text);
}
.hot-rel-body small {
    font-size: 12px;
    color: var(--c-text-muted);
    line-height: 1.5;
}
.hot-rel-go {
    flex-shrink: 0;
    color: var(--c-text-muted);
    transition: transform .15s ease, color .15s ease;
}
.hot-rel-item:hover .hot-rel-go {
    transform: translateX(3px);
    color: var(--hero-accent, #6366f1);
}

/* ===== 黑夜模式微调 ===== */
[data-theme="dark"] .hot-card:hover,
[data-theme="dark"] .hot-rel-item:hover {
    box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
}
[data-theme="dark"] .hot-stat {
    background: rgba(255, 255, 255, .04);
}
[data-theme="dark"] .hot-hero-inner {
    background:
        radial-gradient(600px 240px at 12% 0%, rgba(99, 102, 241, .16), transparent 60%),
        radial-gradient(520px 220px at 88% 8%, rgba(168, 85, 247, .14), transparent 60%),
        var(--c-bg-card);
}

/* ===== 响应式 ===== */
@media (max-width: 860px) {
    .hot-hero-inner {
        padding: 24px 18px 22px;
        text-align: left;
    }
    .hot-quick,
    .hot-stats {
        justify-content: flex-start;
    }
    .hot-rel-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 720px) {
    .hot-hero h1 {
        font-size: 25px;
    }
    .hot-grid {
        grid-template-columns: 1fr;
    }
    .hot-stat {
        flex: 1;
        min-width: 40%;
    }
}

/* ==========================================================================
   主推位：一笔画
   ========================================================================== */
.games-feature {
    padding: 14px 0 4px;
}
.gf-card {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(250px, .88fr);
    align-items: center;
    gap: 26px;
    padding: 26px 30px;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, .3);
    background:
        radial-gradient(520px 240px at 6% -10%, rgba(99, 102, 241, .18), transparent 62%),
        radial-gradient(420px 220px at 98% 112%, rgba(168, 85, 247, .16), transparent 60%),
        var(--c-bg-card);
    box-shadow: 0 20px 44px -34px rgba(79, 70, 229, .6);
}
.gf-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #4f46e5;
    background: rgba(99, 102, 241, .1);
    border: 1px solid rgba(99, 102, 241, .28);
    padding: 5px 12px;
    border-radius: 999px;
}
.gf-card h2 {
    margin: 12px 0 8px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--c-text);
}
.gf-desc {
    margin: 0;
    max-width: 560px;
    font-size: 14px;
    line-height: 1.85;
    color: var(--c-text-sub);
}
.gf-desc b {
    color: var(--c-text);
}
.gf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 18px;
    padding: 0;
    list-style: none;
}
.gf-tags li {
    font-size: 12px;
    font-weight: 600;
    color: #4f46e5;
    background: rgba(99, 102, 241, .08);
    border: 1px solid rgba(99, 102, 241, .22);
    border-radius: 999px;
    padding: 4px 11px;
}
.gf-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.gf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--c-text);
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: 11px;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.gf-btn:hover {
    transform: translateY(-1px);
    border-color: #6366f1;
    box-shadow: 0 10px 22px -16px rgba(99, 102, 241, .8);
}
.gf-btn.is-primary {
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
    box-shadow: 0 12px 24px -14px rgba(99, 102, 241, .95);
}
.gf-btn-arrow {
    transition: transform .16s ease;
}
.gf-btn.is-primary:hover .gf-btn-arrow {
    transform: translateX(3px);
}

.gf-preview {
    position: relative;
    display: grid;
    place-items: center;
}
.gf-board {
    width: 100%;
    max-width: 340px;
    height: auto;
    overflow: visible;
}
.gf-edges line {
    stroke: var(--c-border);
    stroke-width: 3;
    stroke-dasharray: 5 7;
    stroke-linecap: round;
}
.gf-path line {
    stroke: #6366f1;
    stroke-width: 4.5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(99, 102, 241, .5));
}
.gf-nodes circle {
    fill: var(--c-bg-card);
    stroke: #94a3b8;
    stroke-width: 2.4;
}
.gf-nodes circle.is-odd {
    fill: rgba(99, 102, 241, .14);
    stroke: #6366f1;
    stroke-width: 3;
}
.gf-dot {
    fill: #6366f1;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, .9));
    animation: gfDot 1.9s ease-in-out infinite;
}
@keyframes gfDot {
    0%, 100% { opacity: .55; }
    50% { opacity: 1; }
}
.gf-preview-chip {
    position: absolute;
    left: 4px;
    bottom: -2px;
    font-size: 11.5px;
    font-weight: 600;
    color: #4f46e5;
    background: var(--c-bg-card);
    border: 1px solid rgba(99, 102, 241, .25);
    border-radius: 999px;
    padding: 4px 10px;
}

/* ==========================================================================
   分类选项卡
   ========================================================================== */
.games-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
}
.games-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-sub);
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    cursor: pointer;
    transition: color .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.games-tab i {
    font-style: normal;
    font-size: 10.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(99, 102, 241, .1);
    color: inherit;
}
.games-tab:hover {
    color: #4f46e5;
    border-color: rgba(99, 102, 241, .5);
}
.games-tab.is-on {
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
    box-shadow: 0 10px 22px -16px rgba(99, 102, 241, .95);
}
.games-tab.is-on i {
    background: rgba(255, 255, 255, .24);
    color: #fff;
}
[data-games-panel][hidden] {
    display: none !important;
}

@media (max-width: 860px) {
    .gf-card {
        grid-template-columns: 1fr;
        padding: 22px 18px;
        gap: 18px;
    }
    .gf-card h2 {
        font-size: 22px;
    }
    .gf-board {
        max-width: 280px;
    }
    .gf-preview-chip {
        left: auto;
        right: 6px;
    }
}
[data-theme="dark"] .gf-card {
    box-shadow: 0 20px 44px -34px rgba(0, 0, 0, .8);
}
[data-theme="dark"] .gf-tags li,
[data-theme="dark"] .gf-badge {
    color: #c7d2fe;
    background: rgba(99, 102, 241, .16);
    border-color: rgba(99, 102, 241, .38);
}
[data-theme="dark"] .gf-nodes circle {
    stroke: #64748b;
}
