/* 综合风格：hanrenbuy 红色电商主题 + 现代响应式布局 */
:root {
    --primary: #DE0539;
    --primary-dark: #b8032e;
    --primary-light: #ff1a52;
    --accent: #383635;
    --success: #10b981;
    --warning: #f59e0b;
    --bg: #f7f7f7;
    --surface: #ffffff;
    --text: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border: #e5e5e5;
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-sm: 4px;
    --radius-xs: 2px;
    --max-width: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font: 13px/1.6 "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: var(--text); transition: color .2s, background .2s; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

/* ========== 顶部条 ========== */
.topbar {
    background: #f8f8f8;
    border-bottom: 1px solid #eeeeee;
    color: #888888;
    font-size: 12px;
    line-height: 34px;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar a { color: #888888; font-size: 12px; }
.topbar a:hover { color: var(--primary); }
.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.topbar-sep { color: #dddddd; user-select: none; }

.sn-menu { position: relative; }
.sn-menu .menu-hd {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 4px;
    cursor: pointer;
    position: relative;
}
.sn-menu .menu-hd b {
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 3px solid #999999;
    transition: transform .2s;
}
.sn-menu:hover .menu-hd b { transform: rotate(180deg); }
.menu-bd {
    display: none;
    position: absolute;
    top: 33px;
    left: 0;
    background: var(--surface);
    border: 1px solid #eeeeee;
    border-top: 2px solid var(--primary);
    z-index: 9999;
    min-width: 120px;
    box-shadow: var(--shadow-sm);
}
.sn-menu:hover .menu-bd { display: block; }
.menu-bd a {
    display: block;
    padding: 0 14px;
    line-height: 30px;
    color: #666666;
    white-space: nowrap;
}
.menu-bd a:hover { color: var(--primary); background: #f8f8f8; }

/* ========== 头部 ========== */
.site-header {
    background: var(--surface);
    border-bottom: 2px solid var(--primary);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100px;
}

.logo {
    flex-shrink: 0;
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo span { color: var(--text); font-size: 22px; }

.search-box {
    flex: 1;
    max-width: 520px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.search-box form {
    display: flex;
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface);
}
.search-box input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    color: var(--text);
}
.search-box input::placeholder { color: #b4b4b4; }
.search-box button {
    width: 85px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.search-box button:hover { background: var(--primary-dark); }

.kw-hot {
    margin-top: 6px;
    font-size: 12px;
    color: #b4b4b4;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kw-hot a { color: #666666; margin-right: 10px; }
.kw-hot a:hover { color: var(--primary); text-decoration: underline; }

.topbar-cart {
    flex-shrink: 0;
    position: relative;
    width: 135px;
    display: flex;
    align-items: center;
}
.cart-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    border: 1px solid #f0f0f4;
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    box-shadow: var(--shadow-xs);
}
.cart-mini:hover { border-color: var(--primary); color: var(--primary); }
.cart-mini .cart-icon { font-size: 16px; }
.cart-mini .count {
    background: var(--primary);
    color: #fff;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}
.cart-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 39px;
    width: 300px;
    background: var(--surface);
    border: 1px solid #eeeeee;
    box-shadow: var(--shadow);
    z-index: 100;
    padding: 15px;
    font-size: 12px;
    color: #666666;
}
.topbar-cart:hover .cart-menu { display: block; }

/* ========== 主导航 ========== */
.main-nav-bar {
    background: var(--surface);
    height: 44px;
    position: relative;
    z-index: 50;
}
.main-nav-bar .container {
    display: flex;
    align-items: stretch;
    height: 100%;
}

.category-menu {
    width: 220px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: bold;
    position: relative;
    cursor: pointer;
}
.category-menu > a { color: #fff; }
.category-menu > a:before { content: "☰"; margin-right: 4px; }

.category-dropdown {
    position: absolute;
    top: 44px;
    left: 0;
    width: 220px;
    background: rgba(222,5,57,0.96);
    z-index: 99;
    display: none;
    box-shadow: var(--shadow-lg);
}
.category-menu:hover .category-dropdown { display: block; }
body.home .category-menu .category-dropdown {
    display: flex;
    flex-direction: column;
    height: 460px;
}
body.home .category-dropdown li { flex: 0 0 auto; justify-content: center; }
body.home .cat-promo {
    flex: 1 1 auto !important;
    background: rgba(0,0,0,0.15);
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 0;
    min-height: 80px;
}
body.home .cat-promo a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    text-align: center;
    padding: 16px;
    gap: 4px;
}
body.home .cat-promo a strong { font-size: 16px; }
body.home .cat-promo a span { font-size: 12px; opacity: 0.85; }
.category-dropdown li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 18px;
}
.category-dropdown li .cat-main { width: 100%; }
.category-dropdown li .cat-title {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
}
.category-dropdown li .cat-title:hover { color: #fff; text-decoration: underline; }
.category-dropdown li:hover { background: rgba(255,255,255,0.08); }
.category-dropdown .cat-subs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 8px;
}
.category-dropdown .cat-subs a {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.08);
    padding: 5px 8px;
    border-radius: var(--radius-xs);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.category-dropdown .cat-subs a:hover {
    color: #fff;
    background: rgba(255,255,255,0.18);
}

.nav-links {
    display: flex;
    align-items: center;
    padding-left: 20px;
    gap: 5px;
}
.nav-links a {
    padding: 0 22px;
    line-height: 44px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    position: relative;
}
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
    transition: transform .2s;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: #fff5f7;
}
.nav-links a:hover::after,
.nav-links a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* 移动端菜单切换 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}
.menu-toggle-checkbox { position: absolute; opacity: 0; width: 0; height: 0; }
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 280px;
    right: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1150;
}
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    z-index: 1200;
    transform: translateX(-100%);
    transition: transform .3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-lg);
}
.menu-toggle-checkbox:checked ~ .mobile-menu-overlay { display: block; }
.menu-toggle-checkbox:checked ~ .mobile-nav { transform: translateX(0); }
.mobile-nav-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 28px 20px 22px;
    position: relative;
}
.mobile-nav-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}
.mobile-nav-header .welcome {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 14px;
}
.mobile-nav-header .user-btns {
    display: flex;
    gap: 10px;
}
.mobile-nav-header .user-btns a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    border: 1px solid rgba(255,255,255,0.8);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    background: rgba(255,255,255,0.1);
}
.mobile-nav-header .user-btns a:hover {
    background: #fff;
    color: var(--primary);
}
.mobile-nav-header .username {
    font-size: 16px;
    font-weight: bold;
}
.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav a .nav-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: var(--radius-xs);
    font-size: 12px;
    color: var(--text-secondary);
}
.mobile-nav a.active { color: var(--primary); background: #fff5f7; }
.mobile-nav a.active .nav-icon { background: var(--primary); color: #fff; }
.menu-toggle-checkbox:checked ~ .mobile-nav { transform: translateX(0); }

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bottom-nav a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--text-secondary);
    font-size: 13px;
    position: relative;
    transition: color .2s, background .2s;
}
.mobile-bottom-nav a.active {
    color: var(--primary);
    background: #fff5f7;
}
.mobile-bottom-nav a.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 4px 4px;
}

