/* ============================================================
   移动端商城统一皮肤（覆盖旧模板样式）
   仅作用于 app/index/view 下的页面
   ============================================================ */
:root {
    --c: #ff5a1f;
    --c2: #ff8a3d;
    --ink: #1f2329;
    --sub: #8a8f99;
    --line: #eef0f3;
    --bg: #f5f6f8;
    --card: #ffffff;
    --r: 14px;
    --shadow: 0 6px 20px rgba(17, 24, 39, .06);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
}

body {
    color: var(--ink);
    font: 14px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-text-size-adjust: 100%;
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
}

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
ul, li { list-style: none; margin: 0; padding: 0; }
input, button, textarea { font: inherit; outline: 0; }
em, i { font-style: normal; }

.mwidth { width: 100%; max-width: 640px; margin: 0 auto; }
.wp { background: transparent; }
.bg-white { background: #fff; }

/* 顶部栏 */
.web-top,
.header,
.topbar {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    z-index: 900;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    height: 48px !important;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.web-top {
    display: flex;
    align-items: center;
    justify-content: center;
}

.web-top .userTitle,
.header .userTitle {
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    line-height: 48px;
    height: 48px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky !important;
}

.header .goBack {
    position: absolute;
    left: 6px;
    top: 0;
    width: 42px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: var(--ink);
}

.header .right {
    position: absolute;
    right: 12px;
    top: 0;
    height: 48px;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--sub);
}

.web-top .back {
    position: absolute;
    left: 6px;
    top: 0;
    width: 42px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    color: var(--ink);
}

.topbar {
    display: flex;
    align-items: center;
    padding: 0 10px !important;
    gap: 8px;
}

.topbar .topbar-left,
.topbar .topbar-right {
    width: 38px;
    display: flex;
    align-items: center;
    flex: 0 0 38px;
}

.topbar .topbar-title {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar .topbar-left a,
.topbar .ui-back {
    font-size: 20px;
    color: var(--ink);
}

.fixed-warp { height: auto !important; }
.blank, .blank-small, .blank-big { height: 8px !important; }

/* 首页 banner */
.page-home .contentMain {
    margin: 10px 12px 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.page-home .swiper-container,
.page-home .swiper-slide {
    height: 168px !important;
}

.page-home .swiper-slide {
    background-position: center !important;
    background-size: cover !important;
    border-radius: 18px;
}

/* 首页快捷入口 */
.topquick {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    background: #fff;
    border-radius: 16px;
    padding: 14px 6px;
    margin: 12px 12px 0;
    box-shadow: var(--shadow);
}

.topquick a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    float: none !important;
    height: auto !important;
    padding: 0 !important;
    font-size: 12px;
    color: #4b5563;
}

.topquick i {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    color: #fff;
    margin: 0 !important;
}

/* 搜索 */
.search {
    padding: 12px !important;
    margin: 0 !important;
    background: transparent !important;
    height: auto !important;
}

.search form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 999px;
    padding: 5px 5px 5px 16px;
    box-shadow: var(--shadow);
}

.search .mtxt,
.search input[type="text"],
.search input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: 0 !important;
    background: transparent !important;
    font-size: 14px;
    color: var(--ink);
    padding: 0 !important;
    margin: 0 !important;
}

.search .mbtn,
.search button {
    flex: 0 0 auto;
    width: 66px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--c), var(--c2));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

/* 首页分类区块 */
.wap-index {
    background: #fff;
    border-radius: 16px;
    margin: 12px;
    padding: 14px;
    box-shadow: var(--shadow);
}

.wap-index .menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 12px;
}

.wap-index .list-lmmc span {
    position: relative;
    padding-left: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

.wap-index .list-lmmc span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: var(--c);
}

.wap-index .list-more a { font-size: 12px; color: var(--sub); }

/* 商品卡片（首页 + 分类 + 搜索） */
.web_imglb,
.goods-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.web_imglb-item,
.goods-list .item {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    background: #fff;
    border: 1px solid #f0f1f3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(17, 24, 39, .04);
}

.web_imglb-tp,
.goods-list .item .img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f2f3f5;
}

.web_imglb-tp img,
.goods-list .item .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.web_imglb-home,
.goods-list .txt {
    padding: 9px 10px 11px;
}

.web_pic-tit,
.goods-list .tit {
    font-size: 13px;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal !important;
    text-overflow: clip !important;
    color: var(--ink);
}

