/**
 * 客户前台移动端适配（Bootstrap 5.1.3 断点对齐）
 * xs: <576px  sm: <768px  md: <992px
 */

.type-icon {
    width: 96px;
    height: 96px;
}

/* ---------- 全局 ---------- */
@media (max-width: 767.98px) {
    :root {
        --site-nav-height: 50px;
    }

    body {
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .container.py-5,
    main .py-5 {
        padding-bottom: 1.5rem !important;
    }

    h1, .h1 {
        font-size: 1.5rem;
    }

    h2, .h2 {
        font-size: 1.25rem;
    }

    .form-control,
    .form-select {
        font-size: 16px;
        min-height: 44px;
    }

    .btn {
        min-height: 44px;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-fullscreen-sm-down {
        max-width: 100%;
    }
}

/* ---------- 导航栏 ---------- */
@media (max-width: 767.98px) {
    .navbar {
        height: auto !important;
        min-height: 50px;
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }

    .navbar-brand,
    .navbar-brand-home {
        font-size: 1.1rem;
        padding: 0.35rem 0.25rem !important;
        max-width: calc(100% - 9.5rem);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        border-radius: 8px;
        transition: background-color 0.15s ease, transform 0.1s ease;
    }

    .navbar > .container {
        flex-wrap: wrap;
        align-items: center;
    }

    .mobile-nav-home {
        margin-left: auto;
        margin-right: 0.35rem;
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.35rem 0.65rem !important;
        font-weight: 600;
        color: #ffd700 !important;
        border: 1px solid rgba(255, 215, 0, 0.5);
        border-radius: 10px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .mobile-nav-home:active {
        background: rgba(255, 215, 0, 0.14);
    }

    .navbar-brand-home:active {
        background: rgba(255, 255, 255, 0.12);
        transform: scale(0.98);
    }

    .navbar-toggler,
    .navbar-toggler.mobile-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        padding: 0.35rem 0.65rem !important;
        min-width: 44px;
        min-height: 44px;
        border: 2px solid rgba(255, 215, 0, 0.9) !important;
        border-radius: 10px;
        background: rgba(255, 215, 0, 0.14);
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(255, 215, 0, 0.25);
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.35) !important;
    }

    .navbar-toggler .navbar-toggler-icon {
        width: 1.35rem;
        height: 1.35rem;
        filter: brightness(1.35);
    }

    .mobile-nav-toggle-label {
        font-size: 0.8125rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        color: #ffd700;
        line-height: 1;
    }

    .nav-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.9rem;
    }

    #cart-count {
        font-size: 0.65rem !important;
        padding: 0.15rem 0.35rem !important;
    }

    .navbar-lang-switcher {
        width: 100%;
        margin: 0.5rem 0 0 0;
    }

    .navbar-lang-switcher .lang-dropdown-toggle {
        width: 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar-lang-switcher .lang-dropdown-menu {
        width: 100%;
    }

    .navbar-lang-switcher .lang-dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .lang-bar {
        justify-content: center;
        width: 100%;
    }

    .lang-item {
        padding: 10px 16px !important;
        font-size: 13px !important;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

@media (max-width: 991.98px) {
    .navbar > .container {
        flex-wrap: wrap;
        align-items: center;
    }

    .navbar-collapse {
        background-color: #212529;
        padding: 10px;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        flex-basis: 100%;
        width: 100%;
        order: 10;
        flex-direction: column;
        align-items: stretch;
    }

    .navbar-collapse.collapsing,
    .navbar-collapse.show {
        flex-basis: 100%;
    }

    .navbar-collapse .mobile-nav-primary {
        margin-right: 0 !important;
    }

    .navbar-collapse .mobile-nav-account {
        margin-top: 0.75rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .navbar-collapse .dropdown-toggle::after,
    .navbar-lang-switcher .lang-dropdown-toggle.dropdown-toggle::after {
        border-top: 0.45em solid;
        border-right: 0.45em solid transparent;
        border-left: 0.45em solid transparent;
        margin-left: 0.5em;
        vertical-align: 0.2em;
    }

    .navbar-collapse .mobile-nav-primary,
    .navbar-collapse .mobile-nav-account,
    .navbar-collapse .mobile-nav-footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        width: 100%;
    }

    .navbar-collapse .mobile-nav-primary .nav-item,
    .navbar-collapse .mobile-nav-account .nav-item,
    .navbar-collapse .mobile-nav-footer-links .nav-item {
        width: 100%;
        min-width: 0;
    }

    .navbar-collapse .mobile-nav-primary .nav-item {
        grid-column: 1 / -1;
    }

    .navbar-collapse .mobile-nav-account .nav-item.dropdown {
        grid-column: 1 / -1;
    }

    .navbar-collapse .mobile-nav-account > .nav-item.navbar-lang-switcher {
        grid-column: 1 / -1;
    }

    .navbar-collapse .mobile-nav-footer-links > .nav-item:first-child {
        grid-column: 1 / -1;
    }

    .navbar-collapse .mobile-nav-primary .nav-link,
    .navbar-collapse .mobile-nav-account .nav-link,
    .navbar-collapse .mobile-nav-footer-links .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.06);
    }

    .navbar-collapse .mobile-nav-footer-links > .nav-item:first-child .nav-link {
        justify-content: center;
        background: transparent;
        min-height: auto;
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }

    .navbar-collapse .mobile-nav-primary .dropdown-menu,
    .navbar-collapse .mobile-nav-account .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.25rem;
        transform: none !important;
    }

    .navbar-collapse .mobile-nav-primary .nav-item.dropdown.show,
    .navbar-collapse .mobile-nav-account .nav-item.dropdown.show {
        grid-column: 1 / -1;
    }
}

/* ---------- 浮动按钮 FAB ---------- */
@media (max-width: 767.98px) {
    #contact-float {
        bottom: calc(20px + env(safe-area-inset-bottom, 0));
        right: 20px;
        left: auto;
    }

    #contact-float > div {
        border-radius: 50%;
        width: 56px;
        height: 56px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #contact-float i {
        margin-right: 0 !important;
        font-size: 1.8rem;
        color: white !important;
    }

    #contact-float span {
        display: none !important;
    }

    #cart-float-mobile {
        bottom: calc(156px + env(safe-area-inset-bottom, 0)) !important;
    }

    #orders-float-mobile {
        bottom: calc(88px + env(safe-area-inset-bottom, 0)) !important;
    }

    #contact-float-mobile {
        bottom: calc(20px + env(safe-area-inset-bottom, 0)) !important;
    }
}

/* ---------- 首页 ---------- */
@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .hero-section h1,
    .hero-section .display-5 {
        font-size: 1.5rem !important;
        margin-bottom: 0.8rem !important;
    }

    .hero-section h2,
    .hero-section .lead {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }

    .types-selection-section {
        padding: 1rem 0 !important;
    }

    .type-card {
        padding: 15px !important;
        margin-bottom: 1rem !important;
    }

    .type-icon {
        width: 88px !important;
        height: 88px !important;
        margin-bottom: 0.8rem !important;
        font-size: 2rem !important;
    }

    .type-icon i {
        font-size: 2rem !important;
    }

    .type-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }

    .type-card p {
        font-size: 0.85rem !important;
        min-height: auto !important;
        margin-bottom: 0.8rem !important;
    }

    .type-card .btn {
        font-size: 0.85rem !important;
        padding: 0.4rem 1rem !important;
    }

    .platform-features-section {
        padding: 1.5rem 0 !important;
    }

    .feature-card {
        padding: 1rem !important;
        margin-bottom: 0.75rem !important;
    }

    .feature-card h5 {
        font-size: 0.9rem !important;
    }

    .feature-card p {
        font-size: 0.8125rem !important;
    }
}

