/**
 * 用户首页 — 与参考图一致
 * 主色 #FF8C00，页脚/强调深蓝 #001F3F，白底
 */
:root {
    --hm-accent: #f39c12;
    --hm-accent-hover: #e08e0e;
    --hm-navy: #001f3f;
    --hm-bg: #f8f8f8;
    --hm-muted: #4b5563;
    --hm-card-radius: 10px;
    --hm-shadow: 0 2px 12px rgba(0, 31, 63, 0.08);
    /* 列表/参考图：大圆角卡片 + 胶囊按钮 + 圆角输入 */
    --hm-radius-lg: 16px;
    --hm-radius-md: 12px;
    --hm-radius-pill: 9999px;
}

body.home-mall-page {
    background-color: var(--hm-bg) !important;
    font-family: 'Inter', 'Open Sans', sans-serif;
}

body.home-mall-page .aiz-main-wrapper {
    background-color: var(--hm-bg);
}

/* —— 顶栏：参考图无顶部细条 —— */
body.home-mall-page .home-mall-header {
    box-shadow: 0 1px 0 rgba(0, 31, 63, 0.06) !important;
}

body.home-mall-page .home-mall-header .logo-bar-area {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* 主色按钮 */
body.home-mall-page .btn-primary,
body.home-mall-page .home-mall-btn-accent {
    background-color: var(--hm-accent) !important;
    border-color: var(--hm-accent) !important;
    color: #fff !important;
}

body.home-mall-page .btn-primary:hover,
body.home-mall-page .home-mall-btn-accent:hover {
    background-color: var(--hm-accent-hover) !important;
    border-color: var(--hm-accent-hover) !important;
}

body.home-mall-page .text-primary {
    color: var(--hm-accent) !important;
}

body.home-mall-page .border-primary {
    border-color: var(--hm-accent) !important;
}

/* VIEW MORE 实心橙按钮 */
.home-mall-btn-view-more,
body.home-mall-page .home-mall-btn-view-more {
    background: var(--hm-accent) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    letter-spacing: 0.06em;
    padding: 8px 18px !important;
    line-height: 1.2;
}

.home-mall-btn-view-more:hover,
body.home-mall-page .home-mall-btn-view-more:hover {
    background: var(--hm-accent-hover) !important;
    color: #fff !important;
}

/* 搜索框：白底、灰框、右侧橙按钮 */
body.home-mall-page .front-header-search .btn-primary {
    border-radius: 0 6px 6px 0;
    min-width: 52px;
    background: var(--hm-accent) !important;
    border-color: var(--hm-accent) !important;
}

body.home-mall-page .front-header-search .form-control {
    border-radius: 6px 0 0 6px;
    background: #ffffff;
    border: 1px solid #d1d5db !important;
    min-height: 44px;
    color: #111827;
}

/* 购物车角标 */
body.home-mall-page .nav-cart-box .badge,
body.home-mall-page .nav-cart-box .cart-count {
    background: var(--hm-accent) !important;
    color: #fff !important;
}

/* 主导航链接：深灰字 */
body.home-mall-page header .border-top.border-gray-200 ul.list-inline a {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    font-size: 14px;
    color: var(--hm-muted) !important;
    opacity: 1 !important;
}

body.home-mall-page header .border-top.border-gray-200 ul.list-inline a:hover {
    color: var(--hm-accent) !important;
}

body.home-mall-page header .border-top.border-gray-200 {
    background: #fff !important;
    border-color: #e5e7eb !important;
}

/* 首页内容 */
.home-mall {
    padding-bottom: 72px;
}

@media (min-width: 992px) {
    .home-mall {
        padding-bottom: 0;
    }
}

/* Hero 三列 */
.home-mall-hero .home-mall-hero-card {
    display: block;
    border-radius: var(--hm-card-radius);
    overflow: hidden;
    box-shadow: var(--hm-shadow);
    border: 1px solid #eef0f4;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-mall-hero .home-mall-hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 31, 63, 0.12);
}

.home-mall-hero-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

@media (min-width: 992px) {
    .home-mall-hero-img {
        height: 320px;
    }
}

/* 首页横幅轮播（多图合一） */
.home-mall-hero-slider {
    background: #fff;
    border: 1px solid #eef0f4;
}
.home-mall-hero-slider .home-mall-hero-slider-link {
    border-radius: var(--hm-card-radius);
    overflow: hidden;
    display: block;
}
.home-mall-hero-slider .home-mall-hero-bannerslide {
    height: 240px;
    object-fit: cover;
}
@media (min-width: 992px) {
    .home-mall-hero-slider .home-mall-hero-bannerslide {
        height: 380px;
    }
}

/* 分类快捷 — 方形白卡片；minmax(0,1fr) 防止最后一列撑破；标签区等高底对齐 */
.home-mall-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

@media (min-width: 768px) {
    .home-mall-cat-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 12px;
    }
}

