

:root {
    --stamp: #c41e3a;
    --stamp-hover: #a01830;
    --stamp-soft: rgba(196, 30, 58, 0.1);
    --brand: var(--stamp);
    --brand-hover: var(--stamp-hover);
    --brand-soft: var(--stamp-soft);
    --ink: #1d1d1f;
    --plate: #1d1d1f;
    --primary: var(--plate);
    --primary-dark: #000000;
    --primary-light: #f5f5f7;
    --accent: var(--plate);
    --paper: #f5f5f7;
    --sheet: #ffffff;
    --bg: var(--paper);
    --bg-soft: #ececef;
    --fill-tertiary: rgba(120, 120, 128, 0.16);
    --card: var(--sheet);
    --text: var(--ink);
    --text-secondary: #6e6e73;
    --text-muted: #86868b;
    --border: rgba(0, 0, 0, 0.08);
    --line: rgba(0, 0, 0, 0.08);
    --rule: rgba(0, 0, 0, 0.08);
    --rule-strong: rgba(0, 0, 0, 0.14);
    --success: #248a3d;
    --warning: #b25e09;
    --danger: var(--stamp);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-float: 0 12px 40px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.06);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --header-height: calc(58px + 32px);
    --gap: 16px;
    --card-pad: 20px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
    --dur-fast: 0.18s;
    --dur: 0.36s;
    --dur-slow: 0.55s;
    --focus-ring: 0 0 0 4px rgba(0, 125, 250, 0.28);
    --font: "SF Pro Text", "SF Pro Display", "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
    --font-display: var(--font);
    --z-dropdown: 80;
    --z-sticky: 100;
    --z-modal: 200;
}

::selection {
    background: rgba(176, 16, 42, 0.12);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--plate);
    outline-offset: 2px;
}

body,
body.theme-gallery,
body.ns-ink-stamp {
    font-family: var(--font);
    background-color: var(--paper);
    background-image: none;
    background-attachment: scroll;
    color: var(--text);
    line-height: 1.47;
    font-size: 15px;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:hover { color: var(--stamp); }

.container { max-width: 1180px; padding: 0 22px; }

body {
    --header-row: 58px;
    --brand-ticker-h: 32px;
    --header-height: calc(var(--header-row) + var(--brand-ticker-h));
}

.header {
    background: rgba(245, 245, 247, 0.72) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    height: auto !important;
    min-height: var(--header-row);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.03) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.header-inner {
    height: var(--header-row) !important;
    position: relative;
    z-index: 2;
}

.user-menu {
    position: relative;
    z-index: 3;
    flex-shrink: 0 !important;
}

.logo {
    gap: 8px !important;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.01em;
    flex-shrink: 0 !important;
    max-width: none !important;
}

.logo-mark {
    min-width: 28px;
    height: 20px;
    padding: 0 6px;
    border-radius: 6px;
    background: var(--stamp);
    box-shadow: 0 2px 6px rgba(196, 30, 58, 0.28);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    flex-shrink: 0;
}

.logo-word {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.brand-ticker {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.35);
}

.brand-ticker-inner {
    min-height: 30px;
    display: flex;
    align-items: center;
    padding-top: 4px;
    padding-bottom: 6px;
}

.logo-type {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-secondary);
    line-height: 1.35;
}

.logo-type-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo-type-caret {
    display: inline-block;
    width: 1.5px;
    height: 0.95em;
    margin-left: 2px;
    background: var(--stamp);
    border-radius: 1px;
    flex-shrink: 0;
    animation: ns-caret 1s steps(1) infinite;
}

@keyframes ns-caret {
    0%, 45% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@media (max-width: 640px) {
    .logo-type {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    body {
        --header-row: 60px;
        --brand-ticker-h: 30px;
        --header-height: calc(var(--header-row) + var(--brand-ticker-h));
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-type-caret { animation: none; opacity: 1; }
}

.nav a {
    padding: 0 16px;
    font-size: 13.5px;
    font-weight: 550;
    letter-spacing: 0.01em;
    color: var(--text-secondary);
    position: relative;
    text-transform: none;
}

.nav a:hover { color: var(--ink); }

.header .nav a.active,
.nav a.active {
    color: var(--ink);
    box-shadow: none !important;
}

.header .nav a.active::after,
.nav a.active::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 2px;
    background: var(--stamp);
    border-radius: 1px;
}

.avatar {
    border-radius: 50% !important;
    border: 1px solid var(--rule);
    background: var(--bg-soft);
}

.header .btn-outline {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
}

.header .btn-primary { background: var(--plate); }

.btn {
    border-radius: 980px !important;
    font-weight: 550;
    letter-spacing: -0.01em;
    padding: 10px 18px;
    font-size: 14px;
}

.btn-primary {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)) ,
        var(--plate) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.18) inset,
        0 6px 18px rgba(0, 0, 0, 0.16) !important;
}
.btn-primary:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)) ,
        var(--primary-dark) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 10px 24px rgba(0, 0, 0, 0.18) !important;
}

.btn-outline,
.btn-ghost {
    background: rgba(255, 255, 255, 0.42) !important;
    backdrop-filter: saturate(180%) blur(14px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    color: var(--ink) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.65) inset,
        0 4px 14px rgba(0, 0, 0, 0.06) !important;
}
.btn-outline:hover,
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.62) !important;
    border-color: rgba(255, 255, 255, 0.75) !important;
}

.btn-danger {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent),
        var(--stamp) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}
.btn-danger:hover { background: var(--stamp-hover) !important; color: #fff; }

.lottery-float {
    background: rgba(255, 255, 255, 0.38) !important;
    backdrop-filter: saturate(180%) blur(22px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(22px) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 12px 32px rgba(0, 0, 0, 0.14) !important;
    border-radius: 18px !important;
}
.lottery-float:hover {
    background: rgba(255, 255, 255, 0.5) !important;
}
.lottery-float-txt {
    color: var(--ink) !important;
    font-weight: 650 !important;
}

.home-top {
    padding: 32px 0 14px;
    margin-bottom: 4px;
}

.home-top .container::before {
    content: none !important;
    display: none !important;
}

.search-bar,
.home-search {
    max-width: 560px;
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: saturate(180%) blur(16px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.65) !important;
    border-radius: 14px !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 8px 24px rgba(0, 0, 0, 0.06) !important;
    overflow: hidden;
}

.search-bar:focus-within {
    border-color: rgba(0, 0, 0, 0.12) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 10px 28px rgba(0, 0, 0, 0.08),
        var(--focus-ring) !important;
}

.search-bar input {
    padding: 13px 16px;
    font-size: 14px;
    background: transparent;
    letter-spacing: -0.01em;
}

.search-bar input::placeholder {
    color: var(--text-muted);
    letter-spacing: -0.01em;
    font-size: 14px;
    font-weight: 400;
}

.search-bar button {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent),
        var(--plate) !important;
    font-weight: 550;
    letter-spacing: -0.01em;
    padding: 0 22px;
    font-size: 13px;
    border-radius: 0 !important;
}

.home-top {
    padding: 12px 0 6px;
}

.home-main {
    padding-top: 8px;
    padding-bottom: 48px;
    animation: ns-rise var(--dur-slow) var(--ease-out) both;
}

.home-shelf {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px 16px;
    flex-wrap: wrap;
    margin: 12px 0 28px;
    padding: 0;
    border-bottom: none;
    background: transparent !important;
    box-shadow: none !important;
}

.home-seg {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    gap: 0;
    background: var(--fill-tertiary);
    border-radius: 11px;
    min-width: 0;
}

.home-seg-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 550;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
    background: transparent;
    border: none;
    transition:
        background var(--dur-fast) var(--ease-spring),
        color var(--dur-fast) var(--ease-spring),
        box-shadow var(--dur-fast) var(--ease-spring),
        transform var(--dur-fast) var(--ease-spring);
}

