/* 行业商城前台 - 仿 zgzszxhy.top 橙色风格 */
:root {
    --primary: #E6A23C;        /* 主橙色 */
    --primary-dark: #d48b1a;
    --primary-light: #fff4e0;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --border: #e8e8e8;
    --bg: #f5f5f5;
    --white: #fff;
    --red: #e74c3c;
    --green: #27ae60;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Microsoft YaHei", -apple-system, sans-serif; color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.6; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
ul, li { list-style: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 12px; }

/* 顶部信息条 */
.top-info {
    background: #f5f5f5;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    line-height: 30px;
}
.top-info .container { display: flex; justify-content: space-between; }
.top-info .stats span { margin-right: 16px; }
.top-info .top-right a { color: var(--text-muted); margin-left: 16px; }
.top-info .top-right a:hover { color: var(--primary); }

/* 头部 */
.header {
    background: var(--white);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-link { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, #C9A96E 0%, #B8985C 100%);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(201,169,110,0.3);
    overflow: hidden;
}
.logo-icon img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.logo-text { font-size: 24px; font-weight: bold; color: var(--primary); }
.search-box { flex: 1; max-width: 540px; margin-left: 60px; }
.search-box form { display: flex; border: 2px solid var(--primary); border-radius: var(--radius); overflow: hidden; }
.search-box input { flex: 1; padding: 10px 14px; border: none; outline: none; font-size: 14px; }
.search-box button { background: var(--primary); color: white; border: none; padding: 0 24px; cursor: pointer; font-size: 14px; }
.search-box button:hover { background: var(--primary-dark); }

/* 导航 */
.navbar {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    margin-bottom: 12px;
}
.nav-links { display: flex; }
.nav-links li a {
    display: block; color: white;
    padding: 12px 20px; font-size: 15px;
    transition: background 0.2s;
}
.nav-links li a:hover, .nav-links li a.active { background: rgba(0,0,0,0.15); color: white; }

/* 主体三栏 */
.main-content { display: grid; grid-template-columns: 220px 1fr 220px; gap: 12px; margin-bottom: 16px; align-items: stretch; }

/* 左分类 */
.category-box { background: var(--primary); border-radius: var(--radius); padding-bottom: 8px; display: flex; flex-direction: column; overflow: hidden; min-height: 380px; }
.category-title { color: white; padding: 10px 14px; font-size: 16px; font-weight: bold; border-bottom: 1px solid rgba(255,255,255,0.2); }
.category-list { padding: 4px 0; flex: 1; overflow-y: auto; min-height: 0; }
.category-list li a {
    display: block; padding: 9px 16px; color: rgba(255,255,255,0.85);
    text-decoration: none; font-size: 14px;
    border-radius: 6px;
    margin: 2px 8px;
    transition: all 0.2s;
    display: flex; align-items: center; gap: 8px;
}
.category-list li:hover { background: var(--primary-dark); }
.category-list li a { display: block; color: white !important; padding: 10px 16px; font-size: 14px; }
.category-list li a i { margin-right: 8px; }
.category-list .loading { color: rgba(255,255,255,0.7); padding: 12px 16px; }

/* 轮播 */
\.slider-container {
    background: var(--white); border-radius: var(--radius);
    position: relative; overflow: hidden; box-shadow: var(--shadow);
    width: 100%; height: 100%; min-height: 380px;
    display: flex; align-items: stretch; justify-content: stretch;
}
.slider { width: 100%; height: 100%; position: relative; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.default-slide { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; color: white; opacity: 1; }
.slide-content h2 { font-size: 32px; margin-bottom: 12px; }
.slide-content p { font-size: 16px; opacity: 0.9; }
.slider-nav { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: 0.2s; }
.slider-dot.active { background: white; width: 24px; border-radius: 5px; }

/* 右广告 */
.ad-box { display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 380px; }
.ad-item { background: var(--white); padding: 12px; border-radius: var(--radius); box-shadow: var(--shadow); flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.ad-item h3 { color: var(--primary); margin-bottom: 8px; font-size: 16px; }
.ad-item p { color: var(--text-light); font-size: 12px; }
.ad-item.ad-image { background: linear-gradient(135deg, #ffd180, var(--primary)); color: white; align-items: center; justify-content: center; flex: 1.5; }
.ad-item.ad-image i { font-size: 80px; }

/* 行业精选 */
.ad-scroll-section { margin-bottom: 16px; }
.section-title { font-size: 18px; padding: 12px 0; border-left: 4px solid var(--primary); padding-left: 12px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.section-title .more-link { font-size: 13px; color: var(--text-muted); border: none; padding: 0; }
.ad-scroll-container { background: var(--white); border-radius: var(--radius); padding: 12px; overflow: hidden; }
.ad-scroll-track { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.ad-scroll-item { position: relative; height: 100px; border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform 0.2s; }
.ad-scroll-item:hover { transform: translateY(-2px); }
.ad-scroll-item img { width: 100%; height: 100%; object-fit: cover; }
.ad-scroll-item .placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #f5d28e, var(--primary)); display: flex; align-items: center; justify-content: center; color: white; font-size: 36px; }
.ad-scroll-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.6); color: white; padding: 6px 8px; font-size: 13px; text-align: center; }

/* 品牌区 */
.brand-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; padding: 32px; border-radius: var(--radius);
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
}
.brand-banner h2 { font-size: 26px; }
.apply-btn { background: white; color: var(--primary); padding: 10px 24px; border-radius: 999px; font-weight: bold; transition: 0.2s; }
.apply-btn:hover { background: rgba(255,255,255,0.9); transform: translateX(4px); }

/* 商品区 */
.product-section { background: var(--white); padding: 16px; border-radius: var(--radius); margin-bottom: 16px; box-shadow: var(--shadow); }
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 12px; }
.product-card {
    border: 1px solid #EAEAEA;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #FFD0B0;
}
.product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); border-color: var(--primary); }
.product-image { width: 100%; aspect-ratio: 1; overflow: hidden; background: #FAFAFA; position: relative; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-image img { transform: scale(1.06); }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 10px; }
.product-title { font-size: 13px; line-height: 1.4; color: var(--text); height: 36px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-price {
    color: #FF6B35;
    font-size: 19px;
    font-weight: bold;
    margin: 8px 0 4px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.product-price small { font-size: 12px; }
.product-origin { color: var(--text-muted); font-size: 12px; text-decoration: line-through; }
.product-actions { display: flex; gap: 6px; margin-top: 6px; }
.product-btn {
    flex: 1;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: #fff;
    padding: 6px;
    text-align: center;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}
.product-btn:hover { color: white; background: var(--primary-dark); }
.product-btn.outlined {
    background: #F5F5F5 !important;
    color: #999 !important;
    flex: 0 0 50px;
    font-size: 11px;
}

/* 资讯 */
.news-section { background: var(--white); padding: 16px; border-radius: var(--radius); margin-bottom: 16px; box-shadow: var(--shadow); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card { display: flex; gap: 12px; padding: 8px; border-radius: var(--radius); transition: 0.2s; }
.news-card:hover { background: #fafafa; }
.news-cover { width: 120px; height: 80px; flex-shrink: 0; background: var(--primary-light); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 28px; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-info h3 { font-size: 14px; line-height: 1.4; margin-bottom: 6px; height: 40px; overflow: hidden; }
.news-meta { color: var(--text-muted); font-size: 12px; }

/* 商家 */
.merchants-section { background: var(--white); padding: 16px; border-radius: var(--radius); margin-bottom: 16px; box-shadow: var(--shadow); }
.merchants-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.merchant-card { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); text-align: center; transition: 0.2s; }
.merchant-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.merchant-logo { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 28px; overflow: hidden; }
.merchant-logo img { width: 100%; height: 100%; object-fit: cover; }
.merchant-name { font-weight: bold; margin-bottom: 4px; font-size: 14px; }
.merchant-meta { color: var(--text-muted); font-size: 12px; }

/* 城市 */
.cities-section { background: var(--white); padding: 16px; border-radius: var(--radius); margin-bottom: 16px; box-shadow: var(--shadow); }
.cities-grid { display: flex; flex-direction: column; gap: 12px; }
.city-tier { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.city-tier-label { flex: 0 0 56px; font-weight: 600; color: var(--text); font-size: 13px; }
.city-tag { display: inline-block; padding: 5px 14px; text-align: center; border-radius: 4px; background: var(--primary-light); color: var(--text); font-size: 13px; transition: 0.2s; cursor: pointer; text-decoration: none; }
.city-tag:hover { background: var(--primary); color: #fff; }
.city-tag.active { background: var(--primary); color: #fff; font-weight: 600; }

/* 底部 */
.footer { background: #2c2c2c; color: #999; padding: 24px 0; margin-top: 32px; text-align: center; font-size: 13px; }
.footer p { margin: 4px 0; }
.footer #footer-name { color: var(--primary); }

/* 响应式 */
@media (max-width: 1024px) {
    .main-content { grid-template-columns: 200px 1fr; }
    .ad-box { display: none; }
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .ad-scroll-track { grid-template-columns: repeat(4, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .merchants-grid { grid-template-columns: repeat(3, 1fr); }
    .cities-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 768px) {
    .header { flex-direction: column; gap: 12px; padding: 12px 0; }
    .search-box { margin-left: 0; max-width: 100%; width: 100%; }
    .nav-links { overflow-x: auto; }
    .nav-links li a { padding: 10px 14px; white-space: nowrap; }
    .main-content { grid-template-columns: 1fr; grid-template-areas: 'slider' 'cat' 'ad'; }
.main-content .slider-container { grid-area: slider; }
.main-content .category-box { grid-area: cat; }
.main-content .ad-box { grid-area: ad; }
.category-box { min-height: auto !important; }
.ad-box { min-height: auto !important; }
    .category-box { display: flex; flex-direction: column; }
    .slider-container { height: 200px; min-height: 180px; }
    .slide-content h2 { font-size: 22px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .ad-scroll-track { grid-template-columns: repeat(3, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .merchants-grid { grid-template-columns: repeat(2, 1fr); }
    .cities-grid { grid-template-columns: repeat(4, 1fr); }
    .brand-banner { padding: 20px; flex-direction: column; gap: 12px; text-align: center; }
}

/* 空状态 */
.empty { padding: 40px; text-align: center; color: var(--text-muted); }

/* 商品列表/详情/资讯/商家页通用 */
.page-wrap { background: var(--white); padding: 20px; border-radius: var(--radius); margin-bottom: 16px; box-shadow: var(--shadow); }
.breadcrumb { padding: 10px 0; color: var(--text-muted); font-size: 13px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 6px; }

.product-detail { display: grid; grid-template-columns: 480px 1fr; gap: 24px; }
.product-detail-image { background: #fafafa; border-radius: var(--radius); aspect-ratio: 1; overflow: hidden; }
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info h1 { font-size: 22px; line-height: 1.4; margin-bottom: 12px; }
.product-detail-price { background: linear-gradient(to right, var(--primary-light), white); padding: 16px; border-radius: var(--radius); margin: 16px 0; }
.product-detail-price .price { color: var(--red); font-size: 32px; font-weight: bold; }
.product-detail-price .price small { font-size: 16px; }
.product-detail-price .origin { color: var(--text-muted); text-decoration: line-through; margin-left: 12px; }
.product-detail-buy { background: var(--red); color: white; padding: 14px 36px; border-radius: var(--radius); font-size: 16px; font-weight: bold; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: none; }
.product-detail-buy:hover { background: #c0392b; color: white; }
.product-detail-buy.secondary { background: var(--primary); }
.product-detail-buy.secondary:hover { background: var(--primary-dark); }
.product-detail-tags { display: flex; gap: 8px; margin-top: 12px; }
.product-detail-tags span { background: var(--primary-light); color: var(--primary); padding: 4px 12px; border-radius: 3px; font-size: 12px; }

.list-filter { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.list-filter a { padding: 6px 14px; border-radius: 3px; }
.list-filter a.active { background: var(--primary); color: white; }

.pagination { display: flex; justify-content: center; gap: 4px; padding: 20px 0; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--border); border-radius: 3px; color: var(--text); cursor: pointer; }
.pagination .active { background: var(--primary); color: white; border-color: var(--primary); }


/* ============== 2026-06-18 移动端深度适配 ============== */
@media (max-width: 768px) {
    /* 首页三栏在手机变单列时,banner 高度收缩 */
    .slider-container { height: auto; min-height: 180px; }
    .category-box { padding-bottom: 4px; }
    .category-list { max-height: 240px; }

    /* 商品详情页 */
    .product-detail { display: block !important; padding: 12px !important; }
    .product-detail-img { width: 100% !important; max-width: 100% !important; height: auto !important; margin-bottom: 14px; }
    .product-detail-info { width: 100% !important; padding: 0 !important; }
    .product-detail h1, .product-detail-title { font-size: 17px !important; line-height: 1.5; }
    .product-detail-buy { width: 100%; padding: 14px 0 !important; font-size: 16px; justify-content: center; box-sizing: border-box; }
    .product-detail-buy + button, .product-detail-info button { width: 100%; margin-top: 8px; box-sizing: border-box; justify-content: center; }
    .product-detail-info > div { flex-wrap: wrap; }

    /* 服务承诺缩成 3 列 */
    .service-promise { grid-template-columns: repeat(3, 1fr) !important; gap: 6px !important; padding: 10px !important; }
    .promise-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    text-align: center;
    flex-direction: column;
    transition: all 0.2s;
}
.promise-item:hover { transform: translateY(-2px); }
.promise-item i {
    font-size: 22px;
    color: #C9A96E;
    transition: transform 0.3s;
}
.promise-item:hover i { transform: scale(1.15); }
    .promise-item i { font-size: 18px !important; }
    .promise-item h4 { font-size: 12px !important; }
    .promise-item span { font-size: 10px !important; }

    /* 秒杀/榜单 */
    .seckill-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .ranking-grid { grid-template-columns: repeat(2, 1fr) !important; }

    /* 顶部 stats 信息条 */
    .top-info .stats { font-size: 11px; }

    /* 容器边距收紧 */
    .container { padding: 0 8px; }

    /* 列表筛选栏 */
    .filter-bar { flex-wrap: wrap; gap: 6px; }

    /* 表单/弹窗 */
    #order-modal > div { width: 94vw !important; max-width: 94vw !important; }
}

@media (max-width: 480px) {
    .nav-links li a { padding: 9px 10px; font-size: 13px; }
    .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    .seckill-grid, .ranking-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    .ad-scroll-track { grid-template-columns: repeat(2, 1fr) !important; }
    .news-grid { grid-template-columns: 1fr !important; }
    .cities-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .merchants-grid { grid-template-columns: 1fr !important; }
    .section-title { font-size: 16px; }
    .brand-banner { padding: 16px !important; }
    .brand-banner h2 { font-size: 17px; }
    .product-detail h1, .product-detail-title { font-size: 16px !important; }
    .product-detail .price, .product-detail-price { font-size: 22px !important; }
}

/* 触摸友好 — 全平台 */
button, .btn, .product-detail-buy, .nav-links a { -webkit-tap-highlight-color: rgba(0,0,0,0.1); touch-action: manipulation; }


/* 右侧广告增强 */















/* ============== 移动端底部 Tab Bar (2026-06-18) ============== */
.mobile-tabbar { display: none; }
.mobile-tabbar-spacer { display: none; }

@media (max-width: 768px) {
    .mobile-tabbar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: #fff;
        border-top: 1px solid #eaeaea;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
        z-index: 9998;
        padding-bottom: env(safe-area-inset-bottom, 0); /* iOS 全面屏适配 */
    }
    .mobile-tabbar .tabbar-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        text-decoration: none;
        color: #999;
        font-size: 11px;
        padding: 6px 0;
        transition: color 0.2s;
    }
    .mobile-tabbar .tabbar-item i {
        font-size: 19px;
        line-height: 1;
    }
    .mobile-tabbar .tabbar-item.active {
        color: #C9A96E;  /* 暖金色 — 与品牌色一致 */
    }
    .mobile-tabbar .tabbar-item.active i {
        transform: translateY(-1px);
    }
    .mobile-tabbar .tabbar-item:active {
        background: #f5f5f5;
    }
    /* 占位 — 防止 tab 遮住底部内容 */
    .mobile-tabbar-spacer {
        display: block;
        height: calc(56px + env(safe-area-inset-bottom, 0));
    }
    /* 原 footer 在手机端简化 */
    .footer { padding-bottom: 16px; }
}


/* ========== 满减促销卡(暖橙红主题) ========== */
.ad-promo {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: #fff;
    position: relative;
    padding: 22px 18px 20px !important;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(255,107,53,0.25);
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.ad-promo::after {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 120px; height: 120px;
    background: rgba(255,255,255,0.10);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.ad-promo-tag {
    display: inline-block;
    background: #fff;
    color: #FF6B35;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin: 0 0 12px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    z-index: 2;
    position: relative;
}
.ad-promo h3 {
    color: #fff !important;
    font-size: 19px !important;
    font-weight: bold;
    margin-bottom: 14px !important;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    z-index: 1;
}
.ad-promo-line {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 500;
    margin: 6px 0 !important;
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
    z-index: 1;
}
.ad-promo-line::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #FFE66D;
    font-weight: bold;
    font-size: 13px;
}
.ad-promo-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 9px 20px;
    background: #fff;
    color: #FF6B35 !important;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1;
}
.ad-promo-btn:hover {
    background: #FFE66D;
    color: #D34A00 !important;
    transform: translateY(-1px);
}

/* ========== 信任特性卡(图标横排) ========== */
.ad-feature {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px;
    align-items: center;
    padding: 14px !important;
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
}
.ad-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: #C9A96E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(44,62,80,0.15);
}
.ad-feature-text { flex: 1; min-width: 0; }
.ad-feature-text h3 {
    font-size: 14px !important;
    margin-bottom: 4px !important;
    color: #2C3E50 !important;
    font-weight: 600;
}
.ad-feature-text p {
    font-size: 12px !important;
    color: #6c757d !important;
    line-height: 1.5;
    margin: 1px 0;
}


/* ============== 整站视觉升级 (2026-06-18) ============== */

/* 6 大保障区 */
.service-promise {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%) !important;
    border-radius: 12px;
    padding: 18px 12px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}
.promise-item h4 { color: #2C3E50 !important; font-weight: 600; }
.promise-item span { color: #888 !important; }

/* 限时秒杀区 */
.seckill-section {
    background: linear-gradient(135deg, #FFF5F0 0%, #FFFFFF 100%);
    border-radius: 12px;
    padding: 20px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}
.seckill-head h2 { color: #FF6B35 !important; font-weight: bold; }
.seckill-head h2 i { color: #FF6B35; }
.countdown span {
    background: #2C3E50; color: #fff;
    padding: 3px 8px; border-radius: 4px;
    font-weight: bold;
}
.more-link { color: #999 !important; }
.more-link:hover { color: #FF6B35 !important; }

/* 商城品牌区 */
.brand-banner {
    background: linear-gradient(135deg, #2C3E50 0%, #C9A96E 100%) !important;
    color: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
}
.brand-banner h2 { color: #fff !important; }
.apply-btn { background: #fff !important; color: #2C3E50 !important; }

/* 区块标题通用 */
.section-title { color: #2C3E50 !important; font-weight: 600; }
.section-title .sub { color: #999 !important; font-weight: normal; font-size: 13px; margin-left: 8px; }

/* 通用 section 卡片化 */
.ranking-section, .brand-zone, .news-section, .merchants-section, .cities-section {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin-bottom: 18px;
}

/* 商品分区容器 */
.product-sections > div {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin-bottom: 16px;
}

/* 商品卡片悬停效果 */
.product-card { transition: transform 0.2s, box-shadow 0.2s; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }

/* 全局按钮悬停 */
button, .btn { transition: all 0.2s; }

/* 广告滚动条 */
.ad-scroll-section {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin-bottom: 18px;
}
.ad-scroll-item { background: #F8F9FA; border-radius: 8px; padding: 12px 8px; transition: all 0.2s; }
.ad-scroll-item:hover { background: #FFF5F0; transform: translateY(-1px); }

/* 顶部条 */
.top-info { background: #2C3E50; color: rgba(255,255,255,0.7); }

/* 导航条 */
.navbar { background: linear-gradient(180deg, #2C3E50 0%, #243342 100%); box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.nav-links li a:hover { color: #C9A96E !important; }
.nav-links li a.active { color: #C9A96E !important; }

/* 分类栏 */
.category-box { background: linear-gradient(180deg, #2C3E50 0%, #34495E 100%) !important; }
.category-title { color: #C9A96E !important; }
.category-list li a { color: rgba(255,255,255,0.85) !important; }
.category-list li a:hover { color: #C9A96E !important; background: rgba(201,169,110,0.1) !important; }

/* 轮播图 */
.slider-container { box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important; }

/* 底部 */
.footer { background: linear-gradient(180deg, #2C3E50 0%, #1a2530 100%) !important; color: rgba(255,255,255,0.7) !important; }
.footer a { color: rgba(255,255,255,0.6) !important; }
.footer a:hover { color: #C9A96E !important; }

/* 移动端 tabbar 阴影升级 */
.mobile-tabbar { box-shadow: 0 -2px 12px rgba(0,0,0,0.08) !important; }


/* ============== 滚动公告条 (2026-06-18) ============== */
.announcement-bar {
    background: linear-gradient(90deg, #FF6B35 0%, #F7931E 100%);
    color: #fff;
    height: 36px;
    overflow: hidden;
    position: relative;
    font-size: 13px;
}
.announcement-bar .container {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 10px;
}
.announcement-bar i.fa-bullhorn { color: #FFE66D; font-size: 14px; }
.ann-tag {
    background: rgba(255,255,255,0.25);
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    flex-shrink: 0;
}
.ann-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
}
.ann-item {
    display: inline-block;
    white-space: nowrap;
    padding: 0 40px;
    line-height: 36px;
    color: #fff;
}
.ann-track { animation: ann-scroll 35s linear infinite; }
@keyframes ann-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.announcement-bar:hover .ann-track { animation-play-state: paused; }

/* 移动端简化 */
@media (max-width: 768px) {
    .announcement-bar { font-size: 12px; height: 32px; }
    .ann-item { line-height: 32px; padding: 0 30px; }
    .ann-tag { font-size: 10px; padding: 1px 8px; }
}

/* ============== 升级 footer QR 位 (2026-06-18) ============== */
.footer-qr {
    text-align: center;
}
.footer-qr h4 {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    margin-bottom: 12px;
}
.qr-placeholder {
    width: 90px; height: 90px;
    margin: 0 auto;
    background: #fff;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #2C3E50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.qr-placeholder i {
    font-size: 42px;
    color: #07C160;  /* 微信绿 */
    margin-bottom: 2px;
}
.qr-placeholder p {
    font-size: 10px;
    color: #666;
    margin: 0;
}
.footer-pillars { gap: 30px !important; }
.footer-pillars .footer-col { min-width: 100px; }

.product-detail-rating {
    margin: 10px 0;
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 8px;
}
.product-detail-rating .stars { color: #FFB800; font-size: 14px; letter-spacing: 1px; }
.product-detail-rating .rating-num { color: #FF6B35; font-weight: bold; }
.product-detail-rating .rating-sep { color: #ddd; }
.product-detail-rating .sales-info b, .product-detail-rating .comment-info b {
    color: #FF6B35; font-weight: bold;
}


/* ============== 2026-06-20 布局修复 (按钮换行/横条/筛选栏) ============== */

/* 1. 修"立即购买"换行: 主按钮单行不挤, "包邮"缩成小徽章 */
.product-actions { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.product-btn {
    flex: 1 1 auto;
    white-space: nowrap;
    padding: 7px 4px;
    border-radius: 6px;
    font-size: 13px;
}
.product-btn.outlined {
    flex: 0 0 auto !important;
    width: auto !important;
    padding: 7px 10px !important;
    border-radius: 6px !important;
    background: #FFF3EC !important;
    color: #FF6B35 !important;
    border: 1px solid #FFD0B0 !important;
    font-size: 11px !important;
}

/* 2. 筛选栏: 横向可换行, 不再竖排挤压 */
.list-filter {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 14px 0 !important;
    align-items: center;
}
.list-filter a, .list-filter .cat-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px !important;
    border-radius: 18px !important;
    background: #F5F5F5;
    color: #555;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s;
}
.list-filter a:hover { background: #FFE8DC; color: #FF6B35; }
.list-filter a.active, .list-filter .cat-link.active {
    background: var(--primary, #FF6B35) !important;
    color: #fff !important;
}

/* 3. page-wrap 撑满, 商品区不再头重脚轻 */
.page-wrap { min-height: 60vh; }

/* 4. 商品网格在 PC 端固定 5 列, 间距均匀 */
.product-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }

/* 5. 手机端: 2 列商品 + 筛选横滑 */
@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .list-filter {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 10px 0 !important;
    }
    .list-filter a { flex-shrink: 0; font-size: 13px; padding: 6px 12px !important; }
    .product-btn { font-size: 12px; padding: 8px 4px; }
    .product-btn.outlined { padding: 8px 8px !important; }
    .product-title { font-size: 12px !important; }
    .product-price { font-size: 17px !important; }
    /* 顶部公告横条压矮 */
    .announcement-bar { height: 30px !important; }
    .ann-item { line-height: 30px !important; }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