.home-mall-cat-item {
    /* 上 1fr + 下固定标签行：同行卡片标签底线对齐，不依赖 margin-top:auto（与 WebKit 更稳） */
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    text-align: center;
    text-decoration: none !important;
    color: inherit !important;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eef0f4;
    box-shadow: 0 2px 10px rgba(0, 31, 63, 0.06);
    padding: 10px 6px 10px;
    min-height: 0;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease;
}

.home-mall-cat-thumb {
    grid-row: 1;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
    min-width: 0;
    align-self: center;
    justify-self: center;
}

.home-mall-cat-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

/* 固定第二行高度，与同行其它卡片共用同一「标签带」 */
.home-mall-cat-label-wrap {
    grid-row: 2;
    margin-top: 0;
    width: 100%;
    min-height: 2.7em;
    height: 2.7em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 2px;
    box-sizing: border-box;
}

.home-mall-cat-label-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    line-height: 1.35;
    text-align: center;
    max-width: 100%;
}

/* 悬停不要用 translateY，避免整行子像素抖动、看起来像错位 */
.home-mall-cat-item:hover {
    box-shadow: 0 6px 18px rgba(0, 31, 63, 0.1);
}

/* 给右侧浮动购物车留出空间（FAB 约 52px + 边距，略加大避免压最后一列） */
@media (min-width: 992px) {
    body.home-mall-page .home-mall-categories .home-mall-popular-card {
        padding-right: 96px;
    }
}

/* 分类/搜索/品牌列表页：与首页一致灰底 + 侧栏白卡片（大圆角） */
body.home-mall-page .home-mall-listing-section .bg-white.shadow-sm.rounded {
    border-radius: var(--hm-radius-lg) !important;
    border: 1px solid #eef0f4;
    box-shadow: var(--hm-shadow);
    overflow: hidden;
}

/* 主内容区：整块白底圆角容器（与侧栏对齐） */
body.home-mall-page .home-mall-listing-main-panel {
    background: #fff;
    border-radius: var(--hm-radius-lg);
    border: 1px solid #eef0f4;
    box-shadow: var(--hm-shadow);
    padding: 1.25rem 1rem 1.5rem;
}

body.home-mall-page .home-mall-listing-section .home-mall-listing-product-grid {
    row-gap: 1.25rem;
}

@media (min-width: 768px) {
    body.home-mall-page .home-mall-listing-main-panel {
        padding: 1.5rem 1.35rem 1.75rem;
    }
}

/* 列表页标题栏：与商品卡同系圆角白卡片（标题 + 总数 + 品牌/排序） */
.home-mall-listing-toolbar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--hm-radius-lg);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    padding: 1rem 1rem 1rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .home-mall-listing-toolbar {
        padding: 1.15rem 1.35rem 1.2rem;
    }
}

.home-mall-listing-page-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

@media (min-width: 992px) {
    .home-mall-listing-page-title {
        font-size: 1.5rem;
    }
}

.home-mall-listing-page-meta {
    font-size: 13px;
    color: #6b7280 !important;
}

.home-mall-listing-toolbar-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280 !important;
    display: block;
    margin-bottom: 4px !important;
}

body.home-mall-page .home-mall-listing-toolbar .bootstrap-select > .dropdown-toggle {
    border-radius: var(--hm-radius-md) !important;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    min-height: 38px;
    font-size: 13px;
    font-weight: 500;
    color: #374151 !important;
}

body.home-mall-page .home-mall-listing-toolbar .bootstrap-select > .dropdown-toggle:focus {
    box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.2) !important;
    border-color: #f5d08a !important;
}

@media (min-width: 992px) {
    body.home-mall-page .home-mall-listing-section .col-xl-9 {
        padding-right: 96px;
    }
}

/* 分类列表：参考图 — 价格 Min/Max + 橙钮；商品卡底栏「立即购买」+ 圆形心愿 */
.home-mall-price-filter label {
    font-size: 12px;
}

