/* ==========================================================
   导航站 — 浅蓝清新主题 (Premium Light)
   设计要点: 浅蓝渐变 + 淡彩极光动态背景 + 玻璃白卡片 + 高级微交互
   ========================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: #ff6b35; }

:root {
    --primary: #2D8CF0;
    --primary-dark: #1976D2;
    --primary-light: #6BB6FF;
    --primary-soft: #b9d8ff;

    --bg-grad-top: #e6efff;
    --bg-grad-bot: #f5f8ff;
    --bg-base: #eaf2ff;

    --card: #ffffff;
    --card-soft: #f6faff;
    --text: #1f2937;
    --text-light: #6b7280;
    --text-faint: #9ca3af;
    --border: #e3ecff;
    --border-strong: #d4e3ff;

    --gold: #ffb400;
    --gold-deep: #f59e0b;
    --red: #e53935;

    --shadow-sm: 0 2px 8px rgba(60, 100, 200, 0.06);
    --shadow: 0 6px 20px rgba(60, 100, 200, 0.10);
    --shadow-hi: 0 14px 36px rgba(45, 140, 240, 0.20);

    --radius: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --glass-1: rgba(255,255,255,.72);
    --glass-2: rgba(255,255,255,.46);
    --line-soft: rgba(45,140,240,.18);
    --line-strong: rgba(45,140,240,.34);
}

html, body {
    background: linear-gradient(180deg, rgba(230,239,255,.32) 0%, rgba(245,248,255,.28) 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body { position: relative; }

/* =========================================================
   动态淡彩极光背景：飘移 + 微光粒子
   ========================================================= */

.bg-aurora {
    position: fixed;
    inset: -10%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 50% at 18% 22%, rgba(107, 182, 255, 0.40), transparent 60%),
        radial-gradient(55% 50% at 82% 28%, rgba(180, 150, 255, 0.32), transparent 60%),
        radial-gradient(60% 60% at 50% 92%, rgba(255, 175, 220, 0.22), transparent 60%),
        radial-gradient(45% 45% at 30% 80%, rgba(255, 220, 130, 0.18), transparent 60%);
    filter: blur(52px) saturate(1.15);
    animation: auroraDrift 16s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes auroraDrift {
    0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
    25%  { transform: translate(-2%, 2%) scale(1.05) rotate(8deg); }
    50%  { transform: translate(3%, -2%) scale(1.02) rotate(-6deg); }
    75%  { transform: translate(-1%, 3%) scale(1.07) rotate(4deg); }
    100% { transform: translate(2%, -1%) scale(1.03) rotate(-3deg); }
}

.bg-stars,
.bg-particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    background-image:
        radial-gradient(1.4px 1.4px at 12% 18%, rgba(45,140,240,.45), transparent 60%),
        radial-gradient(1px 1px at 38% 8%, rgba(124,77,255,.35), transparent 60%),
        radial-gradient(1.6px 1.6px at 64% 22%, rgba(45,140,240,.55), transparent 60%),
        radial-gradient(1px 1px at 84% 14%, rgba(255,180,220,.45), transparent 60%),
        radial-gradient(1.2px 1.2px at 22% 42%, rgba(45,140,240,.35), transparent 60%),
        radial-gradient(1.6px 1.6px at 76% 48%, rgba(124,77,255,.4), transparent 60%),
        radial-gradient(1px 1px at 8% 62%, rgba(45,140,240,.3), transparent 60%),
        radial-gradient(1.3px 1.3px at 48% 70%, rgba(255,180,220,.4), transparent 60%),
        radial-gradient(1.6px 1.6px at 90% 78%, rgba(45,140,240,.45), transparent 60%),
        radial-gradient(1px 1px at 28% 88%, rgba(124,77,255,.35), transparent 60%),
        radial-gradient(1.2px 1.2px at 68% 92%, rgba(45,140,240,.4), transparent 60%);
    opacity: .88;
    animation: starsTwinkle 2.2s ease-in-out infinite alternate;
}

@keyframes starsTwinkle {
    0%   { opacity: .25; }
    100% { opacity: .65; }
}

/* 淡蓝科技感：动态线网（和粒子层叠） */
.bg-stars::before,
.bg-stars::after {
    content: "";
    position: absolute;
    inset: -25% -20%;
    pointer-events: none;
}
.bg-stars::before {
    background-image:
        linear-gradient(60deg, transparent 48.2%, rgba(79, 169, 255, 0.30) 50%, transparent 51.8%),
        linear-gradient(-30deg, transparent 48.2%, rgba(79, 169, 255, 0.22) 50%, transparent 51.8%),
        linear-gradient(20deg, transparent 48.7%, rgba(120, 205, 255, 0.18) 50%, transparent 51.3%);
    background-size: 170px 170px, 210px 210px, 250px 250px;
    opacity: .9;
    animation: techLinesDrift 6s linear infinite;
}
.bg-stars::after {
    background:
        radial-gradient(circle at 10% 20%, rgba(155, 220, 255, 0.62) 0 2.2px, transparent 3.2px),
        radial-gradient(circle at 36% 44%, rgba(155, 220, 255, 0.52) 0 1.7px, transparent 2.7px),
        radial-gradient(circle at 64% 68%, rgba(155, 220, 255, 0.58) 0 2.2px, transparent 3.2px),
        radial-gradient(circle at 84% 32%, rgba(155, 220, 255, 0.50) 0 1.9px, transparent 2.9px),
        radial-gradient(circle at 54% 18%, rgba(155, 220, 255, 0.45) 0 1.6px, transparent 2.6px),
        radial-gradient(circle at 22% 72%, rgba(155, 220, 255, 0.48) 0 1.8px, transparent 2.8px);
    opacity: .85;
    animation: techNodesFloat 4.2s ease-in-out infinite alternate;
}
@keyframes techLinesDrift {
    0%   { transform: translate3d(-8%, -4%, 0) scale(1.00); }
    50%  { transform: translate3d(3%, 2%, 0) scale(1.03); }
    100% { transform: translate3d(12%, 6%, 0) scale(1.06); }
}
@keyframes techNodesFloat {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-4%, 4%, 0) scale(1.06); }
}

