/* ============================================================
   蛋仔电竞 · 前台样式（移动优先，桌面自适应）
   ============================================================ */

:root {
    --bg: #05070c;
    --panel: #0c121b;
    --panel-2: #111a26;
    --line: rgba(255, 255, 255, 0.08);
    --text: #e9f0f7;
    --muted: #8c9bad;
    --gold: #f5b544;
    --gold-soft: rgba(245, 181, 68, 0.12);
    --green: #35e0a1;
    --radius: 22px;
    --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

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

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

button {
    font-family: inherit;
}

::selection {
    background: rgba(245, 181, 68, 0.35);
    color: #fff;
}

/* ---------------- 背景氛围 ---------------- */

.ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
}

.orb-a {
    width: 340px;
    height: 340px;
    top: -140px;
    right: -110px;
    background: radial-gradient(circle, rgba(245, 181, 68, 0.45), transparent 68%);
    animation: float-a 14s ease-in-out infinite alternate;
}

.orb-b {
    width: 300px;
    height: 300px;
    bottom: 4%;
    left: -140px;
    background: radial-gradient(circle, rgba(53, 96, 224, 0.34), transparent 70%);
    animation: float-b 18s ease-in-out infinite alternate;
}

.orb-c {
    width: 220px;
    height: 220px;
    top: 42%;
    right: -90px;
    background: radial-gradient(circle, rgba(53, 224, 161, 0.24), transparent 70%);
    animation: float-a 20s ease-in-out infinite alternate-reverse;
}

.grid-layer {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 12%, transparent 72%);
    mask-image: radial-gradient(ellipse at 50% 0%, #000 12%, transparent 72%);
    opacity: 0.75;
}

@keyframes float-a {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-24px, 26px, 0) scale(1.08); }
}

@keyframes float-b {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(30px, -22px, 0); }
}

/* ---------------- 结构 ---------------- */

.shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 18px 16px calc(30px + env(safe-area-inset-bottom));
}

/* ---------------- 顶栏 ---------------- */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--gold);
    background: linear-gradient(150deg, rgba(245, 181, 68, 0.2), rgba(245, 181, 68, 0.04));
    border: 1px solid rgba(245, 181, 68, 0.3);
    box-shadow: 0 0 22px -8px rgba(245, 181, 68, 0.8);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-copy strong {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-copy small {
    font-size: 9px;
    letter-spacing: 1.6px;
    color: var(--muted);
    white-space: nowrap;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(53, 224, 161, 0.24);
    background: rgba(53, 224, 161, 0.08);
    color: #8ff0c8;
    font-size: 11px;
}

.status .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.82); }
}

/* ---------------- 欢迎区 ---------------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 26px 20px 24px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background:
        radial-gradient(120% 130% at 100% 0%, rgba(245, 181, 68, 0.16), transparent 52%),
        linear-gradient(155deg, rgba(22, 30, 42, 0.94), rgba(8, 11, 17, 0.96));
    box-shadow: 0 24px 60px -38px rgba(0, 0, 0, 0.9);
    animation: rise 0.55s ease both;
}

.hero::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 181, 68, 0.55), transparent);
}

.hero-glow {
    position: absolute;
    right: -80px;
    top: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 181, 68, 0.28), transparent 68%);
    filter: blur(18px);
    pointer-events: none;
}

.hero-kicker {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(245, 181, 68, 0.28);
    background: rgba(245, 181, 68, 0.09);
    color: #ffd98d;
    font-size: 11px;
    letter-spacing: 0.4px;
    max-width: 100%;
}

.hero-kicker span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero h1 {
    position: relative;
    margin: 16px 0 0;
    font-size: clamp(30px, 8.4vw, 46px);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.hero h1 em {
    display: inline-block;
    font-style: normal;
    background: linear-gradient(118deg, #ffe6ab 6%, #f5b544 52%, #ffcf76 96%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 6px 18px rgba(245, 181, 68, 0.28));
}

.hero-sub {
    position: relative;
    margin: 12px 0 0;
    color: #a9b6c6;
    font-size: 13px;
    line-height: 1.7;
    max-width: 92%;
}

.hero-chips {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.hero-chips span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #c3cedd;
    font-size: 11px;
    white-space: nowrap;
}

.hero-chips svg {
    color: var(--gold);
    flex: 0 0 auto;
}

/* ---------------- 公告 ---------------- */

