/* ==========================================================================
   星海游戏库 · 前台样式
   ========================================================================== */

:root {
    --bg: #070a12;
    --bg-soft: #0b1120;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-solid: #0e1728;
    --line: rgba(148, 163, 184, 0.16);
    --line-strong: rgba(148, 163, 184, 0.32);
    --text: #e8eef9;
    --muted: #93a4c3;
    --dim: #697992;
    --cyan: #22d3ee;
    --cyan-soft: #67e8f9;
    --blue: #3b82f6;
    --violet: #8b5cf6;
    --pink: #e879f9;
    --gold: #f8c76a;
    --green: #34d399;
    --amber: #fbbf24;
    --red: #fb7185;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    --font: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
    --mono: "SFMono-Regular", "Cascadia Code", "Consolas", "Liberation Mono", monospace;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: rgba(34, 211, 238, 0.28);
    color: #fff;
}

.shell {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.mono {
    font-family: var(--mono);
}

.muted-text {
    color: var(--dim);
    font-size: 12px;
}

.truncate {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   背景与头部
   -------------------------------------------------------------------------- */

.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 60% at 50% -10%, rgba(30, 58, 138, 0.35), transparent 65%),
        radial-gradient(ellipse 60% 50% at 100% 20%, rgba(76, 29, 149, 0.18), transparent 70%),
        linear-gradient(180deg, #060912 0%, #070b14 50%, #050810 100%);
}

.site-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.55;
    animation: orbFloat 18s ease-in-out infinite alternate;
}

.site-orb-a {
    width: 520px;
    height: 520px;
    top: -160px;
    left: 8%;
    background: rgba(34, 211, 238, 0.16);
}

.site-orb-b {
    width: 620px;
    height: 620px;
    top: 220px;
    right: -200px;
    background: rgba(139, 92, 246, 0.16);
    animation-delay: -8s;
}

.site-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 0%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 65% at 50% 0%, #000 20%, transparent 75%);
}

@keyframes orbFloat {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(40px, 50px, 0) scale(1.12); }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6, 9, 18, 0.72);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    height: 74px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    color: #67e8f9;
    background: linear-gradient(145deg, rgba(34, 211, 238, 0.16), rgba(139, 92, 246, 0.14));
    border: 1px solid rgba(103, 232, 249, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 24px rgba(34, 211, 238, 0.12);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 16px;
    letter-spacing: 0.02em;
}

.brand-text small {
    margin-top: 3px;
    font-size: 9px;
    letter-spacing: 0.26em;
    color: var(--dim);
    font-weight: 600;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    margin-right: auto;
}

.main-nav a {
    position: relative;
    padding: 8px 15px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--muted);
    transition: color 0.2s, background 0.2s;
}

.main-nav a:hover {
    color: var(--text);
    background: rgba(148, 163, 184, 0.08);
}

.main-nav a.active {
    color: #fff;
    background: rgba(34, 211, 238, 0.1);
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -21px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    transform: translateX(-50%);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.points-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    background: rgba(248, 199, 106, 0.08);
    border: 1px solid rgba(248, 199, 106, 0.24);
    transition: background 0.2s, border-color 0.2s;
}

.points-pill:hover {
    background: rgba(248, 199, 106, 0.14);
    border-color: rgba(248, 199, 106, 0.4);
}