.web_imglb .price-num,
.goods-list .price-num {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 7px;
}

.web_imglb .price,
.goods-list .price {
    color: #ff3b30;
    font-size: 16px;
    font-weight: 700;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.web_imglb .num,
.goods-list .num {
    font-size: 11px;
    color: #9aa0a6;
    flex: 0 0 auto;
    white-space: nowrap;
}

.goods-list {
    padding: 12px;
}

/* 板块标题 */
.title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    margin: 18px 0 8px;
}

.title-txt span {
    position: relative;
    padding-left: 10px;
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
}

.title-txt span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 17px;
    border-radius: 2px;
    background: var(--c);
}

.title-right .more { font-size: 12px; color: var(--sub); }

/* 新闻列表 */
.news-list {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    padding: 0 12px;
}

.news-list .item {
    display: flex !important;
    gap: 12px;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 12px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.news-list .item .img {
    width: 96px !important;
    height: 76px !important;
    flex: 0 0 96px;
    border-radius: 10px;
    overflow: hidden;
    background: #f2f3f5;
}

.news-list .item .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-list .txt {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.news-list .tit {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--ink);
}

.news-list .desc {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--sub);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list .time-more {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto !important;
    padding-top: 6px;
    font-size: 11px;
    color: #9aa0a6;
}

.mt30 { margin-top: auto !important; }

/* 分类目录页 */
.cate-card {
    background: #fff;
    border-radius: 16px;
    margin: 12px;
    padding: 14px;
    box-shadow: var(--shadow);
}

.cate-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cate-head h3 {
    position: relative;
    margin: 0;
    padding-left: 10px;
    font-size: 16px;
    font-weight: 600;
}

.cate-head h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: var(--c);
}

.cate-head a { font-size: 12px; color: var(--sub); }

.cate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.cate-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 6px;
    border-radius: 10px;
    background: #f6f7f9;
    color: #4b5563;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cate-chip:active { background: #fff3ec; color: var(--c); }

.empty-state {
    margin: 12px;
    padding: 56px 20px;
    background: #fff;
    border-radius: 16px;
    text-align: center;
    color: var(--sub);
    font-size: 13px;
    box-shadow: var(--shadow);
}

/* 分页 */
.page { padding: 18px 12px 24px; text-align: center; }
.page ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.page li, .page a, .page span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 9px;
    background: #fff;
    color: #4b5563;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(17, 24, 39, .05);
}
.page .active a, .page .active span, .page li.active {
    background: var(--c);
    color: #fff;
}

/* 新闻详情 */
.article-show {
    background: #fff;
    border-radius: 16px;
    margin: 12px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.article-show h1 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.45;
    font-weight: 700;
}

.article-show .info {
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    color: var(--sub);
}

.article-show .intro {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    word-break: break-word;
}

.article-show .intro img { max-width: 100%; height: auto; border-radius: 8px; }

.boxs { margin: 12px; }
.boxs .menu { margin: 0 0 8px; }
.boxs .list li {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.boxs .list li:last-child { border-bottom: 0; }

/* 底部导航 */
.footer-nav {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 0;
    width: 100% !important;
    max-width: 640px;
    transform: translateX(-50%);
    height: calc(56px + env(safe-area-inset-bottom)) !important;
    padding-bottom: env(safe-area-inset-bottom);
    display: flex !important;
    align-items: stretch !important;
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid var(--line) !important;
    box-shadow: 0 -6px 20px rgba(17, 24, 39, .06);
    z-index: 999;
}

.footer-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 11px;
    color: #8a8f99;
    position: relative;
}

.footer-nav .nav-item.cur { color: var(--c); }
.footer-nav .nav-item-t,
.footer-nav .nav-item-b { height: auto !important; }
.footer-nav .nav-item i { font-size: 21px; line-height: 1; }
.footer-nav .bubble {
    position: absolute;
    top: 6px;
    right: calc(50% - 22px);
    height: 16px;
    line-height: 16px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff3b30;
    color: #fff;
    font-size: 10px;
}

/* 商品详情页局部 */
.page-detail .goods-price-xin {
    padding: 14px 4px 4px !important;
}

.page-detail .goods-title h1 {
    margin: 0;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 600;
}

.page-detail .goods-buynum,
.page-detail .goods-company {
    margin-top: 10px;
    padding: 12px 4px;
    border-top: 1px solid var(--line);
}

