/* storev2 炫酷商城模板样式 */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --dark-lighter: #334155;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #f59e0b 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-accent: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.5);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* 动态背景粒子 */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    overflow: hidden;
}

.particles-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(5%, 5%) rotate(120deg); }
    66% { transform: translate(-5%, -5%) rotate(240deg); }
}

/* 顶部导航 */
.storev2-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.85rem 1rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.storev2-header .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.storev2-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    flex-shrink: 0;
}

.storev2-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    -webkit-text-fill-color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* 搜索框 */
.storev2-search {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.storev2-search input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s;
}

.storev2-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 4px 20px rgba(99, 102, 241, 0.15);
    background: rgba(255, 255, 255, 0.12);
}

.storev2-search input::placeholder {
    color: var(--text-muted);
}

.storev2-search .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.3s;
}

.storev2-search input:focus ~ .search-icon {
    color: var(--primary);
}

.storev2-search .search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.45rem 1.1rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.storev2-search .search-btn:hover {
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.5);
    transform: translateY(-50%) scale(1.05);
}

/* 头部操作 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.header-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text);
    text-decoration: none;
    position: relative;
    transition: all 0.3s;
}

.header-action-btn:hover {
    background: var(--glass-border);
    transform: translateY(-2px);
}

.header-action-btn .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* 主容器 */
.storev2-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* 轮播图 */
.storev2-banner {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--glass-border);
    position: relative;
    background: var(--dark-light);
}

.storev2-banner .swiper-container {
    width: 100%;
    aspect-ratio: 21 / 8;
    overflow: hidden;
}

/* 轮播图自适应高度模式 */
.storev2-banner.banner-auto-height .swiper-container {
    aspect-ratio: auto;
}

.storev2-banner.banner-auto-height .swiper-slide {
    height: auto;
}

.storev2-banner.banner-auto-height .swiper-slide a {
    display: block;
    width: 100%;
}

.storev2-banner.banner-auto-height .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.storev2-banner .swiper-wrapper {
    display: flex;
    height: 100%;
}

.storev2-banner .swiper-slide {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
    height: 100%;
}

.storev2-banner .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.storev2-banner .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.storev2-banner .swiper-slide img.fit-contain {
    object-fit: contain;
    background: var(--dark-light);
}

.storev2-banner .swiper-slide img.fit-fill {
    object-fit: fill;
}

.storev2-banner .swiper-slide:hover img {
    transform: scale(1.02);
}

.storev2-banner .swiper-pagination {
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.storev2-banner .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    width: 8px;
    height: 8px;
    transition: all 0.3s;
    margin: 0 4px;
    border-radius: 4px;
}