/* ---------- 分类主题页 ---------- */
.theme-page .hero-section {
    min-height: auto;
}

@media (max-width: 767.98px) {
    .theme-page:not(.theme-hat):not(.theme-clothes):not(.theme-electronics) .hero-section {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .theme-page .hero-section h1 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.8rem !important;
    }

    .theme-page .hero-section h2,
    .theme-page .hero-section .lead {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
    }

    .theme-page .hero-section .btn {
        font-size: 0.9rem !important;
        padding: 0.5rem 1.2rem !important;
        margin-bottom: 0.5rem !important;
    }

    .theme-page .hero-section .d-flex.gap-3 {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        justify-content: center !important;
    }

    .theme-page .hero-section .col-lg-6 {
        text-align: center !important;
        margin-bottom: 1rem !important;
    }

    .theme-page:not(.theme-hat):not(.theme-clothes):not(.theme-electronics) .hero-section img {
        max-height: 220px !important;
    }

    .theme-page:not(.theme-hat):not(.theme-clothes):not(.theme-electronics) .products-section-header {
        flex-direction: column;
        align-items: stretch !important;
        text-align: center;
    }

    .theme-page:not(.theme-hat):not(.theme-clothes):not(.theme-electronics) .product-sort-toolbar {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .theme-page:not(.theme-hat):not(.theme-clothes):not(.theme-electronics) .product-sort-select {
        width: 100%;
        max-width: 280px;
    }

    .theme-page .products-section,
    .theme-page #products {
        padding-bottom: calc(120px + env(safe-area-inset-bottom, 0));
    }

    .theme-page .product-card .d-grid .btn {
        position: relative;
        z-index: 1;
    }

    /* FAB 容器不挡下方按钮；仅图标本身可点 */
    #cart-float-mobile,
    #orders-float-mobile,
    #contact-float-mobile,
    .theme-hat .category-fab-mobile,
    .theme-clothes .category-fab-mobile,
    .theme-electronics .category-fab-mobile {
        pointer-events: none;
    }

    #cart-float-mobile > a,
    #orders-float-mobile > a,
    #contact-float-mobile > div,
    .theme-hat .category-fab-mobile .category-orb-trigger,
    .theme-clothes .category-fab-mobile .category-orb-trigger,
    .theme-electronics .category-fab-mobile .category-orb-trigger {
        pointer-events: auto;
    }
}

@media (hover: hover) {
    .hero-cta-btn:hover {
        transform: scale(1.05) translateY(-2px);
    }
}

@media (hover: none) {
    .hero-cta-btn {
        transform: none !important;
    }
}

/* ---------- 商品卡片列表 ---------- */
@media (max-width: 767.98px) {
    .product-card {
        margin-bottom: 0.75rem !important;
    }

    .product-card .card-title {
        font-size: 0.875rem !important;
        line-height: 1.3;
    }

    .product-card .card-text {
        font-size: 0.8125rem !important;
    }

    .product-card .price-section h4 {
        font-size: 1rem !important;
    }

    .product-card .btn {
        font-size: 0.8rem !important;
        padding: 0.35rem 0.5rem !important;
    }

    .card-img-top {
        max-height: 180px;
        aspect-ratio: 1 / 1;
        height: auto;
        object-fit: cover;
    }
}

/* ---------- 商品详情 ---------- */
@media (max-width: 991.98px) {
    .product-detail-page .product-horizontal-layout {
        gap: 1rem;
    }
}

@media (max-width: 767.98px) {
    .product-detail-page.container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .product-detail-page .row.mt-5 {
        margin-top: 1.5rem !important;
    }

    .product-showcase-box {
        min-height: auto !important;
        max-width: 100%;
    }

    .product-image-container {
        height: auto;
        max-height: 360px;
        min-height: 240px;
    }

    .product-image-section {
        width: 100% !important;
        max-width: 100% !important;
    }

    .size-picker-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .product-detail-actions .btn {
        width: 100%;
    }

    .product-detail-qty .input-group {
        max-width: 100%;
    }

    .product-detail-qty .btn {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ---------- 商品行卡片（cart / orders / order-detail 共用） ---------- */
.shop-page {
    --shop-accent: #d35400;
    --shop-item-bg: rgba(0, 0, 0, 0.02);
    --shop-panel-bg: #dee2e6;
    --shop-panel-border: #adb5bd;
}

.cart-page {
    --cart-accent: var(--shop-accent);
    --cart-item-bg: var(--shop-item-bg);
}

.shop-item-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 992px) {
    .shop-item-card-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        align-items: start;
    }

    .shop-item-card {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }
}

.shop-item-card {
    margin-bottom: 0;
    padding: 0.875rem 1rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.5rem;
    background: var(--shop-item-bg);
}

.shop-item-card-layout {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.shop-item-card-main {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem 1rem;
    min-width: 0;
    padding-right: 2.75rem;
}

.shop-item-card-main--readonly {
    padding-right: 0;
}

.shop-item-card-main--with-action {
    padding-right: 6.75rem;
}

.shop-item-card-remove {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

.shop-item-card-add-cart {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    line-height: 1.2;
    white-space: nowrap;
    max-width: calc(100% - 6rem);
    font-size: 0.75rem;
}

.shop-item-card-thumb-col {
    flex-shrink: 0;
}

.shop-item-card-thumb-wrap {
    position: relative;
}

.shop-item-card-thumb {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.cart-page .shop-item-card-img-preview {
    display: none;
    position: absolute;
    left: calc(100% + 8px);
    top: 0;
    z-index: 30;
    width: 200px;
    height: 200px;
    padding: 4px;
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.cart-page .shop-item-card-img-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (hover: hover) and (min-width: 992px) {
    .cart-page .shop-item-card-thumb-wrap:hover .shop-item-card-img-preview {
        display: block;
    }

    .cart-page .shop-item-card-list > .shop-item-card:nth-child(even) .shop-item-card-img-preview {
        left: auto;
        right: calc(100% + 8px);
    }
}

.shop-item-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-item-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #adb5bd;
    font-size: 1.25rem;
}

.shop-item-card-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
}

.shop-item-card-name {
    font-size: 0.95rem;
    line-height: 1.35;
    margin-bottom: 0;
}

.shop-item-card-name a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-item-card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.shop-item-card-meta .badge {
    font-size: 0.7rem;
    font-weight: 500;
}

.shop-item-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
}

.shop-item-field-row {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    align-items: center;
    column-gap: 0.75rem;
}

.shop-item-card-actions .shop-field-label {
    margin-bottom: 0;
}

.cart-page .shop-item-card-qty {
    max-width: 168px;
}

.cart-page .shop-item-card-qty .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

.shop-item-card-price,
.shop-item-card-subtotal,
.shop-item-card-qty-readonly,
.cart-page .cart-summary-total-value {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.shop-item-card-subtotal,
.order-meta-total {
    font-weight: 700;
    color: var(--shop-accent);
}

.cart-page .cart-summary-total-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--shop-accent);
}

.order-meta-total {
    font-size: 1.125rem;
}

.order-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-meta-row {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    align-items: center;
    column-gap: 0.75rem;
}

.order-card-meta .order-id-row {
    margin-bottom: 0.125rem;
}

.order-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

