/* Source: assets/ui/tokens.css */
/* Load order: tokens, base, shell, components, pages, responsive, themes. */
:root {
    color-scheme: light;

    --ui-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    --ui-page-max: 1268px;
    --ui-reading-max: 1040px;
    --ui-page-gutter: 16px;
    --ui-mobile-gutter: 12px;
    --ui-mobile-header: 54px;

    --ui-primary: #d9364f;
    --ui-primary-hover: #c92f46;
    --ui-primary-active: #b9293e;
    --ui-primary-soft: #fff1f3;
    --ui-primary-border: #f2b7c0;
    --ui-on-primary: #ffffff;
    --ui-accent: #ff853f;
    --ui-accent-soft: #fff1e9;
    --ui-price: #d32f49;

    --ui-ink: #202633;
    --ui-heading: #252c39;
    --ui-muted: #687184;
    --ui-subtle: #687184;
    --ui-line: #e5e8ee;
    --ui-line-strong: #d8dde5;
    --ui-page: #f4f5f7;
    --ui-surface: #ffffff;
    --ui-surface-raised: #ffffff;
    --ui-surface-muted: #f5f6f8;
    --ui-surface-hover: #f0f2f5;
    --ui-surface-accent: #fffaf9;
    --ui-overlay: rgba(27, 32, 42, .56);
    --ui-nav-surface: rgba(255, 255, 255, .96);
    --ui-mobile-bar-surface: rgba(255, 255, 255, .97);

    --ui-success: #15845c;
    --ui-success-soft: #edf9f4;
    --ui-success-border: #a9dfca;
    --ui-danger: #c93d4e;
    --ui-danger-soft: #fff1f2;
    --ui-danger-border: #f4b4bd;
    --ui-warning: #b75021;
    --ui-warning-soft: #fff6ed;
    --ui-warning-border: #f5c79f;
    --ui-info: #2563a6;
    --ui-info-soft: #eef6ff;
    --ui-info-border: #b9d6f5;

    --ui-image-placeholder: #edf0f3;
    --ui-image-sheen: #f8fafc;
    --ui-skeleton: #e5e8ee;
    --ui-skeleton-highlight: #f7f8fa;
    --ui-banner-copy: rgba(32, 38, 51, .80);
    --ui-favorite-surface: rgba(255, 255, 255, .90);

    --ui-hero-surface: #29303e;
    --ui-hero-ink: #ffffff;
    --ui-hero-muted: rgba(255, 255, 255, .76);
    --ui-profile-surface: #29303e;
    --ui-profile-ink: #ffffff;
    --ui-profile-muted: rgba(255, 255, 255, .72);

    --ui-share-surface: #ffffff;
    --ui-share-ink: #202633;
    --ui-share-muted: #687184;
    --ui-share-line: #e5e8ee;

    --ui-radius-xs: 4px;
    --ui-radius-sm: 6px;
    --ui-radius-md: 8px;
    --ui-radius-lg: 12px;
    --ui-radius-round: 999px;
    --ui-control-sm: 34px;
    --ui-control-md: 40px;
    --ui-control-lg: 44px;
    --ui-touch-target: 44px;

    --ui-shadow-xs: 0 2px 8px rgba(31, 39, 55, .05);
    --ui-shadow-sm: 0 2px 10px rgba(31, 39, 55, .05);
    --ui-shadow-md: 0 6px 20px rgba(31, 39, 55, .08);
    --ui-shadow-lg: 0 24px 70px rgba(18, 23, 33, .24);
    --ui-focus: 0 0 0 3px rgba(233, 80, 107, .16);

    --ui-z-dropdown: 400;
    --ui-z-sticky: 700;
    --ui-z-nav: 800;
    --ui-z-mobile-bar: 900;
    --ui-z-backdrop: 1000;
    --ui-z-dialog: 1010;
    --ui-z-toast: 1100;
    --ui-z-tooltip: 1200;
    --ui-z-wechat: 1300;

    --ui-duration-fast: 150ms;
    --ui-duration: 220ms;
    --ui-ease-out: cubic-bezier(.22, 1, .36, 1);

    --brand: var(--ui-primary);
    --brand-2: var(--ui-accent);
    --ink: var(--ui-ink);
    --muted: var(--ui-muted);
    --line: var(--ui-line);
    --soft: var(--ui-surface-muted);
    --card: var(--ui-surface);
    --good: var(--ui-success);
    --bad: var(--ui-danger);
    --shadow: var(--ui-shadow-md);
    --page-bg: var(--ui-page);
    --focus-ring: rgba(233, 80, 107, .16);
}

/* Source: assets/ui/base.css */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scrollbar-gutter: stable;
}

body {
    color-scheme: var(--ui-color-scheme, light);
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--ui-page);
    color: var(--ui-ink);
    font-family: var(--ui-font);
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 0;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: contain;
}

button,
input,
select,
textarea {
    max-width: 100%;
    margin: 0;
    color: inherit;
    font: inherit;
    letter-spacing: 0;
}

button,
select {
    cursor: pointer;
}

button {
    overflow-wrap: anywhere;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
}

a {
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
}

img,
video,
iframe {
    max-width: 100%;
}

img {
    display: block;
    height: auto;
}

svg {
    display: block;
}

h1,
h2,
h3,
h4,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
    color: var(--ui-heading);
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

::selection {
    background: var(--ui-primary-soft);
    color: var(--ui-heading);
}

:where(a, button, input, select, textarea, [role="button"]):focus-visible {
    outline: 2px solid var(--ui-primary);
    outline-offset: 2px;
}

.hidden {
    display: none !important;
}

[hidden] {
    display: none !important;
}

.muted {
    color: var(--ui-muted);
}

.text-good,
.text-success {
    color: var(--ui-success);
}

.text-bad,
.text-danger {
    color: var(--ui-danger);
}

.line-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.line-2.expanded {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.ui-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    pointer-events: none;
}

button,
[role="button"],
input,
select,
textarea {
    touch-action: manipulation;
}