.header-user {
    font-size: 13px;
    color: var(--muted);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-user:hover {
    color: var(--text);
}

.link-quiet {
    font-size: 14px;
    color: var(--muted);
    padding: 6px 4px;
}

.link-quiet:hover {
    color: var(--text);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 11px;
}

.nav-toggle span {
    display: block;
    width: 17px;
    height: 1.5px;
    background: var(--muted);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   按钮与表单
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s, opacity 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    color: #04121c;
    background: linear-gradient(135deg, #a5f3fc 0%, #22d3ee 45%, #3b82f6 100%);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.22);
}

.btn-primary:hover {
    box-shadow: 0 14px 36px rgba(34, 211, 238, 0.32);
}

.btn-violet {
    color: #f6f2ff;
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.24);
}

.btn-ghost {
    color: var(--muted);
    background: rgba(148, 163, 184, 0.06);
    border-color: var(--line);
}

.btn-ghost:hover {
    color: var(--text);
    background: rgba(148, 163, 184, 0.11);
    border-color: var(--line-strong);
}

.btn-disabled {
    color: var(--dim);
    background: rgba(148, 163, 184, 0.06);
    border-color: var(--line);
    cursor: not-allowed;
}

.btn-disabled:hover {
    transform: none;
}

.btn-sm {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12.5px;
}

.btn-xs {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

.btn-danger-ghost {
    color: #fda4af;
    background: rgba(251, 113, 133, 0.07);
    border-color: rgba(251, 113, 133, 0.24);
}

.btn-danger-ghost:hover {
    background: rgba(251, 113, 133, 0.13);
    border-color: rgba(251, 113, 133, 0.4);
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.form .field,
.form-grid .field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.field label b {
    color: var(--rose, var(--red));
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 11px 13px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: rgba(8, 13, 24, 0.7);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field textarea {
    resize: vertical;
    min-height: 90px;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #54647d;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
    background: rgba(8, 13, 24, 0.9);
}

.field small {
    font-size: 12px;
    color: var(--dim);
    line-height: 1.5;
}

.form-alert {
    padding: 12px 14px;
    border-radius: 11px;
    border: 1px solid rgba(251, 113, 133, 0.24);
    background: rgba(251, 113, 133, 0.08);
    color: #fecdd3;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   首页 Hero
   -------------------------------------------------------------------------- */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 56px;
    align-items: center;
    padding-top: 76px;
    padding-bottom: 70px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: var(--cyan-soft);
    text-transform: uppercase;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
    animation: pulseDot 2.2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.8); }
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(38px, 4.4vw, 62px);
    line-height: 1.16;
    letter-spacing: -0.025em;
    font-weight: 800;
}

.hero h1 .grad-text {
    display: block;
}

.grad-text {
    font-style: normal;
    background: linear-gradient(110deg, #a5f3fc 0%, #67e8f9 25%, #818cf8 60%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-desc {
    max-width: 520px;
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.8;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    width: min(520px, 100%);
    padding: 0 16px;
    height: 52px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(10, 16, 30, 0.72);
    color: var(--dim);
    backdrop-filter: blur(12px);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08), 0 18px 40px rgba(0, 0, 0, 0.3);
}

.search-box input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: var(--text);
}

.search-box input::placeholder {
    color: #5a6a84;
}

.search-clear {
    padding: 4px 8px;
    border: 0;
    border-radius: 7px;
    background: rgba(148, 163, 184, 0.1);
    color: var(--muted);
    font-size: 11px;
}

.hero-stats {
    display: flex;
    gap: 34px;
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    max-width: 520px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat strong {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.stat span {
    font-size: 12px;
    color: var(--dim);
}

/* Hero 推荐位 */

.hero-art {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 430px;
    perspective: 1100px;
}

.hero-art-glow {
    position: absolute;
    width: 78%;
    height: 78%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 40% 40%, rgba(34, 211, 238, 0.22), transparent 55%),
        radial-gradient(circle at 70% 65%, rgba(139, 92, 246, 0.24), transparent 55%);
    filter: blur(42px);
    transition: transform 0.6s var(--ease);
}

.spotlight {
    position: relative;
    width: min(400px, 100%);
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, rgba(20, 30, 52, 0.94), rgba(10, 16, 30, 0.96));
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(2deg) translateZ(0);
    transition: transform 0.6s var(--ease), border-color 0.3s;
    animation: spotlightIn 0.9s var(--ease) both;
}

.spotlight:hover {
    transform: rotateY(0) rotateX(0) translateY(-4px);
    border-color: rgba(103, 232, 249, 0.35);
}

@keyframes spotlightIn {
    from { opacity: 0; transform: translateY(18px) rotateY(-8deg) rotateX(3deg); }
    to { opacity: 1; transform: translateY(0) rotateY(-5deg) rotateX(2deg); }
}

.spotlight-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.spotlight-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(8, 12, 22, 0.6));
}

.spotlight-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.spotlight:hover .spotlight-cover img {
    transform: scale(1.04);
}

.spotlight-label {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #1c1405;
    background: linear-gradient(135deg, #fde68a, #f8c76a);
    box-shadow: 0 6px 18px rgba(248, 199, 106, 0.25);
}

.spotlight-body {
    padding: 20px 22px 22px;
}

.spotlight-kicker {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--dim);
}

.spotlight-body h2 {
    margin: 7px 0 8px;
    font-size: 22px;
    letter-spacing: -0.01em;
}

.spotlight-body p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.spotlight-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 16px;
    font-size: 11.5px;
    color: var(--dim);
}

.spotlight-meta > span {
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(148, 163, 184, 0.08);
}

.spotlight-empty {
    padding: 50px 30px;
    text-align: center;
}

.floating-chip {
    position: absolute;
    z-index: 3;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    background: rgba(12, 19, 34, 0.9);
    border: 1px solid var(--line);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    animation: chipFloat 6s ease-in-out infinite;
}

.floating-chip::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    vertical-align: 1px;
}

.chip-a {
    top: 12%;
    right: 0;
}

.chip-b {
    bottom: 8%;
    left: 0;
    animation-delay: -3s;
}

.chip-b::before {
    background: var(--violet);
    box-shadow: 0 0 8px var(--violet);
}

@keyframes chipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --------------------------------------------------------------------------
   游戏列表
   -------------------------------------------------------------------------- */

.catalog {
    padding-bottom: 90px;
    scroll-margin-top: 100px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-head h2 {
    margin: 8px 0 0;
    font-size: clamp(25px, 2.6vw, 34px);
    letter-spacing: -0.02em;
}

.section-head.compact {
    margin-bottom: 18px;
}

.result-count {
    font-size: 13px;
    color: var(--dim);
    white-space: nowrap;
}

.filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 22px;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.25) transparent;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(148, 163, 184, 0.04);
    color: var(--muted);
    font-size: 12.5px;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.filter-chip span {
    font-size: 10.5px;
    color: var(--dim);
}

.filter-chip:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

.filter-chip.active {
    color: #04121c;
    background: linear-gradient(135deg, #a5f3fc, #67e8f9);
    border-color: transparent;
    font-weight: 700;
}

.filter-chip.active span {
    color: rgba(4, 18, 28, 0.6);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(17, 26, 45, 0.78), rgba(9, 15, 28, 0.9));
    overflow: hidden;
    transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: rgba(103, 232, 249, 0.3);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42);
}

.game-card.is-closed {
    opacity: 0.72;
}

.game-card.is-closed:hover {
    opacity: 0.92;
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0a1424;
}

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(5, 9, 18, 0.72));
    pointer-events: none;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease), filter 0.3s;
}

.game-card:hover .card-cover img {
    transform: scale(1.045);
}

.is-closed .card-cover img {
    filter: grayscale(0.55) brightness(0.8);
}

.card-badge,
.status-badge,
.platform-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
    backdrop-filter: blur(8px);
}

.card-badge {
    top: 12px;
    left: 12px;
    padding: 5px 9px;
}

.badge-hot {
    color: #211603;
    background: linear-gradient(135deg, #fde68a, #fbbf24);
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.25);
}