.notice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 14px;
    padding: 11px 13px;
    border-radius: 14px;
    border: 1px solid rgba(245, 181, 68, 0.2);
    background: linear-gradient(120deg, rgba(245, 181, 68, 0.1), rgba(245, 181, 68, 0.03));
    animation: rise 0.55s ease 0.08s both;
}

.notice-icon {
    flex: 0 0 auto;
    color: var(--gold);
    margin-top: 1px;
}

.notice p {
    margin: 0;
    color: #e4c894;
    font-size: 11.5px;
    line-height: 1.65;
}

/* ---------------- 三分区 ---------------- */

.zone {
    margin-top: 22px;
}

.zone-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 4px;
    margin-bottom: 11px;
}

.zone-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 650;
    letter-spacing: 0.4px;
    color: #dfe9f4;
}

.zone-title svg {
    color: var(--gold);
}

.zone-hint {
    font-size: 11px;
    color: #6e7c8f;
}

.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
}

.card {
    --accent: var(--gold);
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 94px;
    padding: 15px 16px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(150deg, rgba(19, 27, 38, 0.95), rgba(9, 13, 20, 0.95));
    color: inherit;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    animation: rise 0.55s ease both;
}

.cards .card:nth-child(1) { animation-delay: 0.1s; }
.cards .card:nth-child(2) { animation-delay: 0.16s; }
.cards .card:nth-child(3) { animation-delay: 0.22s; }

.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--accent);
    box-shadow: 0 0 16px var(--accent);
    opacity: 0.95;
}

.card-glow {
    position: absolute;
    z-index: -1;
    right: -42px;
    bottom: -64px;
    width: 176px;
    height: 176px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent), transparent 68%);
    opacity: 0.14;
    filter: blur(10px);
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.card:hover,
.card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 38px -24px var(--accent);
    outline: none;
}

.card:hover .card-glow,
.card:focus-visible .card-glow {
    opacity: 0.24;
}

.card:active {
    transform: scale(0.985);
}

.card-icon {
    position: relative;
    z-index: 1;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 22px -12px var(--accent);
}

.card-main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    flex: 1;
}