@supports (padding: max(0px)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

.lazy-img {
    background: linear-gradient(90deg, var(--ui-skeleton) 0%, var(--ui-skeleton-highlight) 48%, var(--ui-skeleton) 100%);
    background-size: 220% 100%;
    opacity: .78;
    animation: ui-image-loading 1.25s ease-in-out infinite;
    transition: opacity var(--ui-duration) var(--ui-ease-out);
}

.lazy-img.loaded {
    background: transparent;
    opacity: 1;
    animation: none;
}

.rich-content {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.rich-content > :first-child {
    margin-top: 0;
}

.rich-content > :last-child {
    margin-bottom: 0;
}

.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content blockquote {
    margin: 0 0 12px;
}

.rich-content ul,
.rich-content ol {
    padding-left: 1.5em;
}

.rich-content a {
    color: var(--ui-primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rich-content img,
.rich-content video,
.rich-content iframe {
    width: 100%;
    margin-top: 14px;
    border-radius: var(--ui-radius-md);
}

.rich-content video,
.rich-content iframe {
    background: #111827;
}

.rich-content iframe {
    min-height: 320px;
    border: 0;
}

.rich-preview-img {
    cursor: zoom-in;
}

@keyframes ui-image-loading {
    from { background-position: 110% 0; }
    to { background-position: -110% 0; }
}

/* Source: assets/ui/shell.css */
.app-shell {
    width: min(100%, var(--ui-page-max));
    margin: 0 auto;
    padding: 0 var(--ui-page-gutter) 36px;
}

.page {
    min-width: 0;
}

.page-narrow {
    width: min(100%, var(--ui-reading-max));
    margin: 0 auto;
    padding-top: 24px;
}

.card {
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-md);
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow-xs);
}

.grid-2,
.grid-3,
.admin-grid {
    display: grid;
    gap: 12px;
}

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

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

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
}

.section-head h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
}

.section-head p {
    margin: 5px 0 0;
    font-size: 13px;
}

.page-top {
    position: sticky;
    top: 0;
    z-index: var(--ui-z-sticky);
    min-height: 58px;
    margin-top: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--ui-nav-surface);
}

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

.brand-lockup.compact {
    min-height: var(--ui-touch-target);
    gap: 10px;
    font-weight: 800;
}

.brand-lockup.compact strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-logo {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: var(--ui-radius-md);
    background: var(--ui-primary);
    color: var(--ui-on-primary);
    font-size: 20px;
    font-weight: 900;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
    opacity: 0;
    transition: opacity var(--ui-duration-fast) ease-out;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-logo img.loaded,
.brand-logo.has-logo img {
    opacity: 1;
}

.brand-logo.has-logo span {
    display: none;
}

body:has(.desktop-nav:not(:empty)) .page-top,
.desktop-nav:not(:empty) + .app-shell .page-top {
    display: none;
}

.site-footer {
    padding-top: 0;
}

.footer-card {
    margin-top: 34px;
    padding: 20px 14px;
    border-width: 1px 0 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ui-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.8;
    text-align: center;
}

.footer-card a:hover {
    color: var(--ui-primary);
}

.footer-split {
    margin: 0 6px;
    color: var(--ui-line-strong);
}

.back-to-top {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: 24px;
    z-index: var(--ui-z-sticky);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: var(--ui-radius-md);
    background: var(--ui-primary);
    color: var(--ui-on-primary);
    box-shadow: var(--ui-shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity var(--ui-duration-fast) ease-out, transform var(--ui-duration-fast) ease-out;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top span {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

/* Source: assets/ui/components/buttons.css */
.btn {
    min-height: var(--ui-control-lg);
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: var(--ui-radius-md);
    background: var(--ui-surface);
    color: var(--ui-ink);
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    transition: border-color var(--ui-duration-fast) ease-out, background-color var(--ui-duration-fast) ease-out, color var(--ui-duration-fast) ease-out, box-shadow var(--ui-duration-fast) ease-out, transform var(--ui-duration-fast) ease-out;
}

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

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

.btn-main {
    border-color: var(--ui-primary);
    background: var(--ui-primary);
    color: var(--ui-on-primary);
    box-shadow: none;
}

.btn-main:hover:not(:disabled) {
    border-color: var(--ui-primary-hover);
    background: var(--ui-primary-hover);
}

.btn-main:active:not(:disabled) {
    border-color: var(--ui-primary-active);
    background: var(--ui-primary-active);
}

.btn-dark {
    border-color: var(--ui-heading);
    background: var(--ui-heading);
    color: var(--ui-surface);
}

.btn-line {
    border-color: var(--ui-line-strong);
    background: var(--ui-surface);
    color: var(--ui-heading);
}

.btn-line:hover:not(:disabled) {
    border-color: var(--ui-primary-border);
    background: var(--ui-primary-soft);
    color: var(--ui-primary);
}

.btn-soft {
    border-color: transparent;
    background: var(--ui-surface-muted);
    color: var(--ui-muted);
}

.btn-soft:hover:not(:disabled) {
    background: var(--ui-surface-hover);
    color: var(--ui-heading);
}

.btn.mini,
.mini.btn {
    min-height: var(--ui-control-sm);
    padding-inline: 11px;
    font-size: 12px;
}

.full-btn {
    width: 100%;
    margin-top: 16px;
}

.text-btn {
    min-height: 44px;
    padding: 6px 0 0;
    border: 0;
    background: transparent;
    color: var(--ui-primary);
    font-weight: 750;
}

.text-btn:hover {
    color: var(--ui-primary-hover);
}

.chip {
    min-height: var(--ui-touch-target);
    flex: 0 0 auto;
    padding: 0 13px;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-sm);
    background: var(--ui-surface);
    color: var(--ui-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    transition: border-color var(--ui-duration-fast) ease-out, background-color var(--ui-duration-fast) ease-out, color var(--ui-duration-fast) ease-out;
}

.chip-with-icon {
    gap: 7px;
    padding-left: 7px;
    display: inline-flex;
    align-items: center;
}

.category-chip-icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: var(--ui-radius-sm);
    background: var(--ui-surface-muted);
    color: var(--ui-muted);
}

.category-chip-icon img,
.category-chip-icon .ui-icon {
    width: 18px;
    height: 18px;
    object-fit: cover;
}

.chip:hover:not(:disabled) {
    border-color: var(--ui-primary-border);
    color: var(--ui-primary);
}

.chip.active,
.chip[aria-selected="true"],
.chip[aria-pressed="true"] {
    border-color: var(--ui-primary);
    background: var(--ui-primary-soft);
    color: var(--ui-primary);
}

.chip.active .category-chip-icon {
    background: var(--ui-primary);
    color: var(--ui-on-primary);
}

.tag,
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tag {
    margin: 0 5px 6px 0;
    padding: 5px 7px;
    border: 1px solid var(--ui-primary-border);
    border-radius: var(--ui-radius-xs);
    background: var(--ui-primary-soft);
    color: var(--ui-primary);
    font-size: 11px;
    font-weight: 700;
}

.tag-row {
    min-height: 30px;
    overflow: hidden;
}

.btn:disabled,
.chip:disabled,
.btn[aria-busy="true"],
.chip[aria-busy="true"] {
    opacity: .56;
    pointer-events: none;
    transform: none;
}

/* Source: assets/ui/components/forms.css */
.input {
    width: 100%;
    min-width: 0;
    min-height: var(--ui-control-lg);
    padding: 0 13px;
    border: 1px solid var(--ui-line-strong);
    border-radius: var(--ui-radius-md);
    outline: 0;
    background: var(--ui-surface);
    color: var(--ui-ink);
    font-weight: 600;
    transition: border-color var(--ui-duration-fast) ease-out, box-shadow var(--ui-duration-fast) ease-out, background-color var(--ui-duration-fast) ease-out;
}

.input::placeholder {
    color: var(--ui-subtle);
    opacity: 1;
}

.input:hover:not(:disabled) {
    border-color: var(--ui-line-strong);
}

.input:focus {
    border-color: var(--ui-primary);
    background: var(--ui-surface);
    box-shadow: var(--ui-focus);
}

.input:disabled {
    background: var(--ui-surface-muted);
    color: var(--ui-subtle);
    opacity: .72;
}

textarea.input {
    min-height: 112px;
    padding-block: 11px;
    line-height: 1.7;
    resize: vertical;
}

select.input {
    padding-right: 34px;
    text-overflow: ellipsis;
}

.form-stack,
.profile-info-form {
    display: grid;
    gap: 12px;
}

.toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-md);
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow-sm);
}