.bg-veil {
    position: fixed;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255,255,255, 0.04) 0%, transparent 18%, transparent 82%, rgba(255,255,255, 0.06) 100%);
}

/* ======== 科技感 流光扫线（横向 + 斜向） ======== */
.bg-beams {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}
.bg-beams::before,
.bg-beams::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 1px;
    left: -50%;
    background: linear-gradient(90deg, transparent 0%, rgba(45,140,240,0) 30%, rgba(107,182,255,.55) 50%, rgba(45,140,240,0) 70%, transparent 100%);
    filter: blur(0.4px);
    animation: beamSweep 9s linear infinite;
}
.bg-beams::before { top: 22%; transform: rotate(-2deg); animation-delay: 0s; }
.bg-beams::after  { top: 68%; transform: rotate(1.5deg); animation-delay: 4.5s; opacity: .6; }
@keyframes beamSweep {
    0%   { transform: translateX(-30%) rotate(-2deg); opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateX(30%) rotate(-2deg); opacity: 0; }
}

/* 网格底纹 — 微弱不抢戏 */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(45,140,240,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45,140,240,.05) 1px, transparent 1px);
    background-size: 38px 38px;
    opacity: .72;
    animation: gridPulse 2.8s ease-in-out infinite alternate;
}
@keyframes gridPulse {
    0%   { opacity: .35; }
    100% { opacity: .72; }
}

/* 额外流动线层：背景持续“跑起来” */
.bg-grid::before {
    content: "";
    position: absolute;
    inset: -20%;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            120deg,
            rgba(98, 191, 255, 0) 0 28px,
            rgba(98, 191, 255, .22) 28px 30px,
            rgba(98, 191, 255, 0) 30px 58px
        );
    mix-blend-mode: screen;
    opacity: .75;
    animation: flowLineMove 5s linear infinite;
}
@keyframes flowLineMove {
    0%   { transform: translate3d(-10%, -8%, 0); }
    100% { transform: translate3d(10%, 8%, 0); }
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }
::selection { background: rgba(45, 140, 240, .25); }

.no-image-save {
    -webkit-user-select: none;
    user-select: none;
    pointer-events: auto;
    -webkit-user-drag: none;
}

/* =========================================================
   主容器 — 移动端铺满 / 桌面端居中
   ========================================================= */
.app-shell {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 10px 12px calc(100px + env(safe-area-inset-bottom));
    position: relative;
    z-index: 10;
}

/* =========================================================
   滚动入场动画
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   品牌徽章栏 — 透明蓝玻璃
   ========================================================= */
.brand-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 4px 12px;
    flex-wrap: wrap;
}
.brand-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(45,140,240,0.78) 0%, rgba(25,118,210,0.85) 100%);
    color: #fff;
    padding: 6px 16px 6px 8px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    border: 1px solid rgba(255,255,255,.45);
    box-shadow:
        0 6px 18px rgba(45,140,240,.30),
        inset 0 1px 0 rgba(255,255,255,.55),
        inset 0 -10px 14px rgba(25,118,210,.22);
    transition: transform .25s, box-shadow .25s, background .25s;
    cursor: pointer;
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    overflow: hidden;
    isolation: isolate;
}
.brand-pill::before {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-22deg);
    transition: left .9s cubic-bezier(.2,.7,.2,1);
    pointer-events: none;
}
.brand-pill:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 26px rgba(45,140,240,.42),
        inset 0 1px 0 rgba(255,255,255,.65),
        0 0 22px rgba(107,182,255,.45);
}
.brand-pill:hover::before { left: 130%; }
.brand-pill .pill-logo {
    width: 28px; height: 28px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #1d2a4d;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255,255,255,.35), 0 2px 6px rgba(0,0,0,.18);
}
.brand-pill .pill-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-pill .pill-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-pill .pill-text .pill-sub { font-size: 10px; opacity: .85; font-weight: 500; letter-spacing: 1.2px; }

/* =========================================================
   Hero 横幅
   ========================================================= */
.hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #2a1a6c 0%, #4a25a8 35%, #ff5db1 100%);
    box-shadow: 0 12px 32px rgba(60, 40, 140, .25), 0 0 0 1px rgba(255,255,255,.4);
    isolation: isolate;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(80% 60% at 50% 20%, rgba(255,255,255,.18), transparent 60%);
    z-index: 2;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
    z-index: 3;
}
.hero-carousel {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity .8s ease, transform 6s ease;
    cursor: pointer;
}
.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
    animation: kenBurns 12s ease-in-out infinite alternate;
}
@keyframes kenBurns {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.08) translate(-1.5%, -1%); }
}
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }

.hero-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fff; text-align: center; padding: 24px;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(255,255,255,.18), transparent 60%),
        linear-gradient(135deg, #2a1a6c 0%, #4a25a8 35%, #ff5db1 100%);
}
.hero-placeholder .crown {
    width: 86px; height: 86px;
    background: linear-gradient(135deg, #fff7c0, var(--gold) 50%, var(--gold-deep));
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    color: #2a1500; font-weight: 900; font-size: 22px;
    margin-bottom: 12px; letter-spacing: 1px;
    box-shadow: 0 10px 24px rgba(255,180,0,.45), inset 0 -3px 6px rgba(122,70,0,.4);
}
.hero-placeholder .crown small { display:block; font-size: 9px; letter-spacing: 2px; margin-top: 2px;}
.hero-placeholder h1 {
    font-size: clamp(26px, 5vw, 40px);
    font-weight: 900;
    background: linear-gradient(180deg, #fff8d8 0%, var(--gold) 50%, var(--gold-deep) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: initial;
    background-clip: text;
    letter-spacing: 2px;
    line-height: 1.1;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}
.hero-placeholder .hero-tag {
    margin-top: 10px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.30);
    backdrop-filter: blur(4px);
    padding: 4px 16px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    color: #fff;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.40);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    z-index: 5;
    transition: background .2s, transform .2s;
}
.hero-arrow:hover { background: rgba(255,255,255,.32); transform: translateY(-50%) scale(1.06); }
.hero-arrow.prev { left: 10px; }
.hero-arrow.next { right: 10px; }

.hero-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 6px;
    z-index: 5;
}
.hero-dots span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    transition: background .25s, width .25s;
    cursor: pointer;
}
.hero-dots span.active {
    background: #fff;
    width: 22px;
    border-radius: var(--radius-pill);
    box-shadow: 0 0 10px rgba(255,255,255,.6);
}