.platform-badge {
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    color: #dbeafe;
    background: rgba(5, 10, 20, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.status-badge {
    left: 12px;
    bottom: 12px;
    padding: 5px 9px;
    color: var(--muted);
    background: rgba(5, 10, 20, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.status-badge i,
.status-inline i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dim);
}

.status-badge.is-open i {
    background: var(--green);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
}

.status-badge.is-closed i {
    background: var(--amber);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

.status-badge.is-open { color: #a7f3d0; }
.status-badge.is-closed { color: #fde68a; }

.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 17px 15px;
}

.card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.card-title-row h3 {
    margin: 0;
    font-size: 17px;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.card-title-row h3 a:hover {
    color: var(--cyan-soft);
}

.card-category {
    flex-shrink: 0;
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 10.5px;
    color: var(--cyan-soft);
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.14);
    white-space: nowrap;
}

.card-desc {
    margin: 0;
    color: var(--muted);
    font-size: 12.8px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-note {
    margin: 8px 0 0;
    padding: 5px 8px;
    border-radius: 6px;
    color: #fcd34d;
    font-size: 11px;
    background: rgba(251, 191, 36, 0.07);
    border: 1px solid rgba(251, 191, 36, 0.14);
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 11px;
    color: var(--dim);
}

.card-meta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.card-meta i {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--dim);
}

.card-downloads {
    white-space: nowrap;
}

.related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* --------------------------------------------------------------------------
   空状态
   -------------------------------------------------------------------------- */

.empty-state {
    padding: 70px 24px;
    border-radius: var(--radius);
    border: 1px dashed var(--line-strong);
    background: rgba(148, 163, 184, 0.025);
    text-align: center;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    border-radius: 18px;
    font-size: 24px;
    color: var(--cyan-soft);
    background: rgba(34, 211, 238, 0.07);
    border: 1px solid rgba(34, 211, 238, 0.16);
}

.empty-state h3 {
    margin: 0 0 8px;
    font-size: 19px;
}

.empty-state p {
    margin: 0 auto 20px;
    max-width: 440px;
    color: var(--muted);
    font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   游戏详情
   -------------------------------------------------------------------------- */

.detail-shell {
    padding-top: 34px;
    padding-bottom: 90px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 13px;
}

.back-link:hover {
    color: var(--text);
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 42px;
    align-items: start;
}

.detail-cover {
    position: sticky;
    top: 100px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #0a1424;
    box-shadow: var(--shadow);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.detail-cover.is-closed img {
    filter: grayscale(0.5) brightness(0.82);
}

.detail-cover .status-badge {
    left: 16px;
    bottom: 16px;
    padding: 7px 12px;
    font-size: 11.5px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 7px;
    font-size: 11.5px;
    color: var(--muted);
    background: rgba(148, 163, 184, 0.07);
    border: 1px solid var(--line);
}

.chip-category {
    color: var(--cyan-soft);
    background: rgba(34, 211, 238, 0.08);
    border-color: rgba(34, 211, 238, 0.16);
}

.chip-muted {
    color: var(--dim);
}

.detail-info h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 3.6vw, 46px);
    letter-spacing: -0.025em;
    line-height: 1.18;
}

.detail-description {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.85;
    margin-bottom: 26px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--line);
    margin-bottom: 26px;
}

.detail-meta-grid > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
    background: rgba(9, 15, 28, 0.9);
}

.detail-meta-grid span {
    font-size: 11px;
    color: var(--dim);
}

.detail-meta-grid strong {
    font-size: 13.5px;
    font-weight: 650;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.notice-box {
    padding: 17px 18px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(148, 163, 184, 0.035);
}

.notice-open {
    border-color: rgba(52, 211, 153, 0.2);
    background: rgba(52, 211, 153, 0.045);
}

.notice-closed {
    border-color: rgba(251, 191, 36, 0.2);
    background: rgba(251, 191, 36, 0.045);
}

.notice-title {
    margin-bottom: 7px;
}

.status-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 650;
}

.status-inline.is-open { color: #a7f3d0; }
.status-inline.is-closed { color: #fde68a; }

.notice-box p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.notice-box .notice-sub {
    margin-top: 6px;
    color: var(--dim);
    font-size: 12px;
}

.related-section {
    margin-top: 64px;
}

.text-link {
    color: var(--cyan-soft);
    font-size: 13px;
}

.text-link:hover {
    color: #fff;
}

.detail-404 {
    margin-top: 40px;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */

.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--line);
    background: rgba(5, 8, 16, 0.66);
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 40px;
    padding: 44px 0 34px;
}

.footer-brand .brand-footer {
    margin-bottom: 12px;
}

.footer-brand .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
}

.footer-brand p {
    max-width: 360px;
    margin: 0;
    color: var(--dim);
    font-size: 13px;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.footer-links h4 {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--text);
    letter-spacing: 0.06em;
}

.footer-links a,
.footer-links span {
    display: block;
    margin-bottom: 8px;
    color: var(--dim);
    font-size: 12.5px;
}

.footer-links a:hover {
    color: var(--cyan-soft);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    color: #58687f;
    font-size: 11.5px;
}

/* --------------------------------------------------------------------------
   提示条
   -------------------------------------------------------------------------- */

.flash-stack {
    position: fixed;
    top: 88px;
    right: max(16px, calc((100vw - 1180px) / 2));
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(370px, calc(100vw - 32px));
    pointer-events: none;
}

.flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 13px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(12, 19, 34, 0.96);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(14px);
    font-size: 12.8px;
    line-height: 1.55;
    color: var(--muted);
    pointer-events: auto;
    animation: flashIn 0.35s var(--ease);
}

@keyframes flashIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.flash-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
}