.catalog-toolbar .btn {
    min-height: var(--ui-touch-target);
    white-space: nowrap;
}

.catalog-toolbar .input {
    min-height: var(--ui-touch-target);
    border-color: transparent;
    background: var(--ui-surface-muted);
    box-shadow: none;
}

.tabs {
    display: flex;
    gap: 8px;
    padding: 10px 0 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tabs::-webkit-scrollbar-thumb {
    border-radius: var(--ui-radius-round);
    background: var(--ui-line-strong);
}

.subcategory-tabs,
#filterSubs {
    padding-top: 7px;
}

.subcategory-tabs .chip,
#filterSubs .chip {
    min-height: var(--ui-touch-target);
    padding-inline: 11px;
    background: var(--ui-surface-muted);
    font-size: 12px;
}

.tabs-label {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    color: var(--ui-subtle);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.catalog-result-tools {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.result-count {
    color: var(--ui-muted);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.section-select {
    width: 132px;
    min-height: var(--ui-control-md);
}

.verify-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 16px;
}

/* Source: assets/ui/components/navigation.css */
.desktop-nav {
    position: sticky;
    top: 0;
    z-index: var(--ui-z-nav);
    min-height: 70px;
    border-bottom: 1px solid var(--ui-line);
    background: var(--ui-nav-surface);
    box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}

.desktop-nav:empty {
    visibility: hidden;
}

.desktop-nav__inner {
    width: min(var(--ui-page-max), calc(100% - 32px));
    min-height: 70px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(176px, auto) minmax(500px, 1fr) minmax(220px, 268px);
    align-items: center;
    gap: 18px;
}

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

.desktop-nav__logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: var(--ui-radius-md);
    background: var(--ui-primary);
    color: var(--ui-on-primary);
    font-size: 20px;
    font-weight: 900;
}

.desktop-nav__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}

.desktop-nav__brand-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.desktop-nav__brand-copy strong,
.desktop-nav__brand-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-nav__brand-copy strong {
    color: var(--ui-heading);
    font-size: 16px;
}

.desktop-nav__brand-copy small {
    color: var(--ui-muted);
    font-size: 11px;
}

.desktop-nav__links {
    min-width: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 2px;
}

.desktop-nav__link {
    position: relative;
    min-width: 72px;
    height: 70px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--ui-muted);
    font-size: 14px;
    font-weight: 750;
}

.desktop-nav__link::after {
    content: "";
    position: absolute;
    right: 16px;
    bottom: 0;
    left: 16px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--ui-primary);
    transform: scaleX(0);
    transition: transform var(--ui-duration-fast) ease-out;
}

.desktop-nav__link:hover,
.desktop-nav__link.active {
    background: var(--ui-primary-soft);
    color: var(--ui-primary);
}

.desktop-nav__link.active::after {
    transform: scaleX(1);
}

.desktop-nav__search {
    height: 40px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
    border: 1px solid var(--ui-line-strong);
    border-radius: var(--ui-radius-md);
    background: var(--ui-surface-muted);
    transition: border-color var(--ui-duration-fast) ease-out, box-shadow var(--ui-duration-fast) ease-out;
}

.desktop-nav__search:focus-within {
    border-color: var(--ui-primary);
    box-shadow: var(--ui-focus);
}

.desktop-nav__search .ui-icon {
    color: var(--ui-subtle);
}

.desktop-nav__search input {
    min-width: 0;
    height: 38px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ui-ink);
}

.desktop-nav__search input::placeholder {
    color: var(--ui-subtle);
}

.desktop-nav__search button {
    align-self: stretch;
    min-width: 58px;
    border: 0;
    border-radius: 0 calc(var(--ui-radius-md) - 1px) calc(var(--ui-radius-md) - 1px) 0;
    background: var(--ui-primary);
    color: var(--ui-on-primary);
    font-weight: 800;
}

.bottom-nav {
    position: fixed;
    z-index: var(--ui-z-mobile-bar);
    right: 0;
    bottom: 0;
    left: 0;
    min-height: calc(62px + env(safe-area-inset-bottom));
    display: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--ui-line);
    background: var(--ui-mobile-bar-surface);
    box-shadow: 0 -3px 12px rgba(31, 39, 55, .08);
}

