/* SCUM 玩家门户 — 参考 1.html 明亮商城风格 */
:root {
    --scum-bg: #f7f9fa;
    --scum-white: #ffffff;
    --scum-text: #2c3e50;
    --scum-text-dark: #1a1a1a;
    --scum-muted: #7f8c8d;
    --scum-muted-light: #94a3b8;
    --scum-green: #00cc66;
    --scum-green-hover: #00b359;
    --scum-orange: #ff6600;
    --scum-border: #edf2f7;
    --scum-border-input: #e2e8f0;
    --scum-tag-bg: #f1f5f9;
    --scum-radius: 12px;
    --scum-radius-sm: 8px;
    --scum-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    --scum-mono: "Courier New", Courier, Consolas, monospace;
    --scum-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    --scum-shadow-hover: 0 12px 25px rgba(0, 0, 0, 0.07);
}

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

html, body.scum-portal {
    min-height: 100vh;
    font-family: var(--scum-font);
    font-size: 14px;
    color: var(--scum-text);
    background: var(--scum-bg);
    line-height: 1.6;
}

body.scum-portal.scum-modal-open {
    overflow: hidden;
}

/* --- 顶部导航 --- */
.scum-navbar {
    background: var(--scum-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 10px 3%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.scum-navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

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

.scum-brand-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--scum-text-dark);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.scum-brand-sub {
    font-size: 10px;
    color: var(--scum-muted);
}

.scum-nav-wrap {
    flex: 1;
    min-width: 0;
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scum-nav {
    display: flex;
    gap: 6px 10px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    padding: 2px 4px;
    margin: 0 -4px;
}

.scum-nav-btn {
    border: none;
    background: none;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    padding: 4px 6px;
    transition: color 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.scum-nav-btn:hover,
.scum-nav-btn.active {
    color: var(--scum-green);
    font-weight: 600;
}

.scum-nav-more {
    position: relative;
    flex-shrink: 0;
    z-index: 120;
}

.scum-nav-more-btn {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.scum-nav-more-btn:hover,
.scum-nav-more.open .scum-nav-more-btn,
.scum-nav-more.has-active .scum-nav-more-btn {
    color: var(--scum-green);
    border-color: rgba(74, 124, 46, 0.45);
}

.scum-nav-more-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 148px;
    max-height: min(60vh, 360px);
    overflow: auto;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
    padding: 6px;
    z-index: 130;
}

.scum-nav-more.open .scum-nav-more-menu {
    display: block;
}

.scum-nav-more-item {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    color: #555;
    font-size: 13px;
    font-family: inherit;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.scum-nav-more-item:hover,
.scum-nav-more-item.active {
    background: rgba(74, 124, 46, 0.08);
    color: var(--scum-green);
    font-weight: 600;
}

.scum-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    min-width: 0;
}

.scum-header-actions .scum-btn {
    padding: 6px 12px;
    font-size: 12px;
}

.scum-header-actions .scum-pill {
    padding: 5px 10px;
    font-size: 11px;
    gap: 3px;
}

.scum-header-actions .scum-pill--user {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scum-header-actions .scum-pill--vip {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scum-header-actions .scum-wallet-trigger-label {
    display: none;
}

.scum-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    background: var(--scum-tag-bg);
    color: #475569;
    border: 1px solid var(--scum-border-input);
}

.scum-header-wallet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.scum-wallet-popover-wrap {
    position: relative;
    display: inline-flex;
}

.scum-pill--wallet-trigger {
    cursor: pointer;
    border: 1px solid var(--scum-border-input);
    background: var(--scum-tag-bg);
    font: inherit;
    color: inherit;
    gap: 5px;
}

.scum-pill--wallet-trigger:hover,
.scum-wallet-popover-wrap.open .scum-pill--wallet-trigger {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.06);
}

.scum-wallet-trigger-label {
    color: #64748b;
    font-size: 12px;
}

.scum-pill--wallet strong {
    color: var(--scum-text-dark);
    font-weight: 800;
}

.scum-wallet-chevron {
    font-size: 10px;
    color: #94a3b8;
    margin-left: 1px;
    transition: transform 0.18s ease;
}

.scum-wallet-popover-wrap.open .scum-wallet-chevron {
    transform: rotate(180deg);
}

.scum-wallet-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 120;
    min-width: 168px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--scum-border-input);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.scum-wallet-popover-wrap.open .scum-wallet-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.scum-wallet-popover::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid var(--scum-border-input);
    border-top: 1px solid var(--scum-border-input);
    transform: rotate(45deg);
}

.scum-wallet-popover-title {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--scum-border-input);
}

.scum-wallet-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 2px;
    font-size: 13px;
    color: #475569;
}

.scum-wallet-row + .scum-wallet-row {
    border-top: 1px dashed rgba(148, 163, 184, 0.35);
}

.scum-wallet-row-label {
    flex: 1;
    min-width: 0;
}