.home-seg-item:hover {
    color: var(--ink);
}

.home-seg-item.is-active {
    background: var(--sheet);
    color: var(--ink);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.04);
}

.home-official {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 550;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
    background: var(--fill-tertiary);
    border: none;
    transition:
        background var(--dur-fast) var(--ease-spring),
        color var(--dur-fast) var(--ease-spring),
        box-shadow var(--dur-fast) var(--ease-spring);
}

.home-official:hover {
    color: var(--ink);
    background: rgba(0, 0, 0, 0.08);
}

.home-official.is-active {
    color: var(--ink);
    background: var(--sheet);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.04);
}

.home-shelf-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-left: auto;
}

.home-shelf-count {
    font-size: 13px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.home-custom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
    background: var(--sheet);
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.04);
    transition:
        transform var(--dur-fast) var(--ease-spring),
        background var(--dur-fast) var(--ease-spring),
        box-shadow var(--dur-fast) var(--ease-spring);
}

.home-custom-btn:hover {
    color: var(--ink);
    background: #fff;
    transform: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
}

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

.home-shelf-tabs,
.home-shelf-tab,
.home-shelf-link { display: none; }

.home-toolbar {
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0;
    margin-bottom: 24px;
}

.type-filter {
    background: var(--fill-tertiary);
    border-radius: 11px;
    padding: 3px;
    border: none;
    gap: 0;
}

.type-chip {
    border-radius: 8px;
    font-weight: 550;
    letter-spacing: -0.01em;
    font-size: 13px;
    background: transparent;
    color: var(--ink);
    min-height: 32px;
    padding: 6px 14px;
}

.type-chip.is-active,
.type-chip-official.is-active {
    background: var(--sheet);
    color: var(--ink);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.ns-select-trigger {
    border-radius: 8px !important;
    background: var(--sheet) !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.04) !important;
    font-weight: 550;
    letter-spacing: -0.01em;
    min-height: 32px !important;
    min-width: 120px !important;
    font-size: 13px !important;
    padding: 6px 14px !important;
}

.ns-select.is-open .ns-select-trigger {
    border-color: transparent !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

.home-shelf .ns-select-trigger {
    min-height: 32px !important;
}

.resource-grid {
    gap: 20px !important;
    margin-bottom: 40px;
}

.resource-card {
    background: var(--sheet) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-md) !important;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition:
        transform var(--dur) var(--ease-spring),
        box-shadow var(--dur) var(--ease-spring) !important;
}

.resource-card::before,
.resource-card::after {
    content: none !important;
    display: none !important;
}

.resource-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
    box-shadow: var(--shadow-lg) !important;
}

.resource-card:hover .resource-cover {
    transform: none;
    box-shadow: none;
}

.resource-card:hover .resource-title {
    color: var(--ink);
}

.resource-cover {
    background: #ececef !important;
    border: none !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    overflow: hidden;
    box-shadow: none !important;
    transition: none;
    aspect-ratio: 3 / 4;
}

.resource-cover img,
.resource-cover .cover-slide {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    transform: none !important;
}

.resource-card:hover .resource-cover img {
    transform: none !important;
}

.resource-info {
    padding: 12px 14px 14px !important;
    gap: 6px;
    position: relative;
    z-index: 2;
    background: var(--sheet);
    flex: 1;
}

.resource-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.resource-meta {
    font-size: 12px !important;
    letter-spacing: -0.01em;
    color: var(--text-muted);
    border-top: none;
    padding-top: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.resource-author {
    display: inline !important;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-author .avatar {
    display: none !important;
}

.resource-price-text {
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-size: 13px;
    flex-shrink: 0;
}

.resource-price-text.is-free { color: var(--success); }

.resource-pin-mark {
    border-radius: 6px !important;
    background: var(--stamp) !important;
    font-weight: 650;
    letter-spacing: 0.02em;
    font-size: 10px !important;
    padding: 2px 6px !important;
    top: 10px !important;
    left: 10px !important;
}

.resource-type-badge {
    border-radius: 6px !important;
    background: rgba(29, 29, 31, 0.55) !important;
    backdrop-filter: blur(10px) !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 10px !important;
    padding: 3px 7px !important;
    top: 10px !important;
    right: 10px !important;
}

.page-home .resource-multi-badge,
.home-main .resource-multi-badge {
    display: none !important;
}

.card {
    background: var(--sheet) !important;
    border: 1px solid var(--rule) !important;
    box-shadow: var(--shadow) !important;
    border-radius: var(--radius) !important;
    padding: var(--card-pad);
}

.card-title,
.page-toolbar h2,
.home-section-title,
.download-panel-title {
    font-family: var(--font-display);
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-transform: none;
}

.page-toolbar h2 {
    font-size: 1.4rem;
    line-height: 1.25;
}

.card-title {
    font-size: 1.05rem;
    border-bottom: 1px solid var(--rule) !important;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.home-section-title {
    font-size: 1rem;
    margin: 12px 0 16px;
    padding-bottom: 0;
    border-bottom: none;
    letter-spacing: -0.015em;
    font-weight: 650;
}

.form-group label {
    font-size: 13px;
    font-weight: 550;
    letter-spacing: 0.01em;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    background: #fff !important;
    border: 1px solid var(--rule) !important;
    border-radius: var(--radius-sm) !important;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--plate) !important;
    box-shadow: var(--focus-ring) !important;
}

.file-upload {
    border: 1.5px dashed var(--rule) !important;
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.alert {
    border-radius: var(--radius-sm);
    border-width: 1px;
}

.detail-layout {
    gap: 32px !important;
    margin-top: 8px;
}

.detail-cover {
    max-width: 280px !important;
    border-radius: var(--radius) !important;
    border: 1px solid var(--rule);
    box-shadow: var(--shadow-md);
    background: var(--bg-soft) !important;
    overflow: hidden;
}

.detail-info h1 {
    font-size: 1.55rem !important;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin-bottom: 14px !important;
}

.detail-desc {
    color: var(--text-secondary);
    line-height: 1.75;
}

.detail-actions .btn-primary,
.btn-cta {
    min-height: 44px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: var(--radius-sm);
}

.detail-price-head .price-tag {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.profile-header--overview {
    background: transparent !important;
    padding: 28px 0 8px !important;
    border: none !important;
    margin: 0 !important;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 22px 22px;
    background: var(--sheet);
    border: 1px solid var(--rule);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.profile-identity .avatar {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    font-size: 22px;
    flex-shrink: 0;
}

.profile-identity-body {
    flex: 1;
    min-width: 160px;
}

.profile-name {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--ink);
}

.profile-balance {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.profile-member-tag {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--stamp);
    background: var(--stamp-soft);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 550;
}

.profile-identity .profile-stats {
    display: flex;
    gap: 8px;
    margin: 0;
    margin-left: auto;
}

.profile-identity .profile-stat {
    min-width: 64px;
    padding: 8px 12px;
    text-align: center;
    text-decoration: none;
    color: var(--ink);
    background: var(--bg-soft);
    border-radius: 10px;
    border: none;
}

.profile-identity .profile-stat .num {
    font-size: 1.1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.profile-identity .profile-stat .label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.profile-page--overview {
    padding-top: 18px;
    padding-bottom: 48px;
}

.profile-page--sub {
    padding-top: 16px;
    padding-bottom: 40px;
}

.profile-subnav {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--rule);
}

.profile-subnav-back {
    font-size: 14px;
    font-weight: 550;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
}

.profile-subnav-back:hover {
    color: var(--stamp);
}

.profile-subnav-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.profile-page .profile-tab-nav,
.profile-tab-nav {
    display: none !important;
}

.profile-menu-group,
.profile-card,
.stats-card,
.download-panel,
.order-card,
.conversation-item,
.author-card {
    background: var(--sheet) !important;
    border: 1px solid var(--rule) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow) !important;
}

.profile-menu-groups {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 520px;
}

.profile-menu-heading {
    margin: 0;
    padding: 0 4px 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    text-transform: none;
}

.profile-menu-group {
    overflow: hidden;
    padding: 0;
}

.profile-menu-group .profile-menu-heading {
    padding: 12px 16px 6px;
    background: var(--sheet);
}

.profile-menu-row {
    min-height: 50px;
    padding: 13px 16px;
    gap: 0;
}

.profile-menu-row:hover,
.profile-menu-item:hover {
    background: var(--bg-soft);
}

.profile-menu-row .pm-mark {
    display: none !important;
}

.pm-label {
    font-size: 15px;
    font-weight: 500;
}

.profile-page--overview .profile-app-banner {
    margin-bottom: 18px;
    max-width: 520px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--rule);
}

.profile-app-checkupdate {
    margin-bottom: 16px;
}

.author-hero {
    padding: 28px 0 8px;
    animation: ns-rise var(--dur-slow) var(--ease-out) both;
}

.author-identity {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    padding: 24px;
    background: var(--sheet);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--rule);
}

.author-identity-avatar {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    font-size: 26px;
    flex-shrink: 0;
}

.author-identity-body {
    flex: 1;
    min-width: 180px;
}

.author-name {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--ink);
}