@media (max-width: 991.98px) {
    .shop-item-card-main {
        flex-direction: row;
    }

    .shop-item-card-thumb {
        width: 96px;
        height: 96px;
    }

    .cart-page .shop-item-card-remove {
        min-width: 36px;
        min-height: 36px;
        padding: 0;
    }
}

/* ---------- 购物车页专属 ---------- */
@media (max-width: 767.98px) {
    .cart-page.container {
        padding-top: 1rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
    }

    .cart-page > h1 {
        font-size: 1.35rem;
        margin-bottom: 1rem !important;
    }

    .cart-page .shop-item-card-qty .btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0;
    }

    .cart-page .cart-summary-card {
        position: sticky;
        bottom: calc(8px + env(safe-area-inset-bottom, 0));
        z-index: 10;
    }

    .cart-page .cart-batch-actions .btn-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        width: 100%;
    }

    .cart-page .cart-batch-actions .btn-group .btn {
        border-radius: 0.375rem !important;
    }
}

/* ---------- 订单列表 / 详情 / 购物车主框 ---------- */
.shop-panel-card {
    background: var(--shop-panel-bg);
    border: 1px solid var(--shop-panel-border);
}

.shop-panel-card > .card-header {
    background: transparent;
    border-bottom: 1px solid var(--shop-panel-border);
}

.shop-panel-card > .card-body {
    background: transparent;
}

.shop-panel-card .shop-item-card {
    background: #fff;
}

@media (max-width: 767.98px) {
    .orders-page.container,
    .order-detail-page.container {
        padding-top: 1rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
    }

    .orders-page .copy-order-id-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .orders-page .order-id-row {
        flex-wrap: nowrap;
    }

    .orders-page .order-card-actions .btn,
    .order-detail-page .order-card-actions .btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-height: 44px;
    }

    .orders-page .shop-item-card-main--with-action,
    .order-detail-page .shop-item-card-main--with-action {
        padding-right: 2.75rem;
    }

    .orders-page .shop-item-card-add-cart,
    .order-detail-page .shop-item-card-add-cart {
        min-width: 36px;
        min-height: 36px;
        padding: 0 0.375rem;
    }

    .orders-page .shop-item-card-add-cart .shop-item-card-add-cart-label,
    .order-detail-page .shop-item-card-add-cart .shop-item-card-add-cart-label {
        display: none;
    }

    .orders-page .shop-item-card-add-cart .fa-shopping-cart,
    .order-detail-page .shop-item-card-add-cart .fa-shopping-cart {
        margin-right: 0 !important;
    }
}

/* ---------- 聊天页 ---------- */
@media (max-width: 767.98px) {
    .chat-page .chat-input-bar {
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
    }
}

.products-section-header {
    max-width: 100%;
}

.product-sort-toolbar {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-sort-label {
    color: #8B4513;
    font-weight: 500;
    white-space: nowrap;
    margin-bottom: 0;
}

.product-sort-select {
    width: auto;
    min-width: 150px;
    border-color: #8B4513;
    color: #8B4513;
}

#product-sort-order.product-sort-select {
    min-width: 100px;
}

.product-sort-select:focus {
    border-color: #8B4513;
    box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.25);
}

/* ---------- 帽子页左侧分类浮栏 + 壳层 ---------- */
.theme-hat {
    --hat-nav-offset: 40px;
    --hat-rail-width: 96px;
    /* 与右侧购物车 FAB（bottom: 90px）同一水平线，少挡商品网格 */
    --hat-category-fab-bottom: 92px;
    --hat-category-fab-size: 64px;
    --hat-hero-block-height: min(45vh, 380px);
    --hat-hero-tile-width: 405px;
    --hat-hero-tile-height: 540px;
    --hat-hero-tile-gap: 8px;
    --hat-hero-strip-height: var(--hat-hero-tile-height);
    --theme-accent: #8B4513;
    --theme-accent-soft: #D2691E;
    --theme-accent-shadow: rgba(139, 69, 19, 0.35);
    --theme-popover-bg: rgba(255, 248, 220, 0.97);
    --theme-orb-bg: #FFF8DC;
    --theme-card-border: rgba(139, 69, 19, 0.12);
    --theme-popover-active-bg: rgba(139, 69, 19, 0.12);
    --theme-surface: #FFF8DC;
}

.theme-hat .hero-section,
.theme-clothes .hero-section,
.theme-electronics .hero-section {
    max-height: var(--hat-hero-block-height);
    overflow: hidden;
    transition: max-height 1s ease-in-out, opacity 1s ease-in-out, padding 1s ease-in-out;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: var(--theme-surface);
}

.theme-hat .hat-hero-container,
.theme-clothes .hat-hero-container,
.theme-electronics .hat-hero-container {
    margin-left: var(--hat-rail-width);
    width: calc(100% - var(--hat-rail-width));
    max-width: calc(100% - var(--hat-rail-width));
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
}

.theme-hat.hat-hero-collapsed .hat-hero-container,
.theme-hat.hat-hero-collapsing .hat-hero-container,
.theme-clothes.hat-hero-collapsed .hat-hero-container,
.theme-clothes.hat-hero-collapsing .hat-hero-container,
.theme-electronics.hat-hero-collapsed .hat-hero-container,
.theme-electronics.hat-hero-collapsing .hat-hero-container {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
}

.theme-hat .hat-hero-media,
.theme-clothes .hat-hero-media,
.theme-electronics .hat-hero-media {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    height: var(--hat-hero-block-height);
    min-height: var(--hat-hero-block-height);
}

.theme-hat:not(.hat-hero-collapsed):not(.hat-hero-collapsing) .hat-hero-media,
.theme-clothes:not(.hat-hero-collapsed):not(.hat-hero-collapsing) .hat-hero-media,
.theme-electronics:not(.hat-hero-collapsed):not(.hat-hero-collapsing) .hat-hero-media {
    cursor: pointer;
}

.theme-hat .hat-hero-pan-viewport,
.theme-clothes .hat-hero-pan-viewport,
.theme-electronics .hat-hero-pan-viewport {
    width: 100%;
    height: 100%;
}

.theme-hat .hat-hero-static-viewport,
.theme-clothes .hat-hero-static-viewport,
.theme-electronics .hat-hero-static-viewport {
    display: none;
    width: 100%;
    height: 100%;
}

.theme-hat .hat-hero-image,
.theme-clothes .hat-hero-image,
.theme-electronics .hat-hero-image {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center center;
    border: none;
    box-shadow: none;
    border-radius: 0;
    display: block;
}

@keyframes hatHeroPan {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(var(--hat-hero-pan-sign, -1) * var(--hat-hero-pan-distance, 0px)));
    }
}