.scum-wallet-row strong {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.scum-wallet-row--points strong { color: var(--scum-text-dark); }
.scum-wallet-row--bank strong { color: #15803d; }
.scum-wallet-row--gold strong { color: #a16207; }

.scum-wallet-row .scum-currency-ico {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.scum-pill--wallet .scum-currency-ico {
    width: 14px;
    height: 14px;
}

.scum-pill--user {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scum-pill--vip-trigger {
    cursor: help;
}

.scum-vip-popover-wrap {
    position: relative;
    display: inline-flex;
}

.scum-vip-popover-wrap:hover .scum-vip-popover,
.scum-vip-popover-wrap:focus-within .scum-vip-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.scum-vip-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 120;
    width: min(520px, calc(100vw - 32px));
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.scum-vip-popover::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid var(--scum-border-input);
    border-top: 1px solid var(--scum-border-input);
    transform: rotate(45deg);
}

.scum-vip-popover-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--scum-text-dark);
    margin-bottom: 8px;
}

.scum-vip-table-wrap--popover {
    margin: 0;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--scum-border-input);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.scum-vip-table-wrap--popover .scum-table-scroll {
    max-height: 280px;
    overflow: auto;
}

.scum-vip-table-wrap--popover .scum-vip-table {
    min-width: 420px;
    font-size: 12px;
}

.scum-vip-table-wrap--popover .scum-vip-table th,
.scum-vip-table-wrap--popover .scum-vip-table td {
    padding: 8px 10px;
}

.scum-pill--points strong { color: var(--scum-text-dark); font-weight: 800; }
.scum-pill--points .scum-currency-ico { width: 14px; height: 14px; }
.scum-pill--bank strong { color: #15803d; font-weight: 800; }
.scum-pill--bank .scum-currency-ico { width: 14px; height: 14px; }
.scum-pill--gold strong { color: #a16207; font-weight: 800; }
.scum-pill--gold .scum-currency-ico { width: 14px; height: 14px; }
.scum-pill--vip { color: var(--scum-orange); border-color: rgba(255, 102, 0, 0.3); background: rgba(255, 102, 0, 0.08); }
.scum-price--free { color: var(--scum-green, #22c55e); font-weight: 700; }

.scum-currency-ico {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
}

.scum-currency-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    border: 1px solid;
}

.scum-currency-chip-val {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.scum-currency-chip-label {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.88;
}

.scum-currency-chip--points {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #b45309;
}

.scum-currency-chip--cash {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #047857;
}

.scum-currency-chip--gold {
    background: #fefce8;
    border-color: #fde047;
    color: #a16207;
}

.scum-gift-rewards {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.scum-gift-desc-text {
    margin-top: 2px;
}

.scum-btn {
    border: 1px solid var(--scum-border-input);
    background: var(--scum-white);
    color: #475569;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.scum-btn:hover:not(:disabled) {
    border-color: var(--scum-green);
    color: var(--scum-green);
}

.scum-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.scum-btn--login {
    background: #111;
    color: #fff;
    border-color: #111;
    font-weight: 500;
}

.scum-btn--login:hover:not(:disabled) {
    background: var(--scum-green);
    border-color: var(--scum-green);
    color: #fff;
}

.scum-btn--primary,
.scum-buy-btn {
    background: var(--scum-green);
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.scum-btn--primary:hover:not(:disabled),
.scum-buy-btn:hover:not(:disabled) {
    background: var(--scum-green-hover);
    box-shadow: 0 4px 10px rgba(0, 204, 102, 0.2);
}

.scum-btn--signin {
    background: var(--scum-orange);
    color: #fff;
    border-color: var(--scum-orange);
}

.scum-btn--signin:hover:not(:disabled) {
    background: #e55a00;
    border-color: #e55a00;
    color: #fff;
}

.scum-btn--signin:disabled {
    pointer-events: none;
}

.scum-signin-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
}

.scum-signin-popover {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 120;
    min-width: min(92vw, 392px);
    max-width: min(92vw, 392px);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 16, 28, 0.96);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.scum-signin-wrap:hover .scum-signin-popover,
.scum-signin-wrap:focus-within .scum-signin-popover,
.scum-signin-wrap.is-open .scum-signin-popover {
    display: block;
}

.scum-signin-popover-title {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 10px;
    text-align: center;
}

/* --- 连续签到日历 --- */
.scum-signin-calendar {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    max-height: min(60vh, 420px);
    display: flex;
    flex-direction: column;
}

.scum-signin-calendar-weekhead {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    background: rgba(255, 255, 255, 0.06);
}

.scum-signin-calendar-weekday {
    text-align: center;
    padding: 7px 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.scum-signin-calendar-weekday:last-child {
    border-right: none;
}

.scum-signin-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.scum-signin-calendar-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 68px;
    padding: 4px 3px 5px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

.scum-signin-calendar-cell:nth-child(7n) {
    border-right: none;
}

.scum-signin-calendar-cell.is-blank {
    background: rgba(0, 0, 0, 0.12);
    min-height: 68px;
}

.scum-signin-calendar-cell.is-achieved {
    background: rgba(61, 139, 64, 0.14);
}

.scum-signin-calendar-cell.is-next {
    background: rgba(255, 153, 0, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 153, 0, 0.55);
}

.scum-signin-calendar-daynum {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.88);
    padding: 1px 0 3px;
}

.scum-signin-calendar-cell.is-achieved .scum-signin-calendar-daynum {
    color: #8fd694;
}

.scum-signin-calendar-cell.is-next .scum-signin-calendar-daynum {
    color: #ffb84d;
}

.scum-signin-calendar-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 0;
}

.scum-signin-calendar-body.is-empty {
    min-height: 36px;
}

.scum-signin-popover-list {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
}

.scum-signin-popover-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
    min-height: 92px;
}

.scum-signin-popover-cell.is-achieved {
    border-color: rgba(61, 139, 64, 0.55);
    background: rgba(61, 139, 64, 0.12);
}

.scum-signin-popover-cell.is-next {
    border-color: rgba(255, 153, 0, 0.75);
    box-shadow: 0 0 0 1px rgba(255, 153, 0, 0.25);
}

.scum-signin-popover-milestone {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.scum-signin-popover-milestone.is-achieved {
    border-color: rgba(61, 139, 64, 0.55);
    background: rgba(61, 139, 64, 0.12);
}

.scum-signin-popover-milestone.is-next {
    border-color: rgba(255, 153, 0, 0.75);
    box-shadow: 0 0 0 1px rgba(255, 153, 0, 0.25);
}

.scum-signin-popover-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.scum-signin-popover-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 72px;
    max-width: 96px;
    text-align: center;
}

.scum-signin-popover-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 6px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
}

.scum-signin-popover-item.is-achieved {
    border-color: rgba(61, 139, 64, 0.55);
    background: rgba(61, 139, 64, 0.12);
}

.scum-signin-popover-item.is-next {
    border-color: rgba(255, 153, 0, 0.75);
    box-shadow: 0 0 0 1px rgba(255, 153, 0, 0.25);
}

.scum-signin-popover-day {
    width: 100%;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.2;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 2px;
}

.scum-signin-popover-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    width: 100%;
    max-width: 56px;
}

.scum-signin-popover-mini-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.scum-signin-popover-mini-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.scum-signin-popover-mini-more {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.72);
}

.scum-signin-popover-thumb {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
}

.scum-signin-popover-qty {
    position: absolute;
    right: -2px;
    bottom: -2px;
    padding: 1px 5px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    font-size: 0.58rem;
    line-height: 1.2;
}

.scum-signin-popover-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.scum-signin-popover-label {
    font-size: 0.62rem;
    line-height: 1.15;
    color: rgba(255, 255, 255, 0.92);
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    padding: 0 1px;
}

/* --- 主体 --- */
.scum-main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px 48px;
}

.scum-section { display: none; animation: scumFade 0.25s ease; }
.scum-section.active { display: block; }

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

/* --- 告示板 --- */
.scum-hero-banner {
    background: var(--scum-white);
    border-left: 5px solid var(--scum-orange);
    border-radius: var(--scum-radius-sm);
    padding: 20px 25px;
    box-shadow: var(--scum-shadow);
    margin-bottom: 25px;
}

.scum-hero-inner h2 {
    font-size: 22px;
    color: var(--scum-text-dark);
    margin-bottom: 5px;
    font-weight: 700;
}

.scum-hero-inner p {
    font-size: 13px;
    color: var(--scum-muted);
    margin: 0;
}

/* --- SCUM 服务器推广首页（参考 1.html） --- */
body.scum-portal--home {
    background: #f4f6f9;
}

body.scum-portal--home .scum-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
}

.scum-main--home {
    max-width: none;
    margin: 0;
    padding: 0;
}

.scum-home-landing {
    display: none;
}

.scum-home-landing.active {
    display: block;
}

.scum-promo-shell {
    color: #1e293b;
    line-height: 1.7;
    background: #f4f6f9;
}