.bottom-nav .nav-btn {
    min-width: 0;
    height: 61px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--ui-muted);
    font-size: 10px;
    font-weight: 700;
}

.bottom-nav .nav-btn .ui-icon {
    width: 20px;
    height: 20px;
}

.bottom-nav .nav-btn.active,
.bottom-nav .nav-buy,
.bottom-nav .nav-buy.active {
    background: transparent;
    color: var(--ui-primary);
}

/* Source: assets/ui/components/product-card.css */
.product-grid {
    min-height: 220px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-content: start;
    gap: 14px;
}

.product-grid > .empty-state {
    grid-column: 1 / -1;
}

.product-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    transition: border-color var(--ui-duration-fast) ease-out, box-shadow var(--ui-duration) var(--ui-ease-out), transform var(--ui-duration) var(--ui-ease-out);
}

.product-card:hover {
    border-color: var(--ui-primary-border);
    box-shadow: var(--ui-shadow-md);
    transform: translateY(-1px);
}

.product-card__link {
    min-width: 0;
    display: block;
}

.product-img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ui-image-placeholder);
}

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

.product-card .badge {
    position: absolute;
    z-index: 2;
    min-height: 24px;
    border: 0;
    border-radius: var(--ui-radius-xs);
    font-size: 11px;
    font-weight: 750;
}

.badge-code {
    bottom: 9px;
    left: 9px;
    gap: 3px;
    padding-inline: 7px;
    background: rgba(28, 33, 44, .80);
    color: #ffffff;
}

.badge-code-label {
    color: rgba(255, 255, 255, .72);
}

.badge-code-value {
    font-variant-numeric: tabular-nums;
}

.badge-hot {
    top: 9px;
    right: 9px;
    padding-inline: 8px;
    background: var(--ui-primary);
    color: var(--ui-on-primary);
}

.badge-soft {
    padding: 5px 7px;
    border-radius: var(--ui-radius-xs);
    background: var(--ui-primary-soft);
    color: var(--ui-primary);
    font-size: 11px;
    font-weight: 700;
}

.product-favorite {
    position: absolute;
    z-index: 4;
    top: 9px;
    left: 9px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .66);
    border-radius: var(--ui-radius-md);
    background: var(--ui-favorite-surface);
    color: #596274;
    box-shadow: 0 4px 10px rgba(31, 39, 55, .12);
}

.product-favorite:hover,
.product-favorite.is-active,
.product-favorite[aria-pressed="true"] {
    border-color: var(--ui-primary-border);
    background: var(--ui-primary-soft);
    color: var(--ui-primary);
}

.product-favorite.is-active .ui-icon,
.product-favorite[aria-pressed="true"] .ui-icon {
    fill: currentColor;
}

.product-body {
    padding: 12px 13px 14px;
}

.product-meta {
    margin-bottom: 7px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--ui-muted);
    font-size: 12px;
    font-weight: 700;
}

.product-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-meta span:first-child {
    color: var(--ui-primary);
}

.product-title {
    min-height: 42px;
    margin: 0;
    color: var(--ui-heading);
    font-size: 15px;
    font-weight: 760;
    line-height: 1.42;
}

.product-card__facts {
    height: 27px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}

.product-card__facts span {
    min-width: 0;
    overflow: hidden;
    padding: 4px 6px;
    border-radius: var(--ui-radius-xs);
    background: var(--ui-surface-muted);
    color: var(--ui-muted);
    font-size: 11px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card__facts .ui-icon {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
}

.product-card__facts span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.product-card__facts span:first-child {
    background: var(--ui-accent-soft);
    color: var(--ui-warning);
}

.price-row {
    min-height: 48px;
    margin-top: 10px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

.price-label {
    font-size: 10px;
    font-weight: 600;
}

.price {
    color: var(--ui-price);
    font-size: 25px;
    font-weight: 900;
    line-height: 1.05;
}

.price small {
    margin-right: 1px;
    font-size: .58em;
    font-weight: 850;
}

.product-card__detail {
    padding-bottom: 2px;
    color: var(--ui-muted);
    font-size: 11px;
    font-weight: 750;
}

/* Source: assets/ui/components/pagination.css */
.pager {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.pager .btn {
    min-width: 44px;
    min-height: 44px;
}

.pager .btn {
    min-width: 44px;
    min-height: 44px;
    padding-inline: 10px;
}

.pager .btn:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.pager-info {
    color: var(--ui-muted);
    font-size: 13px;
    font-weight: 700;
}

.pager-dot {
    color: var(--ui-subtle);
    font-weight: 800;
}

/* Source: assets/ui/components/gallery.css */
.product-gallery-panel {
    min-width: 0;
    padding: 16px;
    border-right: 1px solid var(--ui-line);
}

.detail-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--ui-radius-md);
    background: var(--ui-image-placeholder);
}

.detail-image-trigger,
.detail-gallery-button {
    position: relative;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.detail-image-trigger {
    width: 100%;
    height: 100%;
}

.detail-image-trigger img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--ui-image-placeholder);
}

.detail-image-trigger > span {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 9px;
    border-radius: var(--ui-radius-sm);
    background: var(--ui-banner-copy);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.detail-image-trigger:hover > span,
.detail-image-trigger:focus-visible > span {
    background: rgba(20, 25, 34, .90);
}

.detail-image-trigger .ui-icon {
    width: 15px;
    height: 15px;
}

.detail-thumbnails {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 76px;
    gap: 8px;
    margin-top: 10px;
    padding-bottom: 2px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.detail-thumbnail {
    width: 76px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 2px;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-sm);
    background: var(--ui-surface);
}

.detail-thumbnail.active,
.detail-thumbnail[aria-current="true"] {
    border-color: var(--ui-primary);
    box-shadow: var(--ui-focus);
}

.detail-thumbnail img {
    width: 100%;
    height: 100%;
    border-radius: calc(var(--ui-radius-sm) - 2px);
    object-fit: cover;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.detail-gallery-button {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--ui-radius-md);
    background: var(--ui-image-placeholder);
}

.detail-gallery-button::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    transition: border-color var(--ui-duration-fast) ease-out;
    pointer-events: none;
}

.detail-gallery-button:hover::after,
.detail-gallery-button:focus-visible::after {
    border-color: var(--ui-primary);
}