@media (min-width: 768px) {
    .theme-hat,
    .theme-clothes,
    .theme-electronics {
        --hat-hero-tile-width: 405px;
        --hat-hero-tile-height: 540px;
        --hat-hero-tile-gap: 8px;
        --hat-hero-strip-height: var(--hat-hero-tile-height);
        --hat-hero-desktop-max-height: var(--hat-hero-tile-height);
    }

    .theme-hat .hero-section,
    .theme-clothes .hero-section,
    .theme-electronics .hero-section {
        max-height: var(--hat-hero-strip-height);
    }

    .theme-hat .hat-hero-media,
    .theme-clothes .hat-hero-media,
    .theme-electronics .hat-hero-media {
        max-width: none;
        width: 100%;
        height: auto;
        min-height: unset;
        margin-left: 0;
        margin-right: 0;
    }

    .theme-hat .hat-hero-pan-viewport,
    .theme-clothes .hat-hero-pan-viewport,
    .theme-electronics .hat-hero-pan-viewport {
        max-width: none;
        width: 100%;
        height: var(--hat-hero-desktop-max-height);
        overflow: hidden;
        margin: 0;
        background: var(--theme-surface);
        border: 2px solid rgba(245, 198, 203, 0.85);
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(139, 69, 19, 0.08);
    }

    .theme-hat .hat-hero-image,
    .theme-clothes .hat-hero-image,
    .theme-electronics .hat-hero-image {
        width: auto;
        height: 100%;
        max-width: none;
        object-fit: contain;
        object-position: left center;
        transform: translateX(0);
        will-change: transform;
    }

    .theme-hat.hat-hero-pan-active .hat-hero-image,
    .theme-clothes.hat-hero-pan-active .hat-hero-image,
    .theme-electronics.hat-hero-pan-active .hat-hero-image {
        animation: hatHeroPan 22s ease-in-out infinite alternate;
    }

    .theme-hat .hat-hero-multi .hat-hero-mobile-cover,
    .theme-clothes .hat-hero-multi .hat-hero-mobile-cover,
    .theme-electronics .hat-hero-multi .hat-hero-mobile-cover {
        display: none;
    }

    .theme-hat .hat-hero-multi .hat-hero-static-viewport,
    .theme-clothes .hat-hero-multi .hat-hero-static-viewport,
    .theme-electronics .hat-hero-multi .hat-hero-static-viewport {
        display: block;
        max-width: none;
        width: 100%;
        height: var(--hat-hero-tile-height);
        overflow-x: auto;
        overflow-y: hidden;
        margin: 0;
        background: var(--theme-surface);
        border: 2px solid rgba(245, 198, 203, 0.85);
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(139, 69, 19, 0.08);
        scrollbar-width: thin;
    }

    .theme-hat .hat-hero-static-track,
    .theme-clothes .hat-hero-static-track,
    .theme-electronics .hat-hero-static-track {
        display: block;
        height: 100%;
        will-change: transform;
    }

    .theme-hat .hat-hero-static-row,
    .theme-clothes .hat-hero-static-row,
    .theme-electronics .hat-hero-static-row {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: var(--hat-hero-tile-gap);
        width: max-content;
        min-width: 100%;
        height: 100%;
        box-sizing: border-box;
        padding: 0 4px;
    }

    .theme-hat .hat-hero-static-image,
    .theme-clothes .hat-hero-static-image,
    .theme-electronics .hat-hero-static-image {
        flex: 0 0 var(--hat-hero-tile-width);
        width: var(--hat-hero-tile-width);
        height: var(--hat-hero-tile-height);
        min-width: var(--hat-hero-tile-width);
        max-width: var(--hat-hero-tile-width);
        max-height: var(--hat-hero-tile-height);
        object-fit: cover;
        object-position: center center;
        display: block;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }

    @keyframes hatHeroCarouselTrack {
        from {
            transform: translateX(0);
        }
        to {
            transform: translateX(calc(-1 * var(--hat-hero-carousel-shift, 0px)));
        }
    }

    .theme-hat.hat-hero-carousel-active .hat-hero-static-track,
    .theme-clothes.hat-hero-carousel-active .hat-hero-static-track,
    .theme-electronics.hat-hero-carousel-active .hat-hero-static-track {
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
        height: 100%;
        animation: hatHeroCarouselTrack var(--hat-hero-carousel-duration, 36s) linear infinite;
    }

    .theme-hat.hat-hero-carousel-active .hat-hero-tile-viewport,
    .theme-clothes.hat-hero-carousel-active .hat-hero-tile-viewport,
    .theme-electronics.hat-hero-carousel-active .hat-hero-tile-viewport {
        overflow-x: hidden;
        scrollbar-width: none;
    }

    .theme-hat.hat-hero-carousel-active .hat-hero-tile-viewport::-webkit-scrollbar,
    .theme-clothes.hat-hero-carousel-active .hat-hero-tile-viewport::-webkit-scrollbar,
    .theme-electronics.hat-hero-carousel-active .hat-hero-tile-viewport::-webkit-scrollbar {
        display: none;
    }

    .theme-hat.hat-hero-carousel-active .hat-hero-static-row,
    .theme-clothes.hat-hero-carousel-active .hat-hero-static-row,
    .theme-electronics.hat-hero-carousel-active .hat-hero-static-row {
        min-width: 0;
        flex: 0 0 auto;
    }

    .hat-hero-static-row-clone {
        pointer-events: none;
    }

    .theme-hat:not(.hat-hero-collapsed) .hat-shop-toolbar,
    .theme-clothes:not(.hat-hero-collapsed) .hat-shop-toolbar,
    .theme-electronics:not(.hat-hero-collapsed) .hat-shop-toolbar {
        padding-top: 0.5rem;
    }
}

.theme-hat.hat-hero-collapsing .hat-hero-image,
.theme-hat.hat-hero-collapsed .hat-hero-image,
.theme-clothes.hat-hero-collapsing .hat-hero-image,
.theme-clothes.hat-hero-collapsed .hat-hero-image,
.theme-electronics.hat-hero-collapsing .hat-hero-image,
.theme-electronics.hat-hero-collapsed .hat-hero-image {
    animation: none !important;
}

.theme-hat.hat-hero-collapsing .hat-hero-static-track,
.theme-hat.hat-hero-collapsed .hat-hero-static-track,
.theme-clothes.hat-hero-collapsing .hat-hero-static-track,
.theme-clothes.hat-hero-collapsed .hat-hero-static-track,
.theme-electronics.hat-hero-collapsing .hat-hero-static-track,
.theme-electronics.hat-hero-collapsed .hat-hero-static-track {
    animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .theme-hat.hat-hero-pan-active .hat-hero-image,
    .theme-clothes.hat-hero-pan-active .hat-hero-image,
    .theme-electronics.hat-hero-pan-active .hat-hero-image {
        animation: none;
    }

    .theme-hat.hat-hero-carousel-active .hat-hero-static-track,
    .theme-clothes.hat-hero-carousel-active .hat-hero-static-track,
    .theme-electronics.hat-hero-carousel-active .hat-hero-static-track {
        animation: none;
    }
}

.theme-hat.hat-hero-collapsing,
.theme-clothes.hat-hero-collapsing,
.theme-electronics.hat-hero-collapsing {
    overflow: hidden;
}

.theme-hat.hat-hero-collapsed,
.theme-clothes.hat-hero-collapsed,
.theme-electronics.hat-hero-collapsed {
    overflow: hidden;
}

.theme-hat.hat-hero-collapsing .hero-section,
.theme-hat.hat-hero-collapsed .hero-section,
.theme-clothes.hat-hero-collapsing .hero-section,
.theme-clothes.hat-hero-collapsed .hero-section,
.theme-electronics.hat-hero-collapsing .hero-section,
.theme-electronics.hat-hero-collapsed .hero-section {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
}

body.hat-hero-collapsed-body {
    overflow: hidden;
}

.theme-hat .hat-shop-shell {
    position: relative;
    background: linear-gradient(to bottom, var(--theme-surface) 0%, #FFFFFF 100%);
}

.theme-hat:not(.hat-hero-collapsed) .hat-shop-main {
    margin-left: var(--hat-rail-width);
}

.theme-hat #category-float-rail {
    position: fixed;
    left: 0;
    top: var(--hat-nav-offset);
    bottom: env(safe-area-inset-bottom, 0);
    width: var(--hat-rail-width);
    z-index: 998;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px 6px 8px 6px;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
}

.theme-hat:not(.hat-hero-collapsed):not(.hat-hero-collapsing) #category-float-rail {
    background: var(--theme-surface);
}

