/* =====================================================================
   电子烟商品展示站 - 手机端样式 v3 「电雾暗夜」
   设计语言: 深空底色 / 紫青霓虹(雾化隐喻) / 玻璃拟态 / 烟雾光斑
   ===================================================================== */
:root {
    --bg: #0a0e1a;
    --bg-2: #0e1424;
    --surface: rgba(255, 255, 255, .045);
    --surface-2: rgba(255, 255, 255, .07);
    --line: rgba(255, 255, 255, .09);
    --text: #eef1f8;
    --text-2: #8b93a9;
    --primary: #8a7cff;
    --primary-2: #38e1ff;
    --grad: linear-gradient(120deg, #8a7cff 0%, #38e1ff 100%);
    --grad-soft: linear-gradient(120deg, rgba(138, 124, 255, .16), rgba(56, 225, 255, .16));
    --price: #ff6b81;
    --ok: #4dffa1;
    --warn: #ffb84d;
    --glow: 0 0 18px rgba(110, 160, 255, .35);
    --radius: 14px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(640px 420px at 88% -60px, rgba(138, 124, 255, .16), transparent 62%),
        radial-gradient(560px 400px at -80px 34%, rgba(56, 225, 255, .10), transparent 60%),
        radial-gradient(700px 520px at 50% 112%, rgba(138, 124, 255, .08), transparent 65%),
        var(--bg);
    background-attachment: fixed;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    line-height: 1.5;
    padding-bottom: calc(64px + var(--safe-bottom));
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

/* ---------- 布局容器 ---------- */
.vp-container { max-width: 750px; margin: 0 auto; }

/* ---------- 顶部搜索栏: 玻璃 + 烟雾光斑 ---------- */
.vp-header {
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: hidden;
    background: rgba(12, 16, 30, .82);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    border-bottom: 1px solid var(--line);
    padding: 12px 14px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
}
/* 烟雾光斑动画 */
.vp-header::before,
.vp-header::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(46px);
    pointer-events: none;
}
.vp-header::before {
    width: 190px; height: 190px;
    left: -46px; top: -86px;
    background: radial-gradient(circle, rgba(138, 124, 255, .5), transparent 66%);
    animation: vp-float 9s ease-in-out infinite alternate;
}
.vp-header::after {
    width: 220px; height: 220px;
    right: -66px; top: -110px;
    background: radial-gradient(circle, rgba(56, 225, 255, .34), transparent 66%);
    animation: vp-float 11s ease-in-out infinite alternate-reverse;
}
@keyframes vp-float {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(26px, 20px, 0) scale(1.18); }
}
.vp-header .row { display: flex; align-items: center; gap: 13px; max-width: 750px; margin: 0 auto; position: relative; z-index: 1; }

/* Logo: 横排紧凑字标 */
.vp-logo {
    display: flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
}
.vp-logo .logo-main {
    font-weight: 800;
    font-size: 19px;
    letter-spacing: .5px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.vp-logo .logo-sub {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-2);
    letter-spacing: 1.5px;
    padding-left: 7px;
    border-left: 1px solid rgba(255, 255, 255, .18);
}

/* 搜索框: 输入 + 独立渐变搜索按钮 */
.vp-search { flex: 1; min-width: 0; }
.vp-search form { display: flex; gap: 8px; }
.vp-search input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(138, 124, 255, .3);
    outline: none;
    border-radius: 19px;
    height: 38px;
    padding: 0 15px;
    font-size: 13px;
    color: var(--text);
    background: rgba(255, 255, 255, .07);
    transition: border-color .25s, box-shadow .25s;
}
.vp-search input:focus { border-color: var(--primary-2); box-shadow: var(--glow); }
.vp-search input::placeholder { color: #6b7288; }
.vp-search button {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border: none;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 14px rgba(96, 170, 255, .4);
    transition: transform .15s, box-shadow .2s;
}
.vp-search button:active { transform: scale(.9); box-shadow: 0 0 20px rgba(96, 170, 255, .6); }
.vp-search button svg { width: 16px; height: 16px; }

/* ---------- 公告条 ---------- */
.vp-notice-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    margin: 12px 14px 0;
    border-radius: 12px;
    padding: 9px 13px;
    font-size: 12px;
    color: var(--text-2);
    overflow: hidden;
    backdrop-filter: blur(8px);
}
.vp-notice-bar .icon { flex-shrink: 0; }
.vp-marquee { flex: 1; overflow: hidden; white-space: nowrap; }
.vp-marquee .track { display: inline-block; animation: vp-scroll 18s linear infinite; }
.vp-marquee .track span { margin-right: 42px; }
@keyframes vp-scroll {
    0% { transform: translateX(12%); }
    100% { transform: translateX(-100%); }
}