.detail-gallery-button img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

body.lightbox-open {
    overflow: hidden;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: calc(var(--ui-z-dialog) + 10);
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(7, 10, 16, .92);
}

.image-lightbox-panel {
    position: relative;
    width: min(96vw, 1280px);
    max-height: 96vh;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
}

.image-lightbox-stage {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: grid;
    place-items: center;
}

.image-lightbox-img {
    width: auto;
    max-width: 100%;
    max-height: calc(96vh - 62px);
    object-fit: contain;
    background: transparent;
}

.image-lightbox-close,
.image-lightbox-nav {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: var(--ui-radius-md);
    background: rgba(15, 23, 42, .70);
    color: #ffffff;
}

.image-lightbox-close {
    top: 0;
    right: 0;
    width: 42px;
    height: 42px;
    font-size: 26px;
}

.image-lightbox-nav {
    top: 50%;
    width: 46px;
    height: 54px;
    font-size: 34px;
    transform: translateY(-50%);
}

.image-lightbox-nav.prev { left: 12px; }
.image-lightbox-nav.next { right: 12px; }

.image-lightbox-close:hover,
.image-lightbox-nav:hover,
.image-lightbox-close:focus-visible,
.image-lightbox-nav:focus-visible {
    border-color: rgba(255, 255, 255, .72);
    background: rgba(15, 23, 42, .92);
}

.image-lightbox-caption {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 4px 0;
    color: rgba(255, 255, 255, .88);
}

.image-lightbox-caption strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-lightbox-count {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, .68);
    font-variant-numeric: tabular-nums;
}

/* Source: assets/ui/components/modal.css */
.modal {
    position: fixed;
    inset: 0;
    z-index: var(--ui-z-backdrop);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    overflow: auto;
    background: var(--ui-overlay);
    backdrop-filter: blur(4px);
}

.modal-panel {
    width: min(100%, 640px);
    max-height: min(88vh, 760px);
    overflow: auto;
    padding: 20px;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-md);
    background: var(--ui-surface-raised);
    color: var(--ui-ink);
    box-shadow: var(--ui-shadow-lg);
}

.modal-head {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
}

.modal-head h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}

.modal-actions {
    margin-top: 16px;
}

.notice-panel {
    width: min(100%, 620px);
}

.notice-panel .detail-content {
    max-height: min(56vh, 480px);
    overflow: auto;
}

.toast {
    position: fixed;
    z-index: var(--ui-z-toast);
    top: max(20px, env(safe-area-inset-top));
    left: 50%;
    max-width: min(92vw, 560px);
    padding: 11px 16px;
    border: 1px solid color-mix(in srgb, var(--ui-surface) 16%, transparent);
    border-radius: var(--ui-radius-md);
    background: var(--ui-heading);
    color: var(--ui-surface);
    box-shadow: var(--ui-shadow-lg);
    font-weight: 750;
    text-align: center;
    transform: translateX(-50%);
}

.share-panel {
    width: min(100%, 470px);
}

.share-card {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--ui-share-line);
    border-radius: var(--ui-radius-md);
    background: var(--ui-share-surface);
    color: var(--ui-share-ink);
    box-shadow: var(--ui-shadow-sm);
}

.share-card.is-saving {
    pointer-events: none;
}

.share-brand,
.share-cover {
    grid-column: 1 / -1;
}

.share-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.share-brand strong {
    min-width: 0;
    overflow: hidden;
    color: var(--ui-share-ink);
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-brand span {
    flex: 0 0 auto;
    color: var(--ui-primary);
    font-size: 12px;
    font-weight: 750;
}

.share-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--ui-radius-sm);
    background: var(--ui-image-placeholder);
}

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

.share-info {
    min-width: 0;
}