.author-bio {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 42ch;
}

.author-bio--empty {
    color: var(--text-muted);
}

.author-qq {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

.author-identity-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    margin-left: auto;
}

.author-stats {
    display: flex;
    gap: 8px;
    margin: 0;
}

.author-stats .profile-stat {
    min-width: 64px;
    padding: 10px 14px;
    text-align: center;
    background: var(--bg-soft);
    border-radius: 12px;
    border: none;
}

.author-stats .profile-stat .num {
    font-size: 1.15rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.author-stats .profile-stat .label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.author-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.author-page {
    padding-top: 20px;
    padding-bottom: 48px;
    animation: ns-rise var(--dur-slow) var(--ease-out) 0.06s both;
}

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

.author-shelf-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.myres-page {
    padding-top: 20px;
    padding-bottom: 48px;
    animation: ns-rise var(--dur-slow) var(--ease-out) both;
}

.myres-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.myres-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 820px;
}

.myres-item {
    display: flex;
    gap: 16px;
    padding: 14px;
    background: var(--sheet);
    border-radius: var(--radius);
    border: 1px solid var(--rule);
    box-shadow: var(--shadow);
    transition:
        transform var(--dur-fast) var(--ease-spring),
        box-shadow var(--dur-fast) var(--ease-spring);
}

.myres-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.myres-item-cover {
    width: 72px;
    height: 96px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 650;
    text-decoration: none;
    box-shadow: var(--shadow);
}

.myres-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.myres-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.myres-item-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.myres-item-title {
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
}

.myres-item-title:hover {
    color: var(--stamp);
}

.myres-item-meta {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
}

.myres-item-reject {
    margin: 0;
    font-size: 13px;
    color: var(--stamp);
}

.myres-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.owner-dash-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 820px;
}

.owner-dash-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px 18px;
    text-align: left;
    background: var(--sheet);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition:
        transform var(--dur-fast) var(--ease-spring),
        box-shadow var(--dur-fast) var(--ease-spring);
}

.owner-dash-row:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn,
.btn-primary,
.btn-outline {
    transition:
        transform var(--dur-fast) var(--ease-spring),
        background-color var(--dur-fast) var(--ease-out),
        border-color var(--dur-fast) var(--ease-out),
        box-shadow var(--dur-fast) var(--ease-out),
        color var(--dur-fast) var(--ease-out) !important;
    border-radius: 980px !important;
}

.btn:active,
.btn-primary:active,
.home-custom-btn:active,
.home-seg-item:active {
    transform: scale(0.97);
}

.btn-primary {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
        var(--plate) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.18) inset,
        0 6px 18px rgba(0, 0, 0, 0.16) !important;
}

.btn-outline,
.btn-ghost {
    background: rgba(255, 255, 255, 0.42) !important;
    backdrop-filter: saturate(180%) blur(14px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.65) inset,
        0 4px 14px rgba(0, 0, 0, 0.06) !important;
}

.profile-page--overview,
.profile-page--sub {
    animation: ns-rise var(--dur-slow) var(--ease-out) both;
}

.profile-identity {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--rule);
    transition: box-shadow var(--dur) var(--ease-out);
}

.profile-menu-group {
    border-radius: var(--radius) !important;
    border: none !important;
    box-shadow: var(--shadow) !important;
}

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

