/* 打包生成 app.css @ 2026-10-23 15:13 —— 源：css/style.css, css/mobile.css, css/ui-kit.css */


/* ===== css/style.css ===== */

/* 007卡券 - 样式表 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f2f3f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 站点 Logo 图片（007卡券 渐变色字标） */
.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .cn {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.logo-text .en {
    font-size: 10px;
    color: #999;
}

.nav {
    display: flex;
    gap: 20px;
    flex: 1;
}

.nav a {
    color: #333;
    font-size: 15px;
    position: relative;
    padding: 8px 0;
}

.nav a:hover, .nav a.active {
    color: #ff6b35;
}

.badge {
    position: absolute;
    top: 0;
    right: -20px;
    background: #ff4d4f;
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 8px;
}

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    max-width: 320px;
    background: #fff;
}

.search-icon {
    padding: 0 8px 0 14px;
    color: #999;
}

.search-box input {
    border: none;
    outline: none;
    padding: 8px 8px 8px 0;
    font-size: 14px;
    flex: 1;
}

.search-box button {
    background: #1890ff;
    color: #fff;
    border: none;
    padding: 8px 20px;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-register {
    background: #1890ff;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #1890ff;
    background: #fff;
    cursor: pointer;
    color: #1890ff;
}

/* Hero Section */
.hero-section {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 24px;
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.category-sidebar {
    background: linear-gradient(180deg, #57a0e8, #3f7fd6);
    border-radius: 12px;
    padding: 14px 12px;
    color: #fff;
    width: 220px;
    flex-shrink: 0;
}

.category-btn {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #5ba1e6, #4285d8);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    transition: background .15s;
}

.category-btn:hover {
    background: rgba(255,255,255,0.25);
}

.sidebar-cat-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    margin-right: 10px;
}

.category-btn-text {
    flex: 1;
    display: flex;
    justify-content: space-between;
}

.view-all-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 14px;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
}

.banner-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    min-height: 480px;
}

.banner-main {
    position: relative;
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    min-height: 0;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: 0 8px 24px rgba(20, 44, 78, .08);
}

.banner-subs {
    display: flex;
    gap: 14px;
    height: 118px;
    margin-top: 14px;
    flex-shrink: 0;
}