/* ========== 首页 Banner 区域 ========== */
.home-banner-section {
    position: relative;
    height: 460px;
    background: #f0f0f0;
    margin-bottom: 20px;
    overflow: hidden;
}
.home-banner-section > .container {
    position: relative;
    height: 100%;
}

.banner-slider {
    background: var(--surface);
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.banner-slides { position: relative; height: 100%; }
.banner-slide {
    position: absolute;
    inset: 0;
    display: none;
    text-align: center;
}
.banner-slide.active { display: block; z-index: 1; }
.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-prev, .banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    width: 44px;
    height: 70px;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity .3s;
}
.banner-slider:hover .banner-prev,
.banner-slider:hover .banner-next { opacity: 1; }
.banner-prev { left: max(15px, calc((100% - 1200px) / 2 + 15px)); }
.banner-next { right: max(235px, calc((100% - 1200px) / 2 + 235px)); }
.banner-prev:hover, .banner-next:hover { background: rgba(0,0,0,0.5); }
.banner-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.banner-dots span {
    width: 30px;
    height: 5px;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: background .2s;
}
.banner-dots span.active { background: var(--primary); }

/* Banner 右侧信息栏 */
.banner-sidebar {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 220px;
    height: 440px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.banner-sidebar-head {
    flex: 1;
    background: rgba(255,255,255,0.96);
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.banner-sidebar-head .welcome {
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}
.user-btns {
    display: flex;
    gap: 8px;
}
.user-btns .btn-outline,
.banner-sidebar-head .btn-user {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-xs);
    font-size: 13px;
    transition: .2s;
}
.user-btns .btn-outline:hover,
.banner-sidebar-head .btn-user:hover {
    background: var(--primary);
    color: #fff;
}
.banner-sidebar-head .btn-user {
    width: 100%;
}
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}
.notice-list a {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.notice-list a:hover { color: var(--primary); }
.banner-sidebar-ad {
    height: 150px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    border-radius: var(--radius-xs);
}
.banner-sidebar-ad span {
    font-size: 12px;
    padding: 2px 10px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
}
.banner-sidebar-ad strong {
    font-size: 18px;
    line-height: 1.4;
    font-weight: bold;
}

/* ========== 品牌区域 ========== */
.home-brand-section {
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    gap: 10px;
    margin: 20px 0;
    background: var(--surface);
}
.brand-ad {
    display: block;
    overflow: hidden;
    background: #f5f5f5;
    min-height: 300px;
}
.brand-ad img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.brand-ad:hover img { transform: scale(1.03); }
.brand-promo {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    color: #fff;
    padding: 20px;
}
.brand-promo.red {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.brand-promo.dark {
    background: linear-gradient(135deg, #3a3a3a 0%, #1a1a1a 100%);
}
.brand-promo .icon { font-size: 42px; }
.brand-promo strong { font-size: 20px; font-weight: bold; }
.brand-promo span { font-size: 13px; opacity: 0.9; }
.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}
.brand-item {
    position: relative;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    overflow: hidden;
    transition: .2s;
}
.brand-item:hover { background: #fff5f7; }
.brand-name {
    font-size: 14px;
    font-weight: bold;
    color: var(--text);
    text-align: center;
    padding: 0 10px;
}
.brand-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 13px;
    opacity: 0;
    transition: opacity .3s;
}
.brand-item:hover .brand-hover { opacity: 1; }

/* ========== 新品上市横向滚动 ========== */
.new-products-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 16px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}
.new-products-scroll::-webkit-scrollbar { height: 6px; }
.new-products-scroll::-webkit-scrollbar-track { background: #f0f0f0; }
.new-products-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.new-product-item {
    flex: 0 0 auto;
    width: 200px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    scroll-snap-align: start;
    transition: transform .2s, box-shadow .2s;
}
.new-product-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}
.new-product-item .img-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background: #fafafa;
    overflow: hidden;
}
.new-product-item .img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.new-product-item .img-wrap .no-img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
}
.new-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 0 0 0 var(--radius-sm);
}
.new-product-item .name {
    padding: 8px 10px;
    font-size: 12px;
    color: var(--text);
    background: rgba(45,33,36,0.85);
    color: #fff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== 标题 ========== */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 35px 0 18px;
    background: var(--surface);
    border-bottom: 2px solid var(--primary);
    height: 46px;
    line-height: 46px;
    overflow: hidden;
}
.section-title strong {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background: var(--primary);
    padding: 0 20px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}