@media (max-width: 640px) {
    .home-shelf {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .home-shelf-tools {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }

    .home-seg {
        width: 100%;
    }

    .home-seg-item {
        flex: 1;
        padding: 8px 10px;
    }

    .home-custom-btn,
    .home-official {
        min-height: 36px;
        padding: 8px 14px;
    }

    .author-identity {
        padding: 18px 16px;
    }

    .author-identity-side {
        width: 100%;
        margin-left: 0;
        align-items: stretch;
    }

    .author-stats {
        width: 100%;
    }

    .author-stats .profile-stat {
        flex: 1;
    }

    .author-actions {
        justify-content: flex-start;
    }

    .myres-item {
        padding: 12px;
        gap: 12px;
    }

    .myres-item-cover {
        width: 56px;
        height: 74px;
    }

    .profile-identity {
        padding: 18px 16px;
        gap: 14px;
    }

    .profile-identity .profile-stats {
        width: 100%;
        margin-left: 0;
    }

    .profile-identity .profile-stat {
        flex: 1;
    }

    .profile-menu-groups {
        max-width: none;
    }

    .profile-page--overview .profile-app-banner {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-main,
    .author-hero,
    .author-page,
    .myres-page,
    .profile-page--overview,
    .profile-page--sub,
    .resource-card:hover,
    .resource-card:hover .resource-cover,
    .myres-item:hover,
    .owner-dash-row:hover,
    .home-custom-btn:hover {
        animation: none !important;
        transform: none !important;
        transition: none !important;
    }
}

.auth-page {
    background:
        radial-gradient(720px 380px at 12% 0%, rgba(255, 255, 255, 0.7), transparent 55%),
        linear-gradient(180deg, #e6e8ed 0%, var(--paper) 40%, var(--bg-soft) 100%) !important;
}

.auth-card {
    background: var(--sheet) !important;
    border: 1px solid var(--rule) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 36px 30px 28px !important;
}

.auth-card h2 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-tabs a.active {
    color: var(--ink);
    box-shadow: inset 0 -2px 0 var(--stamp);
}

.tab-nav a.active,
.wallet-nav a.active {
    color: var(--ink);
    box-shadow: inset 0 -2px 0 var(--stamp);
}

.footer {
    background: var(--plate) !important;
    color: #9aa3b2;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 24px 0;
    font-size: 13px;
    letter-spacing: 0.01em;
}

.footer a,
.footer-contact-btn {
    color: #d8dce4 !important;
}

.footer a:hover,
.footer-contact-btn:hover {
    color: #fff !important;
}

.footer-muted { color: #6b7382; }

.footer-more-btn {
    display: inline;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    color: #d8dce4 !important;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.footer-more-btn:hover,
.footer-more-btn.is-open {
    color: #fff !important;
}
.footer-more {
    margin: 12px auto 0;
    max-width: 36rem;
    padding: 10px 12px 2px;
    text-align: center;
    font-size: 12px;
    line-height: 1.7;
    color: #9aa3b2;
}
.footer-more[hidden] { display: none !important; }
.footer-more p { margin: 0 0 6px; }
.footer-more-check {
    display: inline-block;
    margin-right: 4px;
    color: #3dd68c;
    font-weight: 700;
}

.home-ads {
    margin: 12px 0 4px;
}

.home-ads-carousel {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--rule);
    box-shadow: var(--shadow);
    max-height: 160px;
}

.home-ads-slide img {
    max-height: 160px;
    object-fit: cover;
    width: 100%;
}

.home-banner {
    font-size: 13px;
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        z-index: 400 !important;
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        transform: none !important;
        filter: none !important;
        isolation: isolate;
        background: rgba(245, 245, 247, 0.82) !important;
        backdrop-filter: saturate(180%) blur(22px) !important;
        -webkit-backdrop-filter: saturate(180%) blur(22px) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
        box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.1) !important;
    }
}

.mbn-item {
    gap: 3px !important;
    color: var(--text-muted) !important;
    border-radius: 12px !important;
    transition:
        color var(--dur-fast) var(--ease-spring),
        background var(--dur-fast) var(--ease-spring),
        transform var(--dur-fast) var(--ease-spring);
}

.mbn-item:active {
    transform: scale(0.94);
    background: rgba(0, 0, 0, 0.04) !important;
}

.mbn-item.active {
    color: var(--ink) !important;
    background: transparent !important;
}

.mbn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    transition:
        background var(--dur-fast) var(--ease-spring),
        color var(--dur-fast) var(--ease-spring),
        transform var(--dur-fast) var(--ease-spring);
}

.mbn-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mbn-item.active .mbn-icon {
    background: rgba(29, 29, 31, 0.08);
    color: var(--ink);
    transform: scale(1.05);
}

.mbn-item.active .mbn-icon svg {
    stroke-width: 2.1;
}

.mbn-item.active .mbn-label {
    color: var(--ink);
    font-weight: 650;
}

.mbn-label {
    font-size: 10px !important;
    font-weight: 550 !important;
    letter-spacing: -0.01em !important;
}

.mbn-badge {
    top: 4px !important;
    background: var(--stamp) !important;
    box-shadow: 0 2px 6px rgba(196, 30, 58, 0.35);
}

.profile-identity,
.author-identity,
.card,
.profile-menu-group,
.myres-item,
.owner-dash-row {
    box-shadow: var(--shadow-md) !important;
}

.header {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.03) !important;
}

@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: ns-vt-out 0.2s var(--ease-out) both;
}

::view-transition-new(root) {
    animation: ns-vt-in 0.32s var(--ease-out) both;
}

@keyframes ns-vt-out {
    to { opacity: 0; }
}

@keyframes ns-vt-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

html.ns-leaving body {
    opacity: 0;
    
    transition: opacity 0.2s var(--ease-out);
}

html.ns-enter body {
    animation: ns-page-in 0.38s var(--ease-out) both;
}

@keyframes ns-page-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    @view-transition {
        navigation: none;
    }
    html.ns-leaving body,
    html.ns-enter body {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
    }
}

.status-badge {
    border-radius: 6px;
    font-weight: 550;
    letter-spacing: 0.01em;
}

body > .container,
.detail-page,
.profile-page,
.download-page {
    padding-top: 8px;
    padding-bottom: 40px;
}

.resource-card,
.btn,
.nav a,
.search-bar button {
    transition:
        transform var(--dur) var(--ease-out),
        box-shadow var(--dur) var(--ease-out),
        border-color var(--dur-fast) var(--ease-out),
        background-color var(--dur-fast) var(--ease-out),
        color var(--dur-fast) var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
    .resource-card:hover,
    .btn-primary:hover { transform: none; }
}

@media (max-width: 768px) {
    .page-toolbar h2 { font-size: 1.25rem; }
    .resource-grid { gap: 14px !important; }
    .home-top { padding: 22px 0 10px; }
    .detail-cover { max-width: 100% !important; }
}

.logo {
    gap: 8px !important;
}

.logo-mark {
    min-width: 28px;
    height: 20px;
    padding: 0 6px;
    border-radius: 6px;
    font-size: 10px;
    letter-spacing: 0.06em;
    box-shadow: 0 2px 6px rgba(196, 30, 58, 0.28);
}

.logo-text {
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em;
    color: var(--text-secondary) !important;
}

body.page-home .logo-text {
    opacity: 0.72;
}

.modal {
    background: rgba(20, 20, 22, 0.28) !important;
    backdrop-filter: saturate(140%) blur(10px) !important;
    -webkit-backdrop-filter: saturate(140%) blur(10px) !important;
    align-items: center;
    justify-content: center;
}

.modal .card,
.modal-content,
.tip-sheet-panel,
.owner-dash-modal-panel,
.ns-pay-sheet,
.contact-chooser-panel,
.upload-rules-panel,
.chat-img-lightbox-inner,
#report-user-modal .card,
#aftersale-modal .card,
.announcement-box.card {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: saturate(180%) blur(28px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(28px) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.18),
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
    border-radius: 20px !important;
}

#site-announcement.announcement-overlay {
    background: rgba(20, 20, 22, 0.28) !important;
    backdrop-filter: saturate(140%) blur(10px) !important;
    -webkit-backdrop-filter: saturate(140%) blur(10px) !important;
}
#site-announcement .announcement-box.card {
    --ann-bg: #ffffff;
    --ann-fg: #1d1d1f;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--ann-bg) 42%, transparent), color-mix(in srgb, var(--ann-bg) 22%, transparent)),
        rgba(255, 255, 255, 0.55) !important;
    color: var(--ann-fg);
    border-color: color-mix(in srgb, var(--ann-bg) 35%, rgba(255, 255, 255, 0.65)) !important;
}
#site-announcement .announcement-head {
    border-bottom-color: color-mix(in srgb, var(--ann-fg) 14%, transparent);
}
#site-announcement .announcement-foot {
    border-top-color: color-mix(in srgb, var(--ann-fg) 14%, transparent);
}
#site-announcement .announcement-close {
    color: color-mix(in srgb, var(--ann-fg) 72%, transparent);
}