.flash-success { border-color: rgba(52, 211, 153, 0.24); }
.flash-success .flash-icon { color: #052e1f; background: var(--green); }
.flash-error { border-color: rgba(251, 113, 133, 0.24); }
.flash-error .flash-icon { color: #3f0713; background: var(--red); }
.flash-info .flash-icon { color: #082032; background: var(--cyan); }

.flash-close {
    margin-left: auto;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: var(--dim);
    font-size: 15px;
    line-height: 1.3;
}

/* --------------------------------------------------------------------------
   登录 / 注册
   -------------------------------------------------------------------------- */

.auth-shell {
    display: flex;
    justify-content: center;
    padding-top: 56px;
    padding-bottom: 80px;
}

.auth-card {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    width: min(920px, 100%);
    border-radius: 26px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(16, 25, 44, 0.9), rgba(8, 14, 26, 0.95));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.auth-intro {
    position: relative;
    padding: 44px 38px;
    background:
        radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.16), transparent 55%),
        radial-gradient(circle at 90% 90%, rgba(139, 92, 246, 0.2), transparent 55%),
        rgba(8, 14, 26, 0.7);
    border-right: 1px solid var(--line);
    overflow: hidden;
}

.auth-intro::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -100px;
    bottom: -100px;
    border: 1px solid rgba(103, 232, 249, 0.14);
    border-radius: 50%;
    box-shadow: 0 0 0 40px rgba(103, 232, 249, 0.03), 0 0 0 80px rgba(103, 232, 249, 0.02);
}

.auth-intro h1 {
    margin: 18px 0 12px;
    font-size: 31px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.auth-intro > p {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.75;
}

.auth-benefits {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 12.8px;
}

.auth-benefits li span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    color: var(--cyan-soft);
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.16);
}

.auth-form-wrap {
    padding: 44px 40px;
}

.auth-form-wrap .form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--dim);
}

.form-links a {
    color: var(--cyan-soft);
}

.form-links.centered {
    justify-content: center;
    margin-top: 14px;
}

/* --------------------------------------------------------------------------
   玩家中心
   -------------------------------------------------------------------------- */

.user-shell {
    padding-top: 40px;
    padding-bottom: 90px;
}

.user-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.user-greeting h1 {
    margin: 9px 0 6px;
    font-size: clamp(27px, 3vw, 38px);
    letter-spacing: -0.025em;
}

.user-greeting p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.user-greeting p strong {
    color: var(--gold);
}

.dot-sep {
    margin: 0 7px;
    color: #3b4a63;
}

.balance-card {
    position: relative;
    min-width: 230px;
    padding: 20px 24px;
    border-radius: 20px;
    border: 1px solid rgba(248, 199, 106, 0.22);
    background:
        radial-gradient(circle at 100% 0%, rgba(248, 199, 106, 0.14), transparent 55%),
        linear-gradient(150deg, rgba(24, 28, 38, 0.96), rgba(12, 17, 28, 0.95));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.balance-label {
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: 0.06em;
}

.balance-card strong {
    display: block;
    margin: 2px 0 2px;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}

.balance-card small {
    color: var(--dim);
    font-size: 11px;
}

.user-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.85fr);
    gap: 22px;
    align-items: start;
}

.user-main,
.user-side {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

.panel {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 24, 42, 0.8), rgba(8, 14, 26, 0.88));
    overflow: hidden;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 0;
}

.panel-head h2 {
    margin: 6px 0 0;
    font-size: 19px;
    letter-spacing: -0.01em;
}

.compact-head {
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.compact-head h2 {
    margin: 0;
    font-size: 15.5px;
}

.panel-count,
.balance-mini {
    font-size: 11.5px;
    color: var(--dim);
}

.balance-mini strong {
    color: var(--gold);
}

.panel-tag {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    color: var(--cyan-soft);
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.16);
}

.recharge-panel .form {
    padding: 18px 22px 4px;
}

.form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 14px;
    margin-bottom: 14px;
}

.recharge-form .field {
    margin-bottom: 14px;
}

.amount-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.amount-row input {
    width: 150px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 16px;
}

.quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.quick-amount {
    padding: 7px 11px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(148, 163, 184, 0.05);
    color: var(--muted);
    font-size: 12px;
    transition: all 0.2s;
}

.quick-amount:hover,
.quick-amount.active {
    color: var(--cyan-soft);
    border-color: rgba(34, 211, 238, 0.35);
    background: rgba(34, 211, 238, 0.08);
}

.recharge-summary {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 15px 0 17px;
    margin-top: 4px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.recharge-summary > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.recharge-summary span {
    font-size: 11px;
    color: var(--dim);
}

.recharge-summary strong {
    font-size: 15px;
    color: var(--cyan-soft);
}

.recharge-summary .btn {
    margin-left: auto;
}

.panel-note {
    margin: 0;
    padding: 14px 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    color: var(--dim);
    font-size: 11.5px;
    line-height: 1.6;
}

.panel-note.muted {
    border-top: 0;
    padding-top: 0;
    color: #58687f;
}

.panel-empty {
    padding: 38px 24px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.panel-empty.small {
    padding: 18px;
    font-size: 12px;
}

.panel-empty .empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 19px;
    margin-bottom: 12px;
}

.panel-empty h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: var(--text);
}

.panel-empty p {
    margin: 0 auto;
    max-width: 380px;
    line-height: 1.7;
}

.panel-empty .btn {
    margin-top: 16px;
}

.daily-card {
    padding: 20px 20px 6px;
    border-radius: var(--radius);
    border: 1px solid rgba(34, 211, 238, 0.18);
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.1), transparent 50%),
        linear-gradient(160deg, rgba(14, 25, 43, 0.95), rgba(8, 14, 26, 0.94));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.daily-head {
    margin-bottom: 6px;
}