.section-title strong::after {
    content: "";
    position: absolute;
    right: -12px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 23px solid transparent;
    border-bottom: 23px solid transparent;
    border-left: 12px solid var(--primary);
}
.section-title a {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: .2s;
}
.section-title a::after {
    content: "›";
    font-size: 14px;
}
.section-title a:hover {
    color: var(--primary);
    background: #fff5f7;
}

/* ========== 产品网格 ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}
.product-card .img-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background: #fafafa;
    overflow: hidden;
}
.product-card .img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.product-card:hover .img-wrap img { transform: scale(1.05); }
.product-card .tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    z-index: 2;
}
.product-card .info { padding: 12px; }
.product-card h3 {
    font-size: 13px;
    font-weight: normal;
    line-height: 1.6;
    height: 42px;
    overflow: hidden;
    margin-bottom: 10px;
}
.product-card h3 a { color: var(--text); }
.product-card h3 a:hover { color: var(--primary); }
.product-card .meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.product-card .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-card .price {
    color: var(--primary);
    font-size: 17px;
    font-weight: bold;
}
.product-card .price:before { content: "¥"; font-size: 12px; margin-right: 1px; }
.product-card .sales {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.product-card .actions { display: none; }

/* ========== 楼层 ========== */
.floor-goods {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    margin-top: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.floor-left {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
}
.floor-left-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.floor-left-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.floor-left-list a {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    padding: 6px 0;
}
.floor-left-list a:hover { color: #fff; text-decoration: underline; }
.floor-right {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-content: start;
}
.floor-right .product-card { border-radius: var(--radius-sm); }
.floor-right .product-card .img-wrap { padding-bottom: 90%; }

/* ========== 分类入口 ========== */
.home-category-section {
    margin-top: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.home-category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.home-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all .2s;
}
.home-category-card strong {
    font-size: 15px;
    margin-bottom: 5px;
    color: var(--text);
}
.home-category-card span {
    font-size: 12px;
    color: var(--text-muted);
}
.home-category-card:hover {
    border-color: var(--primary);
    background: #fff5f7;
}
.home-category-card:hover strong { color: var(--primary); }

/* ========== 底部 ========== */
.site-footer {
    background: #2e2e2e;
    color: #cccccc;
    margin-top: 50px;
    padding: 45px 0 25px;
}
.site-footer a { color: #cccccc; }
.site-footer a:hover { color: #fff; }
.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 30px;
}
.footer-brand h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 16px;
}
.footer-brand p {
    font-size: 12px;
    line-height: 1.9;
    margin-bottom: 12px;
    color: #aaaaaa;
}
.footer-links-col h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 16px;
    font-weight: bold;
}
.footer-links-col a,
.footer-links-col span {
    display: block;
    font-size: 12px;
    line-height: 28px;
    color: #aaaaaa;
}
.footer-links-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 35px;
    padding: 20px 0;
    font-size: 12px;
    color: #888;
}
.footer-bottom-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.footer-copyright p { margin: 2px 0; line-height: 1.6; }
.footer-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.footer-meta a {
    color: #aaa;
    text-decoration: none;
}
.footer-meta a:hover { color: #fff; text-decoration: underline; }
.footer-meta .divider { color: #555; }
.footer-meta .scope { color: #888; }

/* ========== 移动端搜索 ========== */
.mobile-search {
    display: none;
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.mobile-search form {
    display: flex;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.mobile-search input {
    flex: 1;
    border: none;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
}
.mobile-search button {
    min-width: 56px;
    padding: 0 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 14px;
    white-space: nowrap;
}

/* ========== 返回顶部 ========== */
.back-to-top {
    position: fixed;
    bottom: 50px;
    right: 25px;
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: var(--shadow);
}

/* ========== 面包屑 ========== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 12px;
    font-size: 13px;
    color: var(--text-muted);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: #ccc; }
.breadcrumb strong { color: var(--text); font-weight: normal; }

/* ========== 分类页筛选排序 ========== */
.category-filter-bar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}
.category-filter-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f5f5f5;
}
.category-filter-row:last-child { border-bottom: none; }
.filter-label {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: normal;
    padding-top: 7px;
    min-width: 42px;
}
.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    flex: 1;
}
.category-list a {
    padding: 6px 16px;
    margin: 0 8px 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
    border-radius: 20px;
    background: #f8f8f8;
    transition: .2s;
}
.category-list a:hover {
    color: var(--primary);
    background: #fff5f7;
}
.category-list a.active {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 2px 6px rgba(222,5,57,0.25);
}
.sort-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    flex-wrap: wrap;
}
.sort-bar a {
    padding: 5px 14px;
    font-size: 13px;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background: var(--surface);
    transition: .2s;
}
.sort-bar a:hover {
    color: var(--primary);
    border-color: var(--primary);
}
.sort-bar a.active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}
.result-count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: normal;
    padding-right: 16px;
}