.tip-sheet-backdrop,
.owner-dash-modal-backdrop,
.ns-pay-backdrop,
.contact-chooser-backdrop {
    background: rgba(20, 20, 22, 0.28) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.tip-sheet-panel,
.ns-pay-sheet {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

@media (max-width: 768px) {
    .tip-sheet-panel,
    .ns-pay-sheet {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 16px 16px 0 0 !important;
    }
}

@media (min-width: 641px) {
    .tip-sheet-panel {
        border-radius: 20px !important;
    }
}

.tip-sheet {
    z-index: 12000 !important;
}
.ns-pay {
    z-index: 13000 !important;
}

.wallet-page {
    margin-top: 12px !important;
    padding-bottom: 48px;
    animation: ns-rise var(--dur-slow) var(--ease-out) both;
    max-width: 720px;
}

.wallet-page .wallet-header {
    display: none;
}

.wallet-balance-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.wallet-balance-card .stat-card,
.wallet-stats .stat-card {
    background: var(--sheet) !important;
    border: 1px solid var(--rule) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-md) !important;
    padding: 16px 14px;
    text-align: center;
}

.wallet-stats .stat-card .num,
.wallet-balance-card .num {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.wallet-stats .stat-card .label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.wallet-nav {
    display: inline-flex !important;
    flex-wrap: nowrap;
    gap: 0 !important;
    padding: 3px;
    background: var(--fill-tertiary);
    border-radius: 11px;
    margin-bottom: 22px !important;
    overflow-x: auto;
    max-width: 100%;
    border: none !important;
}

.wallet-nav a {
    border: none !important;
    background: transparent !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    font-weight: 550;
    color: var(--ink) !important;
    white-space: nowrap;
    box-shadow: none !important;
}

.wallet-nav a.active,
.wallet-nav a:hover {
    background: var(--sheet) !important;
    color: var(--ink) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}

.wallet-entry-grid {
    gap: 10px !important;
}

.wallet-entry {
    background: var(--sheet) !important;
    border: 1px solid var(--rule) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow) !important;
    padding: 18px 16px !important;
    transition:
        transform var(--dur-fast) var(--ease-spring),
        box-shadow var(--dur-fast) var(--ease-spring);
}

.wallet-entry:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: inherit !important;
}

@media (max-width: 640px) {
    .wallet-page {
        max-width: 100% !important;
        padding-left: 0;
        padding-right: 0;
    }
    .wallet-balance-card,
    .wallet-stats.admin-stats {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-bottom: 16px !important;
    }
    .wallet-balance-card .stat-card,
    .wallet-stats .stat-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        padding: 12px 6px !important;
        border-radius: 12px !important;
        min-width: 0 !important;
        text-align: center !important;
        aspect-ratio: auto;
        min-height: 72px;
        box-sizing: border-box;
    }
    .wallet-stats .stat-card .num,
    .wallet-balance-card .num {
        font-size: clamp(0.92rem, 3.8vw, 1.12rem) !important;
        letter-spacing: -0.03em;
        line-height: 1.15 !important;
        order: 1 !important;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }
    .wallet-stats .stat-card .label,
    .wallet-balance-card .label {
        font-size: 11px !important;
        margin-top: 0 !important;
        order: 2 !important;
        color: var(--text-muted) !important;
        line-height: 1.2;
        white-space: nowrap;
    }
    .wallet-entry-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    .wallet-entry {
        padding: 14px 14px !important;
        border-radius: 12px !important;
    }
    .wallet-nav {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 0 !important;
        overflow: hidden;
    }
    .wallet-nav a {
        flex: none !important;
        text-align: center;
        padding: 8px 4px !important;
        font-size: 12px !important;
        min-width: 0;
    }
}

@media (min-width: 641px) and (max-width: 860px) {
    .wallet-balance-card,
    .wallet-stats.admin-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

.as-warn-red {
    margin: 0 0 10px;
    color: #b0102a;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.65;
}

.as-warn-admin {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(176, 16, 42, 0.18);
}

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

.as-case-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-soft);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: background var(--dur-fast) var(--ease-out);
}

.as-case-item:hover {
    background: #e8e8ed;
    color: inherit;
}

.as-case-main {
    min-width: 0;
    flex: 1;
}

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

.as-case-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.as-status-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    white-space: nowrap;
}

.as-tone-action {
    background: #ffe8ec;
    color: #9e1232;
}

.as-tone-warn {
    background: #fff3d6;
    color: #8a5a00;
}

.as-tone-ok {
    background: #e4f6ea;
    color: #1a6b3a;
}

.as-tone-muted {
    background: #ececf0;
    color: #5c6370;
}

.as-tone-danger {
    background: #fde2e2;
    color: #a11919;
}

.as-case-meta {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.as-case-hint {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.as-case-peek {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(18, 22, 30, 0.06);
}

.as-case-peek[hidden] {
    display: none !important;
}

.as-case-peek-reason,
.as-case-peek-note {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink);
}

.as-case-peek-note:last-child,
.as-case-peek-reason:last-child {
    margin-bottom: 0;
}

.as-case-quick-act {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.as-case-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex-shrink: 0;
    padding-top: 2px;
}

.as-case-seller.is-open {
    background: #eef0f4;
}

@media (max-width: 640px) {
    .as-case-seller {
        flex-direction: column;
    }
    .as-case-actions {
        width: 100%;
    }
    .as-case-actions .btn {
        flex: 1;
        text-align: center;
    }
}

.as-settings-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0 0;
    cursor: pointer;
}

.as-desk {
    max-width: 980px;
    margin: 0 auto 40px;
    padding-top: 8px;
}

.as-desk-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 22px 24px;
    background: var(--sheet);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--rule);
    margin-bottom: 16px;
}

.as-desk-status {
    font-size: 12px;
    font-weight: 600;
    color: var(--stamp);
    margin-bottom: 6px;
}

.as-desk-title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.as-desk-meta,
.as-desk-parties {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.as-desk-time {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
}

.as-desk-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    gap: 14px;
    align-items: start;
}

.as-desk-card {
    background: var(--sheet);
    border: 1px solid var(--rule);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    padding: 18px 18px 16px;
    margin-bottom: 12px;
}

.as-desk-card h2 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.as-thread {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    margin-bottom: 14px;
    padding-right: 4px;
}

.as-msg {
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--bg-soft);
}

.as-msg header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.as-msg-body {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink);
}

.as-msg-system {
    background: rgba(196, 30, 58, 0.06);
}

.as-compose textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--rule);
    padding: 12px;
    font: inherit;
    margin-bottom: 10px;
    background: #fff;
}

.as-compose-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.as-empty,
.as-closed {
    color: var(--text-muted);
    font-size: 14px;
}

.seller-sign-pad-wrap {
    border: 1px solid var(--rule);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.seller-sign-pad {
    display: block;
    width: 100%;
    height: 220px;
    touch-action: none;
    cursor: crosshair;
    background: #fff;
}

.seller-sign-pad-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border-top: 1px solid var(--rule);
    background: var(--bg-soft);
}

.seller-sign-record {
    margin: 0 0 16px;
}

.seller-sign-preview {
    margin: 10px 0;
}

.seller-sign-preview img {
    display: block;
    max-width: 280px;
    max-height: 120px;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 10px;
    padding: 8px;
    box-shadow: var(--shadow);
}