@media (max-width: 480px) {
    .hero-arrow { width: 30px; height: 30px; font-size: 16px; }
}

/* =========================================================
   跑马灯 — LIVE 直播台风格
   ========================================================= */
.marquee-bar {
    position: relative;
    margin-top: 14px;
    background:
        linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(245,249,255,.92) 100%);
    border: 1px solid rgba(45,140,240,.22);
    border-radius: var(--radius);
    padding: 10px 14px 10px 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 14px rgba(45,140,240,.10), inset 0 1px 0 rgba(255,255,255,.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    isolation: isolate;
}
/* 顶部一条彩色高光线 */
.marquee-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45,140,240,.55) 30%, rgba(255,107,53,.55) 70%, transparent);
    opacity: .9;
}
/* 内层呼吸光晕 */
.marquee-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 100% at 0% 50%, rgba(45,140,240,.10), transparent 50%);
    pointer-events: none;
    animation: marqueeGlow 4s ease-in-out infinite alternate;
}
@keyframes marqueeGlow {
    0%   { opacity: .55; }
    100% { opacity: 1; }
}

/* LIVE 红点 + 文案 */
.marquee-bar .live-dot {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #ff5252, #d32f2f);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 3px 8px 3px 18px;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 6px rgba(229,57,53,.45), inset 0 1px 0 rgba(255,255,255,.35);
    position: relative;
}
.marquee-bar .live-dot::before {
    content: '';
    position: absolute;
    left: 7px; top: 50%;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #fff;
    transform: translateY(-50%);
    box-shadow: 0 0 0 0 rgba(255,255,255,.7);
    animation: liveBlink 1.2s ease-in-out infinite;
}
@keyframes liveBlink {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.85); opacity: 1; }
    50%      { box-shadow: 0 0 0 6px rgba(255,255,255,0);  opacity: .55; }
}

.marquee-bar .megaphone {
    flex-shrink: 0;
    color: var(--primary);
    font-size: 15px;
    filter: drop-shadow(0 0 6px rgba(45,140,240,.5));
    animation: hornPulse 1.6s ease-in-out infinite;
}
@keyframes hornPulse {
    0%, 100% { transform: rotate(-8deg) scale(1); }
    50%      { transform: rotate(8deg) scale(1.08); }
}

.marquee-track {
    flex: 1;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .8px;
    color: #ff6b35;
    background: none;
    -webkit-text-fill-color: initial;
}
@keyframes marqueeColor {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
.marquee-inner {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    width: max-content;
    animation: marqueeLoop 16s linear infinite;
    will-change: transform;
}
.marquee-item {
    display: inline-block;
    padding-right: 64px;
}
@keyframes marqueeLoop {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 32px)); }
}
.marquee-bar:hover .marquee-inner { animation-play-state: paused; }

/* =========================================================
   快捷按钮 — 蓝色渐变 + 高光扫光
   ========================================================= */
.quick-buttons {
    margin-top: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    gap: 10px;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}
.quick-btn {
    position: relative;
    flex: 1;
    max-width: 150px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    box-shadow: 0 6px 16px rgba(45, 140, 240, .35), inset 0 1px 0 rgba(255,255,255,.35);
    overflow: hidden;
    transition: transform .15s, box-shadow .25s;
    cursor: pointer;
}
.quick-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,.24);
    pointer-events: none;
}
.quick-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-22deg);
    transition: left .8s cubic-bezier(.2,.7,.2,1);
}
.quick-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(45,140,240,.45), inset 0 1px 0 rgba(255,255,255,.35); }
.quick-btn:hover::after { left: 130%; }
.quick-btn:active { transform: scale(0.97); }

/* =========================================================
   区块标题 — 流光下划线 + 左右装饰菱形 + 标题呼吸光
   ========================================================= */
.section { margin-top: 26px; }
.section-title {
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: #18243a;
    letter-spacing: 2px;
    position: relative;
    padding: 14px 0 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

/* 轻量分组卡片：提升层次，不增加动画负担 */
.section .card-grid {
    background: linear-gradient(180deg, var(--glass-1) 0%, var(--glass-2) 100%);
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    padding: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 8px 18px rgba(45,140,240,.08);
}
/* 标题文字本身：背景流光 + 极淡呼吸 */
.section-title .title-text {
    position: relative;
    background: linear-gradient(100deg, #18243a 0%, #2D8CF0 50%, #18243a 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: initial;
    color: #ff6b35;
    animation: titleHueShift 6s linear infinite;
    text-shadow: 0 1px 0 rgba(255,255,255,.55), 0 6px 14px rgba(45,140,240,.12);
    filter: drop-shadow(0 0 0 transparent);
}
@keyframes titleHueShift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 220% 50%; }
}

/* 左右两条装饰短线（中间一颗菱形） */
.section-title .deco {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 70px;
    height: 12px;
    position: relative;
}
.section-title .deco::before {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45,140,240,.55));
}
.section-title .deco::after {
    content: '';
    width: 6px; height: 6px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: rotate(45deg);
    box-shadow: 0 0 8px rgba(45,140,240,.55);
    flex-shrink: 0;
    animation: decoBlink 2.4s ease-in-out infinite;
}
.section-title .deco.right { flex-direction: row-reverse; }
.section-title .deco.right::before {
    background: linear-gradient(90deg, rgba(45,140,240,.55), transparent);
}
@keyframes decoBlink {
    0%, 100% { opacity: 1;   transform: rotate(45deg) scale(1); }
    50%      { opacity: .55; transform: rotate(45deg) scale(.85); }
}