/* ========== 空状态 ========== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    margin: 20px 0;
    text-align: center;
}
.empty-state .empty-icon { font-size: 20px; color: var(--text-secondary); font-weight: bold; margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.empty-state .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    background: var(--primary);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
}
.empty-state .btn:hover { background: var(--primary-dark); color: #fff; }

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background: var(--surface);
    color: var(--text);
}
.pagination a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: bold;
}
.pagination .ellipsis {
    border: none;
    background: transparent;
    color: var(--text-muted);
}

/* ========== 商品详情页 ========== */
.product-category-list { margin-bottom: 12px; }
.product-detail { padding-bottom: 20px; }
.product-top {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}
.product-gallery {
    background: #fafafa;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
}
.product-gallery img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 420px;
}
.product-gallery .no-img {
    font-size: 14px;
    color: var(--text-muted);
}
.product-summary h1 {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 12px;
    color: var(--text);
}
.product-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    background: #fff5f7;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
}
.product-price .price-label { font-size: 13px; color: var(--text-secondary); }
.product-price .price-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
}
.product-price .price-value:before { content: "¥"; font-size: 18px; margin-right: 2px; }
.product-guarantees {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 20px;
}
.product-guarantees span {
    font-size: 13px;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}
.product-guarantees span:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}
.product-qty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.product-qty label { font-size: 13px; color: var(--text-secondary); }
.qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    overflow: hidden;
}
.qty-stepper button {
    width: 34px;
    height: 34px;
    background: #f5f5f5;
    border: none;
    font-size: 16px;
    color: var(--text);
    cursor: pointer;
}
.qty-stepper button:hover { background: #eee; }
.qty-stepper input {
    width: 50px;
    height: 34px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-size: 14px;
}
.product-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.product-actions .btn {
    min-width: 140px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    text-decoration: none;
}
.product-actions .btn-primary {
    background: var(--primary);
    color: #fff;
}
.product-actions .btn-primary:hover { background: var(--primary-dark); }
.product-actions .btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}
.product-actions .btn-secondary {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.product-actions .btn-secondary:hover { background: #fff5f7; }

.product-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 16px;
}
.product-section .section-title { margin: -20px -24px 16px; }
.product-desc {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}
.empty-tip {
    font-size: 13px;
    color: var(--text-muted);
    padding: 16px 0;
}
.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.spec-table th,
.spec-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}
.spec-table th {
    width: 140px;
    color: var(--text-secondary);
    font-weight: normal;
    background: #fafafa;
}
.review-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fafafa;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}
.review-score {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
}
.review-stars { color: #ff9500; font-size: 14px; }
.review-count { font-size: 13px; color: var(--text-muted); }
.review-item {
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
}
.review-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.review-user { font-size: 14px; color: var(--text); font-weight: bold; }
.review-date { font-size: 12px; color: var(--text-muted); }
.review-body { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

.mobile-buy-bar {
    display: none;
}

/* ========== 提示框 ========== */
.alert {
    padding: 12px 16px;
    margin: 15px 0;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 13px;
}
.alert-success { background: #e8f5e9; color: #2e7d32; border-color: #c8e6c9; }
.alert-danger { background: #ffebee; color: #c62828; border-color: #ffcdd2; }
.alert-warning { background: #fff3e0; color: #ef6c00; border-color: #ffe0b2; }

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .banner-prev { left: 15px; }
    .banner-next { right: 260px; }
}

@media (max-width: 992px) {
    .home-banner-section { height: 360px; }
    body.home .category-menu .category-dropdown { height: 360px; }
    body.home .cat-promo a { padding: 12px; }
    body.home .cat-promo a strong { font-size: 14px; }
    .category-dropdown li { padding: 10px 14px; }
    .category-dropdown li .cat-title { font-size: 13px; margin-bottom: 8px; }
    .category-dropdown .cat-subs a { font-size: 11px; padding: 4px 6px; }
    .banner-sidebar { width: 180px; height: 340px; top: 10px; right: 15px; }
    .banner-sidebar-head { padding: 14px 10px; }
    .banner-sidebar-head .welcome { font-size: 12px; }
    .user-btns .btn-outline { font-size: 12px; height: 28px; }
    .notice-list a { font-size: 11px; }
    .banner-sidebar-ad { height: 120px; }
    .banner-sidebar-ad strong { font-size: 15px; }
    .banner-next { right: 220px; }
    .banner-dots { transform: translateX(-50%); }

    .home-brand-section { grid-template-columns: 180px 1fr; }
    .brand-ad-right { display: none; }
    .brand-grid { grid-template-columns: repeat(3, 1fr); }

    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .floor-goods { grid-template-columns: 180px 1fr; }
    .floor-right { grid-template-columns: repeat(3, 1fr); }
    .home-category-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    html { font-size: 14px; }
    html, body {
        overscroll-behavior: none;
    }
    body {
        font-size: 14px;
        padding-top: 53px;
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
        overflow-x: hidden;
    }
    .container { padding: 0 12px; }
    .topbar { display: none; }

    .site-header {
        border-bottom: 1px solid var(--border);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1100;
        box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    }
    .site-header .container {
        height: 52px;
        gap: 8px;
        padding: 0 12px;
    }
    .logo { font-size: 16px; max-width: calc(100% - 56px); white-space: nowrap; }
    .logo span { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
    .search-box { display: none; }
    .topbar-cart { display: none; }

    .mobile-search {
        display: block;
        padding: 8px 12px;
        background: #fff;
        border-bottom: 1px solid var(--border);
    }
    .mobile-search form { border-width: 1px; border-radius: 20px; }
    .mobile-search input { padding: 9px 14px; font-size: 14px; }
    .mobile-search button { width: 46px; border-radius: 0 20px 20px 0; }

    .mobile-menu-toggle {
        display: flex;
        width: 38px;
        height: 38px;
    }
    .mobile-menu-toggle span { transition: .3s; }
    .menu-toggle-checkbox:checked ~ .site-header .mobile-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle-checkbox:checked ~ .site-header .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
    .menu-toggle-checkbox:checked ~ .site-header .mobile-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .mobile-menu-overlay {
        display: none;
        z-index: 1150;
        left: min(78vw, 300px);
    }
    .mobile-nav {
        display: block;
        top: 0;
        width: 78vw;
        max-width: 300px;
        height: 100dvh;
        padding-top: 0;
        z-index: 1200;
    }
    .menu-toggle-checkbox:checked ~ .mobile-menu-overlay { display: block; }
    .menu-toggle-checkbox:checked ~ .mobile-nav { transform: translateX(0); }
    .mobile-nav-header { padding: 24px 18px 18px; }
    .mobile-nav-header .welcome { font-size: 12px; margin-bottom: 12px; }
    .mobile-nav-header .user-btns a { height: 32px; font-size: 12px; }
    .mobile-nav a {
        padding: 13px 18px;
        font-size: 14px;
        border-bottom: 1px solid #f5f5f5;
    }
    .mobile-nav a .nav-icon { width: 26px; height: 26px; font-size: 13px; }
    .mobile-nav a.active { border-left: 3px solid var(--primary); }

    .mobile-bottom-nav {
        display: flex;
        height: 60px;
        padding-bottom: env(safe-area-inset-bottom);
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        will-change: transform;
    }
    .mobile-bottom-nav a {
        padding: 0;
        font-size: 12px;
    }
    .mobile-bottom-nav a.active::before { width: 20px; height: 3px; }

    .main-nav-bar { display: none; }

    .home-banner-section {
        height: auto;
        margin: 0 -12px;
    }
    .banner-sidebar { display: none; }
    .banner-slider {
        position: relative;
        height: auto;
        aspect-ratio: 2.2 / 1;
        min-height: 160px;
        max-height: 240px;
    }
    .banner-slide { height: 100%; }
    .banner-slide img { object-fit: cover; }
    .banner-prev, .banner-next {
        width: 28px;
        height: 40px;
        font-size: 18px;
        opacity: 1;
    }
    .banner-prev { left: 8px; }
    .banner-next { right: 8px; }
    .banner-dots {
        bottom: 10px;
        gap: 6px;
        transform: translateX(-50%);
    }
    .banner-dots span { width: 18px; height: 4px; }

    .new-products-scroll { gap: 8px; padding: 2px 12px 12px; }
    .new-product-item { width: 140px; }
    .new-product-item .name { padding: 6px 8px; font-size: 11px; }

    .home-brand-section {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 12px 0;
    }
    .brand-ad { min-height: 140px; }
    .brand-ad-left, .brand-ad-right { display: none; }
    .brand-grid { grid-template-columns: repeat(3, 1fr); }
    .brand-item { min-height: 70px; }
    .brand-name { font-size: 12px; }

    .section-title { margin: 18px 0 10px; height: 40px; line-height: 40px; }
    .section-title strong { font-size: 15px; padding: 0 14px; height: 40px; gap: 4px; }
    .section-title strong::after { right: -10px; border-top-width: 20px; border-bottom-width: 20px; border-left-width: 10px; }
    .section-title a { font-size: 12px; padding: 0 12px; gap: 2px; }

    .breadcrumb { margin: 12px 0 10px; font-size: 12px; }
    .category-filter-bar { margin-bottom: 14px; border-radius: var(--radius-sm); }
    .category-filter-row { padding: 10px 12px; gap: 8px; }
    .filter-label { font-size: 12px; padding-top: 5px; min-width: 36px; }
    .category-list a { padding: 4px 10px; font-size: 11px; margin: 0 5px 5px 0; }
    .sort-bar { gap: 5px; }
    .sort-bar a { padding: 3px 8px; font-size: 11px; }
    .result-count { font-size: 11px; padding-right: 10px; }
    .empty-state { padding: 40px 16px; }
    .empty-state .empty-icon { font-size: 40px; }
    .pagination { gap: 5px; margin: 18px 0; }
    .pagination a, .pagination span { min-width: 30px; height: 30px; font-size: 11px; padding: 0 6px; }

    .product-top {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 12px;
    }
    .product-gallery { min-height: 260px; }
    .product-gallery img { max-height: 280px; }
    .product-summary h1 { font-size: 16px; }
    .product-meta { gap: 10px; font-size: 12px; }
    .product-price { padding: 10px 14px; }
    .product-price .price-value { font-size: 22px; }
    .product-guarantees { gap: 8px 14px; }
    .product-guarantees span { font-size: 12px; }
    .product-actions .btn { flex: 1; min-width: auto; height: 40px; font-size: 14px; }
    .product-section { padding: 12px; margin-bottom: 12px; }
    .product-section .section-title { margin: -12px -12px 12px; }
    .spec-table th { width: 100px; }
    .spec-table th, .spec-table td { padding: 10px; font-size: 12px; }
    .review-summary { padding: 12px; }
    .review-score { font-size: 26px; }

    .mobile-buy-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 56px;
        padding: 0 12px calc(env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid var(--border);
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        z-index: 1000;
    }
    .mobile-buy-bar .price-group { display: flex; align-items: baseline; gap: 6px; }
    .mobile-buy-bar .price-label { font-size: 12px; color: var(--text-muted); }
    .mobile-buy-bar .price { font-size: 18px; font-weight: bold; color: var(--primary); }
    .mobile-buy-bar .price:before { content: "¥"; font-size: 12px; margin-right: 1px; }
    .mobile-buy-bar .btn {
        height: 38px;
        padding: 0 20px;
        background: var(--primary);
        color: #fff;
        border: none;
        border-radius: 20px;
        font-size: 14px;
        font-weight: bold;
    }
    .mobile-buy-bar .btn:disabled { background: #9ca3af; }
    body.product-page { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
    body.product-page .mobile-bottom-nav { display: none; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .product-card { border-radius: var(--radius-sm); }
    .product-card .img-wrap { padding-bottom: 100%; }
    .product-card .info { padding: 8px; }
    .product-card h3 {
        font-size: 13px;
        line-height: 18px;
        height: 36px;
        margin-bottom: 6px;
    }
    .product-card .price { font-size: 15px; }
    .product-card .price:before { font-size: 11px; }
    .product-card .meta { display: none; }

    .floor-goods { grid-template-columns: 1fr; gap: 0; margin-top: 14px; border-radius: var(--radius-sm); }
    .floor-left {
        padding: 12px 14px;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px 12px;
    }
    .floor-left-title {
        font-size: 15px;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        min-width: auto;
    }
    .floor-left-list { flex-direction: row; flex-wrap: wrap; gap: 6px 10px; }
    .floor-left-list a { font-size: 12px; padding: 0; }
    .floor-right { grid-template-columns: repeat(2, 1fr); padding: 10px; gap: 8px; }
    .floor-right .product-card .img-wrap { padding-bottom: 100%; }

    .home-category-section { padding: 12px; margin-top: 18px; border-radius: var(--radius-sm); }
    .home-category-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .home-category-card { padding: 14px 4px; border-radius: var(--radius-xs); }
    .home-category-card strong { font-size: 13px; margin-bottom: 2px; }
    .home-category-card span { font-size: 11px; }

    .footer-content { grid-template-columns: 1fr 1fr; gap: 12px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-brand h3 { font-size: 16px; }
    .footer-brand p { font-size: 12px; }
    .footer-links-col { padding-left: 0; }
    .footer-links-col h4 { font-size: 13px; margin-bottom: 10px; }
    .footer-links-col a, .footer-links-col span { line-height: 22px; font-size: 12px; }
    .site-footer { padding: 22px 0 90px; }
    .footer-bottom { margin-top: 18px; padding: 14px 0; font-size: 11px; }
    .footer-bottom-inner { flex-direction: column; gap: 6px; text-align: center; }
    .footer-meta { justify-content: center; }

    .back-to-top { bottom: 80px; right: 14px; width: 40px; height: 40px; }
}

@media (max-width: 380px) {
    .product-grid { gap: 6px; }
    .floor-right { grid-template-columns: repeat(2, 1fr); }
    .home-category-grid { grid-template-columns: repeat(2, 1fr); }
    .mobile-nav { width: 82vw; }
}