.seller-sign-meta {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.logo:hover .logo-word {
    color: var(--stamp);
}

.soft-page,
.profile-page--sub,
.ncoin-shop-page,
.message-page {
    animation: ns-rise var(--dur-slow) var(--ease-out) both;
}

.soft-section {
    margin-bottom: 14px !important;
    max-width: 720px;
}

.soft-copy {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.soft-form {
    max-width: 480px;
}

.soft-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.soft-hero-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.soft-hero-copy {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.soft-hero-stat {
    font-size: 14px;
    color: var(--text-muted);
}

.soft-hero-stat strong {
    color: var(--ink);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.soft-invite-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: var(--bg-soft);
    border-radius: 14px;
}

.soft-invite-code strong {
    letter-spacing: 0.12em;
    font-size: 1.1rem;
}

.soft-invite-link {
    font-size: 12px;
    color: var(--text-muted);
    word-break: break-all;
}

.profile-page .card,
.soft-page .card {
    border: 1px solid var(--rule) !important;
    border-radius: 18px !important;
    box-shadow: var(--shadow-md) !important;
}

.profile-page .card-title,
.soft-section .card-title {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 14px !important;
    font-size: 1.05rem !important;
}

.profile-page .table-wrap,
.profile-page table {
    border-radius: 12px;
    overflow: hidden;
}

.profile-page table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-soft);
}

.membership-grid {
    gap: 12px !important;
}

.membership-card {
    background: var(--bg-soft) !important;
    border: 1px solid transparent !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    padding: 18px 16px !important;
    transition:
        transform var(--dur-fast) var(--ease-spring),
        box-shadow var(--dur-fast) var(--ease-spring),
        background var(--dur-fast) var(--ease-out);
}

.membership-card:hover {
    background: var(--sheet) !important;
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-2px);
}

.membership-card h3 {
    font-size: 1rem !important;
    font-weight: 650 !important;
    letter-spacing: -0.02em;
    margin: 0 0 6px !important;
}

.membership-card .price {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em;
    color: var(--ink) !important;
    margin-bottom: 10px !important;
}

.membership-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 14px;
}

.message-page {
    padding-top: 16px;
    padding-bottom: 24px;
}

.message-layout {
    background: var(--sheet) !important;
    border: 1px solid var(--rule) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-md) !important;
    overflow: hidden;
}

.message-list-head {
    padding: 16px 16px 8px;
}

.message-list-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.staff-dm-box {
    margin: 0 12px 12px !important;
    padding: 12px !important;
    background: var(--bg-soft) !important;
    border: none !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

.staff-dm-title {
    font-size: 12px !important;
    font-weight: 650 !important;
    color: var(--text-muted) !important;
    letter-spacing: 0.02em;
}

.staff-dm-item {
    border-radius: 10px !important;
    background: var(--sheet) !important;
    border: 1px solid transparent !important;
}

.staff-dm-item:hover,
.staff-dm-item.is-active {
    border-color: rgba(0, 0, 0, 0.06) !important;
    box-shadow: var(--shadow) !important;
}

.conversation-item {
    margin: 0 8px !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: none !important;
}

.conversation-item:hover,
.conversation-item.active {
    background: var(--bg-soft) !important;
}

.chat-header {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule) !important;
}

.chat-area {
    background: #f7f7f8 !important;
}

.order-card,
.download-panel,
.stats-card {
    border-radius: 16px !important;
    box-shadow: var(--shadow-md) !important;
}

.page-toolbar {
    margin-bottom: 18px;
}

.page-toolbar h2 {
    letter-spacing: -0.03em;
}

.talk-page .card,
.ranking-page .card,
body.page-talk .card,
body.page-ranking .card,
body.page-tickets .card {
    border-radius: 18px !important;
    box-shadow: var(--shadow-md) !important;
}

.custom-plaza-filters {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 560px;
    margin: 0 0 22px;
    padding: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.custom-plaza-seg {
    align-self: flex-start;
}

.custom-plaza-search {
    width: 100%;
    margin: 0 !important;
}

.custom-plaza .lottery-hub-head h1 {
    letter-spacing: -0.03em;
}

.custom-plaza .wallet-nav {
    margin-bottom: 18px !important;
}

.chat-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 40px 20px;
    text-align: center;
}

.chat-empty-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.chat-empty p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.chat-empty .icon {
    display: none !important;
}

.chat-tool-btn {
    min-width: auto !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
}

.chat-emoji-panel {
    background: rgba(255, 255, 255, 0.78) !important;
    backdrop-filter: blur(16px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    border-radius: 14px !important;
    box-shadow: var(--shadow-md) !important;
    padding: 8px !important;
    max-width: 280px;
}

.chat-emoji-item {
    border-radius: 8px !important;
    font-size: 18px !important;
}

.home-custom-btn {
    
    background: var(--sheet) !important;
    color: var(--ink) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.04) !important;
}

.detail-bundle-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.detail-bundle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--bg-soft, #f5f6f8);
    font-size: 14px;
    text-decoration: none;
    color: inherit;
}
.detail-bundle-item.is-main {
    border: 1px solid var(--rule, #e5e7eb);
}
.detail-bundle-item-price {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}
.bundle-picked-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}
.bundle-picked-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--bg-soft, #f5f6f8);
    font-size: 13px;
}
.bundle-picked-item span { flex: 1; }
.bundle-search-results { margin-top: 4px; }
.home-bundle-section { margin-bottom: 24px; }

.gift-modal {
    padding: 12px;
    box-sizing: border-box;
}

.gift-modal-sheet {
    width: min(520px, calc(100vw - 24px));
    max-height: min(90vh, calc(100dvh - 24px));
    margin: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0 !important;
}

.gift-modal-sheet > .card-title {
    flex-shrink: 0;
    margin: 0;
    padding: 18px 18px 0;
}

.gift-modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 18px 4px;
}

.gift-modal-intro {
    margin: 0 0 12px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.gift-delivery-chips {
    margin-top: 6px;
    flex-wrap: wrap;
    gap: 8px;
}

.gift-disclaimer-scroll {
    max-height: 160px;
    overflow-y: auto;
    background: var(--bg-soft);
    border: 1px solid var(--rule);
    border-radius: 10px;
    padding: 12px;
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 12px;
}

.gift-agree-label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.55;
    cursor: pointer;
}

.gift-agree-label input {
    margin-top: 3px;
    flex-shrink: 0;
}

.gift-modal-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    padding: 12px 18px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--rule, rgba(0, 0, 0, 0.08));
}

.gift-modal-actions .btn-primary {
    flex: 1;
}