.card-line {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.card-title {
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-badge {
    flex: 0 0 auto;
    padding: 1px 7px;
    border-radius: 6px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: 0.4px;
}

.card-sub {
    font-size: 11.5px;
    color: #93a2b4;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-go {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.zone-empty {
    margin: 0;
    padding: 26px 16px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 18px;
}

/* ---------------- 信息条 ---------------- */

.meta {
    margin-top: 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
    overflow: hidden;
    animation: rise 0.55s ease 0.26s both;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    min-height: 44px;
}

.meta-row + .meta-row {
    border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.meta-key {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #93a2b4;
    font-size: 12px;
    flex: 0 0 auto;
}

.meta-key svg {
    color: var(--gold);
}

.meta-val {
    color: #d5dfeb;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.meta-copy {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 9px;
    border-radius: 8px;
    border: 1px solid rgba(245, 181, 68, 0.22);
    background: rgba(245, 181, 68, 0.07);
    color: #ffd98d;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    max-width: 62%;
    transition: background 0.16s ease;
}

.meta-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meta-copy:active {
    background: rgba(245, 181, 68, 0.16);
}

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

.foot {
    margin-top: 26px;
    text-align: center;
}

.foot-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #aab7c8;
    font-size: 12px;
}

.foot-brand svg {
    color: var(--gold);
    flex: 0 0 auto;
}

.risk {
    margin: 10px auto 0;
    max-width: 340px;
    color: #6f7d90;
    font-size: 11px;
    line-height: 1.7;
}

.copyright {
    margin: 12px 0 0;
    color: #4d5a6b;
    font-size: 10.5px;
    letter-spacing: 0.3px;
}

/* ---------------- 弹层 ---------------- */

.sheet {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 0.32s;
}

.sheet.open {
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.sheet-mask {
    position: absolute;
    inset: 0;
    background: rgba(3, 6, 10, 0.74);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.sheet.open .sheet-mask {
    opacity: 1;
}

.sheet-panel {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 18px calc(22px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-bottom: none;
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(245, 181, 68, 0.09), transparent 60%),
        linear-gradient(180deg, #111925, #0a0f16 60%);
    box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.9);
    transform: translateY(28px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.2, 0.75, 0.3, 1), opacity 0.24s ease;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 181, 68, 0.3) transparent;
}

.sheet-panel::-webkit-scrollbar {
    width: 6px;
}

.sheet-panel::-webkit-scrollbar-thumb {
    background: rgba(245, 181, 68, 0.28);
    border-radius: 6px;
}

.sheet-panel::-webkit-scrollbar-track {
    background: transparent;
}

.sheet.open .sheet-panel {
    transform: translateY(0);
    opacity: 1;
}

.sheet-grab {
    display: block;
    width: 38px;
    height: 4px;
    margin: 3px auto 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.18);
}

.sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0 12px;
}

.sheet-heading {
    min-width: 0;
}

.sheet-heading h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #f3f7fb;
}

.sheet-heading p {
    margin: 4px 0 0;
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.55;
}

.sheet-close {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #b8c4d3;
    cursor: pointer;
    transition: background 0.16s ease;
}

.sheet-close:active {
    background: rgba(255, 255, 255, 0.12);
}

.sheet-body {
    padding: 2px 0 6px;
}

/* 联系方式列表 */

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    background: linear-gradient(150deg, #121a26, #0b1119);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.16s ease, transform 0.16s ease;
}

.contact-row:active {
    transform: scale(0.99);
    border-color: rgba(245, 181, 68, 0.35);
}

.contact-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--gold);
    background: rgba(245, 181, 68, 0.08);
    border: 1px solid rgba(245, 181, 68, 0.16);
}

.contact-info {
    display: block;
    flex: 1;
    min-width: 0;
}

.contact-name {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #eef4fa;
}

.contact-name span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-chip {
    flex: 0 0 auto;
    padding: 1px 6px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #9fadbf;
    font-size: 9.5px;
    line-height: 1.5;
}

.contact-account {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
    color: #8593a6;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sheet-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 2px 0 12px;
    padding: 6px 10px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #9fadbf;
    font-family: inherit;
    font-size: 11.5px;
    cursor: pointer;
}

.sheet-back svg {
    color: var(--gold);
}

.sheet-back:active {
    background: rgba(255, 255, 255, 0.08);
}

.contact-go {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #93a2b4;
    background: rgba(255, 255, 255, 0.05);
}

/* 二维码详情 */

.qr-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4px 2px 8px;
}

.qr-frame {
    width: min(70vw, 258px);
    aspect-ratio: 1 / 1;
    margin: 4px 0 16px;
    padding: 11px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 22px 55px -24px rgba(245, 181, 68, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.qr-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    border: 1px dashed #c7d2e0;
    border-radius: 12px;
    color: #7c8899;
    font-size: 12px;
    line-height: 1.6;
    padding: 10px;
}

.qr-empty svg {
    color: #9aa6b8;
}

.qr-title {
    font-size: 17px;
    font-weight: 700;
    color: #f2f7fc;
    margin: 0;
}

.qr-tagline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(245, 181, 68, 0.24);
    background: rgba(245, 181, 68, 0.08);
    color: #ffd98d;
    font-size: 10.5px;
}