.scum-promo-shell--has-bg {
    background-color: #f4f6f9;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.scum-promo-hero-section {
    background: #ffffff;
    padding: 72px 8% 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.scum-promo-hero-content {
    max-width: 600px;
    flex: 1 1 420px;
}

.scum-promo-hero-tag {
    display: inline-block;
    background: rgba(255, 102, 0, 0.1);
    color: #ff6600;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
}

.scum-promo-hero-title {
    margin: 0 0 20px;
    font-size: clamp(1.85rem, 4vw, 2.625rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.scum-promo-hero-desc {
    margin: 0;
    font-size: 16px;
    color: #475569;
    line-height: 1.75;
}

.scum-promo-hero-image {
    flex: 1 1 360px;
    min-height: 320px;
    max-height: 380px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.08);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: 0.12em;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.scum-promo-section {
    padding: 72px 8%;
}

.scum-promo-section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.scum-promo-section-title {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 800;
    color: #0f172a;
}

.scum-promo-section-subtitle {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.scum-promo-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.scum-promo-feature-card {
    background: #ffffff;
    padding: 40px 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scum-promo-feature-card:hover {
    transform: translateY(-6px);
    border-color: #00cc66;
    box-shadow: 0 20px 40px rgba(0, 204, 102, 0.08);
}

.scum-promo-feature-icon {
    width: 55px;
    height: 55px;
    background: rgba(0, 204, 102, 0.08);
    color: #00cc66;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
}

.scum-promo-feature-name {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
}

.scum-promo-feature-desc {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

.scum-promo-notice-list {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scum-promo-notice-item {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.scum-promo-notice-item:hover {
    border-color: #cbd5e1;
    transform: translateX(4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.scum-promo-notice-item.is-pinned {
    border-color: rgba(255, 102, 0, 0.18);
}

.scum-promo-notice-left {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.scum-promo-notice-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.scum-promo-notice-badge--update {
    background: rgba(0, 204, 102, 0.1);
    color: #00cc66;
}

.scum-promo-notice-badge--event {
    background: rgba(255, 102, 0, 0.1);
    color: #ff6600;
}

.scum-promo-notice-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.5;
}

.scum-promo-notice-arrow {
    flex-shrink: 0;
    font-size: 22px;
    color: #94a3b8;
    line-height: 1;
}

.scum-promo-home-footer {
    background: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 40px 8%;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.scum-promo-home-footer p {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

.scum-promo-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.scum-promo-modal-content {
    background: #ffffff;
    padding: 35px;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.scum-promo-modal-title {
    margin: 0 0 15px;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.scum-promo-modal-body {
    font-size: 14px;
    color: #475569;
    margin-bottom: 25px;
    white-space: pre-line;
    line-height: 1.75;
}

.scum-promo-modal-close {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    float: right;
}

.scum-promo-modal-close:hover {
    background: #e2e8f0;
}

@media (max-width: 960px) {
    .scum-promo-hero-section {
        flex-direction: column;
        padding: 48px 6% 40px;
        text-align: center;
    }

    .scum-promo-hero-content {
        max-width: none;
    }

    .scum-promo-hero-image {
        width: 100%;
        min-height: 240px;
    }

    .scum-promo-section {
        padding: 56px 6%;
    }

    .scum-promo-notice-item {
        padding: 18px 20px;
    }

    .scum-promo-notice-left {
        gap: 12px;
    }
}

/* --- 面板 / 工具栏 --- */
.scum-panel {
    background: var(--scum-white);
    border-radius: var(--scum-radius);
    padding: 20px;
    box-shadow: var(--scum-shadow);
    margin-bottom: 25px;
    border: 1px solid var(--scum-border);
}

.scum-panel-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--scum-text-dark);
    margin-bottom: 16px;
}

.scum-panel-head {
    margin-bottom: 16px;
}

.scum-panel-head h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--scum-text-dark);
}

.scum-panel-desc {
    margin: 0;
    font-size: 13px;
    color: var(--scum-text-muted, #64748b);
    line-height: 1.5;
}

.scum-shop-toolbar {
    background: var(--scum-white);
    border-radius: var(--scum-radius);
    padding: 20px;
    box-shadow: var(--scum-shadow);
    margin-bottom: 25px;
    border: 1px solid var(--scum-border);
}

.scum-toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 0;
}

.scum-search {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--scum-border-input);
    border-radius: var(--scum-radius-sm);
    font-size: 14px;
    outline: none;
    background: #f8fafc;
    font-family: inherit;
    color: var(--scum-text);
    transition: all 0.3s;
    margin-bottom: 20px;
}

.scum-search:focus {
    border-color: var(--scum-green);
    background: var(--scum-white);
    box-shadow: 0 0 0 3px rgba(0, 204, 102, 0.1);
}

.scum-search::placeholder { color: var(--scum-muted-light); }

.scum-toolbar .scum-search {
    flex: 1 1 220px;
    width: auto;
    margin-bottom: 0;
}

.scum-cat-scroll,
.scum-sub-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.scum-sub-row { margin-top: 12px; }

.scum-cat-btn,
.scum-sub-chip {
    padding: 8px 18px;
    background: var(--scum-tag-bg);
    color: #475569;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    font-family: inherit;
}

.scum-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: auto;
    flex-direction: row;
}

.scum-cat-btn .icon { font-size: 14px; }

.scum-cat-btn:hover,
.scum-sub-chip:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.scum-cat-btn.active,
.scum-sub-chip.active {
    background: rgba(0, 204, 102, 0.1);
    color: var(--scum-green);
    border-color: rgba(0, 204, 102, 0.3);
    font-weight: 600;
}

.scum-toolbar-meta {
    font-size: 13px;
    color: var(--scum-muted);
    white-space: nowrap;
}

/* --- 快捷入口 --- */
.scum-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.scum-quick-card {
    background: var(--scum-white);
    border: 1px solid var(--scum-border);
    border-radius: var(--scum-radius);
    padding: 18px;
    cursor: pointer;
    text-align: left;
    color: inherit;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--scum-shadow);
}

.scum-quick-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--scum-shadow-hover);
    border-color: var(--scum-green);
}

.scum-quick-card strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--scum-text-dark);
    margin-bottom: 4px;
}

.scum-quick-card span {
    font-size: 12px;
    color: var(--scum-muted);
}

/* --- 商品卡片 --- */
.scum-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    overflow: visible;
}

.scum-card {
    background: var(--scum-white);
    border-radius: var(--scum-radius);
    overflow: hidden;
    box-shadow: var(--scum-shadow);
    border: 1px solid var(--scum-border);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.scum-card--bundle {
    overflow: visible;
    z-index: 1;
}

.scum-card--bundle:hover {
    z-index: 40;
}

.scum-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--scum-shadow-hover);
    border-color: var(--scum-green);
}

.scum-card-art {
    width: 100%;
    height: 170px;
    background: linear-gradient(135deg, #2c3e50, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.scum-card-art::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: repeating-linear-gradient(45deg, rgba(255,102,0,0.05), rgba(255,102,0,0.05) 10px, transparent 10px, transparent 20px);
    top: -25%;
    left: -25%;
    pointer-events: none;
}

.scum-card-art img {
    position: relative;
    z-index: 1;
}

.scum-card-art-main {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    box-sizing: border-box;
    image-rendering: auto;
}

.scum-card-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    height: 100%;
    gap: 2px;
    padding: 8px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.scum-card-preview-cell {
    position: relative;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scum-card-preview-cell--empty {
    opacity: 0.25;
}

.scum-card-preview-cell img,
.scum-card-preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    box-sizing: border-box;
    image-rendering: auto;
}

.scum-card-preview-cell--more::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.scum-card-preview-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: #5eead4;
    font-size: 22px;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.scum-card-detail-popover {
    display: none;
    position: absolute;
    left: calc(100% + 14px);
    top: 0;
    transform: none;
    width: 300px;
    max-height: min(420px, 70vh);
    padding: 14px 14px 12px;
    background: linear-gradient(180deg, #1e293b 0%, #111827 100%);
    border: 1px solid rgba(94, 234, 212, 0.45);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    z-index: 60;
    pointer-events: auto;
    overflow: hidden;
}

.scum-card--bundle:hover .scum-card-detail-popover {
    display: block;
}

@media (max-width: 720px) {
    .scum-card-detail-popover {
        left: 50%;
        top: auto;
        bottom: calc(100% + 10px);
        transform: translateX(-50%);
        width: min(300px, calc(100vw - 24px));
    }
}

.scum-card-detail-head {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.scum-card-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 8px;
    max-height: min(340px, 58vh);
    overflow-y: auto;
    padding-right: 2px;
}

.scum-card-detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.scum-card-detail-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scum-card-detail-thumb img,
.scum-card-detail-img {
    width: 82%;
    height: 82%;
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
    image-rendering: auto;
}

.scum-card-detail-qty {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #f97316;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.scum-card-detail-name {
    width: 100%;
    color: #cbd5e1;
    font-size: 11px;
    line-height: 1.25;
    text-align: center;
    word-break: break-word;
}

.scum-card-art-label {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.15);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scum-art--weapon { background: linear-gradient(135deg, #d35400, #1a1a1a); }
.scum-art--ammo { background: linear-gradient(135deg, #27ae60, #1a1a1a); }
.scum-art--attach { background: linear-gradient(135deg, #34495e, #1a1a1a); }
.scum-art--vehicle { background: linear-gradient(135deg, #2980b9, #1a1a1a); }
.scum-art--tool { background: linear-gradient(135deg, #8e6e53, #1a1a1a); }
.scum-art--food { background: linear-gradient(135deg, #c0392b, #1a1a1a); }
.scum-art--med { background: linear-gradient(135deg, #16a085, #1a1a1a); }
.scum-art--cloth { background: linear-gradient(135deg, #7f8c8d, #1a1a1a); }
.scum-art--bag { background: linear-gradient(135deg, #d68910, #1a1a1a); }
.scum-art--gift { background: linear-gradient(135deg, #d35400, #1a1a1a); }
.scum-art--limit { background: linear-gradient(135deg, #922b21, #1a1a1a); }
.scum-art--sale { background: linear-gradient(135deg, #b7950b, #1a1a1a); }
.scum-art--default { background: linear-gradient(135deg, #2c3e50, #1a1a1a); }

.scum-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.scum-card-tag {
    font-size: 11px;
    color: var(--scum-orange);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.scum-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--scum-text-dark);
    margin: 0 0 2px;
    line-height: 1.3;
}

.scum-card-desc {
    font-size: 12px;
    color: var(--scum-muted-light);
    font-family: var(--scum-mono);
    margin: 0 0 15px;
    line-height: 1.4;
    flex: 1;
}

.scum-card-foot {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px dashed #f1f5f9;
    gap: 8px;
}

.scum-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--scum-text-dark);
}

.scum-price small {
    font-size: 12px;
    color: #64748b;
    font-weight: 400;
    margin-left: 2px;
}

.scum-price--discount .scum-price-old {
    margin-left: 8px;
    font-size: 12px;
    color: var(--scum-muted);
    text-decoration: line-through;
    font-weight: 500;
}

.scum-megaphone-panel {
    padding: 24px;
}

.scum-vehicle-rental-panel {
    padding: 24px;
}

.scum-vehicle-rental-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
}

.scum-vehicle-rental-list {
    display: grid;
    gap: 12px;
}

.scum-vehicle-rental-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--scum-border-input);
    border-radius: 10px;
}

.scum-vehicle-rental-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.04);
}

.scum-vehicle-rental-card-body {
    flex: 1;
    min-width: 0;
}

.scum-vehicle-rental-buy,
.scum-vehicle-rental-renew {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

.scum-vehicle-rental-duration {
    min-width: 160px;
    max-width: 100%;
}

.scum-vehicle-rental-leases {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.scum-vehicle-rental-lease {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--scum-border-input);
    border-radius: 10px;
}

.scum-vehicle-rental-id {
    margin-top: 4px;
    font-size: 14px;
}

.scum-vehicle-rental-id .mono {
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* --- 载具保险 --- */
.scum-vi-panel {
    padding: 22px 24px 28px;
    display: grid;
    gap: 28px;
}

.scum-vi-block-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: var(--scum-text-dark);
}

.scum-vi-block-ico {
    display: inline-flex;
    color: var(--scum-green, #16a34a);
}

.scum-vi-ico {
    width: 22px;
    height: 22px;
    display: block;
}

.scum-vi-ico--sm {
    width: 16px;
    height: 16px;
}

.scum-vi-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.scum-vi-plan-card {
    text-align: left;
    cursor: pointer;
    background: var(--scum-white, #fff);
    border: 1px solid var(--scum-border, #e5e7eb);
    border-radius: 14px;
    box-shadow: var(--scum-shadow, 0 4px 15px rgba(0, 0, 0, 0.03));
    padding: 16px;
    display: grid;
    gap: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    color: inherit;
    font: inherit;
}

.scum-vi-plan-card:hover {
    border-color: rgba(22, 163, 74, 0.45);
    transform: translateY(-2px);
    box-shadow: var(--scum-shadow-hover, 0 12px 25px rgba(0, 0, 0, 0.07));
}

.scum-vi-plan-card.is-selected {
    border-color: var(--scum-green, #16a34a);
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.18), var(--scum-shadow);
}

.scum-vi-plan-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.scum-vi-plan-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #059669;
    flex-shrink: 0;
}

.scum-vi-plan-titles {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.scum-vi-plan-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.scum-vi-plan-badge,
.scum-vi-plan-hint {
    display: inline-flex;
    width: fit-content;
    font-size: 12px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 999px;
}

.scum-vi-plan-badge {
    background: #dcfce7;
    color: #15803d;
    font-weight: 600;
}

.scum-vi-plan-hint {
    background: #f1f5f9;
    color: #64748b;
}

.scum-vi-plan-stats {
    display: grid;
    gap: 10px;
}

.scum-vi-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.scum-vi-stat-label {
    font-size: 12px;
    color: #64748b;
    flex-shrink: 0;
}

.scum-vi-hours {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #0f172a;
}

.scum-vi-vehicle-payout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.scum-vi-owned-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.scum-vi-owned-card {
    text-align: left;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--scum-border, #e5e7eb);
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 6px;
    font: inherit;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.scum-vi-owned-card:hover {
    border-color: var(--scum-green, #16a34a);
    transform: translateY(-1px);
}

.scum-vi-owned-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.scum-vi-owned-src {
    margin-left: auto;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
}

.scum-vi-hours b {
    font-size: 14px;
}

.scum-vi-buy-card,
.scum-vi-empty-card,
.scum-vi-policy-card {
    background: var(--scum-white, #fff);
    border: 1px solid var(--scum-border, #e5e7eb);
    border-radius: 14px;
    box-shadow: var(--scum-shadow, 0 4px 15px rgba(0, 0, 0, 0.03));
}

.scum-vi-buy-card {
    padding: 18px 18px 16px;
    display: grid;
    gap: 14px;
    max-width: 560px;
}

.scum-vi-buy-card--login {
    align-items: flex-start;
}

.scum-vi-buy-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.scum-vi-buy-head strong {
    display: block;
    margin-bottom: 4px;
}

.scum-vi-buy-head .scum-muted {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

.scum-vi-buy-icon,
.scum-vi-policy-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    flex-shrink: 0;
}

.scum-vi-field {
    display: grid;
    gap: 6px;
}

.scum-vi-field label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.scum-vi-input,
.scum-vi-input-wrap .scum-vi-input {
    width: 100%;
    box-sizing: border-box;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--scum-border-input, #d1d5db);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    color: inherit;
}

.scum-vi-input:focus {
    outline: none;
    border-color: var(--scum-green, #16a34a);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.scum-vi-hint-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 13px;
    line-height: 1.4;
}

.scum-vi-buy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.scum-vi-empty-card {
    padding: 18px;
}

.scum-vi-policy-list {
    display: grid;
    gap: 12px;
}

.scum-vi-policy-card {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

.scum-vi-policy-card--active {
    border-color: rgba(22, 163, 74, 0.35);
}

.scum-vi-policy-card--claimed {
    border-color: rgba(37, 99, 235, 0.3);
}

.scum-vi-policy-card--expired {
    opacity: 0.88;
}

.scum-vi-policy-main {
    display: grid;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.scum-vi-policy-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.scum-vi-policy-top strong {
    display: block;
    margin-bottom: 4px;
}

.scum-vi-status-badge {
    display: inline-flex;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 600;
}

.scum-vi-status-badge--active {
    background: #dcfce7;
    color: #15803d;
}

.scum-vi-status-badge--claiming {
    background: #ffedd5;
    color: #c2410c;
}

.scum-vi-status-badge--claimed {
    background: #dbeafe;
    color: #1d4ed8;
}

.scum-vi-status-badge--expired {
    background: #f1f5f9;
    color: #64748b;
}

.scum-vi-policy-id {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #334155;
}

.scum-vi-policy-code {
    font-size: 12px;
}

.scum-vi-policy-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.scum-vi-mini-label {
    font-size: 12px;
    color: #64748b;
}

.scum-vi-policy-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
}

.scum-vi-policy-actions {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .scum-vi-panel {
        padding: 16px;
        gap: 22px;
    }

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

    .scum-vi-buy-card {
        max-width: none;
    }
}

.scum-panel-subtitle {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--scum-text-dark);
}

.scum-megaphone-block {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px dashed var(--scum-border-input);
}

.scum-vip-table-wrap {
    margin-bottom: 8px;
}

.scum-vip-table-hint {
    margin: 0 0 12px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.scum-table-scroll {
    overflow-x: auto;
    border: 1px solid var(--scum-border-input);
    border-radius: var(--scum-radius);
    background: #fff;
}

.scum-vip-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 480px;
}

.scum-vip-table th,
.scum-vip-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.scum-vip-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    white-space: nowrap;
}

.scum-vip-table tbody tr:last-child td {
    border-bottom: none;
}

.scum-vip-table tbody tr:hover {
    background: #fafafa;
}

.scum-vip-row--current {
    background: rgba(0, 204, 102, 0.06);
}

.scum-vip-row--current td:first-child strong {
    color: var(--scum-green);
}

.scum-vip-online-cell {
    font-size: 12px;
    line-height: 1.45;
    min-width: 140px;
}

.scum-vip-reward-panel {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--scum-border);
}

.scum-vip-reward-panel-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.scum-vip-reward-meta {
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--scum-text-muted);
}

.scum-vip-reward-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 12px;
}

.scum-vip-reward-row:last-child {
    border-bottom: none;
}

.scum-vip-reward-info {
    flex: 1;
    min-width: 0;
}

.scum-vip-reward-action {
    flex-shrink: 0;
}

.scum-building-admin-vip {
    display: inline-block;
    margin-left: 6px;
    background: rgba(255, 102, 0, 0.92);
    color: #fff;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    vertical-align: middle;
}

.scum-vip-reward-status {
    color: var(--scum-text-muted);
    white-space: nowrap;
}

.scum-vip-reward-claim {
    padding: 4px 10px;
    font-size: 12px;
}

.scum-megaphone-quota {
    margin: 0 0 16px;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

.scum-fake-name-panel {
    padding: 20px;
}

.scum-fake-name-hint {
    margin: 0 0 16px;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

.scum-fake-name-editor {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scum-fake-name-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.scum-fake-name-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scum-fake-name-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--scum-border);
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.scum-fake-name-input:focus {
    outline: none;
    border-color: var(--scum-green);
}

.scum-fake-name-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.scum-fake-name-clear-btn {
    padding: 8px 16px;
    font-size: 13px;
    border: 1px solid var(--scum-border);
    border-radius: 8px;
    background: #fff;
    color: #475569;
    cursor: pointer;
}

.scum-fake-name-clear-btn:hover:not(:disabled) {
    border-color: #94a3b8;
    color: #334155;
}

.scum-fake-name-clear-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.scum-title-panel {
    margin-bottom: 16px;
}

.scum-title-panel--progress {
    margin-bottom: 0;
}

.scum-title-mode-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-bottom: 16px;
}

.scum-title-mode-label {
    font-size: 13px;
    color: var(--scum-text-muted);
}

.scum-title-mode-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
}

.scum-title-owned-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.scum-title-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.scum-title-card:hover {
    border-color: #cbd5e1;
}

.scum-title-card--active {
    border-color: rgba(0, 204, 102, 0.55);
    background: rgba(0, 204, 102, 0.05);
    box-shadow: 0 0 0 1px rgba(0, 204, 102, 0.12);
}

.scum-title-card-input {
    margin-top: 3px;
    flex-shrink: 0;
}

.scum-title-card-body {
    min-width: 0;
    flex: 1;
}

.scum-title-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--scum-green);
    line-height: 1.4;
    word-break: break-word;
}

.scum-title-card-meta {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
}

.scum-title-owned-count {
    margin-left: 6px;
}

.scum-title-preview-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

.scum-title-preview-label {
    font-size: 13px;
    color: var(--scum-text-muted);
}

.scum-title-preview-text {
    font-size: 15px;
    color: #0f172a;
    word-break: break-all;
}

.scum-title-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.scum-title-owned-empty,
.scum-title-progress-empty {
    padding: 20px 12px;
}

.scum-title-owned-hint {
    margin-top: 4px;
    margin-bottom: 0;
}

.scum-title-progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.scum-title-progress-card {
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.scum-title-progress-card__title {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    word-break: break-word;
}

.scum-title-progress-card__cond {
    font-size: 13px;
    color: var(--scum-text-muted);
    margin-bottom: 10px;
    line-height: 1.45;
}

.scum-title-progress-card__reward {
    font-size: 12.5px;
    color: #b45309;
    margin: -4px 0 10px;
    line-height: 1.4;
}

.scum-title-progress-card__progress {
    margin-bottom: 10px;
}

.scum-title-progress-card__status {
    font-size: 12px;
}

.scum-title-table td {
    vertical-align: middle;
    font-size: 13px;
}

.scum-title-progress {
    background: #e2e8f0;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 4px;
}

.scum-title-progress-bar {
    height: 100%;
    background: var(--scum-green);
}

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

.scum-title-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    background: #f1f5f9;
    color: #64748b;
}

.scum-title-badge--earned {
    background: rgba(0, 204, 102, 0.12);
    color: var(--scum-green);
}

.scum-title-badge--active {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.scum-title-row--earned {
    background: rgba(0, 204, 102, 0.04);
}

.scum-title-actions {
    white-space: nowrap;
}

.scum-megaphone-editor {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scum-megaphone-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.scum-megaphone-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--scum-border-input);
    border-radius: var(--scum-radius);
}

.scum-megaphone-input {
    width: 100%;
    min-height: 140px;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: var(--scum-text-dark);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.scum-megaphone-input::placeholder {
    color: #94a3b8;
}

.scum-megaphone-input:focus {
    outline: none;
    border-color: var(--scum-green);
    box-shadow: 0 0 0 3px rgba(0, 204, 102, 0.12);
}

.scum-megaphone-input:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.scum-megaphone-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.scum-megaphone-counter {
    font-size: 12px;
    color: var(--scum-muted);
}

.scum-wheel-panel {
    padding: 16px 12px 28px;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    border: none;
    margin-bottom: 0;
}

.scum-wheel-quota {
    margin: 0 0 20px;
    font-size: 0.95rem;
    color: var(--scum-muted);
}

.scum-wheel-matrix {
    width: 100%;
}

.scum-wheel-matrix-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    gap: 16px;
    flex-wrap: wrap;
}

.scum-wheel-matrix-subtitle {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.scum-wheel-matrix-start {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
    transition: all 0.2s;
    white-space: nowrap;
}

.scum-wheel-matrix-start:hover:not(:disabled) {
    background: var(--scum-green);
    box-shadow: 0 10px 25px rgba(0, 204, 102, 0.3);
    transform: translateY(-2px);
}

.scum-wheel-matrix-start:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.scum-wheel-matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    overflow: visible;
}

.scum-wheel-matrix-item {
    background: #ffffff;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    text-align: center;
    border: 2px solid transparent;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    transition: all 0.15s ease;
    position: relative;
    gap: 10px;
    overflow: hidden;
}

.scum-wheel-matrix-item--bundle {
    overflow: visible;
    z-index: 1;
}

.scum-wheel-matrix-item--bundle:hover {
    z-index: 40;
}

.scum-wheel-matrix-item--bundle:hover .scum-card-detail-popover {
    display: block;
}

.scum-wheel-matrix-item.active {
    border-color: var(--scum-green);
    background-color: rgba(0, 204, 102, 0.02);
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 204, 102, 0.2);
    z-index: 5;
}

.scum-wheel-matrix-item-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.scum-wheel-matrix-item-icon--bundle {
    width: 100%;
    flex: 1;
    min-height: 0;
    max-height: calc(100% - 34px);
    align-self: stretch;
}

.scum-wheel-matrix-item-icon--bundle .scum-card-preview-grid {
    width: 100%;
    height: 100%;
    max-height: 112px;
    padding: 4px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
    border-radius: 12px;
}

.scum-wheel-matrix-item-icon--bundle .scum-card-preview-cell {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.scum-wheel-matrix-item--bundle .scum-card-detail-popover {
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 720px) {
    .scum-wheel-matrix-item--bundle .scum-card-detail-popover {
        top: auto;
        bottom: calc(100% + 10px);
        transform: translateX(-50%);
    }
}

.scum-wheel-matrix-item-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.scum-wheel-matrix-item-label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.scum-wheel-result {
    margin: 30px 0 0;
    padding: 14px 20px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
    animation: scumWheelResultIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.scum-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--scum-text-dark);
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
}

.scum-vip-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 102, 0, 0.92);
    color: #fff;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
}

.scum-steam-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(37, 99, 235, 0.92);
    color: #fff;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
}

.scum-title-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(180, 83, 9, 0.92);
    color: #fff;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
    max-width: 72%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scum-card-art .scum-vip-tag + .scum-steam-tag,
.scum-card-art .scum-vip-tag + .scum-title-tag {
    top: 40px;
}

.scum-card-art .scum-vip-tag + .scum-steam-tag + .scum-title-tag,
.scum-card-art .scum-steam-tag + .scum-title-tag {
    top: 68px;
}

.scum-limit-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(100, 116, 139, 0.92);
    color: #fff;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
}

.scum-limit-tag--claim {
    top: auto;
    bottom: 12px;
    left: 12px;
    background: rgba(217, 119, 6, 0.92);
}

.scum-manual-claim-panel {
    margin-bottom: 16px;
    border: 1px solid #fde68a;
    background: #fffbeb;
}

.scum-manual-claim-hint {
    margin: 0 0 12px;
    color: #92400e;
    font-size: 0.92rem;
}

.scum-manual-claim-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scum-manual-claim-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #fde68a;
}

.scum-card-meta {
    margin: 0 0 10px;
    font-size: 12px;
    color: #64748b;
}

.scum-account-panel {
    max-width: 560px;
}

.scum-account-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: baseline;
    margin-bottom: 12px;
}

.scum-account-label {
    min-width: 88px;
    color: var(--scum-text-muted);
    font-size: 13px;
}

.scum-account-alert {
    margin: 12px 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: #1d4ed8;
    font-size: 13px;
    line-height: 1.5;
}

.scum-account-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.scum-gift-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--scum-text-dark);
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
}

.scum-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--scum-muted);
    background: var(--scum-white);
    border-radius: var(--scum-radius);
    border: 1px dashed var(--scum-border-input);
}

/* --- 订单 / 传送列表 --- */
.scum-order-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: min(320px, 40vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

.scum-order-list::-webkit-scrollbar {
    width: 6px;
}

.scum-order-list::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 3px;
}

.scum-order-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.scum-order-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.scum-order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--scum-radius-sm);
    background: #f8fafc;
    border: 1px solid var(--scum-border);
}

.scum-order-row strong { color: var(--scum-text-dark); font-weight: 600; }

.scum-order-meta {
    font-size: 12px;
    color: var(--scum-muted);
    display: block;
    margin-top: 2px;
}

.scum-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(0, 204, 102, 0.1);
    color: var(--scum-green);
    font-weight: 600;
    white-space: nowrap;
}

.scum-recycle-qty {
    width: 56px;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid var(--scum-border-input);
    background: #f8fafc;
    color: var(--scum-text);
    font-family: inherit;
    font-size: 13px;
}

.scum-recycle-qty:focus {
    outline: none;
    border-color: var(--scum-green);
}

.scum-exchange-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scum-exchange-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--scum-border);
    border-radius: var(--scum-radius-sm);
    background: rgba(255, 255, 255, 0.02);
}

.scum-exchange-rate {
    font-size: 15px;
    font-weight: 600;
}

.scum-exchange-rate small {
    font-weight: 500;
    color: var(--scum-text-muted);
}

.scum-exchange-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.scum-exchange-qty {
    width: 88px;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid var(--scum-border-input);
    background: #f8fafc;
    color: var(--scum-text);
    font-family: inherit;
    font-size: 13px;
}

.scum-wallet-row--fame strong {
    color: #a855f7;
}

/* --- Toast / 弹窗 --- */
.scum-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    padding: 12px 24px;
    border-radius: var(--scum-radius-sm);
    background: var(--scum-text-dark);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-width: 90vw;
    font-size: 14px;
}

.scum-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 150;
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.45);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.scum-modal.scum-modal--open {
    display: flex;
}

.scum-modal[hidden] {
    display: none !important;
    pointer-events: none;
}

.scum-modal-box {
    width: 100%;
    max-width: 420px;
    flex-shrink: 0;
    margin: auto;
    background: var(--scum-white);
    border-radius: var(--scum-radius);
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.scum-modal-box h2 {
    margin: 0 0 8px;
    color: var(--scum-text-dark);
    font-size: 20px;
    font-weight: 800;
}

.scum-field { margin-bottom: 14px; }
.scum-field label {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 500;
}

.scum-field input,
.scum-field select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--scum-border-input);
    background: #f8fafc;
    color: var(--scum-text);
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.scum-field input:focus,
.scum-field select:focus {
    outline: none;
    border-color: var(--scum-green);
    background: var(--scum-white);
    box-shadow: 0 0 0 3px rgba(0, 204, 102, 0.1);
}

/* --- 玩家交易行 --- */
.scum-market-toolbar .scum-toolbar {
    gap: 12px;
}

.scum-market-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

.scum-market-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.scum-market-modal.is-open {
    display: flex;
}

.scum-market-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(5px);
}

.scum-market-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    max-height: min(88vh, 720px);
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--scum-border);
    display: flex;
    flex-direction: column;
}

.scum-market-modal--wide .scum-market-modal-panel {
    max-width: 920px;
}

.scum-market-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 0;
}

.scum-market-modal-head h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.scum-market-modal-x {
    border: none;
    background: #f1f5f9;
    color: #64748b;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.scum-market-modal-x:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.scum-market-modal-body {
    padding: 16px 20px 8px;
    overflow: auto;
}

.scum-market-modal-hint {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
}

.scum-market-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.scum-market-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 20px 20px;
}

.scum-market-mine-grid {
    margin-top: 4px;
}

.scum-market-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #f1f5f9;
    color: #64748b;
}