.share-info h3 {
    margin: 9px 0 5px;
    color: var(--ui-share-ink);
    font-size: 17px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.share-info p {
    margin: 0;
    color: var(--ui-share-muted);
    font-size: 12px;
}

.share-price {
    margin-top: 10px;
    color: var(--ui-price);
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.share-qr {
    align-self: end;
    display: grid;
    justify-items: center;
    gap: 6px;
}

.share-qr img {
    width: 102px;
    height: 102px;
    border: 1px solid var(--ui-share-line);
    background: #ffffff;
}

.share-qr span {
    color: var(--ui-share-muted);
    font-size: 10px;
    font-weight: 700;
}

.share-actions {
    margin-top: 14px;
}

body.wechat-guide-active {
    overflow: hidden;
    background: #ffffff;
}

body.wechat-guide-active .app-shell,
body.wechat-guide-active .desktop-nav,
body.wechat-guide-active .bottom-nav,
body.wechat-guide-active .back-to-top,
body.wechat-guide-active .notice-modal {
    display: none;
}

body.wechat-guide-active .toast {
    z-index: calc(var(--ui-z-wechat) + 1);
}

.wechat-guide {
    position: fixed;
    inset: 0;
    z-index: var(--ui-z-wechat);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    color: #172033;
    font-family: var(--ui-font);
}

.wechat-guide-top {
    min-height: 82px;
    padding: 13px 20px 9px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #edf1f7;
    background: #f7f8fb;
    text-align: center;
}

.wechat-guide-top strong,
.wechat-guide-top small {
    display: block;
}

.wechat-guide-top strong {
    font-size: 21px;
    line-height: 1.15;
}

.wechat-guide-top small {
    margin-top: 4px;
    color: #687184;
    font-size: 12px;
    font-weight: 700;
}

.wechat-guide-close,
.wechat-guide-more {
    color: #172033;
    font-size: 34px;
    font-weight: 300;
    line-height: 1;
}

.wechat-guide-more {
    align-self: start;
    padding-top: 12px;
    font-size: 25px;
    font-weight: 800;
}

.wechat-guide-hero {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    background: #2d74f3;
    color: #ffffff;
}

.wechat-guide-hero::after {
    content: "";
    position: absolute;
    right: -8%;
    bottom: -86px;
    left: -8%;
    height: 164px;
    border-radius: 50% 50% 0 0;
    background: #ffffff;
}

.wechat-guide-text {
    position: relative;
    z-index: 2;
    padding: 36px 24px 0;
}

.wechat-guide-text strong,
.wechat-guide-text span {
    display: block;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.5;
}

.wechat-guide-target {
    position: absolute;
    z-index: 3;
    top: 26px;
    right: 26px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    box-shadow: 0 0 0 11px rgba(255, 255, 255, .12);
}

.wechat-guide-target span {
    position: absolute;
    top: 21px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffffff;
}

.wechat-guide-target span:nth-child(1) { left: 17px; }
.wechat-guide-target span:nth-child(2) { left: 32px; }
.wechat-guide-target span:nth-child(3) { left: 47px; }

.wechat-guide-pointer {
    position: absolute;
    z-index: 4;
    top: 76px;
    right: 34px;
    width: 54px;
    height: 72px;
    transform: rotate(22deg);
}

.wechat-guide-pointer::before,
.wechat-guide-pointer::after {
    content: "";
    position: absolute;
    background: #ffd7a6;
}

.wechat-guide-pointer::before {
    top: 17px;
    left: 19px;
    width: 20px;
    height: 52px;
    border-radius: 11px;
}

.wechat-guide-pointer::after {
    top: 0;
    left: 6px;
    width: 42px;
    height: 31px;
    border-radius: 22px 22px 15px 15px;
}

.wechat-guide-main {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 30px 20px;
}

.wechat-copy-btn {
    min-width: min(74vw, 360px);
    min-height: 54px;
    border: 1px solid #b9c8db;
    border-radius: var(--ui-radius-round);
    background: #ffffff;
    color: #315fc4;
    font-size: 20px;
    font-weight: 800;
}

.wechat-guide-menu {
    position: relative;
    padding: 20px 8px 13px;
    background: #dff3fb;
}

.wechat-guide-menu-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px 7px;
}

.wechat-guide-menu-grid div {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 6px;
    color: #70849a;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.wechat-guide-menu-grid i {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: var(--ui-radius-md);
    background: rgba(255, 255, 255, .72);
    color: #31506f;
    font-size: 20px;
    font-style: normal;
    font-weight: 800;
}

.wechat-guide-menu-grid .active {
    color: #2d4b6f;
}

.wechat-guide-menu-grid .active i {
    outline: 3px solid #b04c70;
    outline-offset: 4px;
}

.wechat-guide-menu-arrow {
    position: absolute;
    right: 27%;
    bottom: 64px;
    width: 16px;
    height: 76px;
    border-radius: var(--ui-radius-round);
    background: #b04c70;
}

.wechat-guide-menu-arrow::before {
    content: "";
    position: absolute;
    top: -26px;
    left: 50%;
    border-right: 26px solid transparent;
    border-bottom: 34px solid #b04c70;
    border-left: 26px solid transparent;
    transform: translateX(-50%);
}

.wechat-guide-menu-tip {
    min-height: 44px;
    margin-top: 16px;
    padding: 8px 14px;
    display: grid;
    place-items: center;
    border-radius: var(--ui-radius-round);
    background: #d3e85b;
    color: #263c55;
    font-size: 18px;
    font-weight: 850;
    text-align: center;
}

/* Source: assets/ui/components/states.css */
.loading-card,
.empty-state,
.error-state {
    grid-column: 1 / -1;
    min-height: 168px;
    padding: 28px;
    place-content: center;
    text-align: center;
    box-shadow: none;
}

.loading-card {
    position: relative;
    display: grid;
    overflow: hidden;
    color: var(--ui-muted);
    font-weight: 750;
}

.loading-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--ui-skeleton-highlight) 78%, transparent) 46%, transparent 72%);
    transform: translateX(-100%);
    animation: ui-skeleton-sweep 1.2s ease-in-out infinite;
}

.empty-state,
.error-state {
    display: grid;
    border-style: dashed;
    background: var(--ui-surface);
}

.empty-state strong,
.error-state strong {
    display: block;
    color: var(--ui-heading);
    font-size: 18px;
}

.empty-state p,
.error-state p {
    max-width: 52ch;
    margin: 7px auto 0;
}

.empty-state .btn,
.error-state .btn {
    margin: 14px auto 0;
}

.error-state {
    border-color: var(--ui-danger-border);
    background: var(--ui-danger-soft);
}

.product-skeleton {
    pointer-events: none;
}

[data-boot-skeleton] > .boot-skeleton {
    display: none;
}

[data-boot-skeleton].is-visible > .boot-skeleton {
    display: block;
}

.product-skeleton .product-img,
.skeleton-line,
.skeleton-price,
.skeleton-button {
    position: relative;
    overflow: hidden;
    background: var(--ui-skeleton);
}

.product-skeleton .product-img {
    aspect-ratio: 4 / 3;
}

.product-skeleton .product-img::after,
.skeleton-line::after,
.skeleton-price::after,
.skeleton-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 18%, var(--ui-skeleton-highlight) 48%, transparent 78%);
    transform: translateX(-100%);
    animation: ui-skeleton-sweep 1.2s ease-in-out infinite;
}

.skeleton-line {
    width: 100%;
    height: 12px;
    margin-bottom: 9px;
    border-radius: var(--ui-radius-xs);
}

.skeleton-line.short { width: 42%; }
.skeleton-line.mid { width: 68%; }

.skeleton-price {
    width: 86px;
    height: 24px;
    border-radius: var(--ui-radius-xs);
}

.skeleton-button {
    width: 58px;
    height: 34px;
    border-radius: var(--ui-radius-md);
}

[aria-busy="true"] {
    cursor: wait;
}

.product-grid.is-refreshing {
    opacity: .72;
    pointer-events: none;
    transition: opacity var(--ui-duration-fast) ease-out;
}

.detail-skeleton .detail-media,
.detail-skeleton .detail-thumbnails span,
.detail-skeleton .info-box,
.profile-skeleton section,
.profile-skeleton article,
.profile-skeleton i {
    position: relative;
    overflow: hidden;
    background: var(--ui-skeleton);
}

.detail-skeleton .detail-media::after,
.detail-skeleton .detail-thumbnails span::after,
.detail-skeleton .info-box::after,
.profile-skeleton section::after,
.profile-skeleton article::after,
.profile-skeleton i::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 18%, var(--ui-skeleton-highlight) 48%, transparent 78%);
    transform: translateX(-100%);
    animation: ui-skeleton-sweep 1.2s ease-in-out infinite;
}