@media (max-width: 640px) {
    .gift-modal {
        align-items: flex-end !important;
        justify-content: flex-end !important;
        padding: 0 !important;
    }

    .gift-modal-sheet {
        width: 100%;
        max-height: 92dvh;
        margin: 0;
        border-radius: 20px 20px 0 0 !important;
    }

    .gift-modal-actions {
        flex-direction: column-reverse;
    }

    .gift-modal-actions .btn {
        width: 100%;
    }

    #giftActDeliverPick.grant-act-pick {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    body.ns-overlay-open .mobile-bottom-nav,
    body:has(.ns-pay:not([hidden])) .mobile-bottom-nav,
    body:has(.tip-sheet:not([hidden])) .mobile-bottom-nav,
    body:has(.gift-modal[style*="flex"]) .mobile-bottom-nav,
    body:has(.modal[style*="flex"]) .mobile-bottom-nav {
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

.team-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    padding: 0;
    margin-left: 4px;
    border-radius: 3px;
    background: #1677ff;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    vertical-align: middle;
    line-height: 1;
    letter-spacing: 0;
}
.author-teams-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 10px;
}
.author-team-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(22, 119, 255, 0.08);
    color: #1677ff;
    font-size: 13px;
    font-weight: 600;
}
.author-team-support { margin: 8px 0 0; }
.team-manage-intro { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.6; }
.team-manage-grid {
    display: grid;
    gap: 16px;
}
@media (min-width: 720px) {
    .team-manage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.team-panel {
    padding: 16px;
    border: 1px solid var(--rule, rgba(0,0,0,.08));
    border-radius: 12px;
    background: var(--bg-soft, #f7f7f8);
}
.team-panel h4, .team-section h5 { margin: 0 0 10px; font-size: 15px; }
.team-list { list-style: none; padding: 0; margin: 0; }
.team-list li + li { margin-top: 8px; }
.team-list-link {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
}
.team-list-code {
    margin-left: auto;
    font-family: ui-monospace, monospace;
    font-size: 12px;
    color: var(--text-muted);
}
.team-inline-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.team-inline-form input,
.team-inline-form textarea,
.team-inline-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}
.team-code-display code {
    font-size: 16px;
    letter-spacing: 0.08em;
    font-weight: 700;
}
.team-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--rule, rgba(0,0,0,.08));
}
.team-members-table-wrap { overflow-x: auto; }
.team-members-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.team-members-table th,
.team-members-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--rule, rgba(0,0,0,.06));
    text-align: left;
    vertical-align: top;
}
.team-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 2px 6px 2px 0;
    font-size: 12px;
}
.team-join-pending { list-style: none; padding: 0; margin: 0; }
.team-join-pending li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--rule, rgba(0,0,0,.06));
}

.team-commerce-panel {
    padding: 16px 18px;
    background: var(--sheet);
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.team-commerce-panel h4 {
    margin: 0 0 6px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--stamp);
    display: inline-block;
}
.ncoin-card-credit {
    border-color: rgba(196, 30, 58, 0.18);
    background: linear-gradient(165deg, #fff 0%, #fff7f8 100%);
}
.ncoin-card-membership {
    border-color: rgba(30, 90, 160, 0.2);
    background: linear-gradient(165deg, #fff 0%, #f5f9ff 100%);
}
.as-closed-aaa p { margin: 0 0 10px; }
.resource-list .resource-item,
.as-case-list .as-case-item {
    border-bottom: 1px solid var(--rule);
}
.soft-page .soft-hero-copy {
    letter-spacing: 0.01em;
}

.checkout-fee-box,
.bandbbs-fee-box {
    margin: 0 0 14px;
    padding: 12px 14px;
    background: #f7f8fa;
    border: 1px solid var(--border);
    border-radius: 12px;
}
.checkout-fee-title {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--stamp);
    display: inline-block;
    color: var(--ink);
}
.checkout-fee-lines {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--text-secondary);
}
.checkout-fee-lines li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(0,0,0,.06);
}
.checkout-fee-total {
    margin-top: 10px;
    font-size: 14px;
    text-align: right;
    color: var(--ink);
}