.daily-head h2 {
    margin: 6px 0 4px;
    font-size: 19px;
}

.daily-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.daily-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #052e2b;
    background: linear-gradient(135deg, #6ee7b7, #34d399);
    box-shadow: 0 8px 20px rgba(52, 211, 153, 0.18);
}

.daily-icon-alt {
    color: #2e1065;
    background: linear-gradient(135deg, #c4b5fd, #8b5cf6);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.18);
}

.daily-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.daily-info strong {
    font-size: 13.5px;
}

.daily-info span {
    font-size: 11.5px;
    color: var(--muted);
}

.daily-info small {
    font-size: 10.5px;
    color: var(--dim);
}

.daily-item form {
    margin-left: auto;
    flex-shrink: 0;
}

.daily-done {
    margin-left: auto;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    color: var(--dim);
    background: rgba(148, 163, 184, 0.07);
    white-space: nowrap;
}

.side-panel .panel-head {
    padding: 16px 18px 12px;
}

.points-log {
    list-style: none;
    margin: 0;
    padding: 0 18px 10px;
}

.points-log li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.07);
}

.points-log li:last-child {
    border-bottom: 0;
}

.points-log li > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.points-log strong {
    font-size: 12.5px;
    font-weight: 600;
}

.points-log span {
    font-size: 10.5px;
    color: var(--dim);
}

.log-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.log-amount.positive { color: var(--green); }
.log-amount.negative { color: var(--red); }

.log-amount small {
    font-size: 9.5px;
    color: var(--dim);
    font-weight: 500;
}

.account-panel .panel-head {
    padding-bottom: 8px;
    border-bottom: 0;
}

.account-list {
    margin: 0;
    padding: 0 18px 8px;
}

.account-list > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.07);
}

.account-list > div:last-child {
    border-bottom: 0;
}

.account-list dt {
    color: var(--dim);
    font-size: 11.5px;
}

.account-list dd {
    margin: 0;
    color: var(--muted);
    font-size: 11.5px;
    text-align: right;
}

.status-dot-text {
    color: var(--green);
}

.logout-form {
    padding: 8px 18px 18px;
}

/* 数据表格（前台） */

.table-wrap {
    width: 100%;
    overflow-x: auto;
    padding: 8px 22px 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.data-table th {
    padding: 9px 10px;
    text-align: left;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--dim);
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.data-table td {
    padding: 11px 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.07);
    vertical-align: top;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.cell-main,
.cell-sub {
    display: block;
    line-height: 1.5;
}

.cell-main {
    color: var(--text);
    font-size: 12.5px;
}

.cell-sub {
    color: var(--dim);
    font-size: 10.5px;
    margin-top: 1px;
}

.points-num {
    color: var(--gold);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.order-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
}

.status-pending {
    color: #fde68a;
    background: rgba(251, 191, 36, 0.09);
    border: 1px solid rgba(251, 191, 36, 0.18);
}

.status-success {
    color: #a7f3d0;
    background: rgba(52, 211, 153, 0.09);
    border: 1px solid rgba(52, 211, 153, 0.18);
}

.status-failed {
    color: #fecdd3;
    background: rgba(251, 113, 133, 0.09);
    border: 1px solid rgba(251, 113, 133, 0.18);
}

/* --------------------------------------------------------------------------
   扫码充值
   -------------------------------------------------------------------------- */

.balance-link {
    display: inline-flex;
    margin-top: 8px;
    font-size: 11px;
    color: var(--cyan-soft);
}

.balance-link:hover {
    color: #fff;
}

.scan-mini-body {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 6px 18px 18px;
}

.scan-mini-body img {
    width: 92px;
    height: 98px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 4px;
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.scan-mini-body > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.scan-mini-body strong {
    font-size: 12.5px;
}

.scan-mini-body p {
    margin: 0 0 4px;
    color: var(--dim);
    font-size: 10.5px;
    line-height: 1.5;
}

.scan-shell {
    padding-top: 40px;
    padding-bottom: 90px;
}

.scan-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 26px;
    margin-bottom: 26px;
}

.scan-hero h1 {
    margin: 10px 0 8px;
    font-size: clamp(30px, 3.4vw, 44px);
    letter-spacing: -0.025em;
}

.scan-hero > div > p {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
}

.scan-rate {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.scan-rate span {
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    background: rgba(34, 211, 238, 0.06);
    color: var(--muted);
    font-size: 11.5px;
}

.scan-rate strong {
    color: var(--cyan-soft);
}

.scan-balance {
    display: flex;
    flex-direction: column;
    min-width: 190px;
    padding: 18px 22px;
    border-radius: 18px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.12), transparent 55%),
        rgba(10, 17, 30, 0.9);
}

.scan-balance span {
    font-size: 11px;
    color: var(--dim);
}

.scan-balance strong {
    font-size: 34px;
    font-weight: 800;
    color: var(--cyan-soft);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.scan-balance small {
    font-size: 10.5px;
    color: var(--dim);
}

.scan-card {
    display: grid;
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
    margin-bottom: 22px;
}

.scan-qr-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 26px 24px;
    border-right: 1px solid var(--line);
    background:
        radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.09), transparent 55%),
        rgba(8, 14, 26, 0.55);
}

.qr-frame {
    width: min(300px, 100%);
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.qr-frame img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.qr-hint {
    margin: 12px 0 14px;
    color: var(--muted);
    font-size: 12px;
}

.scan-amount-badge {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(248, 199, 106, 0.24);
    background: rgba(248, 199, 106, 0.07);
}

.scan-amount-badge span {
    font-size: 10.5px;
    color: var(--dim);
}

.scan-amount-badge strong {
    font-size: 18px;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}

.qr-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 18px;
    width: 100%;
}