.scum-market-pill--pending {
    background: #ffedd5;
    color: #c2410c;
}

.scum-market-pill--failed {
    background: #fee2e2;
    color: #b91c1c;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scum-market-pick {
    border: 1px dashed var(--scum-border-input, #cbd5e1);
    border-radius: 10px;
    background: #f8fafc;
    padding: 12px;
}

.scum-market-pick-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px 10px;
    color: #64748b;
    font-size: 13px;
}

.scum-market-pick-selected {
    display: flex;
    align-items: center;
    gap: 12px;
}

.scum-market-pick-thumb {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--scum-border, #e2e8f0);
    flex-shrink: 0;
}

.scum-market-pick-thumb--empty {
    background: #e2e8f0;
}

.scum-market-pick-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.scum-market-pick-info strong {
    font-size: 14px;
    color: #0f172a;
}

/* 玩家端物资库选择器（复用 asset-picker.js） */
body.scum-dialog-open { overflow: hidden; }

.scum-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}

.scum-dialog-overlay[hidden] { display: none !important; }

.scum-dialog-overlay.deliver-picker-overlay {
    z-index: 22000;
    padding: 16px;
}

.deliver-picker-dialog {
    width: min(560px, 100%);
    max-height: min(72vh, 520px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    padding: 0;
}

.deliver-picker-dialog--wide {
    width: min(920px, 98vw);
    max-height: min(78vh, 620px);
}

.deliver-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.deliver-picker-title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
    color: #0f172a;
}

