/* =====================================================================
   惠购导航 (HuiGou) 前台样式  -  原生 CSS，无第三方依赖
   ===================================================================== */

:root {
    --brand: #ff4d4f;
    --brand-2: #ff7a18;
    --green: #16a34a;
    --bg: #f5f6fa;
    --card: #ffffff;
    --text: #1f2329;
    --text-2: #4b5563;
    --muted: #8a9099;
    --line: #eef0f4;
    --radius: 14px;
    --shadow: 0 2px 12px rgba(20, 20, 40, .06);
    --shadow-hover: 0 10px 28px rgba(20, 20, 40, .12);
    --wrap: 1220px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
        "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; border: 0; vertical-align: middle; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
input, select, textarea, button { font-family: inherit; font-size: inherit; outline: none; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* ---------------------------- 顶部 ---------------------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 1px 0 var(--line);
}

.topbar-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
    width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; font-size: 22px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 77, 79, .35);
}
.logo-txt strong { display: block; font-size: 19px; letter-spacing: .5px; }
.logo-txt span { display: block; font-size: 11px; color: var(--muted); letter-spacing: 2px; }

/* 搜索 */
.search-wrap { flex: 1; position: relative; max-width: 560px; }
.search-box {
    display: flex;
    border: 2px solid var(--brand);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}