.qr-steps span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--dim);
    font-size: 10.5px;
    white-space: nowrap;
}

.qr-steps i {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 9px;
    font-style: normal;
    color: var(--cyan-soft);
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.16);
}

.scan-form-col {
    padding: 26px 28px;
}

.scan-form-head h2 {
    margin: 7px 0 5px;
    font-size: 21px;
}

.scan-form-head p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 12.5px;
}

.quick-pay-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.quick-pay-amounts .quick-amount {
    min-width: 58px;
    padding: 8px 12px;
    font-weight: 600;
}

.pay-points-preview {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 41px;
    color: var(--muted);
    font-size: 12px;
}

.pay-points-preview strong {
    color: var(--cyan-soft);
    font-size: 18px;
    font-variant-numeric: tabular-nums;
}

.pay-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.pay-total {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.pay-total span {
    font-size: 11px;
    color: var(--dim);
}

.pay-total strong {
    font-size: 22px;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}

.inline-note {
    padding: 10px 0 0;
    border-top: 0;
}

.scan-disabled {
    margin-bottom: 24px;
}

/* 平台会员 */

.member-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    vertical-align: 1px;
    white-space: nowrap;
}

.member-normal {
    color: var(--muted);
    background: rgba(148, 163, 184, 0.09);
    border: 1px solid var(--line);
}

.member-month {
    color: var(--cyan-soft);
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.member-year {
    color: #fde68a;
    background: rgba(248, 199, 106, 0.09);
    border: 1px solid rgba(248, 199, 106, 0.24);
}

.member-mini-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 8px 18px 18px;
}

.member-mini-body strong {
    font-size: 12.5px;
}

.member-mini-body p {
    margin: 0 0 6px;
    color: var(--dim);
    font-size: 10.5px;
    line-height: 1.65;
}

.member-shell {
    padding-top: 40px;
    padding-bottom: 90px;
}

.member-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 26px;
    margin-bottom: 26px;
}

.member-hero h1 {
    margin: 10px 0 8px;
    font-size: clamp(30px, 3.4vw, 44px);
    letter-spacing: -0.025em;
}

.member-hero > div > p {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
}

.member-status-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 210px;
    padding: 16px 20px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(150deg, rgba(20, 27, 43, 0.94), rgba(9, 15, 27, 0.94));
}

.member-status-card > span {
    font-size: 10.5px;
    color: var(--dim);
}

.member-status-card > strong {
    font-size: 20px;
}

.member-status-card > small {
    color: var(--dim);
    font-size: 10.5px;
}

.member-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 22px;
}

.member-plans {
    display: flex;
    flex-direction: column;
    padding: 24px 24px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 24, 42, 0.8), rgba(8, 14, 26, 0.88));
}

.member-plans h2 {
    margin: 7px 0 16px;
    font-size: 21px;
}

.member-plans-full {
    margin-bottom: 22px;
}

.member-plans-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.member-plans-head h2 {
    margin: 7px 0 0;
    font-size: 21px;
}

.member-plans-tip {
    color: var(--dim);
    font-size: 11px;
}

.plan-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 270px;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 100% 0%, rgba(148, 163, 184, 0.06), transparent 55%),
        rgba(148, 163, 184, 0.03);
    color: inherit;
    font: inherit;
    text-align: left;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.plan-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.32);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.plan-card.selected {
    border-color: rgba(34, 211, 238, 0.5);
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.14), transparent 55%),
        rgba(34, 211, 238, 0.055);
    box-shadow: 0 20px 50px rgba(34, 211, 238, 0.1);
}

.plan-card.recommended {
    border-color: rgba(248, 199, 106, 0.4);
    background:
        radial-gradient(circle at 100% 0%, rgba(248, 199, 106, 0.16), transparent 55%),
        linear-gradient(150deg, rgba(40, 32, 18, 0.5), rgba(148, 163, 184, 0.03));
}

.plan-card.recommended.selected {
    border-color: rgba(248, 199, 106, 0.7);
    box-shadow: 0 20px 50px rgba(248, 199, 106, 0.12);
}

.plan-recommend {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    color: #211603;
    background: linear-gradient(135deg, #fde68a, #f8c76a);
    box-shadow: 0 6px 16px rgba(248, 199, 106, 0.25);
}

.plan-topup {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    color: #04121c;
    background: linear-gradient(135deg, #a5f3fc, #22d3ee);
    box-shadow: 0 6px 16px rgba(34, 211, 238, 0.22);
}

.plan-card.points-pack {
    border-color: rgba(34, 211, 238, 0.28);
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.12), transparent 55%),
        rgba(148, 163, 184, 0.03);
}

.plan-card.points-pack:hover {
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 20px 50px rgba(34, 211, 238, 0.1);
}

.plan-card.points-pack .plan-select {
    color: #04121c;
    background: linear-gradient(135deg, #a5f3fc, #22d3ee);
    border-color: transparent;
}

/* 支付弹窗 */

.pay-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pay-modal[hidden] {
    display: none;
}

.pay-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 14, 0.78);
    backdrop-filter: blur(8px);
}