.deliver-picker-close-x {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.deliver-picker-close-x:hover {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

.deliver-picker-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 8px;
    flex-shrink: 0;
}

.deliver-picker-filters select,
.deliver-picker-filters input[type="search"] {
    padding: 8px 10px;
    font-size: 0.88rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #1e293b;
    box-sizing: border-box;
    font-family: inherit;
}

.deliver-picker-filters .deliver-picker-category { flex: 1 1 130px; min-width: 110px; }
.deliver-picker-filters .deliver-picker-field { flex: 0 0 100px; min-width: 88px; }
.deliver-picker-filters .deliver-picker-search { flex: 1 1 180px; min-width: 140px; }

.deliver-picker-status {
    margin: 0;
    padding: 0 20px 10px;
    font-size: 0.84rem;
    color: #64748b;
    flex-shrink: 0;
}

.deliver-picker-list {
    flex: 1;
    min-height: 160px;
    overflow-y: auto;
    margin: 0 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.deliver-picker-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    background: #fff;
}

.deliver-picker-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 8px 10px;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.deliver-picker-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.deliver-picker-table tr:hover td {
    background: rgba(0, 204, 102, 0.06);
}

.deliver-picker-col-name { min-width: 120px; font-weight: 600; color: #0f172a; }
.deliver-picker-col-cat { width: 72px; color: #64748b; white-space: nowrap; }
.deliver-picker-col-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8rem; color: #15803d; }
.deliver-picker-col-act { width: 88px; text-align: right; white-space: nowrap; }

.asset-col-thumb { width: 52px; padding: 6px 8px !important; }
.asset-thumb,
.deliver-picker-thumb {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: block;
}

.deliver-picker-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px 16px;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.deliver-picker-empty {
    padding: 48px 24px;
    text-align: center;
    color: #64748b;
    font-size: 0.92rem;
}

.scum-portal .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1.4;
}

.scum-portal .btn-primary {
    color: #fff;
    background: var(--scum-green, #00cc66);
}

.scum-portal .btn-primary:hover {
    background: var(--scum-green-hover, #00b359);
}

.scum-portal .btn-secondary {
    color: #334155;
    background: #fff;
    border: 1px solid #cbd5e1;
}

.scum-portal .btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.deliver-picker-dialog--compact .deliver-picker-header { padding: 12px 16px 10px; }
.deliver-picker-dialog--compact .deliver-picker-filters { padding: 8px 14px 6px; gap: 6px; }
.deliver-picker-dialog--compact .deliver-picker-list { margin: 0 14px; min-height: 140px; }
.deliver-picker-dialog--compact .deliver-picker-thumb,
.deliver-picker-dialog--compact .asset-col-thumb .asset-thumb {
    width: 34px !important;
    height: 34px !important;
}
.deliver-picker-dialog--compact .deliver-picker-footer { padding: 10px 16px 12px; }

@media (max-width: 640px) {
    .scum-market-field-row {
        grid-template-columns: 1fr;
    }

    .scum-market-toolbar .scum-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .scum-market-actions {
        width: 100%;
    }

    .scum-market-actions .scum-btn,
    .scum-market-actions .scum-btn--login {
        flex: 1;
    }
}

.scum-auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.scum-auth-tab {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--scum-border-input);
    background: #f8fafc;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
}

.scum-auth-tab.active {
    border-color: var(--scum-green);
    color: var(--scum-green);
    background: rgba(0, 204, 102, 0.08);
    font-weight: 600;
}

.scum-alert-error {
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 13px;
}

.scum-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    user-select: none;
}

.scum-remember input { margin: 0; }

.scum-recharge-banner {
    background: rgba(0, 204, 102, 0.1);
    border: 1px solid rgba(0, 204, 102, 0.35);
    color: #1e7e34;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
}

.scum-recharge-section { margin-bottom: 20px; }
.scum-recharge-section h3 {
    font-size: 15px;
    color: var(--scum-text-dark);
    margin: 0 0 12px;
}

.scum-recharge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.scum-recharge-card {
    border: 1px solid var(--scum-border);
    border-radius: var(--scum-radius);
    padding: 16px;
    background: var(--scum-white);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--scum-shadow);
}

.scum-recharge-card:hover,
.scum-recharge-card.selected {
    border-color: var(--scum-green);
    box-shadow: 0 8px 20px rgba(0, 204, 102, 0.12);
}

.scum-recharge-card h4 {
    margin: 0 0 8px;
    font-size: 15px;
    color: var(--scum-text-dark);
}

.scum-recharge-amt {
    font-size: 13px;
    color: var(--scum-muted);
    margin-bottom: 8px;
}

.scum-recharge-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--scum-orange);
}