.mc-app {
    min-height: 100vh;
    background: #f0f2f5;
    color: var(--ink);
    padding-bottom: 32px;
}
.mc-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.mc-topbar-left, .mc-topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
.mc-topbar-right { justify-content: flex-end; }
.mc-topbar-center { text-align: center; }
.mc-brand-title { font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.mc-brand-sub { font-size: 11px; color: var(--text-muted); }
.mc-corp-name {
    font-size: 13px;
    font-weight: 600;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mc-v {
    margin-left: 4px;
    font-size: 10px;
    color: #1677ff;
    border: 1px solid #1677ff;
    border-radius: 3px;
    padding: 0 3px;
}
.mc-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 10px;
    color: var(--ink);
    cursor: pointer;
    text-decoration: none;
}
.mc-icon-btn:hover { background: rgba(0,0,0,.04); }
.mc-avatar-sq {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(145deg, #2f6fed, #1a4db8);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}
.mc-avatar-sq.sm { width: 28px; height: 28px; font-size: 12px; }
.mc-switch-caret {
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-muted);
}
.mc-bell.has-dot .mc-badge,
.mc-badge {
    position: absolute;
    top: 2px; right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--stamp);
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
}
.mc-main { max-width: 720px; margin: 0 auto; padding: 16px 14px 40px; }
.mc-welcome { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.mc-quick-stats {
    display: flex; flex-wrap: wrap; gap: 8px 14px;
    font-size: 12px; color: var(--text-secondary); margin-bottom: 18px;
}
.mc-section-title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--stamp);
    display: inline-block;
}
.mc-app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 8px;
}
@media (max-width: 480px) {
    .mc-app-grid { grid-template-columns: repeat(3, 1fr); }
}
.mc-app-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 4px;
    text-decoration: none;
    color: var(--ink);
    font-size: 12px;
    text-align: center;
    border-radius: 12px;
}
.mc-app-tile:hover { background: rgba(255,255,255,.8); }
.mc-app-ico {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px; color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.mc-ico-data { background: #2f6fed; }
.mc-ico-pay { background: #07c160; }
.mc-ico-up { background: #fa8c16; }
.mc-ico-res { background: #722ed1; }
.mc-ico-team { background: #13c2c2; }
.mc-ico-as { background: #eb2f96; }
.mc-ico-court { background: #595959; }
.mc-ico-msg { background: #1677ff; }
.mc-ico-risk { background: #cf1322; }
.mc-ico-cert { background: #1d39c4; }
.mc-ico-dm { background: #08979c; }
.mc-ico-set { background: #8c8c8c; }
.mc-team-sheet, .mc-bell-sheet {
    position: fixed; inset: 0; z-index: 60;
    background: rgba(0,0,0,.35);
    display: flex; align-items: flex-end; justify-content: center;
}
.mc-team-sheet-inner, .mc-bell-sheet-inner {
    width: 100%; max-width: 520px; max-height: 78vh;
    overflow: auto;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 18px 16px 24px;
}
.mc-team-list { list-style: none; margin: 0 0 12px; padding: 0; }
.mc-team-item {
    width: 100%;
    display: flex; align-items: center; gap: 12px;
    padding: 12px; margin-bottom: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    text-align: left;
    cursor: pointer;
}
.mc-team-item.is-active { border-color: #2f6fed; background: #f0f5ff; }
.mc-team-item strong { display: block; font-size: 14px; }
.mc-team-item small { color: var(--text-muted); font-size: 12px; }
.mc-bell-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mc-bc-list { list-style: none; margin: 0; padding: 0; }
.mc-bc-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
}
.mc-bc-item.is-unread { background: #fff7e6; margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 8px; }
.mc-bc-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.mc-bc-state { color: var(--stamp); font-weight: 600; }
.mc-bc-item p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.mc-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.mc-stat {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid var(--border);
}
.mc-stat-label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.mc-stat strong { font-size: 18px; }
.mc-chart-card, .mc-table-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    margin-bottom: 14px;
}
.mc-chart-card h3, .mc-table-card h3 { margin: 0 0 10px; font-size: 14px; }
.mc-spark-wrap { color: #2f6fed; }
.mc-spark-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.mc-table-wrap { overflow-x: auto; }
.mc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mc-table th, .mc-table td { padding: 10px 6px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.mc-muted { display: block; color: var(--text-muted); font-size: 11px; }
.mc-panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mc-panel-head h2 { margin: 0; font-size: 18px; }
.mc-back { font-size: 13px; color: var(--text-secondary); text-decoration: none; }
.mc-empty { color: var(--text-muted); font-size: 13px; }
.mc-risk-list { list-style: none; margin: 0 0 16px; padding: 0; }
.mc-risk-list li {
    background: #fff;
    border: 1px solid rgba(207,19,34,.2);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
}
.mc-gate .card { max-width: 480px; margin: 24px auto; }
body.page-merchant_console .site-header,
body.page-merchant_console .mobile-bottom-nav { display: none !important; }

/* 顶栏胶囊导航 */
.header .nav {
    flex: 0 1 auto;
    gap: 2px;
    margin: 0 12px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.header .nav a {
    height: auto !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    line-height: 1.2;
}
.header .nav a.active,
.header .nav a:hover {
    background: rgba(255, 255, 255, 0.92) !important;
    color: var(--ink) !important;
}
.header .nav a.active::after,
.header .nav a::after {
    display: none !important;
}

/* 底栏胶囊 */
@media (max-width: 768px) {
    :root {
        --mbn-float-gap: 10px;
        --mbn-capsule-h: 58px;
        /* 胶囊底边距 + 胶囊高度 + 与上方内容间隙 */
        --mbn-stack: calc(var(--mbn-float-gap) + var(--mbn-capsule-h) + 10px);
    }
    body {
        padding-bottom: calc(var(--mbn-stack) + env(safe-area-inset-bottom, 0px)) !important;
    }
    .mobile-bottom-nav {
        left: 50% !important;
        right: auto !important;
        width: min(440px, calc(100vw - 20px)) !important;
        max-width: calc(100vw - 20px) !important;
        height: auto !important;
        min-height: var(--mbn-capsule-h) !important;
        max-height: none !important;
        bottom: calc(var(--mbn-float-gap) + env(safe-area-inset-bottom, 0px)) !important;
        transform: translateX(-50%) !important;
        border-radius: 999px !important;
        border: 1px solid rgba(255, 255, 255, 0.62) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.62) !important;
        padding: 6px 8px !important;
        background: rgba(255, 255, 255, 0.55) !important;
        backdrop-filter: blur(22px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.75),
            0 10px 28px rgba(20, 18, 14, 0.12) !important;
        overflow: visible;
        z-index: 400 !important;
    }
    .mbn-item.active {
        background: rgba(255, 255, 255, 0.88) !important;
        border-radius: 999px !important;
    }
    /* 立即选购 / 激活码条：抬到悬浮胶囊上方，避免重叠 */
    body:has(.mobile-bottom-nav) .detail-buy-sticky,
    body.page-resource .detail-buy-sticky {
        bottom: calc(var(--mbn-stack) + env(safe-area-inset-bottom, 0px)) !important;
        padding-bottom: 10px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 390 !important;
    }
    body:has(.mobile-bottom-nav):has(.detail-buy-sticky) .detail-page,
    body:has(.mobile-bottom-nav):has(.detail-buy-sticky) .container.detail-page,
    body.page-resource .detail-page,
    body.page-resource .container.detail-page {
        padding-bottom: calc(var(--mbn-stack) + 72px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* 液态玻璃 + 光纤折射边 */
.header {
    position: relative;
    background: rgba(245, 245, 247, 0.55) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
}
.header::after,
.mobile-bottom-nav::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(115deg, transparent 18%, rgba(255,255,255,0.95) 38%, rgba(150, 210, 255, 0.72) 48%, rgba(255, 176, 210, 0.55) 56%, transparent 74%);
    background-size: 220% 100%;
    animation: ns-fiber 7.5s linear infinite;
    pointer-events: none;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}
.card,
.resource-card,
.profile-menu-group,
.modal-content,
.share-sheet-panel {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(160, 200, 255, 0.18),
        0 10px 28px rgba(20, 18, 14, 0.06) !important;
}
@keyframes ns-fiber {
    from { background-position: 120% 0; }
    to { background-position: -120% 0; }
}

/* 封面未出图：骨架 */
.resource-cover.is-skel,
.detail-cover.is-skel,
.author-cover.is-skel,
.home-ads-slide.is-skel {
    background: linear-gradient(100deg, #e6e6eb 18%, #f7f7f9 42%, #e6e6eb 68%) !important;
    background-size: 220% 100% !important;
    animation: ns-skel-shimmer 1.15s ease-in-out infinite;
}
.resource-cover.is-skel img,
.detail-cover.is-skel img,
.author-cover.is-skel img,
.home-ads-slide.is-skel img {
    opacity: 0;
}
@keyframes ns-skel-shimmer {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

.detail-page-nav { justify-content: space-between; }
.detail-share-btn { border-radius: 999px !important; }

.share-sheet {
    position: fixed;
    inset: 0;
    z-index: 520;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    background: rgba(18, 18, 20, 0.28);
}
.share-sheet[hidden] { display: none !important; }
.share-sheet-panel {
    width: min(420px, 100%);
    border-radius: 20px;
    padding: 16px 16px 18px;
    margin-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}
.share-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.share-sheet-head h3 { margin: 0; font-size: 17px; }
.share-sheet-close {
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--muted, #86868b);
}
.share-url-label {
    display: block;
    font-size: 12px;
    color: var(--muted, #6e6e73);
    margin-bottom: 6px;
}
.share-url-input {
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 10px 12px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.7);
}
.share-hint {
    margin: 8px 0 12px;
    font-size: 12px;
    color: var(--muted, #6e6e73);
}
.share-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.share-actions .btn { border-radius: 999px !important; }
body.share-sheet-open .mobile-bottom-nav { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
    .header::after,
    .mobile-bottom-nav::after,
    .btn::after,
    .resource-cover.is-skel,
    .detail-cover.is-skel,
    .author-cover.is-skel,
    .home-ads-slide.is-skel {
        animation: none !important;
    }
}

.btn {
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(115deg, transparent 14%, rgba(255,255,255,0.95) 36%, rgba(150,210,255,0.78) 48%, rgba(255,176,210,0.62) 58%, transparent 78%);
    background-size: 220% 100%;
    animation: ns-fiber 6.5s linear infinite;
    pointer-events: none;
    z-index: 2;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}
/* 部分机型不支持 mask-composite：改用高光描边，避免「完全没有光效」 */
@supports not ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
    .btn::after,
    .header::after,
    .mobile-bottom-nav::after {
        display: none !important;
    }
    .btn {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.55),
            inset 0 0 0 1px rgba(180, 220, 255, 0.35),
            0 6px 18px rgba(0, 0, 0, 0.12) !important;
    }
    .header,
    .mobile-bottom-nav {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.7),
            inset 0 0 0 1px rgba(160, 200, 255, 0.28),
            0 10px 28px rgba(20, 18, 14, 0.1) !important;
    }
}

.sys-msg-list {
    padding: 12px 14px 24px;
    display: grid;
    gap: 10px;
    overflow: auto;
}
.sys-msg-card {
    padding: 14px 14px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(255,255,255,0.55);
}
.sys-msg-card.is-unread {
    box-shadow: inset 3px 0 0 #c41e3a;
}
.sys-msg-kicker {
    font-size: 12px;
    color: var(--muted, #6e6e73);
    margin-bottom: 4px;
}
.sys-msg-card h2 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 650;
}
.sys-msg-card p {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-secondary, #4a5060);
}