.pay-modal-card {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 28px 30px 30px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: linear-gradient(180deg, #111b2c, #0a111e);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    animation: modalIn 0.28s var(--ease);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.pay-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(148, 163, 184, 0.06);
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
}

.pay-modal-close:hover {
    color: #fff;
    border-color: var(--line-strong);
}

.pay-modal-card h2 {
    margin: 9px 0 5px;
    font-size: 26px;
    letter-spacing: -0.02em;
}

.pay-modal-desc {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 12.5px;
}

.pay-modal-body {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.pay-modal-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.pay-modal-qr .qr-frame {
    width: 100%;
    padding: 10px;
}

.pay-modal-qr .qr-hint {
    margin: 0;
    font-size: 10.5px;
}

.pay-modal-form {
    gap: 12px;
}

.pay-modal-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px 0 6px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.pay-modal-meta > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 0;
    font-size: 11.5px;
}

.pay-modal-meta span {
    color: var(--dim);
}

.pay-modal-meta strong {
    text-align: right;
    font-size: 12.5px;
}

.pay-modal-note {
    margin: 0;
    color: var(--dim);
    font-size: 10px;
    line-height: 1.55;
}

.plan-kicker {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--dim);
}

.plan-card h3 {
    margin: 7px 0 6px;
    font-size: 19px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    color: var(--gold);
    font-size: 42px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    margin: 4px 0 2px;
}

.plan-price small {
    font-size: 15px;
}

.plan-price span {
    margin-left: 4px;
    font-size: 10.5px;
    font-weight: 500;
    color: var(--dim);
}

.plan-card ul {
    list-style: none;
    margin: 12px 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.plan-card li {
    color: var(--muted);
    font-size: 11px;
}

.plan-card li::before {
    content: "·";
    margin-right: 5px;
    color: var(--cyan);
}

.plan-card li b {
    color: var(--cyan-soft);
}

.plan-select {
    margin-top: auto;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 700;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.plan-card:hover .plan-select {
    color: var(--cyan-soft);
    border-color: rgba(34, 211, 238, 0.3);
}

.plan-card.selected .plan-select {
    color: #04121c;
    background: linear-gradient(135deg, #a5f3fc, #22d3ee);
    border-color: transparent;
}

.plan-card.recommended.selected .plan-select {
    color: #211603;
    background: linear-gradient(135deg, #fde68a, #f8c76a);
}

.member-note {
    margin: 16px 0 0;
    padding-top: 13px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    color: var(--dim);
    font-size: 10.5px;
    line-height: 1.65;
}

.member-pay {
    display: flex;
    flex-direction: column;
}

.member-pay-head {
    padding: 22px 24px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.member-pay-head h2 {
    margin: 7px 0 5px;
    font-size: 21px;
}

.member-pay-head p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.member-pay-body {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 22px;
    padding: 20px 24px 24px;
    align-items: start;
}

.member-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
}

.member-qr .qr-frame {
    width: 100%;
    padding: 9px;
}

.member-qr .qr-hint {
    margin: 0;
    font-size: 10.5px;
    color: var(--dim);
}

.member-qr .scan-amount-badge {
    padding: 5px 10px;
}

.member-qr .scan-amount-badge strong {
    font-size: 15px;
}

.member-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.member-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 7px;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.1);
    font-size: 11.5px;
}

.member-form-row span {
    color: var(--dim);
}

.member-form-row strong {
    font-size: 12.5px;
}

.gold-text {
    color: var(--gold);
    font-size: 16px !important;
}

.member-form .field {
    gap: 5px;
}

.member-form .field input {
    padding: 9px 11px;
    font-size: 12.5px;
}

.member-form .btn {
    margin-top: 2px;
}

.member-pay-note {
    margin: 2px 0 0;
    color: var(--dim);
    font-size: 10px;
    line-height: 1.55;
}

/* 加入玩家群 */

.group-shell {
    padding-top: 34px;
    padding-bottom: 90px;
}

.group-card {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(16, 25, 43, 0.88), rgba(8, 14, 26, 0.94));
    overflow: hidden;
    box-shadow: var(--shadow);
}

.group-cover {
    position: relative;
    min-height: 300px;
    background: #0a1424;
}

.group-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-body {
    padding: 38px 40px;
}

.group-body h1 {
    margin: 13px 0 11px;
    font-size: clamp(26px, 3vw, 35px);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.group-body > p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.group-number-box {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    border-radius: 13px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    background: rgba(34, 211, 238, 0.045);
    margin-bottom: 18px;
}

.group-number-box > span {
    font-size: 11px;
    color: var(--dim);
}

.group-number-box > strong {
    font-size: 28px;
    color: var(--cyan-soft);
    letter-spacing: 0.03em;
    font-variant-numeric: tabular-nums;
}

.group-number-box .btn {
    margin-left: auto;
}

.group-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 22px;
}

.group-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.group-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12.5px;
}

.group-steps span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 700;
    color: var(--cyan-soft);
    background: rgba(34, 211, 238, 0.07);
    border: 1px solid rgba(34, 211, 238, 0.15);
}

.group-steps b {
    color: var(--gold);
}

.group-contact {
    margin: 18px 0 0;
    color: var(--dim);
    font-size: 11px;
}

/* 游戏注册入口 */

.register-shell {
    padding-top: 34px;
    padding-bottom: 90px;
}

.register-card {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(16, 25, 43, 0.88), rgba(8, 14, 26, 0.94));
    overflow: hidden;
    box-shadow: var(--shadow);
}

.register-cover {
    position: relative;
    min-height: 320px;
    background: #0a1424;
}

.register-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.register-cover .status-badge {
    left: 16px;
    bottom: 16px;
    padding: 6px 10px;
}

.register-body {
    padding: 38px 40px;
}

.register-body h1 {
    margin: 14px 0 12px;
    font-size: clamp(27px, 3vw, 36px);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.register-body > p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
}

.register-steps {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.register-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12.5px;
}

.register-steps span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 700;
    color: var(--cyan-soft);
    background: rgba(34, 211, 238, 0.07);
    border: 1px solid rgba(34, 211, 238, 0.15);
}

