@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;
    }
}