.theme-hat:not(.hat-hero-collapsed) .hat-products-scroll #category-float-rail {
    position: fixed;
}

.theme-hat.hat-hero-collapsed .hat-shop-shell {
    position: fixed;
    top: var(--hat-nav-offset);
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    z-index: 997;
    background: linear-gradient(to bottom, var(--theme-surface) 0%, #FFFFFF 100%);
}

.theme-hat.hat-hero-collapsed .hat-shop-main {
    flex: 1;
    margin-left: var(--hat-rail-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.theme-hat.hat-hero-collapsed .hat-shop-toolbar {
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(139, 69, 19, 0.15);
    background: var(--theme-surface);
}

.theme-hat.hat-hero-collapsed .hat-products-scroll,
.theme-clothes.hat-hero-collapsed .hat-products-scroll,
.theme-electronics.hat-hero-collapsed .hat-products-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.theme-hat.hat-hero-collapsed.hat-rail-collapsed #category-float-rail,
.theme-clothes.hat-hero-collapsed.hat-rail-collapsed #category-float-rail,
.theme-electronics.hat-hero-collapsed.hat-rail-collapsed #category-float-rail {
    display: none;
}

.theme-hat .category-rail-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 4px 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.theme-hat .category-rail-thumb {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid transparent;
    overflow: hidden;
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.theme-hat .category-rail-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.theme-hat .category-rail-placeholder {
    font-size: 1.25rem;
    font-weight: 600;
    color: #8B4513;
    line-height: 1;
}

.theme-hat .category-rail-item.is-active {
    background: var(--theme-surface);
    border-radius: 10px;
    margin: 2px 4px;
}

.theme-hat .category-rail-item.is-active .category-rail-thumb {
    width: 72px;
    height: 72px;
    background: var(--theme-surface);
    border-color: #8B4513;
    box-shadow: 0 0 0 3px #8B4513, 0 2px 8px rgba(139, 69, 19, 0.25);
}

.theme-hat .category-active-label {
    text-align: center;
    color: #8B4513;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    min-height: 1.5em;
}

.theme-hat:not(.hat-hero-collapsed) .hat-shop-toolbar {
    padding-top: 1.5rem;
}

/* ---------- hat 类型 Popover + Fixed FAB（仅 categoryPopoverMode） ---------- */
.theme-hat.hat-rail-collapsing #category-float-rail,
.theme-clothes.hat-rail-collapsing #category-float-rail,
.theme-electronics.hat-rail-collapsing #category-float-rail {
    transition: width 1s ease-in-out, opacity 1s ease-in-out, padding 1s ease-in-out;
}

.theme-hat.hat-rail-collapsing .category-rail-list .category-rail-item:not(.is-active),
.theme-clothes.hat-rail-collapsing .category-rail-list .category-rail-item:not(.is-active),
.theme-electronics.hat-rail-collapsing .category-rail-list .category-rail-item:not(.is-active) {
    opacity: 0;
    transform: scale(0.85);
    max-height: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out, max-height 1s ease-in-out;
}

.theme-hat.hat-rail-collapsed.hat-hero-collapsed .hat-shop-main,
.theme-clothes.hat-rail-collapsed.hat-hero-collapsed .hat-shop-main,
.theme-electronics.hat-rail-collapsed.hat-hero-collapsed .hat-shop-main {
    margin-left: 0 !important;
}

.theme-hat.hat-rail-collapsed.hat-hero-collapsed .category-rail-list,
.theme-clothes.hat-rail-collapsed.hat-hero-collapsed .category-rail-list,
.theme-electronics.hat-rail-collapsed.hat-hero-collapsed .category-rail-list {
    display: none;
}

.theme-hat .category-fab-mobile,
.theme-clothes .category-fab-mobile,
.theme-electronics .category-fab-mobile {
    display: none;
    position: fixed;
    left: 20px;
    bottom: calc(var(--hat-category-fab-bottom) + env(safe-area-inset-bottom, 0));
    z-index: 998;
    pointer-events: none;
}

.theme-hat.hat-rail-collapsed.hat-hero-collapsed .category-fab-mobile:not([hidden]),
.theme-clothes.hat-rail-collapsed.hat-hero-collapsed .category-fab-mobile:not([hidden]),
.theme-electronics.hat-rail-collapsed.hat-hero-collapsed .category-fab-mobile:not([hidden]) {
    display: block;
}

.theme-hat .category-orb-trigger,
.theme-clothes .category-orb-trigger,
.theme-electronics .category-orb-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: var(--hat-category-fab-size);
    height: var(--hat-category-fab-size);
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--theme-orb-bg);
    box-shadow: 0 0 0 3px var(--theme-accent), 0 4px 14px var(--theme-accent-shadow);
    cursor: pointer;
    position: relative;
    pointer-events: auto;
    animation: hatOrbGlow 2.5s ease-in-out infinite;
    transition: transform 0.15s ease;
}

.theme-hat .category-orb-trigger:active,
.theme-clothes .category-orb-trigger:active,
.theme-electronics .category-orb-trigger:active {
    transform: scale(0.92);
}

.theme-hat .category-orb-trigger.category-orb-enter,
.theme-clothes .category-orb-trigger.category-orb-enter,
.theme-electronics .category-orb-trigger.category-orb-enter {
    animation: hatOrbEnter 0.45s ease-out, hatOrbGlow 2.5s ease-in-out 0.45s infinite;
}

.theme-hat .category-orb-trigger.category-orb-updated,
.theme-clothes .category-orb-trigger.category-orb-updated,
.theme-electronics .category-orb-trigger.category-orb-updated {
    animation: hatOrbFlash 0.6s ease-out;
}

.theme-hat .category-orb-thumb,
.theme-clothes .category-orb-thumb,
.theme-electronics .category-orb-thumb {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

.theme-hat .category-orb-thumb .category-rail-thumb,
.theme-clothes .category-orb-thumb .category-rail-thumb,
.theme-electronics .category-orb-thumb .category-rail-thumb {
    width: 48px;
    height: 48px;
    border: none;
    box-shadow: none;
    background: transparent;
}

.theme-hat .category-orb-thumb img,
.theme-clothes .category-orb-thumb img,
.theme-electronics .category-orb-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    animation: hatOrbThumbWiggle 4s ease-in-out infinite;
}

.theme-hat .category-orb-hint,
.theme-clothes .category-orb-hint,
.theme-electronics .category-orb-hint {
    position: absolute;
    bottom: 4px;
    right: 6px;
    font-size: 8px;
    line-height: 1;
    color: var(--theme-accent);
    opacity: 0.85;
    animation: hatOrbHintBounce 1.5s ease-in-out infinite;
}

@keyframes hatOrbEnter {
    0% { transform: scale(0.6); opacity: 0.5; }
    70% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes hatOrbGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 3px var(--theme-accent), 0 4px 14px var(--theme-accent-shadow);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 5px color-mix(in srgb, var(--theme-accent-soft) 55%, transparent), 0 6px 20px var(--theme-accent-shadow);
    }
}

@keyframes hatOrbFlash {
    0%, 100% { box-shadow: 0 0 0 3px var(--theme-accent), 0 4px 14px var(--theme-accent-shadow); }
    50% { box-shadow: 0 0 0 6px var(--theme-accent-soft), 0 0 24px color-mix(in srgb, var(--theme-accent-soft) 65%, transparent); }
}

@keyframes hatOrbThumbWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-4deg); }
    75% { transform: rotate(4deg); }
}

@keyframes hatOrbHintBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