.qr-account {
    margin-top: 10px;
    font-size: 13px;
    color: #c3cedd;
    font-variant-numeric: tabular-nums;
    word-break: break-all;
}

.qr-note {
    margin: 12px 0 0;
    max-width: 290px;
    font-size: 11.5px;
    line-height: 1.7;
    color: #8593a6;
}

.qr-hint {
    margin: 4px 0 0;
    font-size: 11px;
    color: #6e7c8f;
}

.qr-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 330px;
    margin-top: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #ffd47f, #f5b544);
    color: #1b1305;
    box-shadow: 0 14px 30px -18px rgba(245, 181, 68, 0.95);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #d8e3ef;
}

/* 空状态 */

.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px 12px 26px;
    text-align: center;
}

.empty-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 19px;
    color: var(--gold);
    background: rgba(245, 181, 68, 0.07);
    border: 1px solid rgba(245, 181, 68, 0.18);
}

.empty h3 {
    margin: 4px 0 0;
    font-size: 15px;
    font-weight: 650;
    color: #e8eff8;
}

.empty p {
    margin: 0;
    max-width: 280px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--muted);
}

.sheet-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 16px 0 0;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #718095;
    font-size: 10.5px;
}

/* ---------------- Toast ---------------- */

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(26px + env(safe-area-inset-bottom));
    z-index: 95;
    max-width: 84vw;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(16, 24, 34, 0.96);
    color: #eef4fa;
    font-size: 12.5px;
    text-align: center;
    opacity: 0;
    transform: translate(-50%, 14px);
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---------------- 其他 ---------------- */

.noscript {
    margin: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(245, 181, 68, 0.3);
    background: rgba(245, 181, 68, 0.1);
    color: #ffd98d;
    font-size: 12px;
    text-align: center;
}

body.sheet-open {
    overflow: hidden;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------- 桌面自适应 ---------------- */

@media (min-width: 720px) {
    .shell {
        padding: 30px 24px 40px;
    }

    .topbar {
        margin-bottom: 22px;
    }

    .hero {
        padding: 38px 34px 32px;
        border-radius: 28px;
    }

    .hero-sub {
        max-width: 70%;
        font-size: 13.5px;
    }

    .notice {
        margin-top: 16px;
    }

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

    .card {
        flex-direction: column;
        align-items: flex-start;
        min-height: 174px;
        padding: 20px 18px 18px;
    }

    .card::before {
        top: 20px;
        bottom: 20px;
    }

    .card-icon {
        width: 58px;
        height: 58px;
        margin-bottom: 14px;
    }

    .card-main {
        width: 100%;
    }

    .card-title {
        font-size: 17px;
        white-space: normal;
    }

    .card-sub {
        font-size: 11.5px;
        min-height: 34px;
    }

    .card-go {
        position: absolute;
        right: 16px;
        top: 18px;
    }

    .meta-row {
        padding: 12px 18px;
    }

    .foot {
        margin-top: 32px;
    }

    .sheet {
        align-items: center;
        padding: 28px;
    }

    .sheet-panel {
        max-width: 460px;
        max-height: 84vh;
        border-radius: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
        padding: 10px 22px 24px;
        transform: translateY(12px) scale(0.985);
    }

    .sheet.open .sheet-panel {
        transform: translateY(0) scale(1);
    }

    .sheet-grab {
        display: none;
    }

    .sheet-head {
        padding-top: 14px;
    }

    .qr-frame {
        width: 236px;
    }
}

@media (max-width: 359px) {
    .shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero {
        padding: 20px 16px;
    }

    .card {
        padding: 13px;
        gap: 10px;
    }

    .card-icon {
        width: 48px;
        height: 48px;
    }

    .card-title {
        font-size: 15px;
    }
}

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