/* 下划线：双层 + 扫光 */
.section-title::before,
.section-title::after {
    position: absolute;
    bottom: 4px;
    left: 50%;
    border-radius: 2px;
    transform: translateX(-50%);
    content: '';
    pointer-events: none;
}
.section-title::before {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary) 35%, var(--primary-light) 50%, var(--primary) 65%, transparent);
    box-shadow: 0 0 14px rgba(45,140,240,.6);
}
/* 真正的扫光小条 — 在下划线上来回滑 */
.section-title::after {
    width: 30px;
    height: 3px;
    bottom: 3px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    box-shadow: 0 0 14px #fff, 0 0 22px var(--primary-light);
    border-radius: 4px;
    animation: titleSweep 3.8s cubic-bezier(.5,0,.5,1) infinite;
    opacity: .9;
    mix-blend-mode: screen;
}
@keyframes titleSweep {
    0%   { transform: translateX(-90px); opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateX(60px);  opacity: 0; }
}

/* =========================================================
   游戏卡片 — 白色 + 玻璃高光 + 蓝色文字
   ========================================================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.game-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 6px 16px rgba(45,140,240,.12);
    transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
}
.game-card::before {
    content: '';
    position: absolute;
    top: 0; left: 14%; right: 14%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108,184,255,.55), transparent);
    pointer-events: none;
}
.game-card::after {
    content: '';
    position: absolute;
    top: -40%; left: -20%;
    width: 100%; height: 100%;
    background: radial-gradient(closest-side, rgba(45,140,240,.16), transparent 70%);
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity .35s;
}
.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: 0 10px 22px rgba(45,140,240,.16);
}
.game-card:hover::after { opacity: 1; }
.game-card:active { transform: translateY(-1px) scale(0.99); }

.game-card-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.game-card-logo {
    width: 58px; height: 58px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #d6e6ff, #f3e6ff);
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 3px 8px rgba(60,100,200,.15);
    display: flex; align-items: center; justify-content: center;
}
.game-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.game-card-logo .placeholder {
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 14px;
}

.game-card-info {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
    display: grid;
    grid-template-rows: 20px 32px 18px;
    row-gap: 2px;
}
.game-card-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
    /* 通用流光机制 — 仅设变量，每种颜色提供 --grad */
    background: var(--grad, linear-gradient(100deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%));
    background-size: 200% 100%;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: initial;
    color: #ff6b35;
    animation: titleShine 6s linear infinite;
    min-height: 20px;
    text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