.detail-skeleton .detail-thumbnails span {
    width: 64px;
    aspect-ratio: 1;
    border-radius: var(--ui-radius-sm);
}

button[aria-busy="true"],
select[aria-busy="true"],
input[aria-busy="true"] {
    opacity: .58;
    pointer-events: none;
}

@keyframes ui-skeleton-sweep {
    to { transform: translateX(100%); }
}

/* Source: assets/ui/responsive.css */
@media (max-width: 1180px) {
    .desktop-nav__inner {
        grid-template-columns: auto minmax(420px, 1fr) 210px;
        gap: 10px;
    }

    .desktop-nav__brand-copy small {
        display: none;
    }

    .desktop-nav__link {
        min-width: 62px;
        padding-inline: 7px;
        font-size: 13px;
    }

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

    .catalog-results .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .desktop-nav__inner {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .desktop-nav__search {
        display: none;
    }

    .home-discovery,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .product-gallery-panel {
        border-right: 0;
        border-bottom: 1px solid var(--ui-line);
    }

    .detail-media {
        aspect-ratio: 16 / 10;
    }

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

@media (min-width: 761px) {
    body[data-page="buy"] .mobile-category-tabs,
    body[data-page="buy"] #filterBtn {
        display: none;
    }

    .catalog-filter-panel.hidden {
        display: block !important;
    }
}

@media (max-width: 760px) {
    .desktop-nav {
        display: none;
    }

    body {
        padding-bottom: calc(62px + env(safe-area-inset-bottom));
    }

    body[data-page="product"] {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }

    .app-shell {
        padding: 0 var(--ui-mobile-gutter) 16px;
    }

    body:has(.desktop-nav:not(:empty)) .page-top,
    .desktop-nav:not(:empty) + .app-shell .page-top,
    .page-top {
        display: flex;
    }

    .page-top {
        height: var(--ui-mobile-header);
        min-height: var(--ui-mobile-header);
        margin: 0 calc(var(--ui-mobile-gutter) * -1) 10px;
        padding: 7px var(--ui-mobile-gutter);
        border-width: 0 0 1px;
        border-radius: 0;
        box-shadow: none;
    }

    .page-top .brand-logo {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .page-top .btn {
        min-width: 44px;
        min-height: 44px;
        padding-inline: 11px;
        font-size: 12px;
    }

    .page-narrow {
        padding-top: 4px;
    }

    .page-narrow > .section-head {
        display: none;
    }

    .home-discovery {
        min-height: 0;
        gap: 16px;
        margin-inline: calc(var(--ui-mobile-gutter) * -1);
        padding: 8px 12px 14px;
    }

    .discovery-heading h1 {
        margin-top: 8px;
        font-size: 21px;
    }

    .discovery-heading p {
        font-size: 13px;
    }

    .trust-row {
        gap: 7px 13px;
        margin-top: 12px;
        font-size: 12px;
    }

    .catalog-toolbar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 6px;
        padding: 6px;
        box-shadow: none;
    }

    .catalog-toolbar .btn {
        min-width: 42px;
        min-height: 44px;
        padding-inline: 10px;
    }

    .catalog-toolbar .btn span {
        display: none;
    }

    .catalog-toolbar .input {
        min-height: 44px;
        padding-inline: 10px;
        font-size: 13px;
    }

    .tabs {
        gap: 7px;
        padding-top: 9px;
        scroll-padding-inline: var(--ui-mobile-gutter);
    }

    .chip {
        min-height: 44px;
        padding-inline: 11px;
        font-size: 12px;
        scroll-snap-align: start;
    }

    .subcategory-tabs .chip,
    #filterSubs .chip {
        min-height: 44px;
        font-size: 11px;
    }

    .home-banner {
        height: 132px;
        min-height: 132px;
        margin-top: 12px;
    }

    .banner-copy {
        left: 10px;
        bottom: 10px;
        padding: 6px 8px;
    }

    .banner-copy strong {
        font-size: 15px;
    }

    .banner-copy span {
        font-size: 10px;
    }

    .banner-nav {
        width: 44px;
        height: 44px;
    }

    .banner-nav.prev { left: 7px; }
    .banner-nav.next { right: 7px; }

    .banner-dots {
        right: 9px;
        bottom: 8px;
    }

    .notice {
        min-height: 44px;
        gap: 8px;
        padding-inline: 10px;
        font-size: 12px;
    }

    #productsSection {
        padding-top: 17px;
    }

    .section-head.products-head,
    .buy-head {
        min-height: 46px;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
    }

    .products-head h2,
    .buy-title h2 {
        font-size: 18px;
    }

    .products-head p,
    .buy-title p,
    .buy-title .section-icon {
        display: none;
    }

    .catalog-result-tools {
        gap: 6px;
    }

    .result-count {
        font-size: 11px;
    }

    .section-select {
        width: 108px;
        min-height: 36px;
        padding-inline: 7px;
        font-size: 11px;
    }

    .product-grid,
    .catalog-results .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .product-img,
    .product-skeleton .product-img {
        aspect-ratio: 1 / 1;
    }

    .product-body {
        padding: 9px 9px 11px;
    }

    .product-meta {
        margin-bottom: 5px;
        font-size: 10px;
    }

    .product-title {
        min-height: 38px;
        font-size: 13px;
    }

    .product-card__facts {
        height: 23px;
        margin-top: 6px;
        gap: 4px;
    }

    .product-card__facts span {
        padding: 3px 4px;
        font-size: 9px;
    }

    .product-card__facts span:nth-child(n + 2) {
        display: none;
    }

    .price-row {
        min-height: 41px;
        margin-top: 7px;
    }

    .price {
        font-size: 20px;
    }

    .product-card__detail,
    .price-label {
        font-size: 9px;
    }

    .product-favorite {
        top: 7px;
        left: 7px;
        width: 44px;
        height: 44px;
    }

    .badge-code {
        left: 7px;
        bottom: 7px;
    }

    .badge-hot {
        top: 7px;
        right: 7px;
    }

    .pager {
        margin-top: 17px;
    }

    .pager .btn {
        min-width: 44px;
        min-height: 44px;
        padding-inline: 8px;
        font-size: 11px;
    }

    .pager-info {
        width: 100%;
        text-align: center;
    }

    body[data-page="buy"] .app-shell {
        padding-top: 0;
    }

    body[data-page="buy"] .buy-page {
        padding-top: 4px;
    }

    .buy-layout {
        display: block;
        margin-top: 11px;
    }

    .catalog-filter-panel {
        position: fixed;
        inset: 0;
        z-index: var(--ui-z-backdrop);
        width: auto;
        display: flex;
        align-items: flex-end;
        padding: 0;
        background: var(--ui-overlay);
        backdrop-filter: blur(3px);
    }

    .catalog-filter-panel.hidden {
        display: none !important;
    }

    .catalog-filter-panel .modal-panel {
        width: 100%;
        max-height: min(82vh, 690px);
        padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
        border: 0;
        border-radius: var(--ui-radius-md) var(--ui-radius-md) 0 0;
        box-shadow: 0 -16px 50px rgba(18, 23, 33, .18);
    }

    .catalog-filter-panel #closeFilterBtn {
        display: inline-flex;
        min-width: 44px;
        min-height: 44px;
    }

    .catalog-filter-panel .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .catalog-filter-panel .modal-actions {
        position: sticky;
        bottom: -18px;
        padding-top: 12px;
        background: var(--ui-surface);
    }

    .detail-layout,
    .content-grid,
    .user-auth-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    body[data-page="service"] .content-grid {
        grid-template-columns: 1fr;
    }

    #detailCard {
        min-height: 660px;
        border-radius: var(--ui-radius-md);
    }

    .product-gallery-panel {
        padding: 8px;
    }

    .detail-media {
        aspect-ratio: 1 / 1;
        border-radius: var(--ui-radius-sm);
    }

    .detail-thumbnails {
        grid-auto-columns: 60px;
        gap: 7px;
        margin-top: 8px;
    }

    .detail-thumbnail {
        width: 60px;
    }

    .detail-image-trigger > span {
        right: 7px;
        bottom: 7px;
        padding: 6px 8px;
        font-size: 10px;
    }

    .detail-info {
        padding: 15px 13px 17px;
    }

    .detail-title {
        margin-top: 9px;
        font-size: 19px;
    }

    .price-panel {
        margin-top: 12px;
        padding: 12px;
    }

    .detail-price {
        font-size: 29px;
    }

    .info-grid {
        gap: 6px;
        margin-top: 11px;
    }

    .info-box {
        padding: 9px;
    }

    .detail-actions {
        display: none;
    }

    .product-mobile-actions {
        position: fixed;
        z-index: var(--ui-z-mobile-bar);
        left: 0;
        right: 0;
        bottom: 0;
        min-height: calc(64px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: 68px 68px minmax(0, 1fr);
        gap: 8px;
        padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    }

    body[data-page="product"] .bottom-nav {
        display: none;
    }

    .detail-panel {
        margin-top: 10px;
        padding: 12px;
    }

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

    .inner-hero {
        padding: 18px 15px;
    }

    .inner-hero h1 {
        font-size: 23px;
    }

    .content-grid,
    .about-timeline {
        gap: 10px;
        margin-top: 10px;
    }

    .panel-block,
    .user-auth-grid .console-card,
    .profile-panel {
        padding: 14px;
    }

    body[data-page="sell"] .content-grid > .panel-block:last-child,
    .service-contact-panel {
        position: static;
    }

    .verify-box {
        grid-template-columns: 1fr;
    }

    .verify-box .btn {
        width: 100%;
    }

    .about-timeline {
        grid-template-columns: 1fr;
    }

    .about-post {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .about-post-cover {
        min-height: 124px;
        height: 100%;
        aspect-ratio: auto;
    }

    .about-post h2,
    .about-post p {
        min-height: 0;
    }

    .about-detail {
        padding: 18px 14px;
    }

    .about-detail-head h1 {
        font-size: 24px;
    }

    .profile-hero {
        min-height: 180px;
        padding: 18px;
    }

    .profile-stat-grid,
    .profile-tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bottom-nav {
        display: grid;
    }

    .footer-card {
        margin-top: 22px;
        padding: 16px 8px 76px;
    }

    .back-to-top {
        right: 12px;
        bottom: calc(74px + env(safe-area-inset-bottom));
    }

    .share-panel {
        width: min(100%, 430px);
        max-height: 92vh;
        padding: 14px;
    }

    .share-card {
        grid-template-columns: minmax(0, 1fr) 86px;
    }

    .share-brand,
    .share-cover {
        grid-column: 1 / -1;
    }

    .share-cover {
        aspect-ratio: 16 / 9;
    }

    .share-qr img {
        width: 76px;
        height: 76px;
    }

    .image-lightbox {
        padding: 10px;
    }

    .image-lightbox-panel {
        width: 100%;
    }

    .image-lightbox-img {
        max-height: calc(100vh - 120px);
    }

    .image-lightbox-caption {
        padding: 10px 4px 0;
    }
}

@media (max-width: 430px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .share-actions {
        grid-template-columns: 1fr;
    }

    .wechat-guide-top strong {
        font-size: 18px;
    }

    .wechat-guide-text strong,
    .wechat-guide-text span {
        font-size: 21px;
    }

    .wechat-guide-menu-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 359px) {
    :root {
        --ui-mobile-gutter: 8px;
    }

    .home-discovery {
        padding-inline: 10px;
    }

    .catalog-toolbar .btn {
        min-width: 38px;
        padding-inline: 8px;
    }

    .product-grid,
    .catalog-results .product-grid {
        gap: 7px;
    }

    .product-body {
        padding-inline: 8px;
    }

    .product-title {
        font-size: 12px;
    }

    .price {
        font-size: 18px;
    }

    .result-count {
        display: none;
    }

    .detail-eyebrow {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 339px) {
    .product-grid,
    .catalog-results .product-grid {
        grid-template-columns: 1fr;
    }

    .product-img,
    .product-skeleton .product-img {
        aspect-ratio: 16 / 10;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .lazy-img,
    .loading-card::after,
    .product-skeleton .product-img::after,
    .skeleton-line::after,
    .skeleton-price::after,
    .skeleton-button::after,
    .detail-skeleton *::after,
    .profile-skeleton *::after,
    .verify-pending span {
        animation: none !important;
        transform: none !important;
    }
}