body.home-mall-page .home-mall-listing-section .home-mall-price-filter .form-control {
    border-radius: var(--hm-radius-md) !important;
    border-color: #e5e7eb;
}

.home-mall-price-apply {
    background: var(--hm-accent) !important;
    border: none !important;
    color: #fff !important;
    min-width: 48px;
    border-radius: var(--hm-radius-md) !important;
    font-size: 1.1rem;
    line-height: 1.2;
}

.home-mall-price-apply:hover {
    background: var(--hm-accent-hover) !important;
    color: #fff !important;
}

/* 品牌 / 排序：bootstrap-select 圆角 */
body.home-mall-page .home-mall-listing-section .bootstrap-select > .dropdown-toggle {
    border-radius: var(--hm-radius-md) !important;
    border-color: #e5e7eb !important;
}

/* —— 列表商品卡：图 → 黑价 → 深灰标题 → 琥珀 Buy + 浅灰圆红心框（参考图） —— */
.home-mall-product-card--listing {
    border: 1px solid #e5e7eb !important;
    border-radius: var(--hm-radius-lg) !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

body.home-mall-page .home-mall-listing-section .home-mall-product-card--listing:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.home-mall-listing-img-wrap {
    background: #fff;
    border-radius: calc(var(--hm-radius-lg) - 1px) calc(var(--hm-radius-lg) - 1px) 0 0;
    overflow: hidden;
}

.home-mall-listing-img-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    max-height: 260px;
    padding: 14px;
}

.home-mall-listing-img {
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.home-mall-listing-card-body {
    padding: 12px 14px 14px;
}

@media (min-width: 768px) {
    .home-mall-listing-card-body {
        padding: 14px 16px 16px;
    }
}

.home-mall-listing-price {
    line-height: 1.25;
}

.home-mall-listing-price-current {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #111827 !important;
}

.home-mall-listing-price-old {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #9ca3af !important;
}

.home-mall-listing-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    min-height: 2.85em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.home-mall-listing-title-link {
    color: #4b5563 !important;
    text-decoration: none !important;
}

.home-mall-listing-title-link:hover {
    color: #111827 !important;
}

.home-mall-listing-actions {
    gap: 10px;
}

/* Buy Now：琥珀橙，略方角（非超长胶囊） */
.home-mall-buy-btn {
    background: #f5a623 !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: #fff !important;
    padding: 10px 12px !important;
    min-height: 40px;
    box-shadow: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.home-mall-buy-btn i {
    font-size: 15px;
}

.home-mall-buy-btn:hover {
    background: #e5980f !important;
    color: #fff !important;
}

/* 心愿：浅灰圆底 + 红色线框心 */
.home-mall-wish-btn {
    flex-shrink: 0;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0 !important;
    border-radius: 50% !important;
    border: none !important;
    background: #f3f4f6 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.home-mall-wish-btn i {
    font-size: 18px;
    color: #e53935 !important;
}

.home-mall-wish-btn:hover {
    background: #e5e7eb !important;
}

.home-mall-wish-btn:hover i {
    color: #c62828 !important;
}

.home-mall-breadcrumb {
    font-size: 13px;
}

/* 区块 */
.home-mall-section {
    margin-bottom: 1.75rem;
}

.home-mall-section-inner {
    background: #fff;
    border-radius: var(--hm-card-radius);
    box-shadow: var(--hm-shadow);
    border: 1px solid #eef0f4;
    padding: 1.25rem 1rem 1.5rem;
}

@media (min-width: 768px) {
    .home-mall-section-inner {
        padding: 1.35rem 1.5rem 1.6rem;
    }
}

.home-mall-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.home-mall-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    letter-spacing: 0.02em;
}

.home-mall-today-strip {
    background: #ffffff;
    border: 1px solid #eef0f4;
    border-radius: var(--hm-card-radius);
    box-shadow: var(--hm-shadow);
    padding: 14px 16px;
}

/* AJAX 区块头部 */
body.home-mall-page .home-mall-ajax-head {
    border-color: #e5e7eb !important;
}

/* 轮播箭头：橙色圆按钮 + 白箭头 */
body.home-mall-page .slick-arrow {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: var(--hm-accent) !important;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.35);
    z-index: 2;
}

body.home-mall-page .slick-arrow:hover {
    background: var(--hm-accent-hover) !important;
}

body.home-mall-page .slick-prev::before,
body.home-mall-page .slick-next::before {
    color: #fff !important;
    opacity: 1 !important;
}