.banner-sub {
    flex: 1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 26px;
    color: #fff;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
}
.banner-sub:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.banner-sub.bs-orange { background: linear-gradient(135deg, #ffb03a, #ff7a2f); }
.banner-sub.bs-purple { background: linear-gradient(135deg, #a97bf5, #7c5ce0); }
.banner-sub .bs-title { font-size: 22px; font-weight: 700; letter-spacing: 1px; text-shadow: 0 2px 4px rgba(0,0,0,.15); }
.banner-sub .bs-sub { font-size: 12px; opacity: .92; margin-top: 6px; }
/* 图片版小 banner（对齐上游素材图） */
.banner-subs { height: 120px; }
.banner-sub-img {
    flex: 1; border-radius: 14px; overflow: hidden; display: block;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: 0 6px 18px rgba(20, 44, 78, .08);
    transition: transform .15s, box-shadow .15s;
}
.banner-sub-img:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.banner-sub-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 侧栏分类项为链接时去下划线 */
a.category-btn { text-decoration: none; color: #fff; }
a.category-btn:hover, a.category-btn.active { color: #1f6fe0; }
/* 用户面板头像图片 */
.up-avatar { overflow: hidden; }
.up-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.banner-carousel {
    width: 100%;
    height: 100%;
}

.banner-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.banner-slide.active {
    display: block;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-prev, .banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
}

.banner-prev { left: 20px; }
.banner-next { right: 20px; }

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.dot.active {
    background: #fff;
}

/* Announcement */
.announcement {
    max-width: 1400px;
    margin: 12px auto;
    padding: 10px 20px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.announcement-icon {
    font-size: 24px;
    color: #ff4d4f;
}

.announcement-scroll {
    flex: 1;
    overflow: hidden;
    height: 24px;
}

.announcement-text {
    display: flex;
    flex-direction: column;
    animation: scrollUp 9s infinite;
}
/* JS 接管（多条动态）时关闭固定 3 条的 CSS 关键帧 */
.announcement-text.js-run { animation: none !important; }
/* 每条公告固定单行 24px（与滚动窗口同高），超长省略号截断，
   避免窄屏换行后只露出文字碎片 */
.announcement-text span {
    display: block;
    height: 24px;
    line-height: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 系统“减少动态效果”时关闭公告滚动动画 */
@media (prefers-reduced-motion: reduce) {
    .announcement-text { animation: none !important; }
}
@keyframes scrollUp {
    0%, 30% { transform: translateY(0); }
    33%, 63% { transform: translateY(-24px); }
    66%, 96% { transform: translateY(-48px); }
    100% { transform: translateY(0); }
}

.announcement-more {
    color: #1890ff;
    font-size: 14px;
}

/* Hot Products */
.hot-products {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 24px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 24px;
    color: #333;
}

.section-tag {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.view-all {
    margin-left: auto;
    color: #1890ff;
    font-size: 14px;
}

.hot-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: max-content;
    gap: 16px;
}

.hot-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.hot-product-card:hover {
    transform: translateY(-4px);
}

.hot-product-card img {
    width: 100%;
    height: 160px;
    object-fit: contain;
}

.hot-product-info {
    padding: 12px;
}

.hot-product-title {
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-product-price {
    color: #ff6b35;
    font-size: 18px;
    font-weight: 700;
}

/* Categories */
.categories-section {
    max-width: 1400px;
    margin: 20px auto;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
}

.categories-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* 一级分类标题行（标题 + 右侧"全部分类"链接） */
.categories-section .cat-head { margin-bottom: 16px; }
.categories-section .cat-head h2 { margin-bottom: 0; }
.categories-section .view-all { margin-left: auto; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
}

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

.category-name {
    font-size: 13px;
    color: #333;
    text-align: center;
}

/* Features */
.features {
    max-width: 1400px;
    margin: 20px auto;
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-item {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.feature-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 13px;
    color: #666;
}

/* Footer */
/* ============================================================
   深色丰富页脚（对齐上游 vipzhichong）
   ============================================================ */
.site-footer {
    background: #16181d;
    color: #b9bec6;
    margin-top: 48px;
    font-size: 13px;
}
.sf-inner { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* 特性条 */
.sf-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    padding: 34px 0 30px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.sf-feature { display: flex; align-items: center; gap: 14px; }
.sf-feature > i {
    flex: 0 0 42px;
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(241, 243, 245, .78);
    border-radius: 50%;
    color: #f1f3f5; font-size: 19px;
}
.sf-feature h2 { margin: 0; color: #f4f5f6; font-size: 14px; font-weight: 600; }
.sf-feature p { margin: 6px 0 0; color: #777d85; font-size: 12px; line-height: 1.7; }

/* 主区：品牌 + 多列链接 + 关注 */
.sf-main {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) repeat(auto-fit, minmax(132px, 1fr));
    gap: 30px 34px;
    padding: 40px 0 34px;
}
.sf-brand-name { margin: 0 0 14px; color: #f4f5f6; font-size: 16px; font-weight: 600; }
.sf-brand-desc { margin: 0; max-width: 330px; color: #777d85; font-size: 12px; line-height: 1.8; }
.sf-brand-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; }
.sf-brand-tags li {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 11px; color: #b9bec6;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px; font-size: 12px;
}
.sf-brand-tags li i { color: #71acf9; }
.sf-col h2 { margin: 0 0 12px; color: #f4f5f6; font-size: 14px; font-weight: 600; }
.sf-links { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 5px; }
.sf-links a { color: #777d85; font-size: 12px; line-height: 1.7; }
.sf-links a:hover { color: #71acf9; }
.sf-follow .sf-qr {
    width: 74px; height: 74px; padding: 3px; background: #fff; border-radius: 6px;
    display: flex; align-items: center; justify-content: center; text-align: center;
    color: #46505f; font-size: 12px; line-height: 1.4;
}
.sf-contact { margin: 10px 0 0; color: #777d85; font-size: 12px; line-height: 1.7; }

/* 资质徽章 */
.sf-badges { border-top: 1px solid rgba(255, 255, 255, .08); }
.sf-badges .sf-inner { display: flex; align-items: center; gap: 22px; padding-top: 20px; padding-bottom: 20px; }
.sf-badges-label { display: inline-flex; align-items: center; gap: 6px; color: #b9bec6; font-size: 13px; white-space: nowrap; }
.sf-badges-label i { color: #f1c96b; font-size: 16px; }
.sf-badges-row { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.sf-badges-row::-webkit-scrollbar { display: none; }
.sf-badge {
    flex: 0 0 auto; margin: 0; padding: 5px 10px;
    background: rgba(255, 255, 255, .94); border-radius: 8px;
}
.sf-badge figcaption { color: #46505f; font-size: 12px; white-space: nowrap; }

/* 备案栏 */
.sf-legal { background: #1d1d1d; color: #70757d; font-size: 12px; }
.sf-legal .sf-inner { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 16px; padding-bottom: 16px; }

/* 移动端 */
@media (max-width: 768px) {
    .sf-features { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 24px 0 20px; gap: 18px; }
    .sf-main { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 28px 0 22px; gap: 22px 18px; }
    .sf-follow { grid-column: 1 / -1; }
    .sf-legal .sf-inner { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
}

/* Responsive */
@media (max-width: 1024px) {
    .hot-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }
    .nav {
        order: 3;
        width: 100%;
        justify-content: space-around;
    }
    .hero-section {
        flex-direction: column;
    }
    .category-sidebar {
        width: 100%;
    }
    .hot-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== 首页巨型菜单（侧栏悬浮展开） ===== */
.category-sidebar-wrap {
    position: relative;
    width: 220px;
    flex-shrink: 0;
    z-index: 100;
}

.category-sidebar {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.4) transparent;
}
.category-sidebar > .category-btn { flex: 0 0 auto; }
.category-sidebar > .view-all-btn { margin-top: auto; flex: 0 0 auto; }
.category-sidebar::-webkit-scrollbar { width: 5px; }
.category-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.35); border-radius: 3px; }

.category-btn {
    position: relative;
    z-index: 2;
    transition: background .15s;
}
.category-btn.active,
.category-btn:hover {
    background: #fff;
    color: #1f6fe0;
    border-radius: 8px 8px 8px 8px;
}
.category-btn.active .category-btn-text,
.category-btn:hover .category-btn-text { color: #1f6fe0; }

.mega-panel {
    position: absolute;
    left: calc(100% - 12px);
    top: 0;
    width: 640px;
    min-height: 380px;
    max-height: 480px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15,23,42,.15);
    padding: 20px 26px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 1;
    display: flex;
    flex-direction: column;
}
.mega-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 3;
}
.mega-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef1f6;
    margin-bottom: 16px;
}
.mega-panel-head h3 { font-size: 17px; color: #222; font-weight: 700; }
.mega-panel-hint { font-size: 12px; color: #98a0af; }

.mega-panel-grid {
    flex: 1;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px 8px;
    align-content: start;
    padding-right: 4px;
    scrollbar-width: thin;
}
.mega-panel-grid::-webkit-scrollbar { width: 5px; }
.mega-panel-grid::-webkit-scrollbar-thumb { background: #dde3ec; border-radius: 3px; }

.mega-sub-item {
    text-align: center;
    cursor: pointer;
    padding: 6px 2px;
    border-radius: 8px;
    transition: background .15s;
}
.mega-sub-item:hover { background: #f2f7ff; }
.mega-sub-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: #f4f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.mega-sub-icon img { width: 34px; height: 34px; object-fit: contain; border-radius: 6px; }
.mega-sub-name {
    font-size: 12px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mega-empty { grid-column: 1 / -1; text-align: center; color: #98a0af; font-size: 13px; padding: 40px 0; }

/* ===== 爆款商品弹窗 ===== */
.hot-modal-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.hot-modal-mask.show { display: flex; }
.hot-modal {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: min(960px, 100%);
    max-height: 86vh;
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: hotModalIn .25s cubic-bezier(.34,1.4,.64,1);
}
@keyframes hotModalIn {
    from { opacity: 0; transform: translateY(24px) scale(.97); }
    to { opacity: 1; transform: none; }
}
.hot-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f1f3f8;
    color: #666;
    font-size: 14px;
    cursor: pointer;
}
.hot-modal-close:hover { background: #e4e8f0; color: #222; }
.hot-modal-title { font-size: 18px; font-weight: 700; color: #222; margin-bottom: 18px; }
.hot-modal-grid {
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: max-content;
    gap: 16px;
    align-content: start;
    padding-right: 6px;
    scrollbar-width: thin;
}
.hot-modal-grid::-webkit-scrollbar { width: 6px; }
.hot-modal-grid::-webkit-scrollbar-thumb { background: #dde3ec; border-radius: 3px; }

@media (max-width: 1100px) {
    .mega-panel { width: 520px; }
    .mega-panel-grid { grid-template-columns: repeat(4, 1fr); }
    .hot-modal-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .mega-panel { display: none; }
    .category-sidebar-wrap { width: 100%; }
    .hot-modal-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Header 重构（对齐上游 UI） ===== */
.header { z-index: 200; }
.header-inner {
    max-width: 1500px;
    padding: 0 24px;
    height: 64px;
    gap: 18px;
    flex-wrap: nowrap;
}
.logo { flex-shrink: 0; }
.logo-icon { width: 38px; height: 38px; }
.logo-text .cn { font-size: 19px; line-height: 1.2; }
.nav { gap: 6px; flex: 1; justify-content: center; min-width: 0; overflow: visible; }
.nav a {
    font-size: 14px;
    color: #333;
    padding: 6px 10px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.nav a:hover { background: #fff3ec; }
.nav a.active { color: #ff6b35; font-weight: 600; }
.badge {
    position: static;
    display: inline-block;
    margin-left: 4px;
    background: linear-gradient(135deg, #ff6b35, #ff4d4f);
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 9px;
    vertical-align: 2px;
    transform: translateY(-8px);
}
.search-box {
    flex: 0 1 300px;
    min-width: 170px;
    border: 2px solid #ff6b35;
    border-radius: 20px;
    height: 38px;
}
.search-box input { font-size: 13px; }
.search-box button { background: #ff6b35; padding: 0 18px; border-radius: 0 18px 18px 0; }
.btn-register { background: #ff6b35; padding: 8px 22px; border-radius: 20px; font-size: 14px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1200px) {
    .logo-text .en { display: none; }
    .nav a { padding: 6px 6px; font-size: 13px; }
}
@media (max-width: 992px) {
    .header-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; row-gap: 8px; }
    .nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; }
    .search-box { flex: 1; }
}

/* ===== 首页右侧用户面板 ===== */
.user-panel {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(15,23,42,.06);
}
.up-top { text-align: center; padding-bottom: 18px; border-bottom: 1px dashed #eef1f6; }
.up-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f4ff, #f2f7ff);
    border: 2px solid #dbe9fb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}
.up-welcome { font-size: 13px; color: #5b6474; line-height: 1.7; }
.up-btns { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.up-btn {
    flex: 1;
    text-align: center;
    font-size: 13px;
    padding: 8px 0;
    border-radius: 18px;
    transition: opacity .15s;
}
.up-btn:hover { opacity: .85; }
.up-btn.ghost { border: 1px solid #1f6fe0; color: #1f6fe0; background: #fff; }
.up-btn.primary { background: #1f6fe0; color: #fff; border: 1px solid #1f6fe0; }
.up-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 18px;
}
.up-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 4px;
    border-radius: 10px;
    font-size: 12px;
    color: #444;
    background: #fafbfd;
    transition: background .15s;
}
.up-cell:hover { background: #f0f6ff; color: #1f6fe0; }
.up-cell-icon { font-size: 22px; }

@media (max-width: 1100px) {
    .user-panel { display: none; }
}

/* ============================================================
   v20261019b 顶部导航/右侧用户面板 对齐上游 vipzhichong.com
   ============================================================ */
.header { background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(255,255,255,.3); box-shadow: 0 1px 0 rgba(0,0,0,.05); }
.header-inner {
    max-width: 1400px;
    height: 64px;
    padding: 0 32px;
    gap: 12px;
    flex-wrap: nowrap;
}
.logo-icon { width: 38px !important; height: 38px !important; }
.logo-text .cn { font-size: 19px; color: #303744; }
.logo-text .en { font-size: 10px; color: #9aa3ad; }

/* 导航：绝对居中、纯文字+fa图标、等高拉满 */
.header-inner { position: relative; }
.nav {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
}
.nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 100%;
    padding: 0 16px;
    color: #303744;
    background: transparent;
    font-size: 15px;
    letter-spacing: .3px;
    border-radius: 0;
}
.nav a i { margin-right: 5px; font-size: 14px; color: #6b7686; }
.nav a:hover { color: #0071e3; }
.nav a.active { color: #0071e3; font-weight: 600; background: transparent; }
.nav a.active i { color: #0071e3; }
.badge {
    position: absolute;
    top: 2px;
    right: 4px;
    display: inline-flex;
    align-items: center;
    height: 17px;
    padding: 0 8px;
    border-radius: 999px 999px 4px 999px;
    background: linear-gradient(135deg, #ff5a3c, #e6271e);
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    transform: none;
}

/* 搜索框：上游 200x38 圆角胶囊 */
.search-box {
    flex: 0 0 200px;
    width: 200px;
    height: 38px;
    padding: 3px 4px 3px 12px;
    margin-left: auto;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(0,113,227,.14);
    border-radius: 20px;
    box-shadow: 0 3px 12px rgba(20,44,78,.06);
}
.search-box:focus-within { background: #fff; box-shadow: 0 3px 12px rgba(20,44,78,.1); }
.search-box input { font-size: 16px; background: transparent; }
.search-box input::placeholder { color: #9aa3ad; font-size: 12px; }
.search-box button {
    flex: 0 0 52px;
    min-width: 52px;
    height: 32px;
    padding: 0 11px;
    color: #fff;
    background: #0071e3;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}

/* 顶部注册/个人中心按钮：上游 32px 高蓝色胶囊 */
.btn-register,
.header-actions a.btn-register {
    height: 32px;
    padding: 7.2px 17.6px;
    color: #fff;
    background: #0071e3;
    border-radius: 18px;
    box-shadow: 0 5px 14px rgba(0,113,227,.2);
    font-size: 13.12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 顶栏设置齿轮（仅手机端显示，桌面端隐藏；手机端样式见 mobile.css） */
.header-gear { display: none; }

/* 右侧用户面板：上游 240x512 卡片 */
.user-panel {
    flex: 0 0 240px;
    width: 240px;
    height: 512px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.7);
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 8px 30px rgba(30,60,100,.08);
}
.up-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 4px 0;
    border-bottom: 0;
    text-align: center;
}
.up-avatar { width: 76px; height: 76px; border-radius: 0; overflow: visible; }
.up-avatar img { width: 76px; height: 76px; object-fit: contain; border-radius: 0; }
.up-welcome { margin-top: 8px; line-height: 1.5; }
.up-welcome strong { display: block; color: #343434; font-size: 15px; font-weight: 500; }
.up-welcome p { margin: 5px 0 0; color: #999; font-size: 11px; }
.up-btns { display: flex; justify-content: center; gap: 14px; margin-top: 12px; width: 100%; }
.up-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    height: 34px;
    padding: 0 10px;
    border-radius: 4px;
    font-size: 13px;
    flex: 0 0 auto;
}
.up-btn.ghost { color: #2186dc; background: #fff; border: 1px solid #38a0ed; }
.up-btn.primary {
    color: #fff;
    background: #1e9cf4;
    border: 1px solid #1e9cf4;
    box-shadow: 0 4px 10px rgba(30,156,244,.22);
}

/* 面板快捷入口：虚线分隔 + 2列白卡 + 圆形字体图标 */
.up-grid {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
    padding-top: 24px;
    margin-top: 0;
    border-top: 1px dashed #e3e3e3;
    overflow-y: auto;
}
.up-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 79px;
    padding: 7px 3px;
    color: #444;
    background: #fff;
    border-radius: 9px;
    box-shadow: 0 5px 17px rgba(37,75,115,.08);
    font-size: 14px;
    transition: transform .2s;
}
.up-cell:hover { transform: translate3d(0,-3px,0); color: #444; }
/* 注意：<i> 同时带 fa 类，FontAwesome 的 .fa 会重置 display/font-size，
   必须用 i.up-cell-icon（权重 0,1,1 > .fa 的 0,1,0）确保覆盖 */
i.up-cell-icon,
.up-cell i.up-cell-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 23px;
    line-height: 1;
    color: #28bfa7;
    background: #e9faf6;
    flex: 0 0 40px;
}
i.up-cell-icon::before {
    display: block;
    line-height: 1;
}
.up-cell:nth-child(2) .up-cell-icon { color: #fa5d61; background: #fff0f0; }
.up-cell:nth-child(3) .up-cell-icon { color: #39a9df; background: #ebf8ff; }
.up-cell:nth-child(4) .up-cell-icon { color: #55b7e9; background: #eef9ff; }

@media (max-width: 1200px) { .user-panel { display: none; } }

/* 顶部导航徽标：悬浮在导航文字右上角（2026-10-21 用户要求） */
.header .nav a { overflow: visible; }
.header .nav a .badge {
    position: absolute;
    top: 5px;
    right: 2px;
    display: inline-block;
    margin: 0;
    padding: 0 6px;
    height: 16px;
    line-height: 16px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
    transform: none;
    pointer-events: none;
}

/* 1280/1366 等窄桌面：收紧导航间距，避免与搜索框挤在一起 */
@media (max-width: 1400px) {
    .header .nav { gap: 2px; }
    .header .nav a { padding: 6px 8px; font-size: 13.5px; }
    .header .nav a i { margin-right: 4px; font-size: 13px; }
}

/* 导航图标着色（公共，header.js 全站生效） */
.header .nav a i { color: #1673e6; }
.header .nav a:nth-child(3) i { color: #ff7b34; }
.header .nav a:nth-child(4) i { color: #18b985; }
.header .nav a:nth-child(5) i { color: #1d1d1f; }


/* ===== css/mobile.css ===== */

/* ============================================================
   移动端适配层（加载在 style.css 之后，覆盖桌面样式）
   底部导航 / 响应式布局 / 爆款商品横向自动滑动
   ============================================================ */

/* ===== 爆款商品横向自动滑动（桌面 + 手机通用） ===== */
.hot-scroll-viewport {
    overflow: hidden;
    width: 100%;
}
/* 爆款橙色标签内图标间距（模仿截图） */
.section-tag i { margin-right: 4px; }
.hot-scroll-track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: hotMarquee 120s linear infinite;
    will-change: transform;
}
.hot-scroll-viewport:hover .hot-scroll-track,
.hot-scroll-viewport:active .hot-scroll-track {
    animation-play-state: paused;
}
@keyframes hotMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.hot-scroll-track .hot-product-card {
    width: 208px;
    flex-shrink: 0;
    margin: 0;
}
/* 滚出视口时暂停动画，省电省 CPU（减少手机端卡顿） */
.hot-scroll-viewport.is-offscreen .hot-scroll-track { animation-play-state: paused; }
/* 系统“减少动态效果”时完全关闭滚动动画 */
@media (prefers-reduced-motion: reduce) {
    .hot-scroll-track { animation: none !important; }
}
/* 分类分页容器：桌面端"溶解"，让条目直接落在父级网格里（手机端见 media 内规则） */
.cat-page { display: contents; }
/* 移动端分类页（左一级 / 右二级+商品）：桌面端隐藏，仅手机端显示 */
.m-catpage { display: none; }

/* ===== 底部导航栏（仅移动端显示） ===== */
.m-tabbar {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 900;
    background: #fff;
    border-top: 1px solid #eef0f4;
    box-shadow: 0 -4px 16px rgba(15,23,42,.06);
    padding: 4px 0 max(4px, env(safe-area-inset-bottom));
}
.m-tabbar-inner {
    display: flex;
    align-items: stretch;
}
.m-tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: #9aa3b2;
    font-size: 11px;
    padding: 5px 0 3px;
    position: relative;
}
.m-tab-item .mt-ico {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    border-radius: 50%;
    transition: transform .15s;
}
.m-tab-item.active { color: #1f6fe0; font-weight: 700; }
.m-tab-item.active .mt-ico { transform: scale(1.08); }

/* 中间凸起的"兑换"圆钮：图标+文字都在圆形按钮内，悬浮于导航条上沿 */
.m-tab-item.is-center { color: #1f6fe0; overflow: visible; }
.m-tab-item .mt-ico.mt-center {
    flex-direction: column;
    gap: 1px;
    width: 52px; height: 52px;
    margin-top: -26px;
    background: linear-gradient(160deg, #4da3ff, #1f6fe0);
    border-radius: 50%;
    box-shadow: 0 6px 14px rgba(31,111,224,.4), 0 0 0 4px #fff;
    color: #fff;
    font-weight: 700;
}
.m-tab-item .mt-ico.mt-center i {
    font-style: normal;
    font-size: 10px;
    line-height: 1;
    color: #fff;
}

/* ===== 移动端快捷入口（仅首页注入） ===== */
.m-quick {
    display: none;
    background: #fff;
    border-radius: 14px;
    margin: 10px 12px 0;
    padding: 16px 2px 14px;
    box-shadow: 0 2px 10px rgba(15,23,42,.05);
}
.m-quick-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.m-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #4b5568;
    font-size: 11px;
    padding: 0;
}
/* 圆形浅色底图标（对齐参考图：38px 圆形 + 20px 彩色图标） */
.m-quick-item .mq-ico {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.m-quick-item .mq-ico svg { width: 20px; height: 20px; }
/* 快捷入口四色浅底（粉/薄荷/蓝/浅蓝，对齐参考图） */
.m-quick-item .mq-ico.tone-red { background: #ffe9ee; }
.m-quick-item .mq-ico.tone-orange { background: #e2f7f1; }
.m-quick-item .mq-ico.tone-blue { background: #e8f1ff; }
.m-quick-item .mq-ico.tone-teal { background: #e9f3ff; }

/* ============================================================
   ≤ 768px 移动端布局
   ============================================================ */
@media (max-width: 768px) {
    /* 防止任何横向溢出元素把整页撑宽（撑宽后 hero 栅格会一起变宽） */
    html, body { max-width: 100%; overflow-x: hidden; }
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
        /* 背景图：柔和渐变 + 顶部装饰图形，卡片间隙透出背景图（对齐参考图） */
        background-color: #eef2f9;
        background-image:
            url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='390'%20height='470'%3E%3Cdefs%3E%3ClinearGradient%20id='g'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%3Cstop%20offset='0'%20stop-color='%234f9bff'/%3E%3Cstop%20offset='1'%20stop-color='%238fc0ff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20d='M-60%20-60%20Q%20140%2040%2080%20220%20Q%2020%20380%20-80%20400%20Z'%20fill='url(%23g)'%20opacity='0.16'/%3E%3Ccircle%20cx='372'%20cy='40'%20r='98'%20fill='%234f9bff'%20opacity='0.13'/%3E%3Ccircle%20cx='338'%20cy='360'%20r='74'%20fill='%237aa8ff'%20opacity='0.10'/%3E%3C/svg%3E"),
            linear-gradient(180deg, #eaf1fc 0%, #f1f5fb 42%, #f4f6fa 100%);
        background-repeat: no-repeat, no-repeat;
        background-size: 100% 470px, 100% 100%;
        background-position: top center, top center;
    }
    .m-tabbar { display: block; }
    .m-quick { display: block; }

    /* ---- 顶栏（对齐参考图：总高 55px，更紧凑，让下方内容整体上移） ---- */
    .header { position: sticky; top: 0; z-index: 500; background: #fff; border-bottom: 1px solid #f0f2f6; }
    .header-inner { height: 55px; padding: 0 10px; gap: 8px; flex-wrap: nowrap; }
    .logo-text .en { display: none; }
    .logo-text .cn { font-size: 15px; }
    .logo-icon { width: 28px !important; height: 28px !important; }
    .logo-img { height: 28px; width: auto; } /* 手机端 Logo 28px，与顶栏 55px 高度协调 */
    .header .search-box { flex: 1; min-width: 0; height: 34px; border-radius: 17px; }
    .header .logo { flex: 0 0 auto; }
    .logo-text .cn { white-space: nowrap; }
    .search-box input { flex: 1; min-width: 0; width: auto; padding: 0 8px; font-size: 12.5px; }
    .search-box .search-icon { display: none; } /* 手机端搜索框内不放放大镜（模仿参考图） */
    /* 搜索按钮：蓝色小胶囊（对齐参考图），不再通栏贴边 */
    .search-box button { flex: 0 0 auto; min-width: 0; width: auto; height: 26px; margin-right: 3px; padding: 0 15px;
        font-size: 12.5px; border-radius: 13px; background: #1f6fe0; }
    .nav { display: none !important; } /* 底部导航替代顶部导航 */
    .header-actions { display: flex !important; align-items: center; flex: none; gap: 8px; } /* 手机端显示设置入口 */
    .header-actions .btn-register { display: none !important; } /* 上游手机端顶栏无登录按钮 */
    .header-gear { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
        border-radius: 50%; background: #f2f4f8; color: #5b6474; font-size: 15px; flex: none; text-decoration: none; }
    .header-gear:active { background: #e6eaf1; }

    /* ---- 首页 hero：横幅通栏（与参考图一致，无左右留白、无圆角），仅留 6px 与顶栏的呼吸位 ---- */
    .hero-section { flex-direction: column; margin: 6px 0 0; padding: 0; gap: 0; }
    .category-sidebar-wrap { display: none; } /* 悬浮菜单在触屏无意义 */
    .banner-section { flex-direction: column; }
    .banner-area { min-height: 0; width: 100%; border-radius: 0; }
    .banner-main { min-height: 0; flex: none; aspect-ratio: 448 / 170; border-radius: 0; }
    .banner-subs { display: none !important; }

    /* ---- 快捷入口下公告条 ---- */
    .notice-bar, .site-notice {
        margin: 8px 12px 0;
        border-radius: 12px;
        font-size: 11.5px;
    }
    /* 首页公告条：白色圆角小条（对齐参考图：图标后有竖向分隔线） */
    .announcement { margin: 8px 12px 0; padding: 9px 12px; border-radius: 14px; font-size: 12px; gap: 9px; }
    .announcement-icon { font-size: 17px; line-height: 1; flex: none; position: relative; padding-right: 10px; }
    .announcement-icon::after { content: ''; position: absolute; right: 0; top: 2px; bottom: 2px; width: 1px; background: #edeff4; }
    .announcement-more { font-size: 11.5px; flex: none; color: #9aa3b2; }

    /* ---- 一级分类：白卡 + 5 列 × 2 行，按页横向滑动（对齐参考图） ---- */
    .categories-section { margin: 8px 12px 0; padding: 10px 6px 12px; background: #fff; border-radius: 14px; }
    .categories-section .cat-head { margin-bottom: 8px; padding: 0 8px; }
    .categories-section h2 { font-size: 15px; margin-bottom: 0; }
    .categories-section .view-all { font-size: 11.5px; }
    /* .category-grid 滑动条本体规则见下方"分类网格"通用块（与商品页 .cat-grid 共用） */

    /* 分类标题右侧"全部分类"链接：蓝色（模仿截图） */
    .cat-level-head .cat-more { color: #1f6fe0; font-size: 12.5px; }
    .cat-level-head .cat-more i { color: #1f6fe0; }

    /* ---- 排序 Tab（模仿截图：激活为深色胶囊，未激活白底描边） ---- */
    .product-toolbar .sort-link, .ag-card .sort-link { background: #fff; border: 1px solid #eef1f6; }
    .product-toolbar .sort-link.is-active, .ag-card .sort-link.is-active { background: #262b36; border-color: #262b36; color: #fff; }

    /* ---- 爆款商品（白卡容器 + 86px 大图卡：图上 / 采购价 / 价格，对齐参考图右侧） ---- */
    .hot-products { margin: 8px 12px 0; padding: 11px 6px 10px; background: #fff; border-radius: 14px; }
    .hot-products .section-header { margin-bottom: 12px; padding: 0 4px; gap: 8px; }
    .hot-products .section-header h2 { font-size: 16px; color: #1a1d23; }
    .hot-products .section-tag { font-size: 11px; padding: 3px 8px; border-radius: 999px; }
    .hot-products .view-all { font-size: 12px; }
    .hot-products-grid, .hot-grid { display: block !important; }
    .hot-scroll-track { gap: 11px; padding-bottom: 2px; }
    .hot-scroll-track .hot-product-card {
        width: 86px;
        border-radius: 10px;
        border: 1px solid #eef0f4;
        background: #fff;
        padding: 5px 5px 7px;
        box-sizing: border-box;
        box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
    }
    .hot-scroll-track .hot-product-card img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 6px;
        background: #f7f9fc;
    }
    /* 商品名隐藏，只保留"采购价"标签 + 橙色价格（对齐参考图） */
    .hot-products-grid .hot-product-title { display: none; }
    .hot-products-grid .hot-product-info { padding: 7px 1px 0; }
    .hot-products-grid .hot-product-price { display: flex; flex-direction: column; gap: 0; font-size: 15px; line-height: 1.15; white-space: nowrap; overflow: hidden; letter-spacing: -.2px; color: #ff6b35; }
    .hot-products-grid .hot-product-price span { font-size: 11px; line-height: 1.2; color: #ff7b34; font-weight: 400; margin-bottom: 2px; }

    /* ---- 爆款弹窗（模仿上游：近全屏 + 两列商品卡，边界留白小） ---- */
    .hot-modal-mask { padding: 0; }
    .hot-modal {
        width: 100% !important;
        max-height: 86vh;
        padding: 14px 12px 12px;
        border-radius: 14px;
    }
    .hot-modal-close { top: 10px; right: 10px; width: 26px; height: 26px; font-size: 12px; background: none; color: #999; }
    .hot-modal-title { font-size: 17px; margin-bottom: 12px; }
    .hot-modal-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 !important;
    }
    /* 弹窗内商品卡：浅灰描边 + 圆角，图上/名中/价下 */
    .hot-modal-grid .hot-product-card {
        width: 100%;
        border: 1px solid #eef0f4;
        border-radius: 10px;
        background: #fff;
    }
    .hot-modal-grid .hot-product-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 10px 10px 0 0;
    }
    .hot-modal-grid .hot-product-info { padding: 8px 9px 10px; }
    .hot-modal-grid .hot-product-title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 13px;
        line-height: 1.45;
        color: #333;
        margin-bottom: 6px;
        min-height: 38px;
    }
    .hot-modal-grid .hot-product-price {
        display: flex;
        align-items: baseline;
        gap: 4px;
        font-size: 16px;
    }
    .hot-modal-grid .hot-product-price span {
        font-size: 11px;
        color: #ff6b35;
        font-weight: 600;
    }

    /* ---- features / footer ---- */
    .features { grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px; }
    .feature-item { padding: 12px 8px; }
    .feature-item p { display: none; }
    .footer-content { display: none; }
    .footer-bottom { padding: 12px; }

    /* ---- 商品列表页 goods.html ---- */
    .goods-layout, .category-layout, .goods-container { flex-direction: column; padding: 10px; }
    .goods-sidebar, .cat-sidebar { width: 100% !important; position: static !important; }
    .goods-toolbar { flex-wrap: wrap; gap: 6px; padding: 10px; }
    .sort-pill, .view-toggle { font-size: 12px; }
    .view-switch { display: none !important; } /* 上游手机端无视图切换 */
    .product-list { grid-template-columns: 1fr !important; gap: 10px; }
    .product-grid-list { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
    .product-card, .g-card { border-radius: 12px; }
    .cat-icons-row { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }

    /* ---- 商品页分类条：单行横向滑动 ---- */
    .goods-container .cat-grid {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        gap: 16px;
        padding: 2px 12px 6px;
        scrollbar-width: none;
    }
    .goods-container .cat-grid::-webkit-scrollbar { display: none; }
    .goods-container .cat-grid .cat-item {
        flex: 0 0 58px;
        scroll-snap-align: start;
        display: flex; flex-direction: column; align-items: center; gap: 6px;
        text-decoration: none; color: #4b5568; font-size: 11px;
    }
    .goods-container .cat-item img { width: 52px; height: 52px; border-radius: 14px; }
    .goods-container .cat-item .cat-name { font-size: 11px; }

    /* ---- 首页一级分类：5 列 × 2 行 = 一页，整页横向翻动（参考图布局） ---- */
    .category-grid {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y;
        gap: 0;
        padding: 0;
        grid-template-columns: none !important;
        scrollbar-width: none;
    }
    .category-grid::-webkit-scrollbar { display: none; }
    .category-grid .cat-page {
        flex: 0 0 100%;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-auto-rows: min-content;
        gap: 22px 0;
        align-content: start;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
    .category-grid .category-item {
        display: flex; flex-direction: column; align-items: center; gap: 5px;
        text-decoration: none; color: #4b5568; font-size: 11px;
        padding: 0 2px;
    }
    .category-grid .category-icon { width: 38px; height: 38px; border-radius: 11px; }
    .category-grid .category-icon img { width: 100%; height: 100%; object-fit: cover; }
    .category-grid .category-name { font-size: 11px; line-height: 15px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* ---- 商品列表卡片容器：收紧内边距（桌面 .gp-card 26px 太大） ---- */
    .goods-container .gp-card { padding: 14px 12px; }

    /* ---- 商品卡（对齐上游手机端截图：小图 + 标题/简介 + 整行三色指标块 + 价格行/小购买按钮） ---- */
    .product-item {
        display: grid; grid-template-columns: 92px 1fr;
        gap: 6px 10px; align-items: start;
        padding: 14px; border-radius: 16px;
    }
    .product-cover { width: 92px; height: 92px; border-radius: 10px; grid-column: 1; grid-row: 1 / span 2; }
    .product-main { display: contents; }
    .product-title { grid-column: 2; grid-row: 1; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; font-weight: 700; }
    .product-desc { grid-column: 2; grid-row: 2; margin: 0; font-size: 11px; }
    .metrics { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin: 6px 0 0; }
    .metric { padding: 8px 6px; gap: 5px; border-radius: 10px; min-width: 0; }
    .m-ico { width: 22px; height: 22px; border-radius: 6px; font-size: 10px; flex-shrink: 0; }
    .m-txt { min-width: 0; flex: 1; }
    .m-txt small { font-size: 9px; }
    .m-txt b { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .m-sub { display: none; }
    .metric .id-copy { display: none; }
    .grid-tags { display: none; }
    .product-pricebox { grid-column: 1 / -1; grid-row: 4; width: 100%; flex-shrink: 1; display: flex; flex-direction: row; align-items: center; justify-content: space-between; background: none; border-left: none; border-top: 1px dashed #eef1f6; border-radius: 0; padding: 10px 2px 0; margin: 0; }
    .price-ribbon { display: none; }
    .price-content { text-align: left; }
    .price-content small { display: none; }
    .price-big { font-size: 24px; font-weight: 800; }
    .price-big em { font-size: 14px; }
    /* 立即购买：右侧小号橙色胶囊（模仿截图，不再通栏） */
    .product-pricebox .buy-link {
        width: auto; flex: 0 0 auto;
        padding: 7px 16px; font-size: 13px; border-radius: 17px; gap: 5px;
        box-shadow: 0 3px 8px rgba(255, 90, 31, .28);
    }
    .product-pricebox .buy-link i { font-size: 12px; }

    /* ---- 用户中心类页面（user/recharge/billings/messages/invite/security） ---- */
    .layout { flex-direction: column !important; padding: 0 0 20px !important; gap: 0 !important; }
    .layout > .sidebar {
        width: 100% !important;
        position: static !important;
        display: flex;
        overflow-x: auto;
        gap: 6px;
        padding: 10px 12px;
        background: #fff;
        border-radius: 0;
        -webkit-overflow-scrolling: touch;
    }
    .layout > .sidebar .u-head { display: none; }
    .layout > .sidebar .menu-group { display: none; }
    .layout > .sidebar .menu-item {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 7px 12px;
        border-radius: 16px;
        background: #f2f5fa;
        font-size: 12px;
        margin: 0;
    }
    .layout > .sidebar .menu-item.active { background: #1f6fe0; color: #fff; }
    .layout > .main { width: 100% !important; padding: 12px !important; }
    .hero { padding: 14px; }
    .stat-grid, .ov-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .panel, .card { border-radius: 12px; }

    /* ---- 订单查询 ---- */
    .query-container { padding: 12px; }
    .query-box { padding: 16px; border-radius: 14px; }
    .query-input-group { flex-direction: column; gap: 8px; }
    .query-input-group button, .query-input-group .btn { width: 100%; }

    /* ---- 商品详情 ---- */
    .product-detail, .pd-wrap { flex-direction: column; padding: 12px; }
    .pd-img, .product-gallery { width: 100% !important; }
    .pd-info, .product-info { width: 100% !important; }

    /* ---- 登录/注册 ---- */
    .login-container { margin: 20px 12px !important; padding: 24px 18px !important; }

    /* ---- 充值页 ---- */
    .amount-grid, .recharge-amounts { grid-template-columns: repeat(3, 1fr) !important; }

    /* ---- 表格类面板横向滚动 ---- */
    .table-wrap, .panel { overflow-x: auto; }
    table { min-width: 480px; }

    /* ============================================================
       移动端分类页（goods.html）：左一级分类竖列表 + 右二级分类/商品
       ============================================================ */
    /* 隐藏桌面端首页式模块，改用移动端双栏 */
    body.page-goods .hero-section,
    body.page-goods .announcement,
    body.page-goods .hot-products,
    body.page-goods .goods-container,
    body.page-goods .site-footer { display: none !important; }

    body.page-goods .m-catpage {
        display: none;
        align-items: flex-start;
        background: #f3f5f9;
        min-height: calc(100vh - 56px - 62px);
    }
    /* 独立分类页 category.html：双栏展开（首页商品流 /goods 保持隐藏） */
    body.page-goods.page-catpage .m-catpage { display: flex; }
    /* 双栏各自独立滚动（2026-10-23）：分类页整体固定为「顶栏 56px ~ 底导航 62px」之间的弹性壳，
       页面本身不滚动；左栏/右栏各自 overflow 滚动。
       原实现为「右栏随文档滚动 + 左栏 position:sticky」，滑右栏商品时整页滚动、
       左栏被牵连（sticky 容器等高时还会失效），现改为壳式固定，滑右栏左栏纹丝不动 */
    body.page-goods.page-catpage .m-catpage {
        position: fixed;
        left: 0; right: 0;
        top: 56px;
        bottom: calc(62px + env(safe-area-inset-bottom));
        align-items: stretch;
        min-height: 0;
        overflow: hidden;
    }
    /* 左栏：壳已固定，无需再吸顶；填满壳高、独立滚动、滚动不链到页面 */
    body.page-goods.page-catpage .m-rail {
        position: static;
        height: 100%;
        overscroll-behavior: contain;
    }
    /* 右栏：填满壳高、独立滚动（原为随文档滚动） */
    body.page-goods.page-catpage .m-content {
        height: 100%;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    /* 左侧一级分类（吸顶、独立滚动，自带单独滚动条） */
    body.page-goods .m-rail {
        position: sticky;
        top: 56px;
        flex: 0 0 74px;
        width: 74px;
        height: calc(100vh - 56px - 62px);
        overflow-y: auto;
        background: #eef1f7;
        -webkit-overflow-scrolling: touch;
        /* 与右栏明显区分的细分隔线，强化"单独"滚动列观感 */
        border-right: 1px solid #e3e8f0;
        /* 单独滚动条（仅在内容超出时出现） */
        scrollbar-width: thin;
        scrollbar-color: #c4ccdb #eef1f7;
    }
    /* WebKit 单独滚动条：细窄、与右栏内容明显区分 */
    body.page-goods .m-rail::-webkit-scrollbar { width: 4px; display: block; }
    body.page-goods .m-rail::-webkit-scrollbar-track { background: transparent; }
    body.page-goods .m-rail::-webkit-scrollbar-thumb { background: #c4ccdb; border-radius: 4px; }
    body.page-goods .m-rail::-webkit-scrollbar-thumb:hover { background: #aab4c6; }
    body.page-goods .m-rail-item {
        position: relative;
        display: flex; flex-direction: column; align-items: center; gap: 4px;
        padding: 11px 2px; font-size: 11px; color: #5b6474; text-align: center;
        cursor: pointer; transition: background .15s;
    }
    body.page-goods .m-rail-item img {
        width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
        background: #fff; flex: none;
    }
    body.page-goods .m-rail-name {
        line-height: 1.2; max-width: 66px; overflow: hidden;
        text-overflow: ellipsis; white-space: nowrap;
    }
    body.page-goods .m-rail-count { font-size: 10px; color: #9aa3b2; min-height: 12px; }
    body.page-goods .m-rail-item.active { background: #fff; color: #1f6fe0; font-weight: 600; }
    body.page-goods .m-rail-item.active .m-rail-count { color: #1f6fe0; }
    body.page-goods .m-rail-item.active::before {
        content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
        width: 3px; height: 24px; background: #1f6fe0; border-radius: 0 3px 3px 0;
    }

    /* 右侧内容区 */
    body.page-goods .m-content { flex: 1; min-width: 0; padding: 10px 10px 24px; }
    body.page-goods .m-promo {
        background: linear-gradient(135deg, #3f7ff0, #2a5fd0);
        border-radius: 12px; padding: 14px 16px; color: #fff;
        box-shadow: 0 4px 12px rgba(42,95,208,.22);
    }
    body.page-goods .m-promo-title { font-size: 16px; font-weight: 700; }
    body.page-goods .m-promo-sub { font-size: 12px; opacity: .92; margin-top: 3px; }
    body.page-goods .m-cur-cat { font-size: 15px; font-weight: 700; color: #1f6fe0; margin: 12px 2px 8px; }
    body.page-goods .m-sub-label { font-size: 12.5px; color: #5b6474; margin: 2px 2px 8px; }
    body.page-goods .m-sub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
    body.page-goods .m-sub-card {
        display: flex; align-items: center; gap: 10px;
        background: #fff; border-radius: 12px; padding: 12px;
        box-shadow: 0 1px 4px rgba(15,23,42,.05); cursor: pointer;
    }
    body.page-goods .m-sub-card.active { outline: 1.5px solid #1f6fe0; }
    body.page-goods .m-sub-card img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; flex: none; }
    body.page-goods .m-sub-info { min-width: 0; }
    body.page-goods .m-sub-name { font-size: 13px; color: #2b3242; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    body.page-goods .m-sub-count { font-size: 11px; color: #9aa3b2; margin-top: 2px; }
    body.page-goods .m-list-head { font-size: 13.5px; font-weight: 700; color: #2b3242; margin: 14px 2px 8px; }

    /* 商品双列网格 */
    body.page-goods .m-prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
    body.page-goods .m-prod-card {
        background: #fff; border-radius: 12px; overflow: hidden;
        box-shadow: 0 1px 4px rgba(15,23,42,.05); cursor: pointer;
    }
    body.page-goods .m-prod-img { position: relative; width: 100%; aspect-ratio: 1 / 1; background: #f5f7fb; }
    body.page-goods .m-prod-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
    body.page-goods .m-badge {
        position: absolute; top: 6px; left: 6px; z-index: 2;
        background: rgba(24,144,255,.92); color: #fff; font-size: 10px;
        padding: 2px 7px; border-radius: 9px;
    }
    body.page-goods .m-prod-body { padding: 8px 8px 10px; }
    body.page-goods .m-prod-title {
        font-size: 12px; line-height: 1.35; color: #2b3242; height: 32px;
        overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
        margin-bottom: 6px;
    }
    body.page-goods .m-pill {
        display: flex; align-items: center; gap: 5px;
        font-size: 10.5px; padding: 4px 8px; border-radius: 7px; margin-bottom: 5px;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    body.page-goods .m-pill i { font-size: 10px; }
    body.page-goods .m-pill-green { background: #eafaf1; color: #18a058; }
    body.page-goods .m-pill-blue { background: #eef4ff; color: #1f6fe0; }
    body.page-goods .m-prod-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
    body.page-goods .m-price { color: #ff3b30; font-weight: 800; font-size: 17px; line-height: 1; }
    body.page-goods .m-price em { font-style: normal; font-size: 12px; margin-right: 1px; }
    body.page-goods .m-price small { font-size: 10px; color: #9aa3b2; font-weight: 400; margin-left: 1px; }
    body.page-goods .m-cart {
        width: 30px; height: 30px; border-radius: 50%; border: none;
        background: linear-gradient(135deg, #ff8a3d, #ff5a1f); color: #fff;
        font-size: 13px; display: flex; align-items: center; justify-content: center;
        box-shadow: 0 3px 8px rgba(255,90,31,.3); cursor: pointer; flex: none;
    }
    body.page-goods .m-loading,
    body.page-goods .m-empty { grid-column: 1 / -1; text-align: center; color: #98a0af; padding: 30px 0; font-size: 12px; }
    body.page-goods .m-more { display: none; text-align: center; color: #1f6fe0; font-size: 12.5px; padding: 14px 0; cursor: pointer; }
}

/* ≤380px 小屏微调 */
@media (max-width: 380px) {
    .product-grid-list { grid-template-columns: repeat(2, 1fr) !important; }
}


/* ===== css/ui-kit.css ===== */

/* ============================================================
   007卡券 · 全站弹窗统一层
   1) 所有自定义弹窗：电脑 / 手机 均水平 + 垂直居中
   2) 统一确认框 / 输入框 / 提示条样式（配合 js/ui-dialog.js）
   ============================================================ */

/* ---------- 通用弹窗遮罩：强制居中 ---------- */
.modal-mask,
.sheet-mask,
.share-mask,
.hot-modal-mask,
.ib-mask,
.cat-modal-mask,
[data-ui-modal] {
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
    overflow-y: auto !important;
}

/* 弹窗本体：限高 + 内部滚动，避免超出屏幕 */
.modal,
.sheet,
.share-modal,
.hot-modal,
.ib-modal,
.cat-modal,
.rebill-modal {
    margin: auto !important;
    max-height: calc(100vh - 48px) !important;
    max-height: calc(100dvh - 48px) !important;
    overflow-y: auto !important;
}

/* 原本是底部抽屉的，电脑端改为居中卡片 */
.sheet {
    border-radius: 18px !important;
    width: min(560px, 100%) !important;
    max-width: 560px !important;
    animation: uiPopIn .2s ease !important;
    padding-bottom: 18px !important;
}

/* 手机端尺寸优化 */
@media (max-width: 640px) {
    .modal-mask,
    .sheet-mask,
    .share-mask,
    .hot-modal-mask,
    .ib-mask,
    .cat-modal-mask,
    [data-ui-modal] {
        padding: 14px !important;
    }
    .modal,
    .sheet,
    .share-modal,
    .hot-modal,
    .ib-modal,
    .cat-modal {
        width: 100% !important;
        max-height: calc(100vh - 28px) !important;
        max-height: calc(100dvh - 28px) !important;
    }
    .modal { padding: 18px !important; border-radius: 16px !important; }
    .hot-modal { padding: 20px 16px !important; }
    .hot-modal-title { margin-bottom: 12px !important; }
    .sheet { max-width: 100% !important; }
}

@keyframes uiPopIn {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

/* ---------- 统一对话框 ---------- */
.ui-dlg-mask {
    position: fixed; inset: 0; z-index: 99999;
    display: none; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.ui-dlg-mask.show { display: flex; }

.ui-dlg {
    width: min(422px, 100%);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 26px 70px rgba(15, 23, 42, .32);
    display: flex; flex-direction: column;
    overflow: hidden;
    animation: uiDlgIn .2s cubic-bezier(.22, 1, .36, 1);
}
@keyframes uiDlgIn {
    from { opacity: 0; transform: translateY(14px) scale(.96); }
    to   { opacity: 1; transform: none; }
}

.ui-dlg-hd { padding: 26px 24px 0; text-align: center; flex: none; }
.ui-dlg-ico {
    width: 54px; height: 54px; border-radius: 50%;
    margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; line-height: 1;
}
.ui-dlg-ico.info    { background: #eaf2ff; color: #2f7cf6; }
.ui-dlg-ico.success { background: #e6f9f0; color: #12b76a; }
.ui-dlg-ico.warn    { background: #fff4e5; color: #f79009; }
.ui-dlg-ico.danger  { background: #feeceb; color: #f04438; }
.ui-dlg-ttl { font-size: 17px; font-weight: 700; color: #1f2430; letter-spacing: .2px; }

.ui-dlg-bd {
    padding: 10px 24px 2px;
    font-size: 14px; line-height: 1.75; color: #5b6474;
    text-align: center; white-space: pre-wrap; word-break: break-word;
    overflow-y: auto;
}
.ui-dlg-bd .ui-dlg-strong { color: #1f2430; font-weight: 700; }

.ui-dlg-input {
    width: 100%; margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #e3e8f0; border-radius: 11px;
    background: #f7f9fc; color: #1f2430;
    font-size: 14px; font-family: inherit;
    outline: none; transition: border-color .15s, background .15s;
}
.ui-dlg-input:focus { border-color: #7fb0ff; background: #fff; box-shadow: 0 0 0 3px rgba(47,124,246,.12); }
textarea.ui-dlg-input { resize: vertical; min-height: 84px; line-height: 1.6; }

.ui-dlg-ft { display: flex; gap: 10px; padding: 20px 24px 24px; flex: none; }
.ui-dlg-btn {
    flex: 1; padding: 12px 10px;
    border-radius: 12px; border: none;
    font-size: 14.5px; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: transform .12s, box-shadow .15s, background .15s;
}
.ui-dlg-btn:active { transform: scale(.985); }
.ui-dlg-btn.ghost { background: #f2f5f9; color: #4b5568; }
.ui-dlg-btn.ghost:hover { background: #e9eef6; }
.ui-dlg-btn.primary { background: linear-gradient(135deg, #4f9bff, #2f7cf6); color: #fff; box-shadow: 0 6px 16px rgba(47,124,246,.28); }
.ui-dlg-btn.primary:hover { box-shadow: 0 8px 20px rgba(47,124,246,.34); }
.ui-dlg-btn.danger { background: linear-gradient(135deg, #ff7a6b, #f04438); color: #fff; box-shadow: 0 6px 16px rgba(240,68,56,.26); }
.ui-dlg-btn.warn { background: linear-gradient(135deg, #ffb556, #f79009); color: #fff; box-shadow: 0 6px 16px rgba(247,144,9,.26); }
.ui-dlg-btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- 统一轻提示 ---------- */
body.ui-locked { overflow: hidden; }
.ui-toast {
    position: fixed; left: 50%; top: 50%;
    transform: translate(-50%, -50%) scale(.96);
    background: rgba(24, 32, 46, .93);
    color: #fff; font-size: 13.5px; line-height: 1.6;
    padding: 12px 20px; border-radius: 12px;
    max-width: min(78vw, 420px);
    text-align: center; word-break: break-word;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .35);
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 100000;
}
.ui-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

@media (max-width: 640px) {
    .ui-dlg-mask { padding: 14px; }
    .ui-dlg { width: 100%; border-radius: 18px; }
    .ui-dlg-hd { padding: 22px 20px 0; }
    .ui-dlg-bd { padding: 9px 20px 2px; }
    .ui-dlg-ft { padding: 18px 20px 20px; }
    .ui-dlg-btn { padding: 12px 8px; font-size: 14px; }
}