.search-box input {
    flex: 1;
    border: 0;
    padding: 9px 16px;
    font-size: 14px;
    background: transparent;
}
.search-box button {
    border: 0;
    padding: 0 26px;
    cursor: pointer;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.suggest {
    position: absolute;
    left: 0; right: 0; top: 44px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    display: none;
    z-index: 120;
}
.suggest.show { display: block; }
.suggest li { padding: 9px 16px; cursor: pointer; display: flex; justify-content: space-between; }
.suggest li:hover { background: #fff7f6; }
.suggest .sg-hot { color: var(--muted); font-size: 12px; }

.topbar-actions { display: flex; gap: 8px; align-items: center; }
.topbar-actions a.btn-line {
    border: 1px solid var(--line);
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--text-2);
    font-size: 13px;
}
.topbar-actions a.btn-line:hover { border-color: var(--brand); color: var(--brand); }
.topbar-actions a.btn-line.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.topbar-actions a.btn-solid { background: var(--brand); border-color: var(--brand); color: #fff; }
.topbar-actions a.btn-solid:hover { filter: brightness(1.06); color: #fff; }

/* ===================== 全部分类独立页（多级树） ===================== */
.catalog-tree { margin-top: 6px; }
.cat-dir { list-style: none; margin: 0; padding: 0; }
.cat-dir-root {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px 26px;
}
.cat-dir-root > .cat-dir-li {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px 16px;
    border: 1px solid var(--line);
}
.cat-dir-root > .cat-dir-li > .cat-dir-a {
    display: block;
    font-weight: 800;
    font-size: 16px;
    color: var(--brand);
    margin-bottom: 8px;
    padding: 0;
}
.cat-dir-root > .cat-dir-li > .cat-dir-a:hover { background: transparent; }
.cat-dir-emoji { margin-right: 6px; font-size: 17px; }
/* 子层级（缩进 + 虚线引导） */
.cat-dir .cat-dir {
    margin: 4px 0 2px 2px;
    padding-left: 12px;
    border-left: 1px dashed var(--line);
}
.cat-dir-a {
    display: inline-block;
    text-decoration: none;
    color: var(--text-2);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 13.5px;
    margin: 1px 0;
}
.cat-dir-a:hover { background: #f4f5f7; color: var(--brand); }
.cat-dir-li .cat-dir-a { color: var(--text); }
.cat-dir-li .cat-dir .cat-dir-a { font-size: 12.5px; color: #999; }
.catalog-foot {
    margin-top: 18px;
    padding: 14px 16px;
    background: color-mix(in srgb, var(--brand) 8%, #fff);
    border-radius: var(--radius);
    color: var(--text-2);
    font-size: 13.5px;
    line-height: 1.7;
}
.catalog-foot strong { color: var(--brand); }

/* 频道导航 */
.nav {
    background: #fff;
    border-top: 1px solid var(--line);
}
.nav-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a {
    padding: 11px 9px;
    font-size: 15px;
    color: var(--text-2);
    position: relative;
}
.nav-inner a:hover { color: var(--brand); }
.nav-inner a.active { color: var(--brand); font-weight: 700; }
.nav-inner a.active::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px; bottom: 0;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.nav-emoji { font-size: 16px; line-height: 1; }

/* 区块标题 */
.sec-title {
    font-size: 19px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sec-title::before {
    content: '';
    width: 5px; height: 18px; border-radius: 3px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.more-link { font-size: 13px; color: var(--muted); }
.more-link:hover { color: var(--brand); }

/* ---------------------------- 分类频道图标墙 ---------------------------- */
.cat-wall {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 18px 8px;
    margin: 20px 0;
}
.cat-wall-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 10px;
}
.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 8px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, #fff7f5);
    border: 1px solid var(--line);
    transition: .18s;
    text-align: center;
}
.cat-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(180deg, #fff, #fff0ec);
}
.cat-emoji {
    font-size: 30px;
    line-height: 1;
    filter: drop-shadow(0 4px 6px rgba(255, 90, 60, .18));
}
.cat-name {
    font-size: 13.5px;
    color: var(--text);
    font-weight: 600;
}

/* ---------------------------- Hero ---------------------------- */
.hero {
    background: linear-gradient(135deg, #fff1f0 0%, #fff7ed 55%, #f5f3ff 100%);
    border-bottom: 1px solid var(--line);
}
.hero-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 26px 16px 22px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.hero-txt { flex: 1; min-width: 260px; }
.hero-txt h1 {
    font-size: 26px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 6px;
}
.hero-txt p { margin: 0 0 14px; color: var(--text-2); }
.hero-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-stats div strong {
    display: block;
    font-size: 22px;
    color: var(--brand);
    font-weight: 800;
}
.hero-stats div span { font-size: 12px; color: var(--muted); }

/* 平台快链 */
.plat-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 0 2px;
}
.plat-item {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 14px 6px 6px;
    font-size: 13px;
    transition: .2s;
}
.plat-item:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.plat-dot {
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 13px; font-weight: 700;
}

/* ---------------------------- 主体布局 ---------------------------- */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    padding: 20px 0 40px;
    align-items: start;
}
.main-full { padding: 20px 0 40px; }

.panel {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 16px;
}
.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.panel-title h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.panel-title h2::before {
    content: '';
    width: 4px; height: 16px; border-radius: 3px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.panel-title .more { font-size: 13px; color: var(--muted); }

/* 筛选条 */
.filter-bar {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 0 4px;
}
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-label { color: var(--muted); font-size: 13px; flex-shrink: 0; }
.chip {
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text-2);
    font-size: 13px;
    transition: .15s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; border-color: transparent; font-weight: 600;
}

/* ---------------------------- 商品卡片 ---------------------------- */
.coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.coupon-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: .2s;
    display: flex;
    flex-direction: column;
    position: relative;
}
.coupon-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.card-pic { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #f7f8fb; }
.card-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-badge {
    position: absolute; left: 8px; top: 8px;
    color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(2px);
}
.pic-coupon {
    position: absolute; right: 0; top: 0;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; font-size: 12px; font-weight: 700;
    padding: 4px 10px;
    border-bottom-left-radius: 12px;
}
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.card-title {
    font-size: 13.5px;
    line-height: 1.45;
    height: 2.9em;
    overflow: hidden;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.card-shop { font-size: 12px; color: var(--muted); margin: 4px 0 6px; }
.price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price { color: var(--brand); font-weight: 800; font-size: 19px; }
.price i { font-size: 12px; font-style: normal; font-weight: 600; }
.origin { color: #b7bcc4; font-size: 12px; text-decoration: line-through; }
/* 无价返佣/入口类条目（如携程 H5 入口）：不显示 ¥0，改为展示副标题与返佣标签 */
.card-sub { font-size: 12px; color: var(--muted, #888); margin: 3px 0 6px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.affiliate-label { color: var(--brand, #2a90f2); font-weight: 700; font-size: 14px; }
.discount {
    background: #fff1f0; color: var(--brand);
    border: 1px solid #ffccc7; border-radius: 4px;
    font-size: 11px; padding: 0 5px; font-weight: 700;
}
.card-foot {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.sales { font-size: 12px; color: var(--muted); }
.btn-coupon {
    border: 0;
    cursor: pointer;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 4px 10px rgba(255, 90, 60, .28);
}
.btn-coupon:hover { filter: brightness(1.05); }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag {
    font-size: 11px; color: var(--brand);
    background: #fff5f5; border-radius: 4px; padding: 1px 6px;
}

/* ---------------------------- 分享栏 ---------------------------- */
.share-bar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin: 14px 0 4px;
}
.share-label { font-size: 13px; color: var(--text-2); font-weight: 600; }
.share-btn {
    border: 1px solid var(--line);
    background: #fff; color: var(--text-2);
    border-radius: 999px; padding: 5px 13px; font-size: 13px; cursor: pointer;
    transition: .15s;
}
.share-btn:hover { border-color: var(--brand); color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.top-flag {
    position: absolute; left: 0; bottom: 0; z-index: 2;
    background: rgba(0, 0, 0, .55); color: #ffd666;
    font-size: 11px; padding: 2px 8px; border-top-right-radius: 10px;
}

/* ---------------------------- 侧栏 ---------------------------- */
.side-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    margin-bottom: 16px;
}
.side-title {
    font-size: 15px; font-weight: 700; margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
}
.side-title::before {
    content: ''; width: 4px; height: 14px; border-radius: 3px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.rank-list li {
    display: flex; gap: 10px; align-items: center;
    padding: 8px 0; border-bottom: 1px dashed var(--line);
}
.rank-list li:last-child { border-bottom: 0; }
.rank-no {
    width: 20px; height: 20px; border-radius: 4px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #fff; background: #c9ced6;
}
.rank-list li:nth-child(1) .rank-no { background: var(--brand); }
.rank-list li:nth-child(2) .rank-no { background: #ff8c26; }
.rank-list li:nth-child(3) .rank-no { background: #ffb020; }
.rank-txt {
    flex: 1; font-size: 13px; line-height: 1.4;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rank-txt small { display: block; color: var(--muted); font-size: 11px; }

.hot-keywords { display: flex; flex-wrap: wrap; gap: 8px; }
.hot-keywords a {
    background: #f5f6fa; color: var(--text-2);
    padding: 4px 10px; border-radius: 999px; font-size: 12.5px;
}
.hot-keywords a:hover { background: #fff1f0; color: var(--brand); }

/* ---------------------------- 广告位 ---------------------------- */
.ad-slot { margin-bottom: 14px; position: relative; }
.ad-slot .ad-item { position: relative; }
.ad-slot img { width: 100%; display: block; border-radius: 10px; }
.ad-slot .ad-item img { border: 1px solid var(--line); }
.ad-slot-inline { margin: 0 0 16px; }
.ad-empty {
    border: 1px dashed #d4d8e0;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    background: #fbfbfd;
}
.ad-tag {
    position: absolute; right: 8px; bottom: 8px;
    background: rgba(0, 0, 0, .45); color: #fff;
    font-size: 11px; padding: 1px 8px; border-radius: 999px;
}
.ad-banner-wide img { max-height: 180px; object-fit: cover; }

/* ---------------------------- 分页 ---------------------------- */
.pagination {
    display: flex; gap: 8px; align-items: center; justify-content: center;
    padding: 22px 0 6px; flex-wrap: wrap;
}
.pagination a {
    padding: 6px 13px; border-radius: 8px;
    background: #fff; border: 1px solid var(--line); color: var(--text-2);
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .active {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; border-color: transparent; font-weight: 700;
}
.pagination .disabled { opacity: .45; cursor: not-allowed; }
.pagination .page-total { color: var(--muted); font-size: 13px; }

/* ---------------------------- 详情页 ---------------------------- */
.detail-grid {
    display: grid; grid-template-columns: 380px 1fr; gap: 26px;
}
.detail-pic {
    border-radius: var(--radius); overflow: hidden; background: #f7f8fb;
    box-shadow: var(--shadow);
}
.detail-pic img { width: 100%; display: block; }
.detail-info h1 { font-size: 22px; line-height: 1.45; margin-bottom: 10px; }
.detail-meta { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.price-panel {
    background: linear-gradient(135deg, #fff1f0, #fff7ed);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.price-panel .now-price { color: var(--brand); font-size: 34px; font-weight: 800; line-height: 1; }
.price-panel .now-price i { font-size: 16px; font-style: normal; }
.price-panel .old-price { color: var(--muted); font-size: 13px; }
.price-panel .detail-affiliate { color: var(--brand, #2a90f2); font-weight: 700; font-size: 20px; }
.coupon-box {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; border-radius: 10px; padding: 8px 16px; text-align: center;
}
.coupon-box strong { font-size: 22px; display: block; line-height: 1.2; }
.coupon-box span { font-size: 12px; opacity: .9; }
.detail-actions { display: flex; gap: 12px; margin: 20px 0; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border-radius: 999px; padding: 11px 26px; font-size: 15px; font-weight: 700;
    cursor: pointer; border: 0; transition: .2s;
}
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 6px 16px rgba(255, 90, 60, .3);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-outline { border: 1px solid var(--brand); color: var(--brand); background: #fff; }
.btn-outline:hover { background: #fff1f0; }
.detail-content { line-height: 1.9; color: var(--text-2); }
.detail-content img { border-radius: 10px; margin: 8px 0; }

/* ---------------------------- 通用提示 ---------------------------- */
.empty {
    text-align: center; padding: 60px 20px; color: var(--muted);
}
.empty-icon { font-size: 46px; margin-bottom: 10px; opacity: .55; }

.breadcrumb { color: var(--muted); font-size: 13px; padding: 14px 0 0; }
.breadcrumb a:hover { color: var(--brand); }

.jump-mask {
    max-width: 520px; margin: 90px auto; background: #fff;
    border-radius: var(--radius); padding: 40px 30px; text-align: center;
    box-shadow: var(--shadow);
}
.jump-mask h2 { font-size: 20px; margin-bottom: 10px; }
.jump-bar {
    height: 6px; border-radius: 6px; background: var(--line);
    overflow: hidden; margin: 22px 0 10px;
}
.jump-bar i {
    display: block; height: 100%; width: 40%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    animation: jump 1.1s infinite;
}
@keyframes jump {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(330%); }
}

/* ---------------------------- 底部 ---------------------------- */
.footer {
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 30px 0 24px;
    margin-top: 20px;
    color: var(--text-2);
    font-size: 13px;
}
.footer-inner {
    max-width: var(--wrap); margin: 0 auto; padding: 0 16px;
    display: flex; gap: 30px; flex-wrap: wrap; justify-content: space-between;
}
.footer h3 { font-size: 15px; margin-bottom: 10px; }
.footer ul li { padding: 3px 0; color: var(--muted); }
.footer ul li a:hover { color: var(--brand); }
.footer-copy {
    max-width: var(--wrap); margin: 18px auto 0; padding: 14px 16px 0;
    border-top: 1px solid var(--line);
    color: var(--muted); font-size: 12.5px; text-align: center;
}

.toast {
    position: fixed; left: 50%; top: 20%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, .82); color: #fff;
    padding: 10px 20px; border-radius: 999px;
    font-size: 14px; z-index: 999; opacity: 0;
    transition: .25s; pointer-events: none;
}
.toast.show { opacity: 1; }

/* ---------------------------- 响应式 ---------------------------- */
@media (max-width: 1024px) {
    .main-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .topbar-inner { flex-wrap: wrap; gap: 12px; }
    .search-wrap { order: 3; max-width: none; width: 100%; }
    .hero-txt h1 { font-size: 21px; }
    .coupon-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .topbar-actions { display: none; }
}

/* ===================== 价格专区 ===================== */
.zone-head { text-align: center; padding: 8px 0 4px; }
.zone-title { font-size: 26px; font-weight: 800; margin: 0; }
.zone-sub { color: #888; margin: 6px 0 0; font-size: 14px; }

.zone-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.zone-tab {
    display: flex; flex-direction: column; gap: 4px;
    padding: 14px 16px; border-radius: 14px; text-decoration: none;
    background: #fff; border: 2px solid #eee; color: #333;
    transition: .2s; box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.zone-tab .zt-price { font-size: 19px; font-weight: 800; color: var(--tab-color, #ff7a00); }
.zone-tab .zt-desc { font-size: 12px; color: #999; }
.zone-tab.active { border-color: var(--tab-color, #ff7a00); background: color-mix(in srgb, var(--tab-color, #ff7a00) 8%, #fff); }

.tier-banner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-radius: 14px; margin-bottom: 18px;
    background: linear-gradient(120deg, color-mix(in srgb, var(--tier-color) 14%, #fff), #fff);
    border: 1px solid color-mix(in srgb, var(--tier-color) 30%, #fff);
}
.tier-banner-l { display: flex; align-items: center; gap: 12px; }
.tier-emoji { font-size: 30px; }
.tier-banner-l strong { display: block; font-size: 18px; color: var(--tier-color); }
.tier-banner-l span { font-size: 13px; color: #777; }
.tier-banner-r { font-size: 14px; color: #555; }
.tier-banner-r b { font-size: 22px; color: var(--tier-color); }

.zone-major { margin-bottom: 26px; }
.zone-major-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.zone-major-head h2 { font-size: 19px; margin: 0; display: flex; align-items: center; gap: 8px; }
.zm-emoji { font-size: 22px; }
.zm-count { font-size: 13px; color: #999; }

.zone-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.zone-chip {
    border: 1px solid #e3e3e3; background: #fff; color: #555;
    padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 13px;
    transition: .15s;
}
.zone-chip i { font-style: normal; margin-left: 4px; color: #bbb; font-size: 11px; }
.zone-chip:hover { border-color: #ff7a00; color: #ff7a00; }
.zone-chip.active { background: #ff7a00; border-color: #ff7a00; color: #fff; }
.zone-chip.active i { color: rgba(255,255,255,.8); }

.zone-grid { margin-top: 4px; }
.zone-empty { padding: 24px; color: #999; }

/* 首页价格专区入口 */
.zone-promo { margin: 22px 0; }
.zone-promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.zone-promo-card {
    position: relative; display: flex; flex-direction: column; gap: 6px;
    padding: 18px 20px; border-radius: 16px; text-decoration: none; color: #222;
    background: #fff; border: 1px solid #eee; overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,.05); transition: .2s;
}
.zone-promo-card::before {
    content: ""; position: absolute; right: -20px; top: -20px;
    width: 90px; height: 90px; border-radius: 50%;
    background: color-mix(in srgb, var(--zc) 18%, #fff);
}
.zone-promo-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.1); }
.zpc-price { font-size: 22px; font-weight: 800; color: var(--zc); position: relative; }
.zpc-desc { font-size: 13px; color: #888; position: relative; }
.zpc-go { font-size: 13px; color: var(--zc); font-weight: 700; position: relative; margin-top: 2px; }

@media (max-width: 720px) {
    .zone-tabs { grid-template-columns: 1fr; }
    .zone-promo-grid { grid-template-columns: 1fr; }
    .zone-title { font-size: 22px; }
}

/* ===================== 全部分类导航（多级精细） ===================== */
.cat-all { margin: 22px 0; }
.cat-all-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.cat-all-col {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px 14px;
}
.cat-all-top {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px dashed var(--line);
}
.cat-all-top:hover { color: var(--brand); }
.cat-all-emoji { font-size: 16px; }
.cat-all-subs { display: flex; flex-direction: column; gap: 6px; }
.cat-all-sub {
    font-size: 13px;
    color: var(--text-2);
    text-decoration: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
}
.cat-all-sub:hover { color: var(--brand); }
.cat-all-leafs { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; }
.cat-leaf {
    font-size: 12px;
    color: #888;
    text-decoration: none;
    background: #f4f5f7;
    border-radius: 10px;
    padding: 1px 7px;
}
.cat-leaf:hover { background: var(--brand); color: #fff; }
.more-leaf { background: transparent; color: #bbb; }

/* ===================== 分类页左侧分类树 ===================== */
.cat-side { width: 100%; }
.cat-tree-wrap { max-height: none; }
.cat-tree, .cat-tree-root { list-style: none; margin: 0; padding: 0; }
.cat-tree-root { font-size: 14px; }
.cat-tree { padding-left: 14px; border-left: 1px dashed var(--line); margin: 4px 0 4px 4px; }
.cat-tree-li { margin: 2px 0; }
.cat-tree-a {
    display: block;
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--text-2);
    text-decoration: none;
    font-size: 13px;
}
.cat-tree-a:hover { background: #f4f5f7; color: var(--brand); }
.cat-tree-a.active { background: var(--brand); color: #fff; font-weight: 700; }

@media (max-width: 980px) {
    .cat-all-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .cat-all-grid { grid-template-columns: 1fr; }
    .main-grid { grid-template-columns: 1fr; }
}

/* 节日 / 大促自动横幅
   红色背景与 .nav-inner 共用同一 1220px 居中容器 + 同 12px 内边距，
   保证背景左端对齐「首页」、右端对齐「全部」，不溢出到屏幕两侧 */
.holiday-bar {
    color: #fff; font-size: 14px;
    max-width: var(--wrap); margin: 0 auto;
    padding: 9px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.holiday-bar .hb-inner {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    width: 100%;
}
.holiday-bar .hb-emoji { font-size: 24px; line-height: 1; flex: 0 0 auto; }
/* 国庆节真实五星红旗 SVG：高度跟随上下文文字，红底上加细白边保证轮廓清晰 */
.holiday-flag {
    height: 1.15em; width: auto; flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,.7); border-radius: 2px;
    display: block;
}
.holiday-bar .hb-name { font-weight: 800; letter-spacing: 1px; flex: 0 0 auto; }
.holiday-bar .hb-bless {
    opacity: .95; flex: 1 1 240px; min-width: 0;
    word-break: break-word; overflow-wrap: anywhere;
}
.holiday-bar .hb-count {
    margin-left: 4px; background: rgba(255,255,255,.22);
    padding: 2px 10px; border-radius: 20px; font-size: 13px;
}
.holiday-bar .hb-count b { font-size: 15px; }
.holiday-bar .hb-link {
    margin-left: auto; flex: 0 0 auto; color: #fff; text-decoration: none;
    border: 1px solid rgba(255,255,255,.75); border-radius: 20px;
    padding: 4px 14px; font-size: 13px; transition: background .2s;
}
.holiday-bar .hb-link:hover { background: rgba(255,255,255,.18); }
@media (max-width: 900px) {
    .holiday-bar { font-size: 13px; }
}
@media (max-width: 720px) {
    .holiday-bar { font-size: 13px; padding: 8px 12px; }
    .holiday-bar .hb-link { margin-left: 0; }
    /* 手机端祝福词独占一行，避免与节日名称/按钮挤压换行错位 */
    .holiday-bar .hb-bless { flex-basis: 100%; }
}

/* ============ 右侧悬浮快捷导航 ============ */
.fab-col {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 900;
}
.fab-btn {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 50%;
    background: #fff;
    color: var(--brand, #ff5000);
    box-shadow: 0 4px 16px rgba(0,0,0,.16);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    padding: 0;
    transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.fab-btn .fab-ico { font-size: 18px; }
.fab-btn .fab-txt { font-size: 10px; margin-top: 2px; }
.fab-btn:hover,
.fab-btn:active {
    transform: scale(1.08);
    background: var(--brand, #ff5000);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,.24);
}
.fab-home { color: #2b7de9; }
.fab-home:hover { background: #2b7de9; color: #fff; }
@media (max-width: 720px) {
    .fab-col { right: 10px; gap: 8px; }
    .fab-btn { width: 42px; height: 42px; }
    .fab-btn .fab-ico { font-size: 16px; }
    .fab-btn .fab-txt { font-size: 9px; }
}