body.home-mall-page #section_featured > section,
body.home-mall-page #section_best_selling > section,
body.home-mall-page #section_home_categories > div,
body.home-mall-page #section_best_sellers > section,
body.home-mall-page #auction_products > section {
    margin-bottom: 1.75rem !important;
}

body.home-mall-page #section_featured .bg-white.shadow-sm,
body.home-mall-page #section_best_selling .bg-white.shadow-sm,
body.home-mall-page #section_home_categories .bg-white.shadow-sm,
body.home-mall-page #section_best_sellers .bg-white.shadow-sm {
    border-radius: var(--hm-card-radius) !important;
    box-shadow: var(--hm-shadow) !important;
    border: 1px solid #eef0f4 !important;
}

/* 商品卡：参考图无悬停浮层按钮时更干净 */
body.home-mall-page .home-mall .aiz-card-box .aiz-p-hov-icon,
body.home-mall-page #section_featured .aiz-p-hov-icon,
body.home-mall-page #section_best_selling .aiz-p-hov-icon,
body.home-mall-page #section_home_categories .aiz-p-hov-icon {
    display: none !important;
}

body.home-mall-page .home-mall .aiz-card-box,
body.home-mall-page #section_featured .aiz-card-box,
body.home-mall-page #section_best_selling .aiz-card-box,
body.home-mall-page #section_home_categories .aiz-card-box {
    border-radius: var(--hm-card-radius) !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
    background: #fff !important;
}

body.home-mall-page .home-mall .aiz-card-box:hover,
body.home-mall-page #section_featured .aiz-card-box:hover,
body.home-mall-page #section_best_selling .aiz-card-box:hover,
body.home-mall-page #section_home_categories .aiz-card-box:hover {
    box-shadow: var(--hm-shadow) !important;
}

/* 星级 */
body.home-mall-page .home-mall .rating .active,
body.home-mall-page #section_featured .rating .active,
body.home-mall-page #section_best_selling .rating .active {
    color: var(--hm-accent) !important;
}

/* 底栏 */
.home-mall-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 20px rgba(0, 31, 63, 0.06);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}

.home-mall-tabbar a {
    flex: 1;
    text-align: center;
    text-decoration: none !important;
    color: #6b7280 !important;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 2px;
}

.home-mall-tabbar a i {
    display: block;
    font-size: 22px;
    margin-bottom: 2px;
}

.home-mall-tabbar a.active,
.home-mall-tabbar a:hover {
    color: var(--hm-accent) !important;
}

@media (min-width: 992px) {
    .home-mall-tabbar {
        display: none !important;
    }
}

/* 页脚：深蓝 #001F3F */
body.home-mall-page .footer-widget {
    background: var(--hm-navy) !important;
    border-top: none !important;
}

body.home-mall-page .footer-widget .btn-primary {
    background: var(--hm-accent) !important;
    border-color: var(--hm-accent) !important;
    font-weight: 700;
    letter-spacing: 0.08em;
}

body.home-mall-page .footer-widget .text-reset:hover {
    color: var(--hm-accent) !important;
}

body.home-mall-page .footer-widget .border-gray-900 {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* 政策条保持可读 */
body.home-mall-page section.bg-white.border-top.mt-auto {
    background: #f9fafb !important;
}

/* ========== 新版参考：顶栏细条 + 复合搜索 + 登录条 + 药丸导航 + 浮动购物车 ========== */

.home-top-utility {
    background: #fff;
    font-size: 13px;
    position: relative;
    overflow: visible;
    /* 必须高于主头，否则语言下拉（子元素）会整层被 header 压住，点不开/看不见 */
    z-index: 1040;
}

body.home-mall-page .home-top-utility .container,
body.home-mall-page .home-top-utility .row {
    overflow: visible !important;
}

body.home-mall-page header.home-mall-header {
    z-index: 1030 !important;
}

/* 语言列表过长时滚动；下拉菜单再略高于顶栏，避免被裁切 */
body.home-mall-page .home-top-utility #lang-change .dropdown-menu.home-mall-lang-dropdown {
    z-index: 1050 !important;
    max-height: min(70vh, 360px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.home-top-utility-link {
    color: #374151 !important;
    text-decoration: none !important;
}
.home-top-utility-link:hover {
    color: var(--hm-accent) !important;
}

/* 顶栏细条：与参考图一致 — 竖线分隔、图标与文字垂直居中；语言仅保留主题自带单一下拉箭头 */
.home-top-utility .home-top-utility-list {
    row-gap: 0.35rem;
}

.home-top-utility .home-top-utility-sep {
    color: #d1d5db;
    padding: 0 0.45rem;
    font-size: 0.85em;
    font-weight: 300;
    line-height: 1;
    user-select: none;
    align-self: center;
}

.home-top-utility .home-top-utility-flag {
    flex-shrink: 0;
    display: block;
}

.home-top-utility #lang-change .dropdown-toggle {
    align-items: center;
}

.home-top-utility #lang-change .dropdown-toggle::after {
    margin-left: 0.35rem;
    align-self: center;
}