.scum-recharge-actions {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--scum-border);
}

.scum-recharge-pay-types {
    display: flex;
    gap: 20px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #475569;
}

.scum-recharge-pay-types label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.hidden { display: none !important; }

/* ===== Map transport ===== */
.scum-transport-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    gap: 18px;
    align-items: start;
}

.scum-transport-map-panel .scum-sub-row {
    margin-bottom: 12px;
}

.teleport-map-wrap {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #0f172a;
    cursor: crosshair;
}

.teleport-map-wrap.scum-transport-map {
    cursor: default;
}

.teleport-map-img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.teleport-map-markers {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.teleport-map-pin {
    position: absolute;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
    cursor: pointer;
    padding: 0;
}

.teleport-map-pin--place {
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    background: #f97316;
}

.teleport-map-pin.selected,
.teleport-map-pin--place.selected {
    background: #16a34a;
    transform: scale(1.15);
    z-index: 2;
}

.scum-transport-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scum-transport-detail {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.scum-transport-detail-tag {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #15803d;
    font-size: 12px;
    font-weight: 600;
}

.scum-transport-detail-tag--flag {
    background: #fef9c3;
    color: #a16207;
}

.scum-transport-item--flag span {
    color: #a16207;
}

.teleport-map-pin--flag.selected {
    background: #ca8a04;
    transform: scale(1.15);
    z-index: 2;
}

.scum-transport-detail h4 {
    margin: 0 0 8px;
    font-size: 18px;
}

.scum-transport-detail-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.scum-transport-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow: auto;
}

.scum-transport-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: left;
}