/* ---------- 品类快捷宫格 ---------- */
.vp-quickcats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
    padding: 14px 12px 4px;
}
.vp-quickcats a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 9px 0 7px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
    transition: transform .18s, border-color .18s;
}
.vp-quickcats a:active { transform: scale(.94); border-color: rgba(138, 124, 255, .5); }
.vp-quickcats .qc-ico {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px;
    background: var(--grad-soft);
    border: 1px solid rgba(138, 124, 255, .3);
}
.vp-quickcats .qc-name {
    font-size: 11px; color: var(--text-2);
    max-width: 100%;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    padding: 0 4px;
}

/* ---------- 分类 chips / 品类 Tab ---------- */
.vp-cats {
    display: flex;
    gap: 8px;
    padding: 14px 14px 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.vp-cats::-webkit-scrollbar { display: none; }
.vp-cats a {
    flex-shrink: 0;
    padding: 7px 17px;
    border-radius: 18px;
    background: var(--surface);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--line);
    transition: all .2s;
}
.vp-cats a.active {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 0 16px rgba(96, 170, 255, .45);
}

/* ---------- 品牌横滑(首页) ---------- */
.vp-brands {
    display: flex;
    gap: 9px;
    padding: 6px 14px 14px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.vp-brands::-webkit-scrollbar { display: none; }
.vp-brands a {
    flex-shrink: 0;
    display: flex; flex-direction: column; align-items: center;
    min-width: 66px;
    padding: 9px 11px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: border-color .2s;
}
.vp-brands a:active { border-color: rgba(56, 225, 255, .55); }
.vp-brands a em {
    font-style: normal;
    font-size: 10px;
    font-weight: 400;
    color: var(--primary-2);
    margin-top: 3px;
    letter-spacing: .3px;
}

/* ---------- 区块标题 ---------- */
.vp-sec { padding: 8px 16px 10px; display: flex; }
.vp-sec h3 {
    margin: 0;
    font-size: 15.5px;
    display: flex; align-items: center; gap: 8px;
    width: 100%;
    letter-spacing: .3px;
}
.vp-sec h3::before {
    content: "";
    width: 4px; height: 16px;
    border-radius: 2px;
    background: var(--grad);
    box-shadow: var(--glow);
}
.vp-sec .more { margin-left: auto; font-size: 12px; color: var(--text-2); font-weight: 400; }

/* ---------- 商品网格 ---------- */
.vp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
    padding: 2px 14px 16px;
}
@media (min-width: 560px) {
    .vp-grid { grid-template-columns: repeat(3, 1fr); }
}
.vp-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(6px);
    transition: border-color .2s, box-shadow .2s;
}
.vp-card:active { border-color: rgba(138, 124, 255, .5); }
.vp-card .pic { position: relative; aspect-ratio: 1/1; background: linear-gradient(160deg, rgba(255,255,255,.97), rgba(233,238,250,.92)); }
.vp-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.vp-card .ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 21px; font-weight: 800; letter-spacing: 3px;
    color: #9aa3c7;
    background:
        radial-gradient(220px 160px at 70% 20%, rgba(138, 124, 255, .22), transparent 65%),
        radial-gradient(200px 150px at 25% 85%, rgba(56, 225, 255, .14), transparent 65%),
        var(--bg-2);
    border-bottom: 1px solid var(--line);
    text-shadow: 0 0 22px rgba(138, 124, 255, .45);
}
.vp-card .badge {
    position: absolute; left: 8px; top: 8px;
    background: rgba(10, 14, 26, .72);
    color: var(--primary-2);
    font-size: 10px; font-weight: 700;
    padding: 2.5px 9px;
    border-radius: 10px;
    border: 1px solid rgba(56, 225, 255, .35);
    backdrop-filter: blur(4px);
}
.vp-card .badge.rec { right: 8px; left: auto; background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 0 12px rgba(96, 170, 255, .5); }
.vp-card .badge.out { background: rgba(90, 96, 116, .8); color: #c6cbd8; border-color: transparent; }
.vp-card .badge.new { right: 8px; left: auto; background: rgba(77, 255, 161, .16); color: var(--ok); border-color: rgba(77, 255, 161, .4); }
.vp-card .info { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.vp-card .title {
    font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.7em;
}
.vp-card .sub {
    font-size: 11px; color: var(--text-2);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vp-card .meta { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.vp-card .price { color: var(--price); font-size: 18px; font-weight: 800; text-shadow: 0 0 14px rgba(255, 107, 129, .35); }
.vp-card .price i { font-style: normal; font-size: 11px; font-weight: 700; }
.vp-card .price.ask { font-size: 13px; font-weight: 600; color: var(--warn); text-shadow: none; }
.vp-card .cnt { font-size: 10.5px; color: var(--text-2); white-space: nowrap; }
.vp-card .ftags { display: flex; flex-wrap: wrap; gap: 4px; }
.vp-tag {
    font-size: 10px; color: var(--primary-2);
    background: rgba(56, 225, 255, .09);
    border: 1px solid rgba(56, 225, 255, .25);
    border-radius: 5px; padding: 0 5px; line-height: 17px;
}
.vp-tag.warn { color: var(--warn); background: rgba(255, 184, 77, .09); border-color: rgba(255, 184, 77, .3); }
.vp-tag.ok { color: var(--ok); background: rgba(77, 255, 161, .09); border-color: rgba(77, 255, 161, .3); }

/* ---------- 热卖榜横滑 ---------- */
.vp-hots {
    display: flex;
    gap: 10px;
    padding: 2px 14px 14px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.vp-hots::-webkit-scrollbar { display: none; }
.vp-card.hot { flex: 0 0 134px; border-color: rgba(138, 124, 255, .3); }
.vp-card.hot .rank {
    position: absolute; left: 8px; top: 8px;
    z-index: 2;
    font-size: 10px; font-weight: 800;
    padding: 2.5px 8px; border-radius: 9px 9px 9px 0;
    color: #fff;
    background: #5c6478;
}
.vp-card.hot .rank.r1 { background: linear-gradient(120deg, #ff4d6d, #ff8a5c); box-shadow: 0 0 12px rgba(255, 77, 109, .55); }
.vp-card.hot .rank.r2 { background: linear-gradient(120deg, #ff9a3d, #ffc04d); box-shadow: 0 0 12px rgba(255, 154, 61, .45); }
.vp-card.hot .rank.r3 { background: linear-gradient(120deg, #4dc3ff, #6be8ff); box-shadow: 0 0 12px rgba(77, 195, 255, .45); }

/* ---------- 排序栏 ---------- */
.vp-sort {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 6px 16px 10px;
    font-size: 13px;
    color: var(--text-2);
}
.vp-sort a.active { color: var(--primary-2); font-weight: 700; text-shadow: 0 0 12px rgba(56, 225, 255, .5); }
.vp-sort .cnt { margin-left: auto; font-size: 11.5px; white-space: nowrap; }

/* ---------- 筛选行 ---------- */
.vp-filterrow {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 14px 2px;
}
.vp-filterrow .fl { flex-shrink: 0; font-size: 12px; color: var(--text-2); line-height: 30px; }
.vp-chips {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}
.vp-chips::-webkit-scrollbar { display: none; }
.vp-chips a {
    flex-shrink: 0;
    font-size: 12px;
    line-height: 20px;
    padding: 4px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 15px;
    color: var(--text-2);
    transition: all .2s;
}
.vp-chips a em { font-style: normal; font-size: 10px; opacity: .7; margin-left: 2px; }
.vp-chips a.active {
    background: var(--grad-soft);
    border-color: rgba(138, 124, 255, .6);
    color: var(--text);
    font-weight: 600;
    box-shadow: 0 0 12px rgba(110, 160, 255, .28);
}

/* ---------- 已选条件 ---------- */
.vp-activebar {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    padding: 9px 14px 2px;
}
.vp-activebar .lbl { font-size: 12px; color: var(--text-2); }
.vp-activebar a {
    font-size: 12px;
    padding: 3.5px 11px;
    background: rgba(138, 124, 255, .12);
    border: 1px solid rgba(138, 124, 255, .4);
    color: #b3a9ff;
    border-radius: 14px;
}
.vp-activebar a.reset { background: none; border-color: var(--line); color: var(--text-2); }

/* ---------- 分页 ---------- */
.vp-pager { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 4px 0 18px; }
.vp-pager a, .vp-pager span {
    padding: 7px 15px; border-radius: 17px;
    background: var(--surface);
    font-size: 13px; color: var(--text-2);
    border: 1px solid var(--line);
}
.vp-pager .cur { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 0 14px rgba(96, 170, 255, .4); }
.vp-pager .dis { opacity: .4; }

/* ---------- 空态 ---------- */
.vp-empty { text-align: center; color: var(--text-2); font-size: 13px; padding: 52px 0; }
.vp-empty .ico { font-size: 42px; margin-bottom: 10px; filter: drop-shadow(0 0 18px rgba(138, 124, 255, .5)); }

/* ---------- 详情页 ---------- */
.vp-gallery { position: relative; background: transparent; border-bottom: 1px solid var(--line); }
.vp-gallery .track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.vp-gallery .track::-webkit-scrollbar { display: none; }
.vp-gallery .slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1/1; background: linear-gradient(160deg, rgba(255,255,255,.96), rgba(230,236,250,.9)); }
.vp-gallery .slide img { width: 100%; height: 100%; object-fit: contain; }
.vp-gallery .dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.vp-gallery .dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(10, 14, 26, .25); transition: all .25s; }
.vp-gallery .dots i.on { width: 16px; background: var(--grad); box-shadow: 0 0 8px rgba(96, 170, 255, .6); }

.vp-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin: 12px 14px;
    padding: 15px;
    backdrop-filter: blur(8px);
}
.vp-panel h4 {
    margin: 0 0 11px; font-size: 14.5px;
    display: flex; align-items: center; gap: 8px;
    letter-spacing: .3px;
}
.vp-panel h4::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--grad); box-shadow: var(--glow); }
.h4sub { margin-left: 6px; font-size: 11px; color: var(--text-2); font-weight: 400; }

.d-head .d-title { font-size: 17px; font-weight: 800; line-height: 1.4; letter-spacing: .3px; }
.d-head .d-sub { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.d-head .d-price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.d-head .d-price { color: var(--price); font-size: 26px; font-weight: 800; text-shadow: 0 0 18px rgba(255, 107, 129, .4); }
.d-head .d-price i { font-style: normal; font-size: 15px; }
.d-head .d-price.ask { font-size: 18px; color: var(--warn); text-shadow: none; }
.d-head .d-stock { font-size: 12px; padding: 2.5px 11px; border-radius: 11px; }
.d-head .d-stock.in { color: var(--ok); background: rgba(77, 255, 161, .1); border: 1px solid rgba(77, 255, 161, .3); }
.d-head .d-stock.out { color: #c6cbd8; background: rgba(90, 96, 116, .2); }
.d-head .d-stats { margin-left: auto; font-size: 11px; color: var(--text-2); }

/* 口味标签 */
.vp-flavors { display: flex; flex-wrap: wrap; gap: 8px; max-height: 96px; overflow: hidden; transition: max-height .3s; }
.vp-flavors.open { max-height: 800px; }
.vp-flavors span,
.vp-flavors a {
    font-size: 12px; padding: 4.5px 12px; border-radius: 15px;
    background: rgba(255, 255, 255, .06);
    color: #cdd3e4;
    border: 1px solid var(--line);
    transition: all .2s;
}
.vp-flavors a:active { border-color: rgba(56, 225, 255, .5); color: var(--primary-2); }
.vp-flavors-toggle {
    display: block; width: 100%; margin-top: 11px;
    border: none; background: none; color: var(--primary-2); font-size: 12.5px; font-weight: 600;
}

/* 参数表 */
.vp-specs { width: 100%; border-collapse: collapse; font-size: 13px; }
.vp-specs td { padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.vp-specs tr:last-child td { border-bottom: none; }
.vp-specs td:first-child { color: var(--text-2); width: 100px; }

/* 富文本 */
.vp-content { font-size: 14px; word-break: break-word; color: #cdd3e4; }
.vp-content img { border-radius: 10px; margin: 6px 0; }
.vp-content p { margin: 0 0 8px; }

/* 须知 */
.vp-guide li { padding: 11px 0; border-bottom: 1px dashed rgba(255, 255, 255, .09); font-size: 13px; }
.vp-guide li:last-child { border-bottom: none; }
.vp-guide b { display: block; margin-bottom: 3px; font-size: 13.5px; color: var(--text); }
.vp-guide p { margin: 0; color: var(--text-2); }

/* 详情底部操作栏 */
.vp-footer-bar {
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 100;
    background: rgba(12, 16, 30, .88);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
    padding: 9px 14px calc(9px + var(--safe-bottom));
    display: flex; gap: 10px;
    max-width: 750px; margin: 0 auto;
}
.vp-footer-bar a {
    flex: 1; text-align: center; padding: 11px 0; border-radius: 23px; font-size: 14px; font-weight: 700;
}
.vp-footer-bar .ghost { background: rgba(255, 255, 255, .07); color: var(--text-2); border: 1px solid var(--line); }
.vp-footer-bar .solid { background: var(--grad); color: #fff; box-shadow: 0 0 20px rgba(96, 170, 255, .4); }

/* ---------- 底部导航 ---------- */
.vp-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    background: rgba(12, 16, 30, .9);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
    display: flex;
    padding: 6px 0 calc(6px + var(--safe-bottom));
}
.vp-tabbar .inner { display: flex; width: 100%; max-width: 750px; margin: 0 auto; }
.vp-tabbar a {
    flex: 1; text-align: center; font-size: 10.5px; color: var(--text-2);
    display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 3px 0;
}
.vp-tabbar a.active { color: var(--primary-2); font-weight: 600; text-shadow: 0 0 10px rgba(56, 225, 255, .55); }
.vp-tabbar svg { width: 22px; height: 22px; }

/* ---------- 搜索页 ---------- */
.vp-hotwords { display: flex; flex-wrap: wrap; gap: 9px; padding: 4px 0; }
.vp-hotwords a {
    font-size: 12.5px; padding: 5.5px 15px; border-radius: 16px;
    background: rgba(255, 255, 255, .06); color: #cdd3e4; border: 1px solid var(--line);
}

/* ---------- 分类中心 ---------- */
.vp-catgrid, .vp-brandgrid { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.vp-catgrid a, .vp-brandgrid a {
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px 8px;
    text-align: center;
    display: flex; flex-direction: column; gap: 4px;
    transition: border-color .2s;
}
.vp-catgrid a:active, .vp-brandgrid a:active { border-color: rgba(138, 124, 255, .55); }
.vp-catgrid a b, .vp-brandgrid a b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-catgrid a span, .vp-brandgrid a span { font-size: 11px; color: var(--primary-2); }

/* ---------- 回到顶部 ---------- */
.vp-uptop {
    position: fixed;
    right: 14px;
    bottom: calc(78px + var(--safe-bottom));
    z-index: 90;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(138, 124, 255, .4);
    background: rgba(12, 16, 30, .8);
    backdrop-filter: blur(10px);
    color: var(--primary-2);
    font-size: 17px;
    display: none;
    align-items: center; justify-content: center;
    box-shadow: 0 0 16px rgba(110, 160, 255, .3);
}
.vp-uptop.show { display: flex; }

/* ---------- 搜索结果标题(对称结构) ---------- */
.vp-sec h3.sr-title { gap: 9px; }
.sr-kw {
    background: var(--grad-soft);
    border: 1px solid rgba(138, 124, 255, .5);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 13px;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sr-cnt {
    margin-left: auto;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--primary-2);
    background: rgba(56, 225, 255, .08);
    border: 1px solid rgba(56, 225, 255, .25);
    padding: 2px 10px;
    border-radius: 11px;
    white-space: nowrap;
}

/* ---------- 详情页: 统一徽章与信息面板 ---------- */
.d-price-row { align-items: center !important; }
.d-pill {
    font-size: 11.5px;
    line-height: 22px;
    padding: 0 10px;
    border-radius: 12px;
    color: #cdd3e4;
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--line);
    white-space: nowrap;
}
.d-pill.ok { color: var(--ok); background: rgba(77, 255, 161, .1); border-color: rgba(77, 255, 161, .3); }
.d-head .d-stats { line-height: 24px; font-size: 11.5px; }

.meta-panel { padding: 4px 15px; }
.meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .08);
}
.meta-row:last-child { border-bottom: none; }
.meta-row .k {
    flex-shrink: 0;
    width: 34px;
    font-size: 12px;
    color: var(--text-2);
}
.meta-row .v {
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.meta-row .v em { font-style: normal; font-weight: 400; font-size: 11px; color: var(--text-2); }
.meta-row .link {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 11.5px;
    color: var(--primary-2);
    background: rgba(56, 225, 255, .08);
    border: 1px solid rgba(56, 225, 255, .25);
    padding: 0 10px;
    line-height: 22px;
    border-radius: 12px;
    white-space: nowrap;
}

/* 购买须知间距放宽 */
.vp-guide li { padding: 13px 0; }
.vp-guide b { margin-bottom: 4px; }

/* ============ 价目表页面 ============ */
.price-page { padding-bottom: 6px; }

/* 页内搜索 */
.price-search { padding: 12px 14px 4px; }
.price-search form { display: flex; gap: 8px; }
.price-search input[type=text] {
    flex: 1; min-width: 0;
    height: 38px;
    border: 1px solid rgba(138, 124, 255, .3);
    border-radius: 19px;
    background: rgba(255, 255, 255, .07);
    color: var(--text);
    padding: 0 15px;
    font-size: 13px;
    outline: none;
    transition: border-color .25s, box-shadow .25s;
}
.price-search input[type=text]:focus { border-color: var(--primary-2); box-shadow: var(--glow); }
.price-search input[type=text]::placeholder { color: #6b7288; }
.price-search button {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border: none; border-radius: 50%;
    background: var(--grad); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 14px rgba(96, 170, 255, .4);
}
.price-search button:active { transform: scale(.9); }
.price-search button svg { width: 16px; height: 16px; }

/* 工具行: 模式切换 + 分类 */
.price-toolbar { padding: 8px 14px 2px; }
.mode-switch {
    display: inline-flex;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 3px;
    gap: 2px;
    margin-bottom: 9px;
}
.mode-switch a {
    font-size: 12.5px;
    line-height: 22px;
    padding: 0 20px;
    border-radius: 14px;
    color: var(--text-2);
    font-weight: 500;
}
.mode-switch a.active {
    background: var(--grad);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(96, 170, 255, .4);
}
.price-cats { padding-bottom: 6px; }

/* 统计行 */
.price-stat {
    padding: 6px 16px 10px;
    font-size: 11.5px;
    color: var(--text-2);
}
.price-stat b { color: var(--primary-2); font-weight: 700; }

/* 明细: 商品分组 */
.price-group {
    margin: 0 14px 11px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(6px);
}
.pg-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    background: rgba(255, 255, 255, .04);
    border-bottom: 1px solid var(--line);
}
.pg-name { font-size: 14px; font-weight: 700; }
.pg-cat {
    font-size: 10px;
    color: var(--primary-2);
    background: rgba(56, 225, 255, .08);
    border: 1px solid rgba(56, 225, 255, .25);
    padding: 1px 8px;
    border-radius: 10px;
    white-space: nowrap;
}
.pg-min { margin-left: auto; font-size: 11px; color: var(--text-2); }
.pg-min b { color: var(--ok); font-size: 14px; font-weight: 800; margin-left: 3px; }
.pg-cnt { font-size: 11px; color: var(--text-2); }

/* 明细: 仓库行 */
.pg-row {
    display: flex;
    align-items: center;
    padding: 9px 13px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.pg-row:last-child { border-bottom: none; }
.pg-row.is-min { background: rgba(77, 255, 161, .05); }
.pr-wh { flex: 1; min-width: 0; }
.pr-wh .name { font-size: 13px; color: #cdd3e4; }
.pr-wh .note {
    display: block;
    font-size: 10.5px;
    color: var(--warn);
    margin-top: 2px;
}
.pr-price { display: flex; align-items: baseline; gap: 7px; flex-shrink: 0; }
.pr-price .num { font-size: 16px; font-weight: 800; color: var(--text); }
.pg-row.is-min .pr-price .num { color: var(--ok); text-shadow: 0 0 12px rgba(77, 255, 161, .4); }
.pr-price .min-flag {
    font-size: 9.5px;
    color: var(--ok);
    border: 1px solid rgba(77, 255, 161, .45);
    border-radius: 8px;
    padding: 0 6px;
    line-height: 15px;
}
.pr-price .none { font-size: 12px; color: var(--text-2); }
.pr-price .freight { font-size: 10.5px; color: var(--text-2); }

/* 汇总表 */
.price-sumwrap {
    margin: 0 14px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.ps-row {
    display: flex;
    align-items: center;
    padding: 10px 13px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.ps-row:last-child { border-bottom: none; }
.ps-head {
    background: rgba(255, 255, 255, .04);
    font-size: 11px;
    color: var(--text-2);
    padding: 8px 13px;
}
.c-goods { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-goods em {
    font-style: normal;
    font-size: 10px;
    font-weight: 400;
    color: var(--primary-2);
    margin-left: 7px;
}
.c-cnt { width: 42px; text-align: center; font-size: 12px; color: var(--text-2); flex-shrink: 0; }
.c-min { width: 76px; text-align: right; flex-shrink: 0; font-size: 12px; color: var(--text-2); }
.c-min b { color: var(--ok); font-size: 15px; font-weight: 800; }
.c-max { width: 58px; text-align: right; font-size: 12px; color: var(--text-2); flex-shrink: 0; }

/* ---------- 仓库详情底部弹层 ---------- */
.pr-wh .name[data-wh] { cursor: pointer; }
.pr-wh .name[data-wh]:active { color: var(--primary-2); }
.wh-i {
    font-style: normal;
    font-size: 10px;
    color: var(--primary-2);
    opacity: .75;
    margin-left: 5px;
    border: 1px solid rgba(56, 225, 255, .35);
    border-radius: 50%;
    width: 14px; height: 14px;
    display: inline-flex;
    align-items: center; justify-content: center;
    vertical-align: 1px;
}
.wh-mask {
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 12, .62);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
    z-index: 200;
}
.wh-mask.show { opacity: 1; visibility: visible; }
.wh-sheet {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 201;
    max-width: 750px;
    margin: 0 auto;
    background: #101830;
    border: 1px solid rgba(138, 124, 255, .25);
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 44px rgba(0, 0, 0, .5);
    transform: translateY(102%);
    transition: transform .3s cubic-bezier(.32, .72, .34, 1);
    padding: 8px 18px calc(20px + var(--safe-bottom));
    max-height: 72vh;
    overflow-y: auto;
}
.wh-sheet.show { transform: translateY(0); }
.ws-bar {
    width: 38px; height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .18);
    margin: 4px auto 10px;
}
.ws-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--line);
}
.ws-name {
    font-size: 16.5px;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ws-close {
    margin-left: auto;
    border: none;
    background: rgba(255, 255, 255, .08);
    color: var(--text-2);
    width: 28px; height: 28px;
    border-radius: 50%;
    font-size: 13px;
}
.ws-body { padding-top: 4px; }
.ws-item {
    display: flex;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .07);
}
.ws-item:last-child { border-bottom: none; }
.ws-item .k {
    flex-shrink: 0;
    width: 86px;
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.55;
}
.ws-item .v {
    flex: 1;
    font-size: 13px;
    color: #cdd3e4;
    line-height: 1.6;
    word-break: break-all;
}
.ws-item.hl .v {
    color: var(--ok);
    font-size: 15px;
    font-weight: 700;
}