.storev2-banner .swiper-pagination-bullet-active {
    background: #fff;
    width: 24px;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* 公告栏 */
.storev2-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.storev2-notice .notice-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.storev2-notice .notice-content {
    flex: 1;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.storev2-notice .notice-content a {
    color: var(--accent);
    text-decoration: none;
}

/* 分类导航 */
.storev2-categories {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.category-grid {
    display: block;
}

.category-page {
    width: 100%;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    padding: 0.85rem 0.5rem;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text);
    position: relative;
    overflow: hidden;
    min-height: 100px;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 14px;
}

.category-item:hover::before {
    opacity: 0.15;
}

.category-item:hover {
    transform: translateY(-4px);
}

.category-item.active {
    background: var(--gradient-primary);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.category-item.active::before {
    opacity: 0;
}

.category-item .cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.category-item:hover .cat-icon {
    transform: scale(1.1);
}

.category-item.active .cat-icon {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category-item .cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-item .cat-name {
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.3;
    color: var(--text-muted);
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.category-item.active .cat-name {
    color: white;
    font-weight: 600;
}

/* 分类分页器 */
.category-pagination {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1rem;
}

.category-pagination .page-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--glass-border);
    transition: all 0.3s;
}

.category-pagination .page-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
}

/* 商品排序栏 */
.storev2-sort {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.sort-tabs {
    display: flex;
    gap: 1.75rem;
}

.sort-tab {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
}

.sort-tab:hover {
    color: var(--text);
    background: var(--glass-border);
}

.sort-tab.active {
    color: var(--primary);
    font-weight: 700;
}

.sort-tab.active .sort-arrows .arrow.active {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

.sort-tab .sort-arrows {
    display: flex;
    flex-direction: column;
    font-size: 0.6rem;
    line-height: 1;
}

.sort-tab .sort-arrows .arrow {
    opacity: 0.4;
}

.sort-tab.active .sort-arrows .arrow.active {
    opacity: 1;
    color: var(--primary);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-toggle button {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 商品列表 */
.goods-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.goods-list.list-view {
    grid-template-columns: 1fr;
}

/* layui flow 加载和结束提示 */
.layui-flow-more {
    text-align: center !important;
    width: 100%;
    padding: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    grid-column: 1 / -1;
}

.layui-flow-more cite {
    color: var(--text-muted) !important;
    font-style: normal;
    padding: 0.5rem 1.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: inline-block;
}

/* “加载更多”按钮：与模板渐变风格一致
 * 注意 layui 原生结构为 <a><cite>加载更多</cite></a>，
 * layui.css 用 .layui-flow-more a cite 给 cite 上了白底，
 * 必须用同等/更高选择器把 cite 改成透明，否则白块会盖在按钮上 */
.layui-flow-more a {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    line-height: 1.5 !important;
    padding: 0 !important;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #ec4899) !important;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(124, 58, 237, .4);
    border: 1px solid rgba(255, 255, 255, .14);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.layui-flow-more a:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
    box-shadow: 0 12px 30px rgba(236, 72, 153, .45);
}

.layui-flow-more a cite {
    display: inline-block !important;
    width: auto !important;
    padding: 0.72rem 3rem !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 999px;
    color: #fff !important;
    font-size: 0.92rem;
    font-weight: 600;
    font-style: normal;
    letter-spacing: 1px;
    line-height: 1.5 !important;
}

/* 自动加载中的转圈提示（layui 插入空 cite） */
.layui-flow-more cite:empty {
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 3px solid rgba(255, 255, 255, .14) !important;
    border-top-color: #a78bfa !important;
    border-radius: 50% !important;
    animation: sv2FlowSpin .85s linear infinite;
}

@keyframes sv2FlowSpin {
    to { transform: rotate(360deg); }
}

.goods-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    display: block;
    position: relative;
}

.goods-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.goods-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--primary);
    border-color: var(--primary);
}

.goods-card:hover::before {
    opacity: 1;
}

.goods-card .goods-img {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--dark-light);
}

.goods-card .goods-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.goods-card:hover .goods-img img {
    transform: scale(1.08);
}

.goods-card .goods-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    background: linear-gradient(135deg, #ec4899, #f59e0b);
    color: white;
    font-size: 0.65rem;
    border-radius: 6px;
    font-weight: 700;
    transform: rotate(-3deg);
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.4);
    z-index: 2;
}

/* 新品标签（左下角，与折扣标签/销量角标互不冲突） */
.goods-card .goods-tag-new {
    top: auto;
    left: 10px;
    bottom: 10px;
    transform: none;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.goods-card .goods-sold {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 2px;
}

/* 自定义标签（右上角竖排：自营/代理等） */
.goods-card .goods-custom-tags {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    z-index: 2;
    pointer-events: none;
}

.goods-card .goods-custom-tag {
    padding: 3px 9px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 6px 6px 6px 0;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.45);
    letter-spacing: 0.5px;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.goods-card .goods-sold i {
    color: #f59e0b;
}

.goods-card .goods-out {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 3;
    letter-spacing: 2px;
}

.goods-card .goods-info {
    padding: 0.75rem;
}

.goods-card .goods-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
    line-height: 1.2;
}

.goods-card .goods-stock {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.goods-card .goods-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.goods-card .price-box {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.goods-card .goods-price {
    color: var(--danger);
    font-weight: 700;
    font-size: 1rem;
}

.goods-card .goods-price .symbol {
    font-size: 0.7rem;
}

.goods-card .goods-original-price {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-decoration: line-through;
    opacity: 0.7;
}

.goods-card .buy-btn {
    padding: 0.35rem 0.85rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.7rem;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.goods-card .buy-btn:hover {
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.5);
    transform: scale(1.08);
}

.goods-card .buy-btn.out {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    box-shadow: none;
}

.goods-card .buy-btn.free {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* 列表视图 */
.goods-list.list-view .goods-card {
    display: flex;
    flex-direction: row;
}

.goods-list.list-view .goods-card .goods-img {
    width: 120px;
    aspect-ratio: 1;
    flex-shrink: 0;
}

.goods-list.list-view .goods-card .goods-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 分类标题 */
.category-title {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.category-title span {
    color: var(--danger);
    font-weight: 700;
}

/* 加载状态 */
.loading-more {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.loading-more .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--glass-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 底部导航 */
.storev2-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
    z-index: 100;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    padding: 0.35rem 0.85rem;
    transition: all 0.3s;
    position: relative;
    border-radius: 12px;
}

.nav-item .nav-icon {
    font-size: 1.25rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
}

.nav-item .nav-icon .nav-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active .nav-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}

.nav-item .nav-badge {
    position: absolute;
    top: 0;
    right: 0.5rem;
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* 底部留白 */
.storev2-container {
    padding-bottom: 5rem;
}

/* 弹窗 */
.storev2-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.storev2-modal.show {
    display: flex;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.storev2-modal .modal-content {
    background: var(--dark-light);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.storev2-modal .modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.storev2-modal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

/* 页脚 */
.storev2-footer {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 2rem;
}

.storev2-footer a {
    color: var(--text-muted);
    text-decoration: none;
}

/* 响应式 */
@media (max-width: 1024px) {
    .storev2-container {
        padding: 0.75rem;
    }

    .storev2-banner .swiper-container {
        aspect-ratio: 16 / 7;
    }

    .goods-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .storev2-container {
        padding: 0.5rem;
    }

    .storev2-header .header-inner {
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
    }

    .storev2-logo .logo-text {
        display: none;
    }

    .storev2-banner {
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .storev2-banner .swiper-container {
        aspect-ratio: 16 / 9;
    }

    .storev2-notice {
        padding: 0.5rem 0.75rem;
        margin-bottom: 1rem;
    }

    .category-grid {
        gap: 0.4rem;
    }

    .category-item .cat-name {
        font-size: 0.7rem;
    }

    .goods-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .goods-card .goods-name {
        font-size: 0.8rem;
    }

    .goods-card .goods-price {
        font-size: 0.9rem;
    }

    .sort-tabs {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .storev2-bottom-nav {
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
    }
}

@media (max-width: 480px) {
    .storev2-container {
        padding: 0.4rem;
    }

    .storev2-banner .swiper-container {
        aspect-ratio: 2 / 1;
    }

    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .category-item .cat-icon {
        width: 40px;
        height: 40px;
    }

    .goods-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }

    .goods-card .goods-img {
        aspect-ratio: 1 / 1;
    }

    .storev2-header .storev2-search {
        flex: 1;
    }
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-lighter);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