@keyframes hatPopoverItemIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.theme-hat .category-popover,
.theme-clothes .category-popover,
.theme-electronics .category-popover {
    position: fixed;
    inset: 0;
    z-index: 1001;
    pointer-events: none;
}

.theme-hat .category-popover:not([hidden]),
.theme-clothes .category-popover:not([hidden]),
.theme-electronics .category-popover:not([hidden]) {
    pointer-events: auto;
}

.theme-hat .category-popover-backdrop,
.theme-clothes .category-popover-backdrop,
.theme-electronics .category-popover-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.theme-hat .category-popover-open .category-popover-backdrop,
.theme-clothes .category-popover-open .category-popover-backdrop,
.theme-electronics .category-popover-open .category-popover-backdrop {
    opacity: 1;
}

.theme-hat .category-popover-panel,
.theme-clothes .category-popover-panel,
.theme-electronics .category-popover-panel {
    position: fixed;
    left: 20px;
    bottom: calc(var(--hat-category-fab-bottom) + var(--hat-category-fab-size) + 12px + env(safe-area-inset-bottom, 0));
    max-width: min(280px, calc(100vw - 24px));
    padding: 12px;
    border-radius: 16px;
    background: var(--theme-popover-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
    transform-origin: bottom left;
}

.theme-hat .category-popover-open .category-popover-panel,
.theme-clothes .category-popover-open .category-popover-panel,
.theme-electronics .category-popover-open .category-popover-panel {
    transform: scale(1);
    opacity: 1;
}

.theme-hat .category-popover-grid,
.theme-clothes .category-popover-grid,
.theme-electronics .category-popover-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.theme-hat .category-popover-grid .category-rail-item,
.theme-clothes .category-popover-grid .category-rail-item,
.theme-electronics .category-popover-grid .category-rail-item {
    flex-direction: column;
    width: auto;
    padding: 4px 2px;
    border-radius: 10px;
    transform-origin: top left;
}

.theme-hat .category-popover-grid .category-rail-thumb,
.theme-clothes .category-popover-grid .category-rail-thumb,
.theme-electronics .category-popover-grid .category-rail-thumb {
    width: 56px;
    height: 56px;
    margin: 0 auto;
}

.theme-hat .category-popover-label,
.theme-clothes .category-popover-label,
.theme-electronics .category-popover-label {
    display: block;
    margin-top: 4px;
    font-size: 0.65rem;
    line-height: 1.2;
    color: var(--theme-accent);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-hat .category-popover-open .category-popover-grid .category-rail-item,
.theme-clothes .category-popover-open .category-popover-grid .category-rail-item,
.theme-electronics .category-popover-open .category-popover-grid .category-rail-item {
    animation: hatPopoverItemIn 0.28s ease forwards;
    opacity: 0;
}

.theme-hat .category-popover-open .category-popover-grid .category-rail-item:nth-child(1) { animation-delay: 0ms; }
.theme-clothes .category-popover-open .category-popover-grid .category-rail-item:nth-child(1) { animation-delay: 0ms; }
.theme-electronics .category-popover-open .category-popover-grid .category-rail-item:nth-child(1) { animation-delay: 0ms; }
.theme-hat .category-popover-open .category-popover-grid .category-rail-item:nth-child(2) { animation-delay: 45ms; }
.theme-clothes .category-popover-open .category-popover-grid .category-rail-item:nth-child(2) { animation-delay: 45ms; }
.theme-electronics .category-popover-open .category-popover-grid .category-rail-item:nth-child(2) { animation-delay: 45ms; }
.theme-hat .category-popover-open .category-popover-grid .category-rail-item:nth-child(3) { animation-delay: 90ms; }
.theme-clothes .category-popover-open .category-popover-grid .category-rail-item:nth-child(3) { animation-delay: 90ms; }
.theme-electronics .category-popover-open .category-popover-grid .category-rail-item:nth-child(3) { animation-delay: 90ms; }
.theme-hat .category-popover-open .category-popover-grid .category-rail-item:nth-child(4) { animation-delay: 135ms; }
.theme-clothes .category-popover-open .category-popover-grid .category-rail-item:nth-child(4) { animation-delay: 135ms; }
.theme-electronics .category-popover-open .category-popover-grid .category-rail-item:nth-child(4) { animation-delay: 135ms; }
.theme-hat .category-popover-open .category-popover-grid .category-rail-item:nth-child(5) { animation-delay: 180ms; }
.theme-clothes .category-popover-open .category-popover-grid .category-rail-item:nth-child(5) { animation-delay: 180ms; }
.theme-electronics .category-popover-open .category-popover-grid .category-rail-item:nth-child(5) { animation-delay: 180ms; }
.theme-hat .category-popover-open .category-popover-grid .category-rail-item:nth-child(6) { animation-delay: 225ms; }
.theme-clothes .category-popover-open .category-popover-grid .category-rail-item:nth-child(6) { animation-delay: 225ms; }
.theme-electronics .category-popover-open .category-popover-grid .category-rail-item:nth-child(6) { animation-delay: 225ms; }
.theme-hat .category-popover-open .category-popover-grid .category-rail-item:nth-child(7) { animation-delay: 270ms; }
.theme-clothes .category-popover-open .category-popover-grid .category-rail-item:nth-child(7) { animation-delay: 270ms; }
.theme-electronics .category-popover-open .category-popover-grid .category-rail-item:nth-child(7) { animation-delay: 270ms; }
.theme-hat .category-popover-open .category-popover-grid .category-rail-item:nth-child(8) { animation-delay: 315ms; }
.theme-clothes .category-popover-open .category-popover-grid .category-rail-item:nth-child(8) { animation-delay: 315ms; }
.theme-electronics .category-popover-open .category-popover-grid .category-rail-item:nth-child(8) { animation-delay: 315ms; }

.theme-hat .category-popover-grid .category-rail-item.is-active,
.theme-clothes .category-popover-grid .category-rail-item.is-active,
.theme-electronics .category-popover-grid .category-rail-item.is-active {
    background: var(--theme-popover-active-bg);
}

.theme-hat .category-popover-grid .category-rail-item.is-active .category-rail-thumb,
.theme-clothes .category-popover-grid .category-rail-item.is-active .category-rail-thumb,
.theme-electronics .category-popover-grid .category-rail-item.is-active .category-rail-thumb {
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 2px var(--theme-accent);
}

/* hat 紧凑商品卡（collapsed 全宽浏览） */
.theme-hat.hat-hero-collapsed .hat-products-scroll,
.theme-clothes.hat-hero-collapsed .hat-products-scroll,
.theme-electronics.hat-hero-collapsed .hat-products-scroll {
    padding-top: 4px;
}

.theme-hat .product-card-compact,
.theme-clothes .product-card-compact,
.theme-electronics .product-card-compact {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--theme-card-border);
}

.theme-hat .product-card-compact .product-card-media-link,
.theme-clothes .product-card-compact .product-card-media-link,
.theme-electronics .product-card-compact .product-card-media-link {
    display: block;
}

.theme-hat .product-card-compact .product-card-img,
.theme-clothes .product-card-compact .product-card-img,
.theme-electronics .product-card-compact .product-card-img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
}

.theme-hat .product-card-compact .product-card-body-compact,
.theme-clothes .product-card-compact .product-card-body-compact,
.theme-electronics .product-card-compact .product-card-body-compact {
    padding: 0.4rem 0.5rem 0.5rem;
}

.theme-hat .product-card-compact .product-card-title,
.theme-clothes .product-card-compact .product-card-title,
.theme-electronics .product-card-compact .product-card-title {
    font-size: 0.8125rem;
    line-height: 1.25;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #333;
}