.home-brand-e {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--hm-accent);
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
}
.home-brand-name {
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #1f2937;
    font-size: 1.1rem;
}
.home-brand-logo {
    max-height: 44px;
    width: auto;
}

.home-mall-search-combo {
    border-radius: var(--hm-radius-md) !important;
    overflow: hidden;
    border: 1px solid #d1d5db !important;
    background: #fff;
}
.home-mall-search-combo .home-mall-search-tag {
    background: #f3f4f6 !important;
    color: #4b5563 !important;
    font-weight: 600;
    font-size: 13px;
    border: none !important;
    padding: 0 14px;
    border-radius: var(--hm-radius-md) 0 0 var(--hm-radius-md) !important;
}
.home-mall-search-combo .form-control {
    min-height: 46px;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.home-mall-search-products-btn {
    background: var(--hm-accent) !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 13px;
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 0 var(--hm-radius-md) var(--hm-radius-md) 0 !important;
}
.home-mall-search-products-btn:hover {
    background: var(--hm-accent-hover) !important;
    color: #fff !important;
}

.home-mall-auth-btn {
    background: var(--hm-accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--hm-radius-pill) !important;
    padding: 12px 22px !important;
    font-size: 13px;
    text-decoration: none !important;
    min-height: 46px;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.35);
}
.home-mall-auth-btn:hover {
    color: #fff !important;
    background: var(--hm-accent-hover) !important;
}

/* 药丸主导航样式见 custom-style.css（全站加载，避免仅首页等路由才有字体） */

/* Hero 非对称栅格 */
.home-mall-hero-bento-wrap {
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: var(--hm-shadow);
    border: 1px solid #eef0f4;
}
@media (min-width: 992px) {
    .home-mall-hero-bento-wrap {
        padding: 20px;
    }
}
.home-mall-hero-bento .home-mall-hero-card {
    border-radius: 12px;
    overflow: hidden;
    display: block;
    border: 1px solid #eef0f4;
}
.home-mall-hero-img-tall {
    height: 280px;
    object-fit: cover;
    display: block;
}
@media (min-width: 992px) {
    .home-mall-hero-img-tall {
        height: 420px;
    }
}
.home-mall-hero-stack {
    gap: 10px;
    min-height: 280px;
}
@media (min-width: 992px) {
    .home-mall-hero-stack {
        min-height: 420px;
    }
}
.home-mall-hero-img-stack {
    height: 135px;
    object-fit: cover;
    display: block;
}
@media (min-width: 992px) {
    .home-mall-hero-img-stack {
        height: 205px;
    }
}

/* POPULAR CATEGORIES 卡片 */
.home-mall-popular-card {
    background: #fff;
    border-radius: var(--hm-radius-lg);
    padding: 18px 16px 22px;
    border: 1px solid #eef0f4;
    box-shadow: var(--hm-shadow);
    min-width: 0;
    overflow: hidden;
}
.home-mall-popular-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1f2937;
}

.home-mall-popular-accent {
    display: inline-block;
    border-bottom: 3px solid var(--hm-accent);
    padding-bottom: 3px;
    margin-right: 0.35rem;
    color: #1f2937;
}

.home-mall-popular-title-rest {
    color: #1f2937;
    font-weight: 800;
}

.home-mall-view-all-link--muted {
    color: #6b7280 !important;
    font-weight: 500 !important;
}

.home-mall-view-all-link--muted:hover {
    color: var(--hm-accent) !important;
}
.home-mall-bsellers-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.home-mall-view-all-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--hm-accent) !important;
}
.home-mall-view-all-link:hover {
    text-decoration: underline !important;
}