.scum-transport-item.active {
    border-color: #22c55e;
    background: #f0fdf4;
}

.scum-transport-item strong {
    font-size: 14px;
}

.scum-transport-item span {
    color: #15803d;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.scum-flag-panel .scum-panel-head h3 {
    font-size: 1.05rem;
}

.scum-flag-panel .scum-panel-desc {
    color: var(--muted, #64748b);
    font-size: 0.88rem;
}

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

.scum-flag-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.scum-flag-item-main strong {
    font-size: 14px;
}

.scum-flag-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(234, 179, 8, 0.15);
    color: #ca8a04;
}

.scum-flag-meta {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted, #64748b);
}

.scum-flag-item-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.scum-flag-empty {
    padding: 16px 0 4px;
}

.teleport-map-pin--flag {
    background: #ca8a04;
    box-shadow: 0 0 0 2px rgba(202, 138, 4, 0.35);
}

.teleport-map-pin--flag-squad {
    background: #b45309;
    box-shadow: 0 0 0 2px rgba(180, 83, 9, 0.35);
}

.teleport-map-pin--squad {
    background: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

.teleport-map-pin--squad.selected {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.55), 0 0 12px rgba(37, 99, 235, 0.4);
}

.teleport-map-pin--private {
    background: #7c3aed;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.35);
}

.teleport-map-pin--private.selected {
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.55), 0 0 12px rgba(124, 58, 237, 0.4);
}

.scum-transport-item--private span {
    color: #6d28d9;
}

.scum-transport-detail-tag--private {
    background: rgba(124, 58, 237, 0.1);
    color: #6d28d9;
    border-color: rgba(124, 58, 237, 0.25);
}

.scum-transport-item--squad .scum-transport-item-name::before {
    content: "👥";
    margin-right: 4px;
}

.scum-transport-detail-tag--squad {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.25);
}

.scum-notify-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--scum-border-input);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.scum-notify-btn:hover {
    border-color: var(--scum-green);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
}

.scum-notify-icon {
    font-size: 18px;
    line-height: 1;
}

.scum-notify-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.4);
}

.scum-notify-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 72px 16px 16px;
    background: rgba(15, 23, 42, 0.35);
}

.scum-notify-modal {
    width: min(420px, calc(100vw - 32px));
    max-height: min(70vh, 520px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--scum-border-input);
    border-radius: 12px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
}

.scum-notify-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--scum-border-input);
}

.scum-notify-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--scum-text-dark);
}

.scum-notify-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.scum-notify-close:hover {
    background: var(--scum-tag-bg);
    color: var(--scum-text-dark);
}