.page-detail .view-banner .swiper-container {
    height: 390px !important;
}

.page-detail .view-banner .swiper-slide {
    height: 390px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #f6f7f9;
}

.page-detail .view-banner .swiper-slide img,
.page-detail .view-banner .swiper-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f6f7f9;
}

.page-detail .footbar .footbar-right a {
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--c), var(--c2)) !important;
    color: #fff !important;
}

.page-detail .footbar {
    max-width: 640px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    box-shadow: 0 -6px 20px rgba(17, 24, 39, .08);
}

/* 桌面端 */
@media (min-width: 641px) {
    body { background: #eceef2; }
    .mwidth, .web-top, .header, .topbar, .footer-nav { box-shadow: 0 0 0 1px rgba(0,0,0,.02); }
}

/* ============================================================
   PC 首页修正 + 商品详情头部
   ============================================================ */
.page-home .contentMain {
    padding: 0 !important;
}

/* 分类标题只保留一根竖线 */
.wap-index .list-lmmc::before { display: none !important; }

/* 顶部栏在 PC 上铺满，标题居中 */
.web-top { max-width: none !important; }

@media (min-width: 720px) {
    .page-home .contentMain {
        max-width: 640px;
        margin: 12px auto 0 !important;
    }

    .page-home > .search {
        max-width: 640px;
        margin: 0 auto !important;
        padding: 12px 0 !important;
    }

    .page-home .title {
        max-width: 640px;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .page-home .content {
        max-width: 640px;
        margin: 0 auto !important;
    }

    .page-home .mwidth {
        margin-left: auto;
        margin-right: auto;
    }
}

/* 详情页头部：返回 + 标题 + 悬浮评价菜单 */
.detail-head {
    position: sticky;
    top: 0;
    z-index: 900;
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.detail-head-bar {
    position: relative;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.detail-head-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

.detail-back {
    position: absolute;
    left: 10px;
    top: 7px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 2px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #333;
    font-size: 24px;
    line-height: 1;
    text-decoration: none;
}

.detail-back:active { background: #e9ebef; }

.detail-tabs {
    background: #fff;
}

.detail-tabs ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail-tabs li {
    flex: 1;
    text-align: center;
}

.detail-tabs li a {
    position: relative;
    display: block;
    padding: 10px 0 9px;
    font-size: 14px;
    color: #666;
}

.detail-tabs li.active a {
    color: var(--c);
    font-weight: 600;
}

.detail-tabs li.active a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: var(--c);
}
/* PC 宽屏首页 */
@media (min-width: 900px) {
    body.page-home { padding-bottom: 0; }

    .page-home .contentMain {
        max-width: 1100px;
        margin: 16px auto 0 !important;
    }

    .page-home .contentMain .swiper-container,
    .page-home .contentMain .swiper-slide {
        height: 260px !important;
    }

    .page-home > .search {
        max-width: 1100px;
        padding: 14px 0 !important;
    }

    .page-home .mwidth { max-width: 1100px; }

    .page-home .topquick {
        max-width: 1100px;
        margin: 16px auto 0;
        padding: 18px 12px;
    }

    .page-home .topquick i {
        width: 54px;
        height: 54px;
        font-size: 24px;
    }

    .page-home .topquick a { font-size: 13px; }

    .page-home .wap-index {
        max-width: 1100px;
        margin: 16px auto;
        padding: 18px;
    }

    .page-home .web_imglb {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .page-home .title {
        max-width: 1100px;
        margin: 22px auto 10px !important;
    }

    .page-home .content {
        max-width: 1100px;
        margin: 0 auto !important;
    }

    .page-home .news-list {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        max-width: 1100px;
        margin: 0 auto;
    }

    .footer-nav { display: none !important; }
}
/* 详情轮播去掉顶部留白 */
.page-detail .view-banner .carousel { padding-top: 0 !important; }
/* 返回按钮改为 CSS 箭头，避免字体/雪碧图变形 */
.detail-back { font-size: 0 !important; }

.detail-back::before {
    content: "";
    display: block;
    width: 9px;
    height: 9px;
    margin-left: 3px;
    border-left: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg);
}

.page-detail .view-banner .swiper-pagination {
    right: 16px !important;
    left: auto !important;
    bottom: 16px !important;
    width: auto !important;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 11px;
}