/* ============================================================
   手游频道（与 index2 明亮风一致：public@head + nxheader + nxfooter）
   ============================================================ */

/* 变量：列表 + 详情共用；不改全局 a / .w1600，避免影响 nxheader、nxfooter */
body.mg-channel {
    --mg-bg: var(--nx-bg, #f5f6f8);
    --mg-surface: #fff;
    --mg-surface2: #fafbfc;
    --mg-line: var(--nx-line, #eef0f4);
    --mg-text: var(--nx-text, #1f2329);
    --mg-muted: var(--nx-text2, #646a73);
    --mg-accent: var(--nx-primary, #f76341);
    --mg-accent2: var(--nx-primary-dark, #e5522f);
    --mg-glow: rgba(247, 99, 65, .28);
}

body.mg-list {
    --mgl-radius: 12px;
    --mgl-radius-md: 10px;
    --mgl-radius-sm: 8px;
    --mgl-radius-xs: 6px;
    --mgl-shadow: 0 10px 32px rgba(31, 35, 41, .07);
    background: var(--mg-bg);
    color: var(--mg-text);
}

body.mg-channel:not(.mg-list) {
    background: var(--mg-bg);
    color: var(--mg-text);
}

/* ---------- 列表页（mg-list） ---------- */

/* Hero：深色流光（与「今日新服」mgl-open 同系），底缘渐隐接列表浅灰底 */
.mgl-hero {
    --mgl-hero-bg: #14161c;
    --mgl-hero-bg2: #1c1f28;
    --mgl-hero-text: #f4f6fa;
    --mgl-hero-muted: #d0d8e4;
    position: relative;
    padding: 44px 0 52px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    isolation: isolate;
    color: var(--mgl-hero-text);
    background: linear-gradient(
        128deg,
        #0f1116 0%,
        #1a1412 22%,
        #1a1f2e 48%,
        #241610 72%,
        #14161c 100%
    );
    background-size: 240% 240%;
    animation: mgl-hero-flow 20s ease-in-out infinite;
    will-change: background-position;
}
.mgl-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    z-index: 3;
    background: var(--nx-grad, linear-gradient(90deg, #f76341, #ff8a5c, #6584ff));
    opacity: .95;
}
.mgl-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.mgl-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 100% 26px;
    opacity: .5;
    pointer-events: none;
}
.mgl-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    will-change: transform;
}
.mgl-glow--1 {
    width: min(560px, 58vw);
    height: min(560px, 58vw);
    right: -8%;
    top: -58%;
    background: radial-gradient(circle, rgba(247, 99, 65, .62) 0%, rgba(247, 99, 65, .22) 42%, transparent 70%);
    animation: mgl-glow-a 13s ease-in-out infinite alternate;
}
.mgl-glow--2 {
    width: min(500px, 52vw);
    height: min(500px, 52vw);
    left: -14%;
    top: 10%;
    background: radial-gradient(circle, rgba(101, 132, 255, .5) 0%, rgba(101, 132, 255, .15) 45%, transparent 72%);
    animation: mgl-glow-b 17s ease-in-out infinite alternate;
}
.mgl-glow--3 {
    width: min(400px, 44vw);
    height: min(400px, 44vw);
    left: 36%;
    top: -42%;
    background: radial-gradient(circle, rgba(255, 138, 92, .45) 0%, rgba(229, 82, 47, .12) 48%, transparent 74%);
    animation: mgl-glow-c 15s ease-in-out infinite alternate;
}
.mgl-hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 96px;
    z-index: 1;
}
.mgl-hero-wave i {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    background-repeat: repeat-x;
    background-size: 1200px 100%;
    will-change: background-position;
}
.mgl-hero-wave__w1 {
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C150,110 350,10 600,60 C850,110 1050,10 1200,60 L1200,120 L0,120 Z' fill='%23f76341' fill-opacity='.28'/%3E%3C/svg%3E");
    animation: mgl-hero-wave-l 14s linear infinite;
}
.mgl-hero-wave__w2 {
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,70 C200,20 400,110 600,55 C800,0 1000,105 1200,65 L1200,120 L0,120 Z' fill='%236584ff' fill-opacity='.2'/%3E%3C/svg%3E");
    animation: mgl-hero-wave-r 20s linear infinite;
}
@keyframes mgl-hero-flow {
    0% { background-position: 0% 42%; }
    50% { background-position: 100% 58%; }
    100% { background-position: 0% 42%; }
}
@keyframes mgl-glow-a {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-48px, 36px, 0) scale(1.1); }
}
@keyframes mgl-glow-b {
    from { transform: translate3d(0, 0, 0) scale(1.04); }
    to { transform: translate3d(56px, -40px, 0) scale(.94); }
}
@keyframes mgl-glow-c {
    from { transform: translate3d(0, 0, 0) scale(.96); }
    to { transform: translate3d(-36px, 48px, 0) scale(1.08); }
}
@keyframes mgl-hero-wave-l {
    from { background-position-x: 0; }
    to { background-position-x: -1200px; }
}
@keyframes mgl-hero-wave-r {
    from { background-position-x: 0; }
    to { background-position-x: 1200px; }
}

@media (prefers-reduced-motion: reduce) {
    .mgl-hero { animation: none !important; }
    .mgl-glow,
    .mgl-hero-wave i { animation: none !important; }
}

.mgl-hero-in { position: relative; z-index: 4; }
.mgl-hero .mgl-title {
    color: var(--mgl-hero-text);
    text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.mgl-hero .mgl-lead {
    color: #ff9f7a;
    text-shadow: 0 1px 12px rgba(247, 99, 65, .35);
}
.mgl-hero .mgl-sub {
    color: var(--mgl-hero-muted);
    max-width: 520px;
}
.mgl-hero .mgl-eyebrow {
    color: #ffc9b5;
    background: rgba(255, 255, 255, .07);
    border-color: rgba(247, 99, 65, .45);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .25);
}
.mgl-hero .mgl-eyebrow::before {
    background: #ff8a5c;
    box-shadow: 0 0 0 4px rgba(247, 99, 65, .35);
}
.mgl-hero .mgl-search {
    background: rgba(255, 255, 255, .96);
    border-color: rgba(255, 255, 255, .2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}
.mgl-hero .mgl-search:focus-within {
    border-color: rgba(255, 138, 92, .55);
    box-shadow: 0 16px 48px rgba(247, 99, 65, .28), inset 0 1px 0 #fff;
}
.mgl-hero .mgl-metric {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
    backdrop-filter: blur(10px);
}
.mgl-hero .mgl-metric:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, .38);
    border-color: rgba(255, 138, 92, .25);
}
.mgl-hero .mgl-metric strong { color: #fff; }
.mgl-hero .mgl-metric--main strong { color: #ff8a5c; }
.mgl-hero .mgl-metric span,
.mgl-hero .mgl-metric--note span { color: var(--mgl-hero-muted); }
.mgl-hero .mgl-metrics-plats {
    background: rgba(255, 255, 255, .05);
    border: 1px dashed rgba(255, 255, 255, .14);
}
.mgl-hero .mgl-metric-mini { color: var(--mgl-hero-muted); }
.mgl-hero .mgl-metric-mini b { color: #fff; }

.mgl-hero-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}
.mgl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 5px 14px 5px 12px;
    border-radius: var(--mgl-radius-sm);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mg-accent);
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(247, 99, 65, .2);
    box-shadow: 0 4px 20px rgba(247, 99, 65, .12);
    backdrop-filter: blur(10px);
}
.mgl-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mg-accent);
    box-shadow: 0 0 0 4px rgba(247, 99, 65, .25);
    animation: mgl-pulse 2.2s ease-in-out infinite;
}
@keyframes mgl-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: .75; }
}
@media (prefers-reduced-motion: reduce) {
    .mgl-eyebrow::before { animation: none; }
}
.mgl-title {
    margin: 0;
    font-size: clamp(28px, 4.2vw, 44px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--mg-text);
}
.mgl-lead {
    margin: 8px 0 0;
    font-size: clamp(16px, 2.2vw, 20px);
    line-height: 1.4;
    font-weight: 700;
    color: var(--mg-accent);
    letter-spacing: .02em;
}
.mgl-sub {
    margin: 10px 0 0;
    max-width: 480px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--mg-muted);
}
.mgl-search {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    min-width: min(100%, 420px);
    max-width: 480px;
    padding: 6px 6px 6px 16px;
    border-radius: var(--mgl-radius-md);
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 8px 28px rgba(31, 35, 41, .07), inset 0 1px 0 rgba(255, 255, 255, .9);
    backdrop-filter: blur(14px);
    transition: box-shadow .25s, border-color .25s;
}
.mgl-search:focus-within {
    border-color: rgba(247, 99, 65, .35);
    box-shadow: 0 16px 40px rgba(247, 99, 65, .15), inset 0 1px 0 #fff;
}
.mgl-search-icon {
    flex: none;
    font-size: 18px;
    color: var(--nx-text3, #8f959e);
}
.mgl-search input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    font-size: 15px;
    color: var(--mg-text);
    outline: none;
}
.mgl-search input::placeholder { color: var(--nx-text3, #8f959e); }
.mgl-search button {
    flex: none;
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--mgl-radius-sm);
    background: var(--nx-grad, linear-gradient(135deg, #f76341, #ff8a5c));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.mgl-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.mgl-metric {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 12px 18px;
    border-radius: var(--mgl-radius-sm);
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .95);
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 20px rgba(31, 35, 41, .05);
    transition: transform .2s, box-shadow .2s;
}
.mgl-metric:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(31, 35, 41, .09);
}
.mgl-metric strong {
    font-size: 22px;
    font-weight: 800;
    color: var(--mg-text);
    line-height: 1;
}
.mgl-metric span { font-size: 13px; color: var(--mg-muted); }
.mgl-metric--main strong { color: var(--mg-accent); }
.mgl-metric--chip {
    padding: 10px 16px;
    background: linear-gradient(135deg, #fff1e9 0%, #fff 100%);
    border-color: rgba(247, 99, 65, .28);
}
.mgl-metric-chip {
    font-size: 14px;
    font-weight: 800;
    color: var(--mg-accent);
    letter-spacing: .02em;
}
.mgl-metric--note span {
    font-size: 14px;
    font-weight: 700;
    color: var(--mg-text);
}
.mgl-metrics-plats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    padding: 8px 14px;
    border-radius: var(--mgl-radius-sm);
    background: rgba(255, 255, 255, .55);
    border: 1px dashed rgba(31, 35, 41, .1);
}
.mgl-metric-mini {
    font-size: 12px;
    color: var(--mg-muted);
    white-space: nowrap;
}
.mgl-metric-mini b {
    font-size: 13px;
    font-weight: 700;
    color: var(--mg-text);
    margin-right: 2px;
}

.mgl-welfare-bar {
    margin: 0 auto;
    padding: 16px 0 4px;
}
.mgl-welfare-bar-in {
    margin: 0;
    padding: 14px 18px;
    border-radius: var(--mgl-radius-sm);
    font-size: 14px;
    line-height: 1.65;
    color: var(--mg-text);
    background: linear-gradient(135deg, #fff8f4 0%, #fff 55%, #f8faff 100%);
    border: 1px solid rgba(247, 99, 65, .18);
    box-shadow: 0 8px 24px rgba(31, 35, 41, .05);
}
.mgl-welfare-bar-tag {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 10px;
    border-radius: var(--mgl-radius-xs);
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--nx-grad, linear-gradient(135deg, #f76341, #ff8a5c));
    vertical-align: middle;
}
/* 开服预告：深色横滑区 */
.mgl-open {
    --mgl-open-bg: #16181f;
    --mgl-open-bg2: #1e222b;
    --mgl-open-line: rgba(255, 255, 255, .08);
    --mgl-open-text: #f4f6fa;
    --mgl-open-muted: #d0d8e4;
    margin-bottom: 24px;
    padding: 22px 20px 18px;
    border-radius: var(--mgl-radius);
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(247, 99, 65, .18) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 0% 100%, rgba(101, 132, 255, .12) 0%, transparent 50%),
        linear-gradient(165deg, var(--mgl-open-bg2) 0%, var(--mgl-open-bg) 100%);
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 16px 48px rgba(8, 10, 16, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
    position: relative;
    overflow: hidden;
}
.mgl-open::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    background: var(--nx-grad, linear-gradient(90deg, #f76341, #ff8a5c, #6584ff));
    opacity: .9;
}
.mgl-open::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 100% 24px;
    pointer-events: none;
    opacity: .35;
}
.mgl-open-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-top: 4px;
    position: relative;
    z-index: 1;
}
.mgl-open-kicker {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #ffb89a;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.mgl-open-kicker .layui-icon { font-size: 14px; color: #ff8a5c; }
.mgl-open-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--mgl-open-text);
    letter-spacing: -.02em;
}
.mgl-open-sub {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--mgl-open-muted);
}
.mgl-open-today {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--mgl-open-text);
    padding: 8px 14px;
    border-radius: var(--mgl-radius-sm);
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--mgl-open-line);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}
.mgl-open-viewport {
    position: relative;
    z-index: 1;
    padding: 0 4px 2px;
}
.mgl-open-viewport::before,
.mgl-open-viewport::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 22px;
    width: 36px;
    z-index: 3;
    pointer-events: none;
    opacity: .95;
}
.mgl-open-viewport::before {
    left: 0;
    background: linear-gradient(90deg, var(--mgl-open-bg) 15%, transparent);
}
.mgl-open-viewport::after {
    right: 0;
    background: linear-gradient(-90deg, var(--mgl-open-bg) 15%, transparent);
}
.mgl-open-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    transform: translateY(calc(-50% - 10px));
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    background: rgba(22, 24, 31, .92);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s, transform .2s, opacity .2s;
}
.mgl-open-nav[hidden] { display: none; }
.mgl-open-nav .layui-icon { font-size: 16px; }
.mgl-open-nav:hover {
    background: rgba(247, 99, 65, .9);
    border-color: rgba(255, 138, 92, .5);
}
.mgl-open-nav--prev { left: -6px; }
.mgl-open-nav--next { right: -6px; }
.mgl-open-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 8px 14px;
    margin: 0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #ff8a5c rgba(255, 255, 255, .08);
    position: relative;
    z-index: 1;
}
.mgl-open-rail:focus { outline: none; }
.mgl-open-rail:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(255, 138, 92, .45);
    border-radius: var(--mgl-radius-sm);
}
.mgl-open-rail::-webkit-scrollbar {
    height: 10px;
}
.mgl-open-rail::-webkit-scrollbar-track {
    margin: 0 12px;
    background: rgba(255, 255, 255, .06);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .05);
}
.mgl-open-rail::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(90deg, #f76341 0%, #ff8a5c 50%, #ff9f7a 100%);
    border: 2px solid rgba(22, 24, 31, .85);
    box-shadow: 0 0 12px rgba(247, 99, 65, .35);
}
.mgl-open-rail::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #ff8a5c 0%, #ffb07a 100%);
}
.mgl-open-rail::-webkit-scrollbar-corner {
    background: transparent;
}
body.mg-list .mgl-open-item {
    flex: 0 0 auto;
    width: min(320px, 82vw);
    display: grid;
    grid-template-columns: 72px 52px minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
    gap: 12px 14px;
    padding: 14px 16px;
    border-radius: var(--mgl-radius-md);
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--mgl-open-line);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
    backdrop-filter: blur(8px);
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
    transition: border-color .22s, box-shadow .22s, transform .22s, background .22s;
}
body.mg-list .mgl-open-item:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 138, 92, .45);
    box-shadow: 0 12px 32px rgba(247, 99, 65, .2);
    transform: translateY(-2px);
}
.mgl-open-time {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.2;
}
.mgl-open-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: var(--nx-grad, linear-gradient(135deg, #f76341, #ff8a5c));
    margin-bottom: 2px;
}
.mgl-open-day {
    font-size: 13px;
    font-weight: 800;
    color: rgba(255, 255, 255, .75);
}
.mgl-open-clock {
    font-size: 22px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #ff9f7a;
    letter-spacing: -.02em;
}
.mgl-open-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--mgl-radius-sm);
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .12);
}
.mgl-open-icon--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .08);
    color: var(--mgl-open-muted);
}
.mgl-open-icon--ph .layui-icon { font-size: 26px; }
.mgl-open-main { min-width: 0; }
.mgl-open-game {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--mgl-open-text);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mgl-open-srv {
    margin: 4px 0 8px;
    font-size: 12px;
    color: var(--mgl-open-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mgl-open-plats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.mgl-open-plat {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    color: var(--mgl-open-muted);
}
.mgl-open-plat[data-plat="Android"] { color: #6ee7a0; background: rgba(46, 157, 85, .22); }
.mgl-open-plat[data-plat="iOS"] { color: #93c5fd; background: rgba(37, 99, 235, .22); }
.mgl-open-plat[data-plat="H5"] { color: #fdba74; background: rgba(234, 88, 12, .22); }
.mgl-open-cta {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    border-radius: var(--mgl-radius-sm);
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: rgba(247, 99, 65, .35);
    border: 1px solid rgba(255, 138, 92, .4);
    white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
body.mg-list .mgl-open-item:hover .mgl-open-cta {
    color: #fff;
    background: var(--nx-grad, linear-gradient(135deg, #f76341, #ff8a5c));
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(247, 99, 65, .45);
}
.mgl-open-cta .layui-icon { font-size: 12px; }
@media (max-width: 520px) {
    body.mg-list .mgl-open-item {
        width: min(300px, 88vw);
        grid-template-columns: 64px 48px minmax(0, 1fr);
        grid-template-rows: auto auto;
    }
    .mgl-open-cta {
        grid-column: 1 / -1;
        justify-content: center;
        width: 100%;
    }
    .mgl-open-nav { display: none; }
    .mgl-open-viewport::before,
    .mgl-open-viewport::after { width: 20px; bottom: 18px; }
}

.mgl-body { padding: 28px 0 64px; }
.mgl-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.mgl-aside {
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mgl-filter-card {
    padding: 16px 14px;
    border-radius: var(--mgl-radius);
    background: #fff;
    border: 1px solid var(--mg-line);
    box-shadow: 0 1px 8px rgba(31, 35, 41, .04);
}
.mgl-filter-title {
    margin: 0 0 10px;
    padding: 0 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--mg-muted);
}
.mgl-nav { display: flex; flex-direction: column; gap: 4px; }
.mgl-nav--discount .mgl-nav-item em {
    min-width: 1.6em;
    text-align: center;
}
.mgl-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.mgl-nav-ico,
.mgl-tab-ico {
    flex-shrink: 0;
    display: block;
    width: 18px;
    height: 18px;
    color: var(--mg-muted);
    fill: currentColor;
    transition: color .18s;
}
.mgl-tab-ico {
    width: 16px;
    height: 16px;
}
.mgl-nav-item.is-active .mgl-nav-ico,
.mgl-nav-item:hover .mgl-nav-ico,
.mgl-tab.is-active .mgl-tab-ico,
.mgl-tab:hover .mgl-tab-ico {
    color: var(--mg-accent);
}
.mgl-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--mgl-radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--mg-text);
    transition: background .18s, color .18s, box-shadow .18s;
}
.mgl-nav-item em {
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    color: var(--mg-muted);
    padding: 2px 8px;
    border-radius: var(--mgl-radius-xs);
    background: #f3f5f8;
}
.mgl-nav-item:hover { background: #fff5f0; color: var(--mg-accent); }
.mgl-nav-item.is-active {
    background: linear-gradient(135deg, #fff1e9, #fff);
    color: var(--mg-accent);
    box-shadow: inset 0 0 0 1px rgba(247, 99, 65, .25);
}
.mgl-nav-item.is-active em {
    background: var(--mg-accent);
    color: #fff;
}
.mgl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mgl-tag {
    padding: 6px 11px;
    border-radius: var(--mgl-radius-xs);
    font-size: 13px;
    font-weight: 600;
    color: var(--mg-muted);
    background: #f3f5f8;
    border: 1px solid transparent;
    transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
}
.mgl-tag:hover {
    color: var(--mg-accent);
    background: #fff5f0;
    border-color: rgba(247, 99, 65, .15);
}
.mgl-tag.is-active {
    color: #fff;
    font-weight: 700;
    background: var(--nx-grad, linear-gradient(135deg, #f76341, #ff8a5c));
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(247, 99, 65, .22);
}
.mgl-tag.is-active:hover {
    color: #fff;
    background: var(--nx-grad, linear-gradient(135deg, #f76341, #ff8a5c));
    border-color: transparent;
}
body.mg-list a.mgl-tag.is-active,
body.mg-list a.mgl-tag.is-active:hover,
body.mg-list a.mgl-tag.is-active:focus {
    color: #fff;
}

.mgl-toolbar { display: none; }
.mgl-main { min-width: 0; }
.mgl-catalog-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.mgl-catalog-head h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 10px;
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--mg-text);
}
.mgl-catalog-note {
    font-size: 13px;
    font-weight: 600;
    color: var(--mg-muted);
}
.mgl-catalog-head span { font-size: 14px; color: var(--mg-muted); }
.mgl-catalog-head b { color: var(--mg-accent); font-size: 18px; }

.mgl-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
@media (max-width: 1440px) {
    .mgl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.mgl-item {
    min-width: 0;
    animation: mgl-card-in .5s ease both;
    animation-delay: calc(var(--mgl-i, 0) * 42ms);
}
.mgl-grid .mgl-item:nth-child(1) { --mgl-i: 0; }
.mgl-grid .mgl-item:nth-child(2) { --mgl-i: 1; }
.mgl-grid .mgl-item:nth-child(3) { --mgl-i: 2; }
.mgl-grid .mgl-item:nth-child(4) { --mgl-i: 3; }
.mgl-grid .mgl-item:nth-child(5) { --mgl-i: 4; }
.mgl-grid .mgl-item:nth-child(6) { --mgl-i: 5; }
.mgl-grid .mgl-item:nth-child(7) { --mgl-i: 6; }
.mgl-grid .mgl-item:nth-child(8) { --mgl-i: 7; }
.mgl-grid .mgl-item:nth-child(9) { --mgl-i: 8; }
.mgl-grid .mgl-item:nth-child(10) { --mgl-i: 9; }
.mgl-grid .mgl-item:nth-child(11) { --mgl-i: 10; }
.mgl-grid .mgl-item:nth-child(12) { --mgl-i: 11; }
.mgl-grid .mgl-item:nth-child(13) { --mgl-i: 12; }
.mgl-grid .mgl-item:nth-child(14) { --mgl-i: 13; }
.mgl-grid .mgl-item:nth-child(15) { --mgl-i: 14; }
.mgl-grid .mgl-item:nth-child(16) { --mgl-i: 15; }

@keyframes mgl-card-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

body.mg-list .mgl-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--mgl-radius);
    background: #fff;
    border: 1px solid var(--mg-line);
    overflow: hidden;
    color: var(--mg-text);
    text-decoration: none;
    box-shadow: 0 1px 6px rgba(31, 35, 41, .04);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}
body.mg-list .mgl-card:hover {
    transform: translateY(-4px);
    border-color: rgba(247, 99, 65, .22);
    box-shadow: var(--mgl-shadow);
}
.mgl-poster {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(110deg, #e8eaef 25%, #f8f9fb 40%, #e8eaef 55%);
    background-size: 220% 100%;
    animation: mgl-shimmer 2.2s ease-in-out infinite;
}
@keyframes mgl-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
.mgl-poster-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    transition: transform .45s cubic-bezier(.25, .8, .25, 1);
}
body.mg-list .mgl-card:hover .mgl-poster-img {
    transform: scale(1.06);
}
body.mg-list .mgl-card:hover .mgl-icon {
    transform: scale(1.04) rotate(-2deg);
}
.mgl-badge-ver,
.mgl-badge-warn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: var(--mgl-radius-xs);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}
.mgl-badge-ver {
    background: rgba(255, 255, 255, .92);
    color: var(--mg-accent);
    border: 1px solid rgba(255, 255, 255, .6);
}
.mgl-badge-warn {
    left: 12px;
    right: auto;
    background: rgba(229, 82, 47, .92);
    color: #fff;
}
.mgl-card-body {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.mgl-card-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}
.mgl-icon {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: var(--mgl-radius-sm);
    object-fit: cover;
    border: 1px solid var(--mg-line);
    box-shadow: 0 4px 12px rgba(31, 35, 41, .08);
    background: #fff;
    transition: transform .35s ease;
}
.mgl-titlebox {
    flex: 1;
    min-width: 0;
}
.mgl-name {
    margin: 0;
    font-size: 16px;
    line-height: 1.38;
    font-weight: 800;
    color: var(--mg-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .25s;
}
body.mg-list .mgl-card:hover .mgl-name {
    color: var(--mg-accent);
}
.mgl-size {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    padding: 4px 11px 4px 9px;
    border-radius: var(--mgl-radius-xs);
    font-size: 11px;
    font-weight: 700;
    color: #5c6370;
    background: linear-gradient(180deg, #fff 0%, #f3f5f8 100%);
    border: 1px solid var(--mg-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.mgl-size .layui-icon {
    font-size: 13px;
    color: var(--mg-accent);
}
.mgl-plats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.mgl-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}
.mgl-plat-ico {
    flex: none;
    width: 14px;
    height: 14px;
    margin-right: 2px;
    display: block;
}
.mgl-plat {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 10px 4px 8px;
    border-radius: var(--mgl-radius-xs);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    line-height: 1.2;
    border: 1px solid transparent;
    box-shadow: 0 2px 6px rgba(31, 35, 41, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}
body.mg-list .mgl-card:hover .mgl-plat {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(31, 35, 41, .1);
}
.mgl-plat[data-plat="Android"] .mgl-plat-ico { color: #2e9d55; }
.mgl-plat[data-plat="iOS"] .mgl-plat-ico { color: #2563eb; }
.mgl-plat[data-plat="H5"] .mgl-plat-ico { color: #ea580c; }

.mgl-plat[data-plat="Android"] {
    color: #1b7a3d;
    background: linear-gradient(180deg, #e8f8ee 0%, #d4f0de 100%);
    border-color: #9ed9b4;
}
.mgl-plat[data-plat="iOS"] {
    color: #1a56b8;
    background: linear-gradient(180deg, #eef4ff 0%, #dce8ff 100%);
    border-color: #a8c4f5;
}
.mgl-plat[data-plat="H5"] {
    color: #c2410c;
    background: linear-gradient(180deg, #fff4e8 0%, #ffe8d4 100%);
    border-color: #ffc9a3;
}
.mgl-plat:not([data-plat="Android"]):not([data-plat="iOS"]):not([data-plat="H5"]) {
    color: var(--mg-accent);
    background: #fff5f0;
    border-color: #ffd2c2;
}
.mgl-desc {
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--mg-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.mgl-desc-disc {
    font-weight: 800;
    color: var(--mg-accent);
    font-size: 13px;
}
.mgl-desc-sep {
    margin: 0 6px;
    color: #d0d5dd;
    font-weight: 400;
}
.mgl-desc-tail {
    color: var(--mg-muted);
}
.mgl-empty {
    text-align: center;
    padding: 72px 24px;
    border-radius: var(--mgl-radius);
    border: 1px dashed var(--mg-line);
    background: #fff;
    color: var(--mg-muted);
}
body.mg-list .mgl-empty a { color: var(--mg-accent); font-weight: 600; }
body.mg-list .mgl-nav-item,
body.mg-list .mgl-tab {
    text-decoration: none;
    color: inherit;
}
body.mg-list .mgl-tag {
    text-decoration: none;
}
body.mg-list .mgl-nav-item:focus-visible,
body.mg-list .mgl-tag:focus-visible,
body.mg-list .mgl-tab:focus-visible {
    outline: 2px solid rgba(247, 99, 65, .45);
    outline-offset: 2px;
}
.mgl-pager {
    margin: 36px 0 8px;
    text-align: center;
}
.mgl-pager ul,
.mgl-pager .pagination {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.mgl-pager .pagination > li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mgl-pager .pagination > li > a,
.mgl-pager .pagination > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--mgl-radius-sm);
    border: 1px solid var(--mg-line);
    background: #fff;
    color: var(--mg-muted);
    font-size: 14px;
    box-shadow: 0 1px 6px rgba(31, 35, 41, .04);
    transition: border-color .2s, color .2s, box-shadow .2s;
}
.mgl-pager .pagination > li > a:hover {
    border-color: #ffc9b5;
    color: var(--mg-accent);
    background: #fff8f4;
}
.mgl-pager .pagination > li.active > span,
.mgl-pager .pagination > li.active > a {
    border-color: transparent;
    background: var(--nx-grad, linear-gradient(135deg, #f76341, #ff8a5c));
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(247, 99, 65, .32);
}
.mgl-pager .pagination > li.disabled > span,
.mgl-pager .pagination > li.disabled > a {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
}
.mgl-pager .layui-laypage a,
.mgl-pager .layui-laypage span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--mg-line);
    background: #fff;
    margin: 0 2px;
}
.mgl-pager .layui-laypage-curr em {
    background: var(--mg-accent) !important;
    color: #fff !important;
    border-radius: 10px;
}
.mgl-pager .layui-laypage-curr .layui-laypage-em { background: var(--mg-accent) !important; }
.mgl-pager .layui-disabled { opacity: .35; pointer-events: none; }

/* ---------- 详情页：大气排版 · 深浅相接 · 图标分区 ---------- */
body.mg-detail {
    --mgp-hero-text: #f4f6fa;
    --mgp-hero-muted: #c8d0dc;
    --mgp-dark: #14161c;
    --mgp-dark2: #1c1f28;
    --mgp-radius: 16px;
    --mgp-shadow: 0 20px 50px rgba(15, 17, 22, .12), 0 4px 14px rgba(15, 17, 22, .06);
    background: var(--mg-bg);
    padding-bottom: 40px;
}
body.mg-detail .w1600 {
    box-sizing: border-box;
}
html:has(body.mg-detail),
body.mg-detail {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
@media (max-width: 960px) {
    body.mg-detail .w1600 {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        padding-left: 12px;
        padding-right: 12px;
    }
    body.mg-detail .mgp-realm__grid {
        width: 100%;
        min-width: 0;
    }
    body.mg-detail .mgp-main .mgp-panel--block {
        padding: 16px 12px 18px;
        border-radius: 12px;
        box-shadow: 0 6px 22px rgba(31, 35, 41, .06);
    }
    body.mg-detail .mgp-main .mgp-panel--shots {
        padding-bottom: 12px;
        overflow: hidden;
    }
    body.mg-detail .mgp-main .mgp-sec {
        gap: 10px;
        margin-bottom: 12px;
        align-items: flex-start;
    }
    body.mg-detail .mgp-main .mgp-sec h2 {
        font-size: 17px;
        line-height: 1.35;
    }
    body.mg-detail .mgp-main .mgp-sec p {
        font-size: 12px;
        line-height: 1.5;
    }
    body.mg-detail .mgp-main .mgp-sec__ico {
        width: 36px;
        height: 36px;
        padding: 8px;
        border-radius: 10px;
    }
    body.mg-detail .mgp-shots-wrap {
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    body.mg-detail .mgp-shots-hint {
        padding: 0 2px;
        font-size: 11px;
    }
    body.mg-detail .mgp-shots {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 4px 0 10px;
        gap: 10px;
    }
    body.mg-detail .mgp-shots__item {
        flex: 0 0 min(82vw, 280px);
    }
    body.mg-detail .mgp-shots__item img {
        width: 100%;
        height: auto;
        max-height: min(50vh, 400px);
        object-fit: contain;
        border-radius: 10px;
    }
    body.mg-detail .mgp-prose--rich {
        font-size: 14px;
        line-height: 1.75;
    }
    body.mg-detail .mgp-prose--welfare p {
        padding: 10px 10px 10px 15px;
        font-size: 13px;
        line-height: 1.65;
    }
    body.mg-detail .mgp-prose--intro p {
        text-align: left;
        font-size: 14px;
        line-height: 1.78;
    }
    body.mg-detail .mgp-prose--intro p:first-child {
        font-size: 14px;
        padding: 12px;
        line-height: 1.8;
    }
    body.mg-detail .mgp-prose--intro p + p {
        padding-left: 0;
        text-indent: 0;
    }
}
@media (min-width: 961px) {
    body.mg-detail .w1600 {
        width: auto !important;
        max-width: 1440px !important;
        margin-left: auto;
        margin-right: auto;
        padding-left: 24px;
        padding-right: 24px;
    }
}
.mgp {
    padding: 0;
}

.mgp-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--mg-muted);
}
.mgp-crumb a { color: var(--mg-muted); transition: color .2s; }
.mgp-crumb a:hover { color: var(--mg-accent); }
.mgp-crumb i {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin: 0 8px;
    opacity: .35;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23646a73' d='M9.29 6.71a1 1 0 0 0 0 1.41L13.17 12l-3.88 3.88a1 1 0 1 0 1.41 1.41l4.59-4.59a1 1 0 0 0 0-1.41L10.7 6.71a1 1 0 0 0-1.41 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mgp-crumb em { font-style: normal; font-weight: 600; color: var(--mg-text); }
.mgp-crumb--hero {
    grid-column: 1 / -1;
    margin: 0 0 20px;
    font-size: 13px;
    color: var(--mgp-hero-muted);
}
.mgp-crumb--hero a {
    color: var(--mgp-hero-muted);
}
.mgp-crumb--hero a:hover {
    color: #ff9d7a;
}
.mgp-crumb--hero em {
    color: var(--mgp-hero-text);
}
.mgp-crumb--hero i {
    opacity: .55;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c8d0dc' d='M9.29 6.71a1 1 0 0 0 0 1.41L13.17 12l-3.88 3.88a1 1 0 1 0 1.41 1.41l4.59-4.59a1 1 0 0 0 0-1.41L10.7 6.71a1 1 0 0 0-1.41 0z'/%3E%3C/svg%3E");
}

/* 深色主视觉 */
.mgp-hero {
    position: relative;
    margin: 0;
    padding: 28px 0 40px;
    overflow: visible;
    color: var(--mgp-hero-text);
    isolation: isolate;
    background: linear-gradient(128deg, #0f1116 0%, #1a1412 24%, #1a1f2e 50%, #241610 76%, #14161c 100%);
}
.mgp-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    z-index: 4;
    background: var(--nx-grad, linear-gradient(90deg, #f76341, #ff8a5c, #6584ff));
    opacity: .92;
}
.mgp-hero__ambient {
    position: relative;
    z-index: 2;
    overflow: hidden;
}
.mgp-hero__ambient-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 58% 70% at 88% 8%, rgba(247, 99, 65, .45), transparent 58%),
        radial-gradient(ellipse 50% 55% at 6% 42%, rgba(61, 220, 132, .22), transparent 62%),
        linear-gradient(128deg, #0f1116 0%, #1a1412 24%, #1a1f2e 50%, #241610 76%, #14161c 100%),
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: auto, auto, 220% 220%, 100% 28px;
    animation: mgl-hero-flow 22s ease-in-out infinite;
}
.mgp-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px 48px;
    align-items: center;
}
.mgp-hero__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 6px 14px 6px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: none;
    color: var(--mgp-hero-muted);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
}
.mgp-hero__brand .layui-icon { font-size: 14px; color: #ff8a5c; }
.mgp-hero__title {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -.03em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.mgp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 14px 0 0;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #ffe8df;
    background: linear-gradient(135deg, rgba(247, 99, 65, .35), rgba(255, 138, 92, .12));
    border: 1px solid rgba(255, 138, 92, .35);
    border-radius: 10px;
}
.mgp-hero__hook {
    margin: 12px 0 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
    color: #ff9d7a;
}
.mgp-hero__lead {
    margin: 10px 0 0;
    max-width: 52em;
    font-size: 15px;
    line-height: 1.7;
    color: var(--mgp-hero-muted);
}
.mgp-hero__warn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 14px 0 0;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #ffb4a0;
    background: rgba(229, 82, 47, .2);
    border-radius: 8px;
}
.mgp-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}
.mgp-hero__stats li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    padding: 8px 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.mgp-hero__stats span {
    font-size: 12px;
    color: var(--mgp-hero-muted);
}
.mgp-hero__stats b {
    margin-left: auto;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}
.mgp-ico {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #ff8a5c;
}
.mgp-ico-fa {
    font-size: 18px;
    color: #ff8a5c;
}

.mgp-hero__get {
    margin-top: 20px;
    max-width: 100%;
}
.mgp-hero__get-label {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mgp-hero-muted);
    letter-spacing: .04em;
}
.mgp-hero__get .mgp-get {
    justify-content: flex-start;
}

.mgp-hero__visual {
    position: relative;
    justify-self: end;
}
.mgp-hero__frame {
    position: relative;
    padding: 10px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .45);
}
.mgp-hero__cover {
    display: block;
    width: 280px;
    height: 280px;
    max-width: 100%;
    border-radius: 14px;
    object-fit: cover;
    background: #2a2e38;
}
.mgp-hero__icon {
    position: absolute;
    left: -12px;
    bottom: -8px;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid var(--mgp-dark);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}

.mgp-stage {
    position: relative;
    z-index: 3;
    margin-top: -56px;
    padding-bottom: 28px;
}
.mgp-stage .mgp-panel--float {
    padding: 18px 20px 20px;
    box-shadow: 0 12px 32px rgba(15, 17, 22, .08);
}
.mgp-stage .mgp-sec {
    margin-bottom: 14px;
    gap: 12px;
}
.mgp-stage .mgp-sec h2 {
    font-size: 17px;
}
.mgp-stage .mgp-sec p {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.45;
}
.mgp-stage .mgp-sec__ico {
    width: 36px;
    height: 36px;
    padding: 7px;
    border-radius: 10px;
    box-shadow: none;
}
.mgp-panel {
    box-sizing: border-box;
    max-width: 100%;
    padding: 28px 32px 32px;
    background: var(--mg-surface);
    border: 1px solid var(--mg-line);
    border-radius: var(--mgp-radius);
    box-shadow: var(--mgp-shadow);
}
.mgp-panel--float {
    border-color: rgba(255, 255, 255, .8);
}
.mgp-panel--warm {
    background: linear-gradient(180deg, #fff 0%, #fffaf7 100%);
    border-color: #ffe8df;
}
.mgp-panel--dark {
    padding: 24px 22px 22px;
    color: var(--mgp-hero-text);
    background: linear-gradient(165deg, var(--mgp-dark2) 0%, var(--mgp-dark) 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 16px 40px rgba(15, 17, 22, .2);
}

.mgp-sec {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 0 0 22px;
}
.mgp-sec h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--mg-text);
}
.mgp-sec p {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--mg-muted);
}
.mgp-sec__body {
    flex: 1;
    min-width: 0;
}
.mgp-sec__ico {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 12px;
    color: var(--mg-accent);
    background: linear-gradient(135deg, #fff5f0, #fff);
    border: 1px solid #ffe0d4;
    box-shadow: 0 4px 14px rgba(247, 99, 65, .12);
}
.mgp-sec--light .mgp-sec__ico {
    background: linear-gradient(135deg, #fff5f0, #fff);
}
.mgp-sec--dark h2 { color: #fff; }
.mgp-sec--dark p { color: var(--mgp-hero-muted); }
.mgp-sec--dark .mgp-sec__ico {
    color: #ff9d7a;
    background: rgba(247, 99, 65, .15);
    border-color: rgba(255, 138, 92, .25);
    box-shadow: none;
}
.mgp-sec--row {
    align-items: center;
    flex-wrap: wrap;
}
.mgp-sec--row .mgp-more { margin-left: auto; }

.mgp-get {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
}
.mgp-get__btn {
    box-sizing: border-box;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 148px;
    height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    color: #fff;
    cursor: pointer;
    background: rgba(255, 255, 255, .1);
    transition: background .2s, transform .15s;
}
.mgp-get__btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #fff;
    fill: currentColor;
}
.mgp-get__btn--play {
    min-width: 160px;
}
.mgp-get__btn--android {
    background: linear-gradient(145deg, #1a9d52, #3ddc84);
    box-shadow: 0 6px 16px rgba(61, 220, 132, .28);
}
.mgp-get__btn--android:hover {
    color: #fff;
    background: linear-gradient(145deg, #168f4a, #34c977);
    transform: translateY(-1px);
}
.mgp-get__btn--play {
    background: linear-gradient(145deg, #f76341, #ff8a5c);
    box-shadow: 0 6px 16px rgba(247, 99, 65, .3);
}
.mgp-get__btn--play:hover {
    color: #fff;
    background: linear-gradient(145deg, #e85a3a, #ff7f50);
    transform: translateY(-1px);
}
.mgp-get__btn--ios { background: #2a2f3a; }
.mgp-get__btn--ios:hover { color: #fff; background: #353b48; }
.mgp-get__btn:hover { color: #fff; }
.mgp-get__btn--off {
    color: var(--mgp-hero-muted);
    background: rgba(255, 255, 255, .08);
    cursor: default;
}
.mgp-hero__get .mgp-get__btn--ios {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    box-shadow: none;
}
.mgp-hero__get .mgp-get__btn--ios:hover {
    background: rgba(255, 255, 255, .22);
}
.mgp-dlg {
    box-sizing: border-box;
    text-align: center;
    padding: 4px 0 4px;
}
.mgp-dlg img {
    display: block;
    width: 168px;
    height: 168px;
    margin: 0 auto 10px;
    padding: 6px;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 8px;
}
.mgp-dlg p {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #646a73;
}
.mgp-dlg-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 14px;
    line-height: 42px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s, opacity .2s;
}
.mgp-dlg-btn svg {
    flex-shrink: 0;
    fill: currentColor;
}
.mgp-dlg-btn--android {
    background: linear-gradient(145deg, #1a9d52, #3ddc84);
}
.mgp-dlg-btn--android:hover {
    color: #fff;
    opacity: .92;
}
.layui-layer.mgp-layer {
    border-radius: 12px;
    overflow: hidden;
}
.mgp-layer .layui-layer-title {
    font-weight: 700;
    border-bottom: 0;
    background: #fff;
}
.mgp-layer .layui-layer-content {
    box-sizing: border-box;
    padding: 4px 20px 20px;
    overflow-x: hidden;
    overflow-y: auto;
}
.mgp-layer .mgp-dlg-btn {
    display: flex;
}

.mgp-dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}
.mgp-dl:has(.mgp-dl__card:only-child) {
    grid-template-columns: minmax(0, 320px);
}
.mgp-dl:has(.mgp-dl__card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 640px;
}
.mgp-dl__card {
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: auto;
    padding: 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--mg-line);
}
.mgp-dl__card.is-active {
    border-color: #ffd0c2;
}
.mgp-dl__plat {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.mgp-dl__plat > div { min-width: 0; }
.mgp-dl__ico {
    width: 32px;
    height: 32px;
    padding: 6px;
    flex-shrink: 0;
    border-radius: 8px;
    color: var(--mg-accent);
    background: #f7f8fa;
}
.mgp-dl__card[data-plat="Android"] .mgp-dl__ico,
.mgp-dl__card[data-plat="安卓"] .mgp-dl__ico { color: #1f9d55; background: #eefaf3; }
.mgp-dl__card[data-plat="iOS"] .mgp-dl__ico { color: #1f2329; background: #f4f5f7; }
.mgp-dl__card[data-plat="H5"] .mgp-dl__ico { color: #4a6cf0; background: #f3f6ff; }
.mgp-dl__plat strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--mg-text);
}
.mgp-dl__plat span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--mg-muted);
}
.mgp-dl__act {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mgp-dl__act .mgp-btn {
    width: 100%;
    min-width: 0;
    padding: 0 12px;
    line-height: 34px;
    font-size: 13px;
    border-radius: 8px;
    box-shadow: none;
}
.mgp-btn--play {
    background: #4a6cf0;
    box-shadow: none;
}
.mgp-btn--play:hover { background: #3d5ee0; box-shadow: none; }
.mgp-scan {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    background: #f6f7f9;
}
.mgp-scan img {
    display: block;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    padding: 3px;
    border-radius: 6px;
    background: #fff;
}
.mgp-scan p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 600;
    color: var(--mg-text);
}
.mgp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 128px;
    padding: 0 22px;
    line-height: 42px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    border-radius: 11px;
    background: var(--nx-grad, linear-gradient(135deg, #f76341, #ff8a5c));
    box-shadow: 0 8px 20px rgba(247, 99, 65, .35);
    transition: transform .15s, box-shadow .2s;
}
.mgp-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(247, 99, 65, .42);
}
.mgp-btn--line {
    color: var(--mg-accent);
    background: #fff;
    border: 1px solid #ffc9b5;
    box-shadow: none;
}
.mgp-btn--line:hover { background: #fff5f0; color: var(--mg-accent2); box-shadow: none; transform: none; }
.mgp-btn--off {
    color: var(--mg-muted);
    background: var(--mg-line);
    box-shadow: none;
    cursor: default;
    transform: none;
}

.mgp-realm { padding: 20px 0 40px; }
.mgp-realm--light { background: var(--mg-bg); }
.mgp-realm__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(320px, 30vw);
    gap: 20px;
    align-items: start;
}
.mgp-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
@media (min-width: 961px) {
    body.mg-detail .mgp-side {
        position: sticky;
        top: 76px;
        align-self: start;
    }
}
.mgp-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}
.mgp-main > .mgp-panel { margin: 0; }
body.mg-detail .mgp-prose,
body.mg-detail .mgp-prose p {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}
.mgp-sec--compact {
    margin-bottom: 14px;
    gap: 12px;
}
.mgp-sec--compact h2 { font-size: 17px; }
.mgp-sec--compact p { margin-top: 4px; font-size: 12px; }
.mgp-sec--compact .mgp-sec__ico {
    width: 40px;
    height: 40px;
    padding: 9px;
    border-radius: 11px;
}
body.mg-detail .mgp-side .mgp-panel {
    padding: 18px 14px 16px;
    border-radius: 14px;
}
body.mg-detail .mgp-side .mgp-panel--dark {
    box-shadow: 0 12px 32px rgba(15, 17, 22, .18);
}
.mgp-panel--recs {
    padding: 16px 14px 14px;
}
.mgp-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 12px;
    padding: 0 2px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.mgp-side-head__title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
}
.mgp-side-head__tag {
    flex-shrink: 0;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 700;
    color: #ff9d7a;
    border-radius: 999px;
    background: rgba(247, 99, 65, .18);
    border: 1px solid rgba(255, 138, 92, .28);
}

.mgp-prose {
    font-size: 15px;
    line-height: 1.8;
    color: var(--mg-text);
}
.mgp-prose p { margin: 0 0 14px; }
.mgp-prose p:last-child { margin-bottom: 0; }

.mgp-prose--rich {
    font-size: 15px;
    line-height: 1.88;
    color: #3a4048;
    letter-spacing: .02em;
}
.mgp-prose--welfare p {
    position: relative;
    box-sizing: border-box;
    margin: 0 0 10px;
    padding: 12px 14px 12px 18px;
    background: rgba(255, 255, 255, .75);
    border-radius: 10px;
    border: 1px solid rgba(247, 99, 65, .14);
    box-shadow: 0 2px 8px rgba(247, 99, 65, .06);
}
.mgp-prose--welfare p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, #f76341, #ff8a5c);
}
.mgp-prose--welfare p:last-child { margin-bottom: 0; }
.mgp-prose--intro {
    padding: 4px 2px 0;
}
.mgp-prose--intro p {
    margin: 0 0 16px;
    text-align: justify;
    text-justify: inter-ideograph;
}
.mgp-prose--intro p:first-child {
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.9;
    color: var(--mg-text);
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fb 0%, #fff 55%);
    border: 1px solid var(--mg-line);
    box-shadow: inset 3px 0 0 var(--mg-accent);
}
.mgp-prose--intro p + p {
    padding-left: .5em;
}

.mgp-shots-wrap {
    position: relative;
    margin: 0 -4px;
}
.mgp-shots-wrap::before,
.mgp-shots-wrap::after {
    content: "";
    position: absolute;
    top: 28px;
    bottom: 8px;
    width: 28px;
    z-index: 2;
    pointer-events: none;
}
.mgp-shots-wrap::before {
    left: 0;
    background: linear-gradient(90deg, var(--mg-surface) 15%, transparent);
}
.mgp-shots-wrap::after {
    right: 0;
    background: linear-gradient(270deg, var(--mg-surface) 15%, transparent);
}
.mgp-panel--warm .mgp-shots-wrap::before {
    background: linear-gradient(90deg, #fffaf7 20%, transparent);
}
.mgp-panel--warm .mgp-shots-wrap::after {
    background: linear-gradient(270deg, #fffaf7 20%, transparent);
}
.mgp-shots-hint {
    display: none;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--mg-muted);
}
.mgp-shots-hint__pulse {
    display: inline-block;
    width: 18px;
    height: 10px;
    border-radius: 5px;
    border: 2px solid var(--mg-accent);
    opacity: .7;
    animation: mgp-shots-nudge 1.6s ease-in-out infinite;
}
@keyframes mgp-shots-nudge {
    0%, 100% { transform: translateX(0); opacity: .5; }
    50% { transform: translateX(6px); opacity: 1; }
}
.mgp-shots {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(247, 99, 65, .35) transparent;
}
.mgp-shots::-webkit-scrollbar { height: 5px; }
.mgp-shots::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: rgba(247, 99, 65, .35);
}
.mgp-shots__item {
    flex: 0 0 auto;
    margin: 0;
    scroll-snap-align: center;
    opacity: .72;
    transform: scale(.94);
    transition: opacity .35s ease, transform .35s ease, filter .35s ease;
    filter: saturate(.92);
}
.mgp-shots__item.is-visible,
.mgp-shots__item.is-focus {
    opacity: 1;
    transform: scale(1);
    filter: saturate(1);
}
.mgp-shots__item.is-focus img {
    box-shadow: 0 14px 36px rgba(247, 99, 65, .22), 0 8px 24px rgba(31, 35, 41, .12);
    border-color: rgba(247, 99, 65, .25);
}
.mgp-shots__item img {
    display: block;
    height: min(54vh, 300px);
    width: auto;
    max-width: min(72vw, 320px);
    border-radius: 12px;
    border: 1px solid var(--mg-line);
    box-shadow: 0 8px 24px rgba(31, 35, 41, .08);
    transition: box-shadow .35s ease, border-color .35s ease, transform .35s ease;
}
@media (hover: hover) {
    .mgp-shots__item:hover {
        opacity: 1;
        transform: scale(1.02);
    }
    .mgp-shots__item:hover img {
        transform: translateY(-3px);
    }
}

.mgp-servers {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 380px;
    overflow-y: auto;
}
.mgp-servers li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 13px;
}
.mgp-servers li:last-child { border-bottom: 0; }
.mgp-servers b {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: #fff;
}
.mgp-servers time {
    flex-shrink: 0;
    font-weight: 700;
    color: #ff9d7a;
}

.mgp-sec__ico-fa {
    flex-shrink: 0;
    font-size: 22px;
    color: #5eead4;
}
.mgp-launch-time {
    margin: 0;
    padding: 4px 0 2px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .02em;
}
.mgp-launch-time time { color: inherit; }

body.mg-detail .mgp-recs {
    list-style: none;
    margin: 0;
    padding: 0;
}
body.mg-detail .mgp-recs li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
body.mg-detail .mgp-recs li:last-child { border-bottom: 0; }
body.mg-detail .mgp-recs__link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 4px;
    color: inherit;
    text-decoration: none;
    border-radius: 10px;
    transition: background .2s, transform .15s;
}
body.mg-detail .mgp-recs__link:hover {
    background: rgba(255, 255, 255, .06);
}
body.mg-detail .mgp-recs__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
body.mg-detail .mgp-recs__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
body.mg-detail .mgp-recs__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: #f4f6fa;
}
body.mg-detail .mgp-recs__meta {
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    color: var(--mgp-hero-muted);
}
body.mg-detail .mgp-recs__arrow {
    flex-shrink: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, .28);
    transition: color .2s, transform .2s;
}
body.mg-detail .mgp-recs__link:hover .mgp-recs__arrow {
    color: #ff9d7a;
    transform: translateX(2px);
}
body.mg-detail .mgp-recs-foot {
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
body.mg-detail .mgp-recs-foot__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
    line-height: 38px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    background: var(--nx-grad, linear-gradient(135deg, #f76341, #ff8a5c));
    box-shadow: 0 6px 16px rgba(247, 99, 65, .28);
    transition: opacity .2s, transform .15s;
}
body.mg-detail .mgp-recs-foot__btn:hover {
    color: #fff;
    opacity: .94;
    transform: translateY(-1px);
}
body.mg-detail .mgp-recs-foot__btn .layui-icon { font-size: 12px; }

body.mg-detail .mgp-dock {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(255, 255, 255, .92), #fff);
    border-top: 1px solid var(--mg-line);
    backdrop-filter: blur(12px);
}
.mgp-dock a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 48px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    border-radius: 12px;
    background: var(--nx-grad, linear-gradient(135deg, #f76341, #ff8a5c));
    box-shadow: 0 6px 20px rgba(247, 99, 65, .35);
}
.mgp-dock a:hover { color: #fff; opacity: .95; }



@media (max-width: 1280px) {
    .mgl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 960px) {
    .mgl-layout { grid-template-columns: 1fr; }
    .mgl-aside { display: none; }
    .mgl-toolbar {
        display: block;
        margin: 0 0 18px;
        padding-bottom: 4px;
        overflow: hidden;
    }
    .mgl-toolbar-scroll {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .mgl-toolbar-scroll::-webkit-scrollbar { display: none; }
    .mgl-tab {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        flex: 0 0 auto;
        padding: 0 18px;
        line-height: 38px;
        border-radius: var(--mgl-radius-sm);
        font-size: 14px;
        font-weight: 600;
        color: var(--mg-muted);
        background: #fff;
        border: 1px solid var(--mg-line);
    }
    .mgl-tab.is-active {
        color: #fff;
        border-color: transparent;
        background: var(--nx-grad, linear-gradient(135deg, #f76341, #ff8a5c));
        box-shadow: 0 4px 12px rgba(247, 99, 65, .2);
    }
    body.mg-list a.mgl-tab.is-active,
    body.mg-list a.mgl-tab.is-active:hover {
        color: #fff;
    }
    .mgl-hero-top { flex-direction: column; align-items: stretch; }
    .mgl-search { max-width: none; }
    body.mg-detail .mgp-hero { padding: 18px 0 28px; }
    body.mg-detail {
        overflow-x: hidden;
    }
    body.mg-detail.mg-has-dock {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }
    .mgp-hero__inner { grid-template-columns: 1fr; gap: 18px 0; }
    .mgp-hero__visual { justify-self: center; order: -1; }
    .mgp-hero__cover { width: min(220px, 72vw); height: min(220px, 72vw); }
    body.mg-detail .mgp-hero__badge {
        font-size: 12px;
        padding: 6px 12px;
        max-width: 100%;
        box-sizing: border-box;
    }
    body.mg-detail .mgp-hero__hook { font-size: 14px; }
    body.mg-detail .mgp-hero__lead { font-size: 14px; }
    body.mg-detail .mgp-hero__stats { margin-top: 16px; gap: 8px; }
    body.mg-detail .mgp-hero__stats li {
        min-width: calc(50% - 4px);
        flex: 1 1 calc(50% - 4px);
        padding: 6px 0;
    }
    .mgp-realm__grid { grid-template-columns: 1fr; }
    body.mg-detail .mgp-main { order: 0; }
    body.mg-detail .mgp-side {
        order: 1;
        position: static;
    }
    body.mg-detail .mgp-realm { padding: 12px 0 24px; }
    body.mg-detail .mgp-realm__grid { gap: 12px; }
    body.mg-detail .mgp-hero__get .mgp-get {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 10px;
        overflow: visible;
        padding-bottom: 0;
    }
    body.mg-detail .mgp-hero__get .mgp-get__btn {
        width: 100%;
        min-width: 0;
        max-width: none;
        height: 46px;
        padding: 0 16px;
        font-size: 14px;
        white-space: nowrap;
    }
    body.mg-detail .mgp-hero__get .mgp-get__btn--play {
        min-width: 0;
    }
    body.mg-detail .mgp-shots-hint { display: flex; }
    body.mg-detail .mgp-recs {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        margin: 0 -14px;
        padding: 2px 14px 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }
    body.mg-detail .mgp-recs::-webkit-scrollbar { display: none; }
    body.mg-detail .mgp-recs li {
        flex: 0 0 132px;
        border-bottom: 0;
        scroll-snap-align: start;
    }
    body.mg-detail .mgp-recs__link {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 8px 12px;
        text-align: center;
        background: rgba(255, 255, 255, .05);
        border: 1px solid rgba(255, 255, 255, .08);
    }
    body.mg-detail .mgp-recs__arrow { display: none; }
    body.mg-detail .mgp-recs__icon {
        width: 56px;
        height: 56px;
        margin: 0 auto;
    }
    body.mg-detail .mgp-crumb--hero {
        font-size: 12px;
        margin-bottom: 12px;
    }
    .mgp-panel { padding: 22px 18px 24px; }
    .mgp-dl {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
    body.mg-detail .mgp-dock { display: block; }
}

@media (prefers-reduced-motion: reduce) {
    .mgl-item,
    .mgl-poster,
    .mgl-poster-img,
    .mgl-icon,
    .mgl-plat,
    .mgp-shots__item,
    .mgp-shots-hint__pulse { animation: none !important; transition: none !important; }
    .mgp-shots__item { opacity: 1; transform: none; filter: none; }
}

@media (max-width: 600px) {
    .mgl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    body.mg-detail .w1600 {
        padding-left: 10px;
        padding-right: 10px;
    }
    body.mg-detail .mgp-main .mgp-panel--block {
        padding: 14px 10px 16px;
    }
    body.mg-detail .mgp-main .mgp-sec h2 { font-size: 16px; }
    body.mg-detail .mgp-shots__item {
        flex: 0 0 min(88vw, 260px);
    }
    body.mg-detail .mgp-prose--welfare p {
        font-size: 12px;
        padding: 9px 8px 9px 14px;
    }
    body.mg-detail .mgp-servers { max-height: 240px; }
    body.mg-detail .mgp-hero__title {
        font-size: clamp(20px, 6.5vw, 26px);
    }
    body.mg-detail .mgp-hero__icon {
        width: 52px;
        height: 52px;
        left: -2px;
        bottom: -2px;
    }
    body.mg-detail .mgp-recs__name {
        font-size: 11px;
        -webkit-line-clamp: 3;
    }
    body.mg-detail .mgp-dock a {
        font-size: 15px;
        line-height: 46px;
    }
    body.mg-detail .mgp-layer .layui-layer-content {
        padding: 16px 12px !important;
    }
    .mgl-hero { padding: 28px 0 32px; }
    .mgl-glow--1 { right: -22%; top: -62%; width: 300px; height: 300px; }
    .mgl-glow--2 { left: -20%; width: 260px; height: 260px; }
    .mgl-glow--3 { width: 220px; height: 220px; left: 42%; top: -45%; }
    .mgl-hero-wave { height: 72px; }
    .mgl-hero-wave__w1 { height: 60px; }
    .mgl-hero-wave__w2 { height: 76px; }
    .mgl-metrics { gap: 8px; }
    .mgl-metric { padding: 10px 14px; }
    .mgl-metric strong { font-size: 18px; }
    .mgl-metrics-plats {
        width: 100%;
        justify-content: flex-start;
    }
    .mgl-name { font-size: 14px; }
    .mgl-icon { width: 44px; height: 44px; border-radius: var(--mgl-radius-sm); }
    .mgl-desc { font-size: 12px; padding-top: 10px; }
}
@media (max-width: 400px) {
    .mgl-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
    body.mg-detail .mgp-recs li { flex: 0 0 118px; }
}