/* 右侧浮动购物车 */
.home-mall-fab-cart {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1025;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hm-accent);
    color: #fff !important;
    border-radius: var(--hm-radius-md);
    box-shadow: 0 4px 16px rgba(243, 156, 18, 0.45);
    font-size: 24px;
    transition: background 0.2s, transform 0.2s;
}
.home-mall-fab-cart:hover {
    background: var(--hm-accent-hover);
    color: #fff !important;
    transform: translateY(-50%) scale(1.05);
}
@media (max-width: 991.98px) {
    .home-mall-fab-cart {
        bottom: 88px;
        top: auto;
        transform: none;
        right: 12px;
    }
    .home-mall-fab-cart:hover {
        transform: none;
    }
}

/* —— 登录页（与首页商城头一致） —— */
.home-mall-login-section {
    background: transparent;
}

.home-mall-login-card {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--hm-shadow);
    border: 1px solid #eef0f4;
}

.home-mall-login-visual {
    background: var(--hm-accent);
    min-height: 440px;
}

.home-mall-login-visual-mobile {
    background: var(--hm-accent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.home-mall-login-promo-inner {
    color: #fff;
}

.home-mall-login-promo-badge {
    display: inline-block;
    background: #1a1a2e;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    padding: 10px 18px;
    border-radius: 6px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 0 #5b4bb7;
}

.home-mall-login-promo-line1 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.home-mall-login-promo-line2 {
    font-size: 0.85rem;
    opacity: 0.92;
    letter-spacing: 0.06em;
}

.home-mall-login-kicker {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #6b7280;
    margin-bottom: 0.35rem;
}

.home-mall-login-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.home-mall-login-shop {
    color: var(--hm-accent);
    margin-right: 0.25rem;
}

.home-mall-login-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.35rem;
}

.home-mall-login-input {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    min-height: 44px;
    font-size: 0.9375rem;
    background-color: #f9fafb !important;
}

.home-mall-login-input:focus {
    border-color: rgba(243, 156, 18, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.15);
}

.home-mall-login-password-wrap .position-relative {
    position: relative;
}

.home-mall-pw-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    padding: 6px 8px;
    line-height: 1;
    cursor: pointer;
}

.home-mall-pw-toggle:hover {
    color: #4b5563;
}

.home-mall-pw-toggle .las {
    font-size: 1.35rem;
}

.home-mall-login-forgot {
    font-size: 0.875rem;
    font-style: italic;
    color: #4b5563;
}

.home-mall-login-forgot:hover {
    color: var(--hm-accent);
    text-decoration: none;
}

.home-mall-login-switch {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff !important;
    background: var(--hm-accent) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 6px 14px !important;
}

.home-mall-login-switch:hover {
    background: var(--hm-accent-hover) !important;
    color: #fff !important;
}

.home-mall-login-submit {
    background: var(--hm-accent) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 10px !important;
    min-height: 48px;
    font-size: 1rem;
}

.home-mall-login-submit:hover {
    background: var(--hm-accent-hover) !important;
    color: #fff !important;
}

.home-mall-login-signup-line {
    font-size: 0.9375rem;
    color: #4b5563;
}

.home-mall-login-signup-link {
    font-weight: 700;
    color: #111827 !important;
    text-decoration: none !important;
}

.home-mall-login-signup-link:hover {
    color: var(--hm-accent) !important;
}

.home-mall-login-trust {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eef0f4;
    box-shadow: var(--hm-shadow);
    padding: 1.5rem 1rem 1.75rem;
}

.home-mall-login-trust-item {
    padding: 0.75rem 0.5rem;
}

.home-mall-login-trust-icon {
    font-size: 2rem;
    color: var(--hm-accent);
    display: block;
    margin-bottom: 0.5rem;
}

.home-mall-login-trust-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
}

body.home-mall-page .home-mall-login-section .separator {
    background: #e5e7eb;
}

body.home-mall-page .home-mall-login-section .separator span {
    background: #fff !important;
}

/* —— 登录页专用顶栏 / 搜索（与参考图：汉堡+输入+橙色放大镜） —— */
.login-page-top-utility {
    background: #ececec;
    border-color: #e0e0e0 !important;
}

.login-page-top-utility-link {
    font-size: 0.875rem;
    color: #374151 !important;
}

.login-page-top-utility-link:hover {
    color: var(--hm-accent) !important;
}