.theme-hat .product-card-compact .product-card-title-link:hover .product-card-title,
.theme-clothes .product-card-compact .product-card-title-link:hover .product-card-title,
.theme-electronics .product-card-compact .product-card-title-link:hover .product-card-title {
    color: var(--theme-accent);
}

.theme-hat .product-card-compact .product-card-price,
.theme-clothes .product-card-compact .product-card-price,
.theme-electronics .product-card-compact .product-card-price {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.theme-hat .product-card-compact .product-card-cart-btn,
.theme-clothes .product-card-compact .product-card-cart-btn,
.theme-electronics .product-card-compact .product-card-cart-btn {
    min-height: 32px;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    font-size: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
    .theme-hat .category-orb-trigger,
.theme-clothes .category-orb-trigger,
.theme-electronics .category-orb-trigger,
    .theme-hat .category-orb-trigger.category-orb-enter,
.theme-clothes .category-orb-trigger.category-orb-enter,
.theme-electronics .category-orb-trigger.category-orb-enter {
        animation: none;
    }

    .theme-hat .category-orb-thumb img,
    .theme-clothes .category-orb-thumb img,
    .theme-electronics .category-orb-thumb img,
    .theme-hat .category-orb-hint,
    .theme-clothes .category-orb-hint,
    .theme-electronics .category-orb-hint {
        animation: none;
    }

    .theme-hat .category-orb-trigger.category-orb-updated,
.theme-clothes .category-orb-trigger.category-orb-updated,
.theme-electronics .category-orb-trigger.category-orb-updated {
        animation: none;
    }

    .theme-hat .category-popover-open .category-popover-grid .category-rail-item,
.theme-clothes .category-popover-open .category-popover-grid .category-rail-item,
.theme-electronics .category-popover-open .category-popover-grid .category-rail-item {
        animation: none;
        opacity: 1;
    }

    .theme-hat.hat-rail-collapsing .category-rail-list .category-rail-item:not(.is-active),
.theme-clothes.hat-rail-collapsing .category-rail-list .category-rail-item:not(.is-active),
.theme-electronics.hat-rail-collapsing .category-rail-list .category-rail-item:not(.is-active) {
        transition: none;
    }
}

@media (min-width: 768px) {
    .theme-hat,
    .theme-clothes,
    .theme-electronics {
        --hat-category-fab-bottom: 100px;
    }
}

.theme-hat .navbar {
    background: #1a1a1a !important;
}

.theme-hat .navbar-brand,
.theme-hat .navbar-brand i {
    color: #FFD700 !important;
}

/* ---------- 衣服页左侧分类浮栏 + 壳层 ---------- */
.theme-clothes {
    --hat-nav-offset: 40px;
    --hat-rail-width: 96px;
    --hat-hero-block-height: min(45vh, 380px);
    --hat-category-fab-bottom: 92px;
    --hat-category-fab-size: 64px;
    --theme-accent: #d63031;
    --theme-accent-soft: #ff6b6b;
    --theme-accent-shadow: rgba(214, 48, 49, 0.35);
    --theme-popover-bg: rgba(255, 245, 245, 0.97);
    --theme-orb-bg: #fff5f5;
    --theme-card-border: rgba(214, 48, 49, 0.12);
    --theme-popover-active-bg: rgba(214, 48, 49, 0.12);
    --theme-surface: #fff5f5;
}

.theme-clothes .hat-shop-shell {
    position: relative;
    background: linear-gradient(to bottom, var(--theme-surface) 0%, #ffffff 100%);
}

.theme-clothes:not(.hat-hero-collapsed) .hat-shop-main {
    margin-left: var(--hat-rail-width);
}

.theme-clothes #category-float-rail {
    position: fixed;
    left: 0;
    top: var(--hat-nav-offset);
    bottom: env(safe-area-inset-bottom, 0);
    width: var(--hat-rail-width);
    z-index: 998;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px 6px 8px 6px;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
}

.theme-clothes:not(.hat-hero-collapsed):not(.hat-hero-collapsing) #category-float-rail {
    background: var(--theme-surface);
}

.theme-clothes:not(.hat-hero-collapsed) .hat-products-scroll #category-float-rail {
    position: fixed;
}