@keyframes titleShine {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* —— 多色调色板（后台可选） —— */
.game-card-title.color-red    { --grad: linear-gradient(100deg, #ff3b30 0%, #ff6b35 25%, #ffb400 50%, #ff6b35 75%, #ff3b30 100%); filter: drop-shadow(0 1px 2px rgba(255,90,40,.30)); animation-duration: 4s; }
.game-card-title.color-blue   { --grad: linear-gradient(100deg, #1976D2 0%, #2D8CF0 50%, #1976D2 100%); filter: drop-shadow(0 1px 2px rgba(45,140,240,.30)); }
.game-card-title.color-gold   { --grad: linear-gradient(100deg, #d97706 0%, #fbbf24 30%, #fff7c0 50%, #fbbf24 70%, #d97706 100%); filter: drop-shadow(0 1px 2px rgba(217,119,6,.35)); animation-duration: 4s; }
.game-card-title.color-purple { --grad: linear-gradient(100deg, #6d28d9 0%, #a855f7 50%, #6d28d9 100%); filter: drop-shadow(0 1px 2px rgba(124,58,237,.30)); }
.game-card-title.color-green  { --grad: linear-gradient(100deg, #059669 0%, #10b981 50%, #059669 100%); filter: drop-shadow(0 1px 2px rgba(16,185,129,.30)); }
.game-card-title.color-orange { --grad: linear-gradient(100deg, #ea580c 0%, #fb923c 50%, #ea580c 100%); filter: drop-shadow(0 1px 2px rgba(249,115,22,.30)); }
.game-card-title.color-pink   { --grad: linear-gradient(100deg, #db2777 0%, #f472b6 50%, #db2777 100%); filter: drop-shadow(0 1px 2px rgba(219,39,119,.30)); }
.game-card-title.color-cyan   { --grad: linear-gradient(100deg, #0891b2 0%, #22d3ee 50%, #0891b2 100%); filter: drop-shadow(0 1px 2px rgba(8,145,178,.30)); }
.game-card-tag {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 32px;
    line-height: 16px;
    word-break: break-all;
    overflow-wrap: anywhere;
    text-overflow: clip;
}
.game-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-light);
    min-height: 18px;
    line-height: 18px;
    width: 100%;
}
.stars {
    color: var(--gold);
    letter-spacing: 1.5px;
    font-size: 13px;
    filter: drop-shadow(0 0 3px rgba(255,180,0,.4));
    flex-shrink: 0;
    white-space: nowrap;
}

.game-card-rating span:last-child {
    white-space: nowrap;
    text-align: right;
    min-width: 52px;
    margin-left: auto;
}

.game-card-btn {
    position: relative;
    width: 100%;
    padding: 10px 12px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 14px rgba(45,140,240,.30), inset 0 1px 0 rgba(255,255,255,.38);
    transition: transform .15s, box-shadow .25s;
    margin-top: auto;
    overflow: hidden;
}
.game-card-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,.22);
}
.game-card-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-22deg);
    transition: left .9s cubic-bezier(.2,.7,.2,1);
    pointer-events: none;
}
.game-card-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(45,140,240,.45), inset 0 1px 0 rgba(255,255,255,.35); }
.game-card-btn:hover::after { left: 130%; }
.game-card-btn:active { transform: scale(0.97); }

.empty-cell {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-light);
    padding: 40px 0;
}

/* =========================================================
   底部
   ========================================================= */
.site-footer {
    margin-top: 36px;
    text-align: center;
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.9;
    padding: 22px 0 30px;
    position: relative;
    text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60%; max-width: 320px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45,140,240,.35), transparent);
}
.site-footer .foot-line { display: block; }
.site-footer .copyright { margin-top: 8px; opacity: .6; letter-spacing: 1px; }
.site-footer .footer-emoji { color: var(--primary); margin: 0 4px; opacity: .65; }

/* =========================================================
   浮动客服按钮 — 蓝渐变 + 多层脉冲圈
   ========================================================= */
.chat-float-btn {
    position: fixed;
    right: 18px;
    bottom: 90px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    box-shadow: 0 10px 26px rgba(45, 140, 240, .55), 0 0 0 1px rgba(255,255,255,.35);
    z-index: 100;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    transition: transform .2s;
}
.chat-float-btn::before,
.chat-float-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    border: 2px solid rgba(45, 140, 240, .55);
    animation: chatPulse 2.4s ease-out infinite;
}
.chat-float-btn::after { animation-delay: 1.2s; border-color: rgba(107, 182, 255, .7); }
@keyframes chatPulse {
    0%   { transform: scale(1);   opacity: .9; }
    100% { transform: scale(1.7); opacity: 0; }
}
.chat-float-btn:hover { transform: scale(1.06); }
.chat-float-btn:active { transform: scale(0.94); }
.chat-float-btn .chat-badge {
    position: absolute;
    top: -2px; right: -2px;
    background: var(--red);
    color: #fff;
    border-radius: var(--radius-pill);
    font-size: 10px;
    padding: 0 6px;
    height: 18px; line-height: 18px;
    min-width: 18px;
    text-align: center;
    font-weight: 700;
    display: none;
    box-shadow: 0 2px 6px rgba(229,57,53,.35);
    z-index: 2;
}
.chat-float-btn .chat-badge.show { display: block; }

/* =========================================================
   客服聊天窗口
   ========================================================= */
.chat-window {
    position: fixed;
    right: 18px;
    bottom: 156px;
    width: 320px;
    max-width: calc(100vw - 36px);
    height: 440px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,.18);
    display: none;
    flex-direction: column;
    z-index: 200;
    overflow: hidden;
}
.chat-window.active {
    display: flex;
    animation: popIn .25s ease;
}
.chat-header {
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-close { color: #fff; font-size: 22px; line-height: 1; }
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: #f7faff;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(45,140,240,.25); border-radius: 4px; }
.chat-welcome { text-align: center; color: var(--text-light); padding: 30px 0; }
.chat-welcome-icon { font-size: 36px; margin-bottom: 8px; filter: drop-shadow(0 0 8px rgba(45,140,240,.35)); }
.chat-msg { margin-bottom: 12px; max-width: 80%; }
.chat-msg.user { margin-left: auto; }
.chat-msg-bubble {
    padding: 9px 13px;
    border-radius: 14px;
    font-size: 13px;
    word-break: break-word;
    line-height: 1.55;
}
.chat-msg.user .chat-msg-bubble {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    box-shadow: 0 4px 10px rgba(45,140,240,.35);
}
.chat-msg.admin .chat-msg-bubble {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}
.chat-msg-time { font-size: 10px; color: var(--text-faint); margin-top: 4px; text-align: right; }
.chat-msg.admin .chat-msg-time { text-align: left; }
.chat-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--border);
    gap: 8px;
    background: #fff;
}
.chat-input {
    flex: 1;
    background: #f6faff;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 9px 14px;
    font-size: 13px;
    color: var(--text);
    outline: none;
    transition: border-color .2s, background .2s;
}
.chat-input:focus { border-color: var(--primary); background: #fff; }
.chat-send {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    border-radius: var(--radius-pill);
    padding: 0 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(45,140,240,.3);
}

/* =========================================================
   公告弹窗
   ========================================================= */
.announcement-popup {
    position: fixed;
    inset: 0;
    background: rgba(20, 30, 60, 0.50);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.announcement-popup.active { display: flex; }
.announcement-box {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 360px;
    overflow: hidden;
    animation: popIn .3s ease;
    box-shadow: 0 30px 60px rgba(0,0,0,.30), 0 0 0 1px rgba(45,140,240,.15);
}
@keyframes popIn { from { opacity:0; transform: scale(0.92);} to { opacity: 1; transform: scale(1);} }
.announcement-box-header {
    padding: 22px 18px 8px;
    text-align: center;
}
.announcement-box-logo {
    width: 64px; height: 64px;
    border-radius: 50%;
    margin: 0 auto 10px;
    overflow: hidden;
    background: var(--bg-base);
    box-shadow: 0 4px 12px rgba(45,140,240,.18);
}
.announcement-box-logo img { width: 100%; height: 100%; object-fit: cover; }
.announcement-box-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: 1px;
}
.announcement-box-body {
    padding: 8px 22px 16px;
    color: #444;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-line;
    text-align: center;
}
.announcement-box-date {
    text-align: center;
    color: var(--text-faint);
    font-size: 12px;
    padding-bottom: 16px;
}
.announcement-box-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    font-weight: 700;
    letter-spacing: 4px;
}

/* =========================================================
   Toast
   ========================================================= */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(20, 30, 60, 0.92);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    z-index: 1000;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.toast.show { opacity: 1; }

/* =========================================================
   联系客服区
   ========================================================= */
.contact-page { padding: 16px 0; }
.contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
}
.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hi);
}
.contact-row {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px;
}
.contact-icon-wrap {
    width: 46px; height: 46px;
    background: linear-gradient(135deg, rgba(45,140,240,.15), rgba(124,77,255,.15));
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 20px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.contact-name { font-size: 15px; font-weight: 700; color: var(--text); }
.contact-sub { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.contact-account-row {
    display: flex; align-items: center; justify-content: space-between;
    background: #f6faff;
    border: 1px dashed var(--border-strong);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text);
    letter-spacing: .5px;
    word-break: break-all;
    gap: 10px;
}
.copy-btn {
    background: rgba(45,140,240,.10);
    color: var(--primary);
    border: 1px solid rgba(45,140,240,.35);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    transition: background .2s;
}
.copy-btn:hover { background: rgba(45,140,240,.18); }
.contact-btn-row {
    display: flex; gap: 10px;
}
.contact-btn {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
    transition: transform .15s;
    cursor: pointer;
}
.contact-btn:active { transform: scale(0.97); }
.contact-btn.primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    box-shadow: 0 6px 14px rgba(45,140,240,.35);
}
.contact-btn.outline {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--border-strong);
}
.contact-btn.outline:hover { background: #f6faff; }

/* =========================================================
   📱 移动端 / 触屏增强
   - hover 效果只在真鼠标设备生效，避免点完留高亮
   - 兼容刘海屏底部安全区 (env(safe-area-inset-bottom))
   - 360px 以下小屏字号/间距收紧
   ========================================================= */

/* 触屏设备：取消 hover 抖动，避免点击后 transform 卡住 */
@media (hover: none) {
    .brand-pill:hover,
    .quick-btn:hover,
    .game-card:hover,
    .copy-btn:hover,
    .contact-btn.outline:hover,
    .chat-float-btn:hover { transform: none; background-color: initial; }

    .game-card:hover { box-shadow: var(--shadow-sm); }
}

/* 客服浮按 / 聊天窗 — iOS Home Bar 安全区 */
.chat-float-btn {
    bottom: calc(90px + env(safe-area-inset-bottom));
    right: calc(18px + env(safe-area-inset-right));
}
.chat-window {
    bottom: calc(156px + env(safe-area-inset-bottom));
    right: calc(18px + env(safe-area-inset-right));
}

/* ≤480px：常见手机宽度优化（铺满、不留白边） */
@media (max-width: 480px) {
    .app-shell { padding: 8px 8px calc(96px + env(safe-area-inset-bottom)); }
    .brand-bar { gap: 8px; padding: 8px 2px 10px; }
    .brand-pill { padding: 6px 12px 6px 6px; font-size: 12px; }
    .brand-pill .pill-logo { width: 24px; height: 24px; }
    .marquee-bar { padding: 9px 12px; gap: 10px; }
    .marquee-bar .live-dot { font-size: 9px; padding: 2px 7px 2px 16px; letter-spacing: 1px; }
    .marquee-track { font-size: 12px; letter-spacing: .5px; }
    .quick-buttons { padding: 12px; gap: 8px; }
    .quick-btn {
        max-width: none;
        letter-spacing: 1px;
        padding: 11px 6px;
        font-size: 13px;
    }
    .section-title { font-size: 16px; letter-spacing: 1.5px; padding: 14px 0 10px; }
    .game-card { padding: 12px; border-radius: 13px; }
    .game-card-title { font-size: 15px; }
    .chat-window { width: 100%; max-width: calc(100vw - 24px); height: 65vh; right: 12px; }
    .announcement-box { width: 92%; }
    .contact-card { padding: 14px; }
    .contact-icon { width: 38px; height: 38px; font-size: 18px; }
    .contact-name { font-size: 14px; }
    .contact-btn { font-size: 12px; padding: 9px; letter-spacing: .5px; }
}

/* ≤360px：极窄屏（iPhone SE 第一代/折叠机外屏等） */
@media (max-width: 360px) {
    .quick-btn { font-size: 12px; letter-spacing: .5px; padding: 10px 4px; }
    .quick-btn .icon-img { width: 18px; height: 18px; }
    .game-card-title { font-size: 14px; }
    .game-card-desc { font-size: 11px; }
    .contact-account-row { font-size: 12px; padding: 7px 10px; }
    .marquee-track { font-size: 11px; }
}

/* 触摸目标 ≥ 40px（A11y / 易点击） */
@media (max-width: 480px) {
    .copy-btn,
    .hero-arrow,
    .chat-close { min-height: 36px; min-width: 36px; }
}

/* iOS 横屏：避免标题被刘海遮挡 */
@supports (padding: max(0px)) {
    .app-shell {
        padding-left: max(14px, env(safe-area-inset-left));
        padding-right: max(14px, env(safe-area-inset-right));
    }
}

/* =========================================================
   移动端性能模式（自动启用）
   目标：保留科技感，明显降低手机掉帧和发热
   ========================================================= */
body.mobile-perf-lite .bg-aurora {
    filter: blur(24px) saturate(1.05);
    animation-duration: 22s;
    opacity: .55;
}
body.mobile-perf-lite .bg-stars,
body.mobile-perf-lite .bg-particles {
    animation-duration: 5s;
    opacity: .6;
}
body.mobile-perf-lite .bg-stars::before {
    display: block;
    opacity: .28;
    animation-duration: 18s;
}
body.mobile-perf-lite .bg-stars::after {
    animation-duration: 14s;
    opacity: .34;
}
body.mobile-perf-lite .bg-grid {
    animation: gridPulse 8s ease-in-out infinite alternate;
    opacity: .24;
}
body.mobile-perf-lite .bg-grid::before {
    display: block;
    opacity: .22;
    animation-duration: 14s;
}
body.mobile-perf-lite .bg-beams {
    display: block;
    opacity: .30;
}
body.mobile-perf-lite .brand-pill,
body.mobile-perf-lite .marquee-bar,
body.mobile-perf-lite .game-card,
body.mobile-perf-lite .quick-buttons {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body.mobile-perf-lite .game-card,
body.mobile-perf-lite .quick-btn,
body.mobile-perf-lite .game-card-btn,
body.mobile-perf-lite .chat-float-btn {
    box-shadow: var(--shadow-sm) !important;
}
body.mobile-perf-lite .section .card-grid {
    background: rgba(255,255,255,.55);
    border-color: rgba(45,140,240,.14);
}
body.mobile-perf-lite .section-title .title-text {
    -webkit-text-fill-color: initial;
    color: #ff6b35;
    background: linear-gradient(100deg, #1f63b5 0%, #2D8CF0 50%, #1f63b5 100%);
    background-size: 180% 100%;
    animation: titleHueShift 14s linear infinite !important;
    text-shadow: 0 1px 0 rgba(255,255,255,.45);
}
body.mobile-perf-lite .quick-btn,
body.mobile-perf-lite .game-card-btn {
    background: linear-gradient(135deg, #5aa7f7 0%, #2d8cf0 100%);
}
body.mobile-perf-lite .game-card-logo {
    box-shadow: 0 2px 6px rgba(45,140,240,.14);
}
body.mobile-perf-lite .game-card,
body.mobile-perf-lite .section .card-grid {
    box-shadow: none !important;
}
body.mobile-perf-lite .site-footer {
    color: #6583a9;
}
body.mobile-perf-lite .hero-slide.active {
    animation: none;
}
body.mobile-perf-lite .reveal,
body.mobile-perf-lite .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}
body.mobile-perf-lite .marquee-inner,
body.mobile-perf-lite .section-title::after {
    animation: none !important;
}
body.mobile-perf-lite .game-card-title {
    animation: titleShine 16s linear infinite !important;
}
body.mobile-perf-lite .marquee-track {
    -webkit-text-fill-color: initial;
    color: #2D8CF0;
    background: none;
}
body.mobile-perf-lite .marquee-inner {
    display: inline-block;
    padding-left: 24% !important;
    animation: marqueeLite 12s linear infinite !important;
    animation-play-state: running !important;
}
@keyframes marqueeLite {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
body.mobile-perf-lite .brand-pill::before,
body.mobile-perf-lite .quick-btn::after {
    display: none;
}
body.mobile-perf-lite .game-card-btn::after {
    display: block;
    opacity: .55;
}

/* 用户系统层面要求减少动画时，进一步降级 */
@media (prefers-reduced-motion: reduce) {
    .bg-aurora,
    .bg-stars,
    .bg-grid,
    .bg-beams::before,
    .bg-beams::after,
    .bg-stars::before,
    .bg-stars::after,
    .hero-slide.active,
    .marquee-inner {
        animation: none !important;
    }
}

/* =========================================================
   双端规范 v1（Desktop 精致 / Mobile 轻量）
   ========================================================= */
/* 统一容器与节奏 */
.app-shell {
    max-width: 920px;
}
.section {
    margin-top: 24px;
}
.card-grid {
    gap: 14px;
}

/* 统一卡片模块（两端保持同构） */
.game-card {
    min-height: 170px;
    border-radius: 14px;
}
.game-card-row {
    margin-bottom: 10px;
}
.game-card-logo {
    width: 54px;
    height: 54px;
}
.game-card-title {
    font-size: 18px;
}
.game-card-tag {
    font-size: 12px;
    line-height: 16px;
}
.game-card-rating {
    font-size: 12px;
}
.game-card-btn {
    height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Desktop：精致感增强（仅鼠标设备） */
@media (min-width: 768px) and (hover: hover) {
    .app-shell { padding-left: 16px; padding-right: 16px; }
    .card-grid { gap: 16px; }
    .game-card { min-height: 178px; }
    .game-card-title { font-size: 17px; }
    .game-card:hover { transform: translateY(-3px); }
}

/* Mobile：轻量但保持双列视觉一致 */
@media (max-width: 767px) {
    .app-shell {
        max-width: 100%;
        padding-top: 8px;
    }
    .section-title {
        margin-bottom: 12px;
        padding-top: 12px;
    }
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .section .card-grid {
        padding: 10px;
        border-radius: 14px;
    }
    .game-card {
        min-height: 160px;
        padding: 10px;
    }
    .game-card-logo {
        width: 46px;
        height: 46px;
    }
    .game-card-title {
        font-size: 15px;
        min-height: 18px;
    }
    .game-card-info {
        grid-template-rows: 18px 30px 18px;
    }
    .game-card-tag {
        font-size: 11px;
        line-height: 15px;
        min-height: 30px;
    }
    .stars {
        font-size: 11px;
        letter-spacing: 1px;
    }
    .game-card-rating {
        font-size: 11px;
        min-height: 16px;
        line-height: 16px;
    }
    .game-card-rating span:last-child {
        min-width: 46px;
    }
    .game-card-btn {
        height: 32px;
        font-size: 13px;
        letter-spacing: 1px;
    }
    .quick-buttons {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .quick-btn {
        max-width: none;
        min-height: 34px;
        padding: 0 6px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* =========================================================
   手机端精修 v2（更整齐、干净、大方）
   ========================================================= */
@media (max-width: 767px) {
    /* 页面呼吸感 */
    body {
        font-size: 13px;
        line-height: 1.45;
    }
    .app-shell {
        padding-left: 10px !important;
        padding-right: 10px !important;
        padding-bottom: calc(104px + env(safe-area-inset-bottom));
    }

    /* 顶部模块更清爽 */
    .brand-bar { padding: 6px 2px 10px; gap: 6px; }
    .brand-pill {
        padding: 5px 10px 5px 6px;
        font-size: 11px;
        box-shadow: 0 3px 10px rgba(45,140,240,.20);
    }
    .brand-pill .pill-sub { font-size: 9px; letter-spacing: .6px; }

    .hero {
        border-radius: 14px;
        box-shadow: 0 8px 20px rgba(60, 40, 140, .18), 0 0 0 1px rgba(255,255,255,.45);
    }

    .marquee-bar {
        margin-top: 10px;
        padding: 8px 10px;
        border-radius: 11px;
        gap: 8px;
    }
    .marquee-track { font-size: 12px; }

    /* 快捷按钮更规整 */
    .quick-buttons {
        margin-top: 10px;
        padding: 10px;
        border-radius: 12px;
    }
    .quick-btn {
        min-height: 32px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 700;
    }

    /* 标题区更“干净” */
    .section {
        margin-top: 18px;
    }
    .section-title {
        font-size: 17px;
        margin-bottom: 10px;
        padding: 10px 0 12px;
        gap: 8px;
    }
    .section-title .deco {
        width: 50px;
    }
    .section-title::before {
        width: 96px;
        opacity: .85;
    }

    /* 卡片区：整齐优先 */
    .section .card-grid {
        padding: 8px;
        border-radius: 13px;
        border-color: rgba(45,140,240,.12);
        background: rgba(255,255,255,.56);
    }
    .card-grid {
        gap: 8px;
    }
    .game-card {
        min-height: 154px;
        border-radius: 12px;
        padding: 9px;
        border-color: rgba(45,140,240,.15);
    }
    .game-card-row {
        gap: 8px;
        margin-bottom: 8px;
    }
    .game-card-logo {
        width: 42px;
        height: 42px;
        border-width: 1.5px;
    }
    .game-card-info {
        grid-template-rows: 18px 30px 16px;
        row-gap: 1px;
    }
    .game-card-title {
        font-size: 14px;
        min-height: 18px;
        letter-spacing: .2px;
    }
    .game-card-tag {
        font-size: 11px;
        line-height: 15px;
        min-height: 30px;
        color: #5f6f84;
    }
    .game-card-rating {
        margin-top: 2px;
        min-height: 16px;
        line-height: 16px;
    }
    .stars {
        font-size: 10px;
        letter-spacing: .8px;
    }
    .game-card-rating span:last-child {
        min-width: 44px;
        font-size: 11px;
        color: #607089;
    }
    .game-card-btn {
        height: 30px;
        font-size: 12px;
        letter-spacing: .8px;
        box-shadow: 0 4px 10px rgba(45,140,240,.24);
    }

    /* 浮动客服按钮避免遮挡内容 */
    .chat-float-btn {
        width: 50px;
        height: 50px;
        right: 12px;
        bottom: calc(84px + env(safe-area-inset-bottom));
    }
    .chat-window {
        right: 10px;
        max-width: calc(100vw - 20px);
    }

    /* 底部技术支持条更克制 */
    .site-footer {
        margin-top: 24px;
        padding: 16px 0 22px;
    }
}

/* =========================================================
   高级感恢复（手机端）
   ========================================================= */
@media (max-width: 767px) {
    .app-shell {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .section .card-grid {
        background: linear-gradient(180deg, rgba(255,255,255,.70) 0%, rgba(255,255,255,.48) 100%);
        border: 1px solid rgba(45,140,240,.18);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 10px 22px rgba(45,140,240,.10);
    }
    .game-card {
        border-color: rgba(45,140,240,.22);
        box-shadow: 0 8px 20px rgba(45,140,240,.16);
    }
    .game-card:hover {
        border-color: rgba(45,140,240,.40);
        box-shadow: 0 12px 24px rgba(45,140,240,.20);
    }
    .game-card-title {
        font-size: 15px;
        text-shadow: 0 1px 0 rgba(255,255,255,.35);
        animation: titleShine 9s linear infinite;
    }
    .quick-buttons {
        background: rgba(255,255,255,.86);
        border-color: rgba(45,140,240,.22);
        box-shadow: 0 8px 20px rgba(45,140,240,.12);
    }
    .quick-btn {
        box-shadow: 0 7px 16px rgba(45,140,240,.34), inset 0 1px 0 rgba(255,255,255,.35);
    }
    .quick-btn::after { display: block; }
    .game-card-btn {
        box-shadow: 0 7px 16px rgba(45,140,240,.34), inset 0 1px 0 rgba(255,255,255,.35);
    }
    .game-card-btn::after { display: block; opacity: .9; }
    .section-title .title-text {
        animation: titleHueShift 10s linear infinite;
    }
}

/* =========================================================
   移动端"重型降级"补丁（2026-05 性能修复）
   - 关掉全屏 filter:blur 动画层（手机 GPU 杀手）
   - 关掉 backdrop-filter（滑动时每帧重采样开销极大）
   - 离屏分类区块跳过渲染（content-visibility）
   说明：通过 body.mobile-perf-lite 类（main.js 自动加）
        以及 @media (max-width: 900px) 双重兜底
   ========================================================= */
body.mobile-perf-lite .bg-aurora,
body.mobile-perf-lite .bg-beams,
body.mobile-perf-lite .bg-stars::before,
body.mobile-perf-lite .bg-stars::after {
    display: none !important;
}
body.mobile-perf-lite .bg-stars {
    animation: none !important;
    opacity: .35 !important;
}
body.mobile-perf-lite .bg-grid {
    animation: none !important;
    opacity: .22 !important;
}

/* 关掉所有玻璃毛玻璃效果（滑动时是主要卡顿源） */
body.mobile-perf-lite .brand-pill,
body.mobile-perf-lite .marquee-bar,
body.mobile-perf-lite .hero-arrow,
body.mobile-perf-lite .announcement-popup,
body.mobile-perf-lite .announcement-box,
body.mobile-perf-lite .chat-window,
body.mobile-perf-lite .chat-header,
body.mobile-perf-lite .contact-card,
body.mobile-perf-lite .toast {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 离屏分类区块跳过渲染，长页面滑动顺很多 */
body.mobile-perf-lite .section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 600px;
}

/* JS 没来得及打类时的兜底（弱网首屏） */
@media (max-width: 900px) {
    .bg-aurora,
    .bg-beams,
    .bg-stars::before,
    .bg-stars::after {
        display: none !important;
    }
    .bg-stars {
        animation: none !important;
        opacity: .35 !important;
    }
    .bg-grid {
        animation: none !important;
        opacity: .22 !important;
    }
    .brand-pill,
    .marquee-bar,
    .hero-arrow,
    .announcement-popup,
    .announcement-box,
    .chat-window,
    .chat-header,
    .contact-card,
    .toast {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .section {
        content-visibility: auto;
        contain-intrinsic-size: 1px 600px;
    }
    /* hero kenBurns 不停放大缩小，移动端关掉 */
    .hero-slide.active img {
        animation: none !important;
    }
}