.register-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .plan-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 58px;
    }

    .hero-art {
        min-height: 0;
        padding: 10px 30px;
    }

    .spotlight {
        width: min(440px, 100%);
        transform: none;
    }

    .spotlight:hover {
        transform: translateY(-4px);
    }

    .chip-a {
        right: 4%;
    }

    .chip-b {
        left: 4%;
    }

    .user-grid {
        grid-template-columns: 1fr;
    }

    .user-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .daily-card {
        grid-column: span 2;
    }

    .detail-hero {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        position: relative;
        top: 0;
        max-width: 620px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 820px) {
    .shell {
        width: min(100% - 32px, 1180px);
    }

    .header-inner {
        height: 66px;
        gap: 14px;
    }

    .main-nav {
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin: 0;
        padding: 10px 16px 16px;
        background: rgba(6, 9, 18, 0.98);
        border-bottom: 1px solid var(--line);
        backdrop-filter: blur(18px);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 11px 14px;
        border-radius: 10px;
    }

    .main-nav a.active::after {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .header-right {
        gap: 9px;
    }

    .header-user {
        display: none;
    }

    .game-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .hero-stats {
        gap: 22px;
        flex-wrap: wrap;
    }

    .auth-card {
        grid-template-columns: 1fr;
    }

    .scan-hero,
    .member-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .member-grid {
        grid-template-columns: 1fr;
    }

    .member-pay-body {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .pay-modal-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pay-modal-qr {
        max-width: 240px;
        width: 100%;
        margin: 0 auto;
    }

    .pay-modal-card {
        padding: 24px 22px;
    }

    .scan-card {
        grid-template-columns: 1fr;
    }

    .scan-qr-col {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .scan-form-col {
        padding: 22px;
    }

    .register-card,
    .group-card {
        grid-template-columns: 1fr;
    }

    .group-cover {
        min-height: 230px;
    }

    .group-body {
        padding: 28px;
    }

    .register-cover {
        min-height: 230px;
    }

    .register-body {
        padding: 28px;
    }

    .auth-intro {
        padding: 30px 28px 24px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .auth-benefits {
        display: none;
    }

    .auth-form-wrap {
        padding: 28px;
    }

    .user-overview {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .balance-card {
        min-width: 0;
        width: 100%;
    }

    .user-side {
        grid-template-columns: 1fr;
    }

    .daily-card {
        grid-column: auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .detail-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
    }

    .footer-links {
        gap: 16px;
    }

    .table-wrap {
        padding: 6px 14px 16px;
    }

    .recharge-summary {
        flex-wrap: wrap;
        gap: 14px;
    }

    .recharge-summary .btn {
        width: 100%;
        margin-left: 0;
    }

    .flash-stack {
        top: 76px;
        right: 16px;
    }

    .order-table thead {
        display: none;
    }

    .order-table,
    .order-table tbody,
    .order-table tr,
    .order-table td {
        display: block;
        width: 100%;
    }

    .order-table tr {
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }

    .order-table tr:last-child {
        border-bottom: 0;
    }

    .order-table td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 18px;
        padding: 5px 0;
        border: 0;
        text-align: right;
    }

    .order-table td::before {
        content: attr(data-label);
        flex-shrink: 0;
        color: var(--dim);
        font-size: 11px;
    }

    .order-table td > * {
        text-align: right;
    }
}

@media (max-width: 560px) {
    .hero {
        padding-top: 42px;
        padding-bottom: 48px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .hero-stats {
        gap: 18px;
    }

    .stat strong {
        font-size: 22px;
    }

    .hero-art {
        padding: 0;
    }

    .floating-chip {
        display: none;
    }

    .spotlight-body {
        padding: 16px 17px 18px;
    }

    .game-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .catalog {
        padding-bottom: 60px;
    }

    .detail-shell {
        padding-top: 22px;
        padding-bottom: 60px;
    }

    .detail-info h1 {
        font-size: 31px;
    }

    .detail-actions {
        flex-direction: column;
    }

    .detail-actions .btn {
        width: 100%;
    }

    .auth-shell {
        padding-top: 28px;
    }

    .auth-intro,
    .auth-form-wrap {
        padding: 24px 20px;
    }

    .auth-intro h1 {
        font-size: 26px;
    }

    .amount-row {
        flex-direction: column;
    }

    .amount-row input {
        width: 100%;
    }

    .quick-amounts {
        justify-content: space-between;
    }

    .user-shell,
    .scan-shell,
    .register-shell,
    .member-shell {
        padding-top: 26px;
    }

    .member-status-card {
        min-width: 0;
    }

    .plan-cards {
        grid-template-columns: 1fr;
    }

    .member-pay-body {
        grid-template-columns: 1fr;
    }

    .member-qr {
        max-width: 220px;
        margin: 0 auto;
    }

    .scan-balance {
        min-width: 0;
    }

    .pay-submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .pay-submit-row .btn {
        width: 100%;
    }

    .register-body,
    .group-body {
        padding: 22px 20px;
    }

    .group-actions {
        flex-direction: column;
    }

    .group-actions .btn {
        width: 100%;
    }

    .group-number-box {
        flex-wrap: wrap;
    }

    .group-number-box .btn {
        margin-left: 0;
    }

    .register-actions .btn {
        width: 100%;
    }

    .scan-mini-body img {
        width: 80px;
        height: 86px;
    }

    .user-greeting h1 {
        font-size: 26px;
    }

    .balance-card strong {
        font-size: 32px;
    }

    .recharge-panel .form {
        padding-inline: 16px;
    }

    .panel-head {
        padding-inline: 16px;
    }

    .panel-note {
        padding-inline: 16px;
    }

    .daily-card {
        padding-inline: 16px;
    }

    .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}