.theme-clothes.hat-hero-collapsed .hat-shop-shell {
    position: fixed;
    top: var(--hat-nav-offset);
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    z-index: 997;
    background: linear-gradient(to bottom, var(--theme-surface) 0%, #ffffff 100%);
}

.theme-clothes.hat-hero-collapsed .hat-shop-main {
    flex: 1;
    margin-left: var(--hat-rail-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.theme-clothes.hat-hero-collapsed .hat-shop-toolbar {
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(214, 48, 49, 0.15);
    background: var(--theme-surface);
}

.theme-clothes.hat-hero-collapsed .hat-products-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.theme-clothes.hat-hero-collapsed #category-float-rail {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--hat-rail-width);
}

.theme-clothes .category-rail-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 4px 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.theme-clothes .category-rail-thumb {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid transparent;
    overflow: hidden;
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.theme-clothes .category-rail-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.theme-clothes .category-rail-placeholder {
    font-size: 1.25rem;
    font-weight: 600;
    color: #d63031;
    line-height: 1;
}

.theme-clothes .category-rail-item.is-active {
    background: var(--theme-surface);
    border-radius: 10px;
    margin: 2px 4px;
}

.theme-clothes .category-rail-item.is-active .category-rail-thumb {
    width: 72px;
    height: 72px;
    background: var(--theme-surface);
    border-color: #d63031;
    box-shadow: 0 0 0 3px #d63031, 0 2px 8px rgba(214, 48, 49, 0.25);
}

.theme-clothes .category-active-label {
    text-align: center;
    color: #d63031;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    min-height: 1.5em;
}

/* ---------- 电子产品页左侧分类浮栏 + 壳层 ---------- */
.theme-electronics {
    --hat-nav-offset: 40px;
    --hat-rail-width: 96px;
    --hat-hero-block-height: min(45vh, 380px);
    --hat-category-fab-bottom: 92px;
    --hat-category-fab-size: 64px;
    --theme-accent: #3498db;
    --theme-accent-soft: #5dade2;
    --theme-accent-shadow: rgba(52, 152, 219, 0.35);
    --theme-popover-bg: rgba(236, 240, 241, 0.97);
    --theme-orb-bg: #ecf0f1;
    --theme-card-border: rgba(52, 152, 219, 0.12);
    --theme-popover-active-bg: rgba(52, 152, 219, 0.12);
    --theme-surface: #ecf0f1;
}

.theme-electronics .hat-shop-shell {
    position: relative;
    background: linear-gradient(to bottom, var(--theme-surface) 0%, #ffffff 100%);
}

.theme-electronics:not(.hat-hero-collapsed) .hat-shop-main {
    margin-left: var(--hat-rail-width);
}

.theme-electronics #category-float-rail {
    position: fixed;
    left: 0;
    top: var(--hat-nav-offset);
    bottom: env(safe-area-inset-bottom, 0);
    width: var(--hat-rail-width);
    z-index: 998;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px 6px 8px 6px;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
}

.theme-electronics:not(.hat-hero-collapsed):not(.hat-hero-collapsing) #category-float-rail {
    background: var(--theme-surface);
}

.theme-electronics:not(.hat-hero-collapsed) .hat-products-scroll #category-float-rail {
    position: fixed;
}

.theme-electronics.hat-hero-collapsed .hat-shop-shell {
    position: fixed;
    top: var(--hat-nav-offset);
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    z-index: 997;
    background: linear-gradient(to bottom, var(--theme-surface) 0%, #ffffff 100%);
}

.theme-electronics.hat-hero-collapsed .hat-shop-main {
    flex: 1;
    margin-left: var(--hat-rail-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.theme-electronics.hat-hero-collapsed .hat-shop-toolbar {
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(44, 62, 80, 0.15);
    background: var(--theme-surface);
}

.theme-electronics.hat-hero-collapsed .hat-products-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.theme-electronics.hat-hero-collapsed #category-float-rail {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--hat-rail-width);
}

.theme-electronics .category-rail-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 4px 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.theme-electronics .category-rail-thumb {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid transparent;
    overflow: hidden;
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.theme-electronics .category-rail-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.theme-electronics .category-rail-placeholder {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1;
}

.theme-electronics .category-rail-item.is-active {
    background: var(--theme-surface);
    border-radius: 10px;
    margin: 2px 4px;
}

.theme-electronics .category-rail-item.is-active .category-rail-thumb {
    width: 72px;
    height: 72px;
    background: var(--theme-surface);
    border-color: #3498db;
    box-shadow: 0 0 0 3px #3498db, 0 2px 8px rgba(52, 152, 219, 0.25);
}

.theme-electronics .category-active-label {
    text-align: center;
    color: #2c3e50;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    min-height: 1.5em;
}

@media (max-width: 767.98px) {
    .theme-page:not(.hat-hero-collapsed) .hat-shop-toolbar {
        display: none;
    }

    .theme-hat,
    .theme-clothes,
    .theme-electronics {
        --hat-nav-offset: 50px;
        --hat-rail-width: 72px;
    }

    .theme-page .category-rail-thumb {
        width: 52px;
        height: 52px;
    }

    .theme-page .category-rail-item.is-active .category-rail-thumb {
        width: 58px;
        height: 58px;
    }

    .theme-page:not(.hat-hero-collapsed) .hat-shop-main {
        width: calc(100% - var(--hat-rail-width));
        max-width: calc(100% - var(--hat-rail-width));
        box-sizing: border-box;
    }

    .theme-page.hat-hero-collapsed .hat-shop-toolbar {
        padding: 0.35rem 0.5rem 0.4rem;
    }

    .theme-page.hat-hero-collapsed .category-active-label {
        display: none;
    }

    .theme-page.hat-hero-collapsed .products-section-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        text-align: left;
    }

    .theme-page.hat-hero-collapsed .products-section-header h2 {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 0.95rem !important;
        line-height: 1.25;
        margin-bottom: 0 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .theme-page.hat-hero-collapsed .product-sort-toolbar {
        flex: 0 0 auto;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.35rem;
        width: auto;
        max-width: 52%;
    }

    .theme-page.hat-hero-collapsed .product-sort-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .theme-page.hat-hero-collapsed .product-sort-select {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        max-width: none;
        font-size: 16px;
        min-height: 36px;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .theme-page.hat-hero-collapsed #product-sort-order.product-sort-select {
        min-width: 0;
    }

    body.hat-hero-collapsed-body > footer.site-footer {
        display: none;
    }

    .theme-page.hat-hero-collapsed #products {
        padding-bottom: 0;
    }

    .theme-page.hat-hero-collapsed .hat-products-scroll .container-fluid {
        padding-bottom: calc(100px + env(safe-area-inset-bottom, 0));
    }
}

.theme-clothes .product-sort-label {
    color: #d63031;
}

.theme-clothes .product-sort-select {
    border-color: #d63031;
    color: #d63031;
}

.theme-clothes .product-sort-select:focus {
    border-color: #d63031;
    box-shadow: 0 0 0 0.2rem rgba(214, 48, 49, 0.25);
}

.theme-electronics .product-sort-label {
    color: #2c3e50;
}

.theme-electronics .product-sort-select {
    border-color: #2c3e50;
    color: #2c3e50;
}

.theme-electronics .product-sort-select:focus {
    border-color: #2c3e50;
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

@media (max-width: 767.98px) {
    .static-info-page img {
        max-width: 100%;
        height: auto;
    }

    .chat-page .form-control {
        font-size: 16px;
    }

    .chat-page #file-preview #preview-content img,
    .chat-page #file-preview #preview-content video {
        max-width: 100%;
        max-height: 180px;
        object-fit: contain;
    }

    .theme-page .product-sort-toolbar {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .theme-page .product-sort-select {
        width: 100%;
        min-width: 0;
    }

    .profile-page .btn-group-vertical .btn {
        width: 100%;
    }
}

/* ---------- Toast / 浮动提示（前台统一） ---------- */
.toast-mobile-safe {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    min-width: 280px;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-container-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 280px;
    max-width: 500px;
}

@media (max-width: 767.98px) {
    .toast-mobile-safe,
    .toast-container-fixed {
        left: 1rem !important;
        right: 1rem !important;
        min-width: 0 !important;
        max-width: calc(100vw - 2rem) !important;
        width: auto;
    }

    #toast-container .alert {
        max-width: 100%;
    }
}

/* ---------- 聊天页（独立 layout） ---------- */
.chat-page {
    height: 100vh;
    height: 100dvh;
}

.chat-page .chat-container {
    height: 100vh;
    height: 100dvh;
}

@media (max-width: 767.98px) {
    .chat-page .chat-header {
        padding: 12px 16px;
    }

    .chat-page .chat-header-row-main {
        align-items: flex-start;
    }

    .chat-page .messages-container {
        padding: 12px;
    }

    .chat-page .input-area {
        padding: 12px;
    }

    .chat-page .message-bubble {
        max-width: 85%;
    }

    .chat-page .whatsapp-display {
        font-size: 0.8125rem;
        padding: 4px 8px;
    }

    .chat-page .chat-header-icon-btn {
        width: 2.75rem;
        height: 2.75rem;
    }

    .chat-page #refresh-messages-btn.chat-header-icon-btn {
        width: 2.75rem;
        padding: 0;
    }
}

/* ---------- SEO 公开页（独立 layout） ---------- */
.seo-page .seo-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
}

.seo-page .seo-footer-nav a {
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .seo-page .navbar-collapse {
        background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #CD853F 100%);
        padding: 0.5rem 0.75rem 0.75rem;
        border-radius: 0 0 8px 8px;
        margin-top: 0.25rem;
    }
}

@media (max-width: 767.98px) {
    .seo-page {
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .seo-page .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
        padding: 0.35rem 0.55rem;
    }

    .seo-page .navbar-brand {
        font-size: 1.1rem;
        max-width: calc(100% - 56px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .seo-page .navbar-nav .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 0.5rem 0.75rem !important;
    }

    .seo-page main .container.py-5 {
        padding-bottom: 1.5rem !important;
    }

    .seo-page .seo-product-img {
        max-height: 280px;
    }

    .seo-page .seo-card img {
        height: 160px;
    }

    .seo-page .breadcrumb {
        flex-wrap: wrap;
    }

    .seo-page h1.display-6 {
        font-size: 1.35rem;
    }

    .seo-page .btn-lg {
        width: 100%;
    }

    .seo-page .d-grid.gap-2.d-md-block .btn-lg,
    .seo-page .d-grid.gap-2 .btn-lg {
        width: 100%;
    }

    .seo-page .seo-blog-body {
        overflow-x: auto;
    }

    .seo-page .seo-blog-body table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-footer-main {
        text-align: center;
    }

    .site-footer-links {
        justify-content: center;
    }
}