body.login-page .login-page-header {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

body.login-page .login-page-main-header-row {
    flex-wrap: wrap;
}

.login-page-search-combo {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.login-page-search-hamburger {
    background: #f3f4f6 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 12px;
    min-height: 44px;
}

.login-page-search-hamburger .navbar-toggler-icon {
    width: 1.1rem;
    height: 1.1rem;
}

.login-page-search-input {
    min-height: 44px;
    font-size: 0.9375rem;
}

.login-page-search-submit {
    background: var(--hm-accent) !important;
    border: none !important;
    border-radius: 0 !important;
    color: #fff !important;
    min-width: 48px;
    padding-left: 14px;
    padding-right: 14px;
}

.login-page-search-submit:hover {
    background: var(--hm-accent-hover) !important;
    color: #fff !important;
}

.login-page-brand-bag {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--hm-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.login-page-brand-name {
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.2;
    color: #111827;
}

.login-page-brand-tagline {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--hm-accent);
    letter-spacing: 0.04em;
    margin-top: 2px;
}

body.login-page .badge-primary {
    background: var(--hm-accent) !important;
}

/* ========== 登录页新样式（与参考图一致） ========== */

/* Logo样式 */
.login-page-logo-link {
    text-decoration: none !important;
}

.login-page-logo-img {
    max-height: 40px;
    width: auto;
}

.login-page-brand-e {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hm-accent);
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    margin-right: 8px;
}

/* 顶部语言选择器 */
.login-page-lang-dropdown .dropdown-toggle::after {
    display: none;
}

.login-page-lang-btn {
    background: transparent !important;
    border: none !important;
    color: #374151 !important;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
}

.login-page-lang-btn:hover {
    color: var(--hm-accent) !important;
}

.login-page-flag-icon {
    width: 20px;
    height: 14px;
    margin-right: 6px;
    border-radius: 2px;
}

/* 头部操作按钮 */
.login-page-header-actions {
    gap: 12px;
}

.login-page-products-btn {
    background: var(--hm-accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 18px !important;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.login-page-products-btn:hover {
    background: var(--hm-accent-hover) !important;
    color: #fff !important;
}

.login-page-products-btn i {
    font-size: 0.75rem;
}

.login-page-auth-btns {
    display: flex;
    align-items: center;
    background: var(--hm-accent);
    border-radius: 8px;
    padding: 4px;
}

.login-page-login-btn,
.login-page-register-btn {
    background: transparent !important;
    color: #fff !important;
    border: none !important;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 6px 12px !important;
}

.login-page-login-btn:hover,
.login-page-register-btn:hover {
    color: #fff !important;
    opacity: 0.9;
}

.login-page-auth-separator {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* 登录页左侧促销区域 - FLASH SALE样式 */
.home-mall-login-visual {
    background: #f5a623 !important;
    position: relative;
    overflow: hidden;
}

.home-mall-login-promo-inner {
    position: relative;
    padding: 40px;
}

.home-mall-login-promo-stars {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
}

.home-mall-login-promo-stars .star {
    position: absolute;
    color: #1a1a2e;
    font-size: 1.2rem;
}

.home-mall-login-promo-stars .star-1 {
    top: 0;
    left: 10%;
}

.home-mall-login-promo-stars .star-2 {
    top: 20px;
    left: 5%;
    font-size: 0.8rem;
}

.home-mall-login-promo-stars .star-3 {
    top: 0;
    right: 15%;
}

.home-mall-login-promo-stars .star-4 {
    top: 30px;
    right: 8%;
    font-size: 0.9rem;
}

.home-mall-login-promo-stars-bottom {
    position: absolute;
    bottom: 40px;
    left: 30px;
    right: 30px;
}

.home-mall-login-promo-stars-bottom .star {
    position: absolute;
    color: #1a1a2e;
    font-size: 1rem;
}

.home-mall-login-promo-stars-bottom .star-5 {
    bottom: 0;
    left: 15%;
}

.home-mall-login-promo-stars-bottom .star-6 {
    bottom: 20px;
    left: 8%;
    font-size: 0.7rem;
}

.home-mall-login-promo-stars-bottom .star-7 {
    bottom: 10px;
    right: 12%;
}

.home-mall-login-promo-content {
    position: relative;
    z-index: 1;
}

.home-mall-login-promo-badge-wrap {
    margin-bottom: 1.5rem;
}

.home-mall-login-promo-badge {
    display: inline-block;
    background: #1a1a2e;
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 0 #5b4bb7;
}

.home-mall-login-promo-hurry {
    display: inline-block;
    background: #e91e8c;
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: 4px;
    transform: rotate(-8deg);
    margin-bottom: 1rem;
    position: relative;
    top: -10px;
}

.home-mall-login-promo-line1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.home-mall-login-promo-discount {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.home-mall-login-promo-line2 {
    font-size: 0.8rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

/* 登录表单标题样式 */
.home-mall-login-kicker-wrap {
    margin-bottom: 0.5rem;
}

.home-mall-login-kicker {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #9ca3af;
}

.home-mall-login-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
}

.home-mall-login-shop {
    color: var(--hm-accent);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.home-mall-login-account {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* 信任区域图标样式 */
.home-mall-login-trust-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fef3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.home-mall-login-trust-icon {
    font-size: 1.75rem;
    color: var(--hm-accent);
}

.home-mall-login-trust-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.home-mall-login-promo-footer-black {
    color: #111827 !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 1 !important;
}

.home-mall-fab-cart-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: #fff !important;
    background: #c0392b;
    border-radius: 9px;
    border: 2px solid #fff;
}

/* —— 注册页 ALIAFF（与第一张参考图） —— */
.home-mall-register-section .home-mall-login-card {
    max-width: 1000px;
}

.home-mall-register-visual {
    background: var(--hm-accent);
    min-height: 460px;
    position: relative;
    overflow: hidden;
}

.home-mall-register-visual-mobile {
    background: var(--hm-accent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 200px;
}

.home-mall-register-visual-inner {
    min-height: 360px;
}

.home-mall-register-heading .home-mall-register-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: #9ca3af;
    margin-bottom: 0.35rem;
}

.home-mall-register-shop-title {
    font-size: 2.75rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--hm-accent);
    line-height: 1;
}

.home-mall-register-switch-muted {
    background: #e5e7eb !important;
    color: #374151 !important;
    font-weight: 600 !important;
    border: none !important;
}

.home-mall-register-switch-muted:hover {
    background: #d1d5db !important;
    color: #111827 !important;
}

.home-mall-register-login-link {
    font-weight: 700;
    color: var(--hm-accent) !important;
    text-decoration: none !important;
    margin-left: 0.25rem;
}

.home-mall-register-login-link:hover {
    text-decoration: underline !important;
}

/* 左侧插画 */
.home-mall-register-hero-art {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    min-height: 320px;
}

.home-mall-register-hero-art.is-compact {
    min-height: 180px;
    max-width: 260px;
}

.home-mall-register-hero-float {
    position: absolute;
    color: rgba(26, 26, 46, 0.85);
    font-size: 2rem;
    z-index: 1;
}

.home-mall-register-hero-float--basket {
    top: 8%;
    left: 0;
    font-size: 2.5rem;
    transform: rotate(-12deg);
}

.home-mall-register-hero-float--coins {
    top: 18%;
    right: 4%;
    font-size: 2rem;
}

.home-mall-register-hero-float--chat1 {
    bottom: 28%;
    left: 6%;
    font-size: 1.75rem;
}

.home-mall-register-hero-float--chat2 {
    bottom: 12%;
    right: 10%;
    font-size: 1.5rem;
}

.home-mall-register-phone {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 2rem;
}

.home-mall-register-phone-screen {
    width: 140px;
    height: 260px;
    background: linear-gradient(180deg, #fff 0%, #f3f4f6 100%);
    border-radius: 18px;
    border: 4px solid #1f2937;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.home-mall-register-hero-art.is-compact .home-mall-register-phone-screen {
    width: 110px;
    height: 200px;
}

.home-mall-register-phone-dots {
    display: block;
    height: 6px;
    width: 36px;
    border-radius: 4px;
    background: #e5e7eb;
    margin: 0 auto 12px;
}

.home-mall-register-phone-line {
    display: block;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    margin-bottom: 8px;
}

.home-mall-register-phone-line.short {
    width: 65%;
}

.home-mall-register-buy {
    margin-top: auto;
    align-self: center;
    background: var(--hm-accent);
    color: #fff !important;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    padding: 8px 20px;
    border-radius: 6px;
    text-align: center;
}

.home-mall-register-hand {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-55%);
    width: 120px;
    height: 70px;
    background: radial-gradient(ellipse at center, #6d4c41 0%, #4e342e 100%);
    border-radius: 50% 50% 40% 40%;
    opacity: 0.92;
    z-index: 1;
}

body.registration-page .home-mall-register-section .separator {
    background: #e5e7eb;
}

body.registration-page .home-mall-register-section .separator span {
    background: #fff !important;
}