.scum-notify-body {
    padding: 12px 16px 16px;
    overflow-y: auto;
}

.scum-notify-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 8px 0 10px;
}

.scum-notify-section-title:first-child {
    margin-top: 0;
}

.scum-notify-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--scum-border-input);
    border-radius: 10px;
    background: #f8fafc;
}

.scum-notify-item--out {
    background: #fff;
}

.scum-notify-item-main {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: var(--scum-text-dark);
}

.scum-notify-meta {
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

.scum-notify-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.scum-notify-actions .scum-btn {
    min-width: 72px;
    padding: 6px 10px;
    font-size: 12px;
}

@media (max-width: 640px) {
    .scum-flag-item {
        flex-direction: column;
        align-items: stretch;
    }

    .scum-flag-item-foot {
        justify-content: space-between;
    }
}

@media (max-width: 900px) {
    .scum-transport-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .scum-navbar-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .scum-nav-wrap {
        order: 3;
        width: 100%;
        flex: none;
    }

    .scum-nav {
        gap: 8px 12px;
        padding-bottom: 2px;
    }

    .scum-header-actions {
        margin-left: auto;
        flex-wrap: wrap;
        gap: 6px;
    }
}

@media (max-width: 640px) {
    .scum-card-grid { grid-template-columns: 1fr; }
    .scum-main { padding: 0 16px 40px; margin-top: 20px; }
}

/* --- 手机端适配 --- */
@media (max-width: 960px) {
    html, body.scum-portal {
        overflow-x: hidden;
        max-width: 100%;
        -webkit-text-size-adjust: 100%;
    }

    .scum-promo-shell--has-bg {
        background-attachment: scroll;
    }

    .scum-promo-hero-section {
        flex-direction: column;
        padding: 40px 5% 32px;
        gap: 24px;
    }

    .scum-promo-hero-content {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .scum-vip-table {
        min-width: 0;
    }

    .scum-vip-table-wrap,
    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .scum-transport-layout {
        grid-template-columns: 1fr;
    }

    #portal-root {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .scum-navbar {
        padding: 8px 12px;
    }

    .scum-brand-title {
        font-size: 15px;
    }

    .scum-header-actions {
        gap: 6px;
    }

    .scum-nav-btn {
        font-size: 12px;
        padding: 6px 8px;
    }

    .scum-main {
        margin-top: 12px;
        padding: 0 12px 32px;
    }

    .scum-card-grid {
        gap: 12px;
    }

    .scum-dialog-overlay {
        padding: 12px;
        align-items: flex-end;
    }

    .scum-dialog {
        width: 100%;
        max-height: 85vh;
        border-radius: 16px 16px 0 0;
    }
}

/* 确认弹窗（购买 / 领取） */
body.scum-dialog-open { overflow: hidden; }

.scum-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}

.scum-dialog-overlay[hidden] { display: none !important; }

.scum-dialog {
    width: min(420px, 100%);
    background: var(--scum-white);
    border: 1px solid var(--scum-border-input);
    border-radius: var(--scum-radius);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
    padding: 22px 24px 20px;
    animation: scum-dialog-in 0.18s ease-out;
}

@keyframes scum-dialog-in {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.scum-dialog-title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--scum-text-dark);
}

.scum-dialog-message {
    margin: 0 0 20px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--scum-text);
    white-space: pre-wrap;
}

.scum-dialog-message[hidden] { display: none !important; }

.scum-dialog-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 20px;
    padding: 8px 10px;
    border: 1px solid var(--scum-border-input);
    border-radius: var(--scum-radius-sm);
    font: inherit;
    color: var(--scum-text);
    background: var(--scum-white);
}

.scum-dialog-input[hidden] { display: none !important; }

.scum-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.scum-dialog-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 8px 16px;
    font-size: 14px;
    font-family: inherit;
    border-radius: var(--scum-radius-sm);
    border: 1px solid var(--scum-border-input);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.scum-dialog-actions .btn-primary {
    background: var(--scum-green);
    border-color: var(--scum-green);
    color: #fff;
}

.scum-dialog-actions .btn-primary:hover {
    background: var(--scum-green-hover);
    border-color: var(--scum-green-hover);
}

.scum-dialog-actions .btn-secondary {
    background: var(--scum-white);
    color: var(--scum-text);
}

.scum-dialog-actions .btn-secondary:hover {
    background: var(--scum-tag-bg);
}

/* —— 排行榜 —— */
.lb-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
}
.lb-toolbar-meta {
    color: var(--scum-muted, #6b7280);
    font-size: 13px;
}
.lb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.lb-card {
    background: var(--scum-panel, #fff);
    border: 1px solid var(--scum-border, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.lb-card-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--scum-border, #eef0f3);
}
.lb-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.lb-card-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}
.lb-card-sub {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--scum-muted, #6b7280);
}
.lb-card-body {
    flex: 1;
    padding: 8px 10px 12px;
    overflow: auto;
    max-height: 360px;
}
.lb-card-foot {
    padding: 10px 14px;
    font-size: 12px;
    color: var(--scum-muted, #6b7280);
    border-top: 1px solid var(--scum-border, #eef0f3);
    background: rgba(0,0,0,.015);
}
.lb-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lb-row {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 7px 6px;
    border-radius: 8px;
}
.lb-row:nth-child(odd) {
    background: rgba(0,0,0,.02);
}
.lb-rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: #e5e7eb;
    color: #374151;
}
.lb-rank.gold { background: #f59e0b; color: #fff; }
.lb-rank.silver { background: #9ca3af; color: #fff; }
.lb-rank.bronze { background: #d97706; color: #fff; }
.lb-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}
.lb-value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    white-space: nowrap;
}
.lb-empty {
    padding: 28px 12px;
    text-align: center;
    color: var(--scum-muted, #6b7280);
    font-size: 13px;
}
.lb-empty--error { color: #b91c1c; }

.lb-card--vip .lb-card-icon { background: #fef3c7; color: #b45309; }
.lb-card--bank .lb-card-icon { background: #dcfce7; color: #15803d; }
.lb-card--points .lb-card-icon { background: #ede9fe; color: #6d28d9; }
.lb-card--kills .lb-card-icon { background: #fee2e2; color: #b91c1c; }
.lb-card--playtime .lb-card-icon { background: #dbeafe; color: #1d4ed8; }

.lb-accent-vip { color: #b45309; }
.lb-accent-bank { color: #15803d; }
.lb-accent-points { color: #6d28d9; }
.lb-accent-kills { color: #b91c1c; }
.lb-accent-playtime { color: #1d4ed8; }

@media (max-width: 640px) {
    .lb-grid { grid-template-columns: 1fr; }
}

.scum-game-log-panel { overflow: hidden; }
.scum-game-log-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}
.scum-game-log-search {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.scum-game-log-search .scum-search {
    flex: 1 1 220px;
    width: auto;
    min-width: 160px;
    margin-bottom: 0;
}
.scum-game-log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.scum-game-log-table th,
.scum-game-log-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--scum-border, #e5e7eb);
    text-align: left;
    vertical-align: top;
}
.scum-game-log-table th {
    background: #f8fafc;
    font-weight: 600;
    color: var(--scum-text-dark, #111827);
    white-space: nowrap;
}
.scum-game-log-table tbody tr:hover { background: #f9fafb; }
.scum-game-log-meta {
    margin-top: 4px;
    font-size: 12px;
    color: var(--scum-muted, #6b7280);
}
.scum-game-log-details {
    margin-top: 6px;
    font-size: 12px;
}
.scum-game-log-details summary {
    cursor: pointer;
    color: var(--scum-green, #00cc66);
}
.scum-game-log-details pre {
    margin: 6px 0 0;
    padding: 8px 10px;
    max-height: 180px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    background: #f8fafc;
    border: 1px solid var(--scum-border, #e5e7eb);
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.45;
}
.scum-game-log-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--scum-muted, #6b7280);
}
.scum-game-log-table .mono-cell {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
}
