@charset "utf-8";
/* ==========================================================================
   黩铭商城 - 新版前台视觉规范 (shop-new.css)
   风格：浅色美妆风（参照 ilife.cn / huimeishow.com），白底 + 红色点缀
   说明：所有类名统一使用 m- 前缀，避免与旧模板样式冲突
   ========================================================================== */

:root {
    --m-primary: #e60012;
    --m-primary-dark: #c1000f;
    --m-primary-soft: #fff1f2;
    --m-orange: #ff6a00;
    --m-grad: linear-gradient(90deg, #ff5a4d 0%, #e60012 100%);
    --m-text: #333333;
    --m-text-2: #666666;
    --m-text-3: #999999;
    --m-text-4: #bbbbbb;
    --m-line: #ededed;
    --m-line-2: #f4f4f4;
    --m-bg: #f5f5f5;
    --m-bg-soft: #fafafa;
    --m-white: #ffffff;
    --m-radius: 8px;
    --m-radius-sm: 4px;
    --m-radius-lg: 12px;
    --m-shadow: 0 4px 16px rgba(0, 0, 0, .06);
    --m-shadow-hover: 0 10px 26px rgba(0, 0, 0, .12);
    --m-wrap: 1200px;
    --m-tr: all .28s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 基础重置 ---------- */
.m-page,
.m-page * {
    box-sizing: border-box;
}

body.m-body {
    margin: 0;
    padding: 0;
    background: var(--m-bg);
    color: var(--m-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.m-clear::after {
    content: "";
    display: table;
    clear: both;
}

.m-fl {
    float: left;
}

.m-fr {
    float: right;
}

.m-page a {
    text-decoration: none;
    color: inherit;
    transition: var(--m-tr);
}

.m-page img {
    max-width: 100%;
    display: block;
    border: 0;
}

.m-page ul,
.m-page ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ---------- 通用按钮 ---------- */
.m-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 22px;
    border: none;
    border-radius: 20px;
    background: var(--m-grad);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: var(--m-tr);
}

.m-btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 16px rgba(230, 0, 18, .3);
}

.m-btn-ghost {
    background: #fff;
    color: var(--m-primary);
    border: 1px solid var(--m-primary);
}

/* ==========================================================================
   头部
   ========================================================================== */
.m-topbar {
    height: 34px;
    line-height: 34px;
    background: var(--m-bg-soft);
    border-bottom: 1px solid var(--m-line);
    font-size: 12px;
    color: var(--m-text-2);
}

.m-topbar .m-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.m-topbar-l a,
.m-topbar-r a {
    color: var(--m-text-2);
    margin: 0 8px;
}

.m-topbar-l a:first-child,
.m-topbar-r a:first-child {
    margin-left: 0;
}

.m-topbar a:hover {
    color: var(--m-primary);
}

.m-topbar .m-split {
    color: #ddd;
    margin: 0 2px;
}

.m-header {
    background: #fff;
    padding: 20px 0;
}

.m-header .m-wrap {
    display: flex;
    align-items: center;
    gap: 30px;
}

.m-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 56px;
}

.m-logo img {
    max-height: 56px;
    width: auto;
}

.m-logo-text {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 2px;
    background: var(--m-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.m-search {
    flex: 1;
    max-width: 620px;
}

.m-search-box {
    display: flex;
    height: 46px;
    border: 2px solid var(--m-primary);
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
}

.m-search-box select {
    border: none;
    outline: none;
    background: #fafafa;
    color: var(--m-text-2);
    padding: 0 12px;
    font-size: 14px;
    border-right: 1px solid var(--m-line);
    cursor: pointer;
}

.m-search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 16px;
    font-size: 14px;
    color: var(--m-text);
}

.m-search-box button {
    width: 92px;
    border: none;
    background: var(--m-grad);
    color: #fff;
    font-size: 16px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--m-tr);
}

.m-search-box button:hover {
    filter: brightness(1.06);
}

.m-hotwords {
    margin-top: 8px;
    font-size: 12px;
    color: var(--m-text-3);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.m-hotwords a {
    color: var(--m-text-3);
}

.m-hotwords a:hover {
    color: var(--m-primary);
}

.m-quick {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.m-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 56px;
    border: 1px solid var(--m-line);
    border-radius: var(--m-radius);
    color: var(--m-text-2);
    font-size: 12px;
    cursor: pointer;
    position: relative;
    background: #fff;
}

.m-quick-item i {
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--m-primary);
}

.m-quick-item:hover {
    border-color: var(--m-primary);
    color: var(--m-primary);
}

.m-quick-item .m-cart-num {
    position: absolute;
    top: 4px;
    right: 8px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    padding: 0 4px;
    background: var(--m-primary);
    color: #fff;
    border-radius: 8px;
    font-size: 11px;
    text-align: center;
}

/* ---------- 主导航 ---------- */
.m-nav {
    background: #fff;
    border-top: 2px solid var(--m-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
    position: relative;
    z-index: 60;
}

.m-nav .m-wrap {
    display: flex;
    align-items: stretch;
}

.m-allcat {
    width: 210px;
    height: 46px;
    background: var(--m-grad);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    flex: 0 0 auto;
}

.m-allcat i {
    margin-right: 10px;
}

.m-nav-list {
    display: flex;
    align-items: center;
    height: 46px;
    flex: 1;
}

.m-nav-list > li {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 22px;
    position: relative;
    font-size: 16px;
    color: var(--m-text);
    cursor: pointer;
}

.m-nav-list > li > a {
    color: var(--m-text);
    display: flex;
    align-items: center;
    height: 100%;
}

.m-nav-list > li:hover > a,
.m-nav-list > li.m-active > a {
    color: var(--m-primary);
}

.m-nav-list > li.m-hot > a::after {
    content: "HOT";
    margin-left: 4px;
    background: var(--m-primary);
    color: #fff;
    font-size: 10px;
    padding: 0 4px;
    border-radius: 3px;
    line-height: 14px;
}

/* ---------- 全部商品分类 mega 面板 ---------- */
.m-mega {
    position: absolute;
    left: 0;
    top: 46px;
    width: 100%;
    background: #fff;
    border: 1px solid var(--m-line);
    border-top: none;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .1);
    display: none;
    padding: 18px 20px 22px;
    z-index: 200;
}

.m-nav.m-open .m-mega {
    display: block;
}

.m-mega-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
    align-items: start;
}

.m-mega-ttl {
    font-size: 15px;
    color: var(--m-text);
    margin: 0 0 14px;
    padding-bottom: 9px;
    border-bottom: 1px dashed var(--m-line);
    font-weight: 700;
}

.m-mega-ttl i {
    color: var(--m-primary);
    margin-right: 6px;
}

/* 商品分类：一级商品类型 + 其下子栏目 */
.m-mega-cats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 26px;
    align-content: start;
}

.m-mega-cat {
    min-width: 0;
}

.m-mega-cat-t {
    display: inline-block;
    position: relative;
    padding-left: 11px;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--m-text);
    line-height: 1.5;
}

.m-mega-cat-t::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 13px;
    margin-top: -7px;
    border-radius: 2px;
    background: var(--m-grad);
}

.m-mega-cat-t:hover {
    color: var(--m-primary);
}

.m-mega-cat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    padding: 2px 0 4px 11px;
    border-left: 1px dashed var(--m-line);
    margin-left: 2px;
}

.m-mega-cat-links a {
    font-size: 13px;
    color: var(--m-text-2);
    white-space: nowrap;
}

.m-mega-cat-links a:hover {
    color: var(--m-primary);
}

/* 右侧：品牌资讯 + 推广图 */
.m-mega-aside {
    border-left: 1px solid var(--m-line);
    padding-left: 26px;
}

.m-mega-news {
    display: grid;
    gap: 8px;
}

.m-mega-news a {
    font-size: 13px;
    color: var(--m-text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-mega-news a:hover {
    color: var(--m-primary);
}

.m-mega-promo {
    margin-top: 16px;
}

.m-mega-promo a {
    display: block;
}

.m-mega-promo img {
    display: block;
    width: 100%;
    border-radius: var(--m-radius);
}

/* ==========================================================================
   首页 Banner
   ========================================================================== */
.m-banner {
    position: relative;
    background: #fff;
    padding-top: 12px;
}

/* 通栏：最宽 1920px，高度由图片决定 */
.m-banner-main {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--m-bg);
}

.m-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity .6s ease;
    overflow: hidden;
    background: #f4f4f4;
}

.m-slide.m-on {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.m-slide a {
    display: block;
    width: 100%;
}

/* 图片完整显示：宽 100%（最宽 1920），高度随图片自适应 */
.m-slide img {
    display: block;
    width: 100%;
    height: auto;
}

/* 竖版图兜底：按视口高度等比缩放，避免通栏后页面被拉得过长 */
.m-slide img.m-portrait {
    width: auto;
    max-height: 72vh;
    max-width: 100%;
}

/* 竖版图兜底时的模糊铺底层：同图放大模糊，填满两侧留白 */
.m-slide-bg {
    display: none;
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    filter: blur(38px) saturate(1.15);
    transform: scale(1.15);
    opacity: .8;
}

.m-slide[data-ar="portrait"] .m-slide-bg {
    display: block;
}

.m-slide[data-ar="portrait"] a {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.m-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 5;
}

.m-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
    cursor: pointer;
    transition: var(--m-tr);
}

.m-dots span.m-on {
    background: var(--m-primary);
    width: 26px;
    border-radius: 6px;
}

.m-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 62px;
    background: rgba(0, 0, 0, .3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transition: var(--m-tr);
}

.m-banner-main:hover .m-banner-arrow {
    opacity: 1;
}

.m-banner-arrow:hover {
    background: rgba(0, 0, 0, .55);
}

.m-banner-arrow.m-left {
    left: 0;
    border-radius: 0 6px 6px 0;
}

.m-banner-arrow.m-right {
    right: 0;
    border-radius: 6px 0 0 6px;
}

/* ==========================================================================
   服务保障 / 特色
   ========================================================================== */
.m-svc {
    background: #fff;
    margin-top: 20px;
    border-radius: var(--m-radius-lg);
    padding: 22px 0;
}

.m-svc ul {
    display: flex;
}

.m-svc li {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}

.m-svc li::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 34px;
    width: 1px;
    background: var(--m-line);
}

.m-svc li:last-child::after {
    display: none;
}

.m-svc-ico {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--m-primary-soft);
    color: var(--m-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex: 0 0 auto;
}

.m-svc-txt strong {
    display: block;
    font-size: 15px;
    color: var(--m-text);
    font-weight: 700;
}

.m-svc-txt span {
    font-size: 12px;
    color: var(--m-text-3);
}

/* ==========================================================================
   商品分类板块
   ========================================================================== */
.m-catblock {
    background: #fff;
    border-radius: var(--m-radius-lg);
    margin-top: 20px;
    padding: 0 20px 20px;
}

.m-sec-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
    border-bottom: 1px solid var(--m-line-2);
}

.m-sec-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--m-text);
    position: relative;
    padding-left: 14px;
}

.m-sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    border-radius: 3px;
    background: var(--m-grad);
}

.m-sec-title small {
    font-size: 12px;
    color: var(--m-text-3);
    font-weight: 400;
    margin-left: 8px;
}

.m-sec-more {
    font-size: 13px;
    color: var(--m-text-3);
}

.m-sec-more:hover {
    color: var(--m-primary);
}

.m-block-body {
    display: flex;
    gap: 16px;
    padding-top: 16px;
}

/* 左侧分类卡 */
.m-catpanel {
    flex: 0 0 260px;
    background: var(--m-bg-soft);
    border-radius: var(--m-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.m-catpanel-hd {
    background: #2b2b2b;
    color: #fff;
    padding: 14px 16px;
}

.m-catpanel-hd em {
    display: block;
    font-style: normal;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.m-catpanel-hd span {
    font-size: 12px;
    color: rgba(255, 255, 255, .7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 左侧竖图：撑满分类卡剩余空间（不再留大片空白） */
.m-catpanel-img {
    flex: 1 1 auto;
    min-height: 320px;
    width: 100%;
    overflow: hidden;
    background: var(--m-bg-soft);
    position: relative;
    display: block;
}

.m-catpanel-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--m-tr);
}

.m-catpanel:hover .m-catpanel-img img {
    transform: scale(1.04);
}

.m-catpanel-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 10px;
    padding: 14px 16px;
    flex: 0 0 auto;
    align-content: start;
}

.m-catpanel-links a {
    font-size: 13px;
    color: var(--m-text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-catpanel-links a:hover {
    color: var(--m-primary);
}

.m-catpanel-more {
    margin: 0 16px 16px;
    height: 34px;
    line-height: 32px;
    text-align: center;
    border: 1px solid var(--m-line);
    border-radius: 17px;
    background: #fff;
    font-size: 13px;
    color: var(--m-text-2);
}

.m-catpanel-more:hover {
    border-color: var(--m-primary);
    color: var(--m-primary);
}

/* 右侧商品网格 */
.m-prod-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    align-content: start;
}

.m-prod {
    display: block;
    border: 1px solid var(--m-line-2);
    border-radius: var(--m-radius);
    overflow: hidden;
    background: #fff;
    transition: var(--m-tr);
}

.m-prod:hover {
    border-color: transparent;
    box-shadow: var(--m-shadow-hover);
    transform: translateY(-4px);
}

.m-prod-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fafafa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--m-tr);
}

.m-prod:hover .m-prod-img img {
    transform: scale(1.06);
}

.m-prod-info {
    padding: 10px 12px 14px;
}

.m-prod-name {
    font-size: 13px;
    color: var(--m-text);
    line-height: 1.45;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.m-prod:hover .m-prod-name {
    color: var(--m-primary);
}

.m-prod-price {
    margin-top: 8px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.m-prod-price em {
    font-style: normal;
    color: var(--m-primary);
    font-size: 17px;
    font-weight: 700;
}

.m-prod-price em::before {
    content: "\00a5";
    font-size: 12px;
    margin-right: 1px;
}

.m-prod-price del {
    color: var(--m-text-4);
    font-size: 12px;
}

.m-prod-buy {
    margin-top: 10px;
    display: block;
    height: 30px;
    line-height: 28px;
    text-align: center;
    border: 1px solid var(--m-primary);
    color: var(--m-primary);
    border-radius: 15px;
    font-size: 12px;
    background: #fff;
}

.m-prod-buy:hover {
    background: var(--m-primary);
    color: #fff;
}

/* 长图板块（后台 banner typeid=4 上传） */
.m-longimg {
    margin-top: 20px;
    border-radius: var(--m-radius-lg);
    overflow: hidden;
    background: #fff;
}

.m-longimg img {
    width: 100%;
}

/* ==========================================================================
   资讯板块
   ========================================================================== */
.m-news {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.m-news-box {
    background: #fff;
    border-radius: var(--m-radius-lg);
    padding: 0 20px 18px;
}

.m-news-box .m-sec-hd {
    height: 56px;
}

.m-news-box .m-sec-title {
    font-size: 18px;
}

.m-news-feature {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px dashed var(--m-line);
}

.m-news-feature-img {
    position: relative;
    flex: 0 0 160px;
    height: 108px;
    border-radius: var(--m-radius);
    overflow: hidden;
    background: #fafafa;
}

.m-news-feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.m-news-feature:hover .m-news-feature-img img {
    transform: scale(1.05);
}

/* 头条角标 */
.m-news-badge {
    position: absolute;
    left: 0;
    top: 0;
    padding: 2px 8px;
    font-size: 11px;
    font-style: normal;
    color: #fff;
    background: var(--m-primary);
    border-bottom-right-radius: 8px;
}

.m-news-feature-txt h5 {
    margin: 0 0 8px;
    font-size: 15px;
    color: var(--m-text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m-news-feature-txt h5 a:hover {
    color: var(--m-primary);
}

.m-news-feature-txt p {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--m-text-3);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m-news-feature-date {
    font-size: 12px;
    color: var(--m-text-4);
}

.m-news-list {
    padding-top: 4px;
}

.m-news-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .045);
}

.m-news-item:last-child {
    border-bottom: 0;
}

.m-news-item-thumb {
    flex: 0 0 62px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f6f7;
}

.m-news-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.m-news-item-tit {
    flex: 1;
    min-width: 0;
    font-size: 13.5px;
    color: var(--m-text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .2s;
}

.m-news-item-tit:hover {
    color: var(--m-primary);
}

.m-news-item-date {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--m-text-4);
}

.m-news-empty {
    padding: 46px 0;
    text-align: center;
    font-size: 13px;
    color: var(--m-text-4);
}

.m-news-empty i {
    margin-right: 6px;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.m-footer {
    margin-top: 30px;
    background: #fff;
    border-top: 1px solid var(--m-line);
}

.m-foot-cols {
    display: flex;
    gap: 20px;
    padding: 34px 0 26px;
}

.m-foot-col {
    flex: 1;
    min-width: 0;
}

.m-foot-col h4 {
    margin: 0 0 14px;
    font-size: 15px;
    color: var(--m-text);
    font-weight: 700;
}

.m-foot-col ul li {
    margin-bottom: 9px;
}

.m-foot-col ul li a {
    font-size: 13px;
    color: var(--m-text-3);
}

.m-foot-col ul li a:hover {
    color: var(--m-primary);
}

.m-foot-qr {
    flex: 0 0 150px;
    text-align: center;
}

.m-foot-qr img {
    width: 110px;
    height: 110px;
    margin: 0 auto 8px;
    border: 1px solid var(--m-line);
    padding: 4px;
    background: #fff;
    object-fit: contain;
}

.m-foot-qr p {
    margin: 0;
    font-size: 12px;
    color: var(--m-text-3);
    line-height: 1.7;
}

.m-foot-bar {
    background: #2b2b2b;
    color: rgba(255, 255, 255, .72);
    padding: 18px 0;
    font-size: 13px;
}

.m-foot-links {
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    margin-bottom: 12px;
}

.m-foot-links a {
    color: rgba(255, 255, 255, .82);
    margin: 0 14px;
}

.m-foot-links a:hover {
    color: #fff;
}

.m-foot-links .m-dot {
    color: rgba(255, 255, 255, .3);
}

.m-foot-copy {
    text-align: center;
    line-height: 1.9;
}

.m-foot-copy a {
    color: rgba(255, 255, 255, .82);
}

/* ==========================================================================
   右侧悬浮栏
   ========================================================================== */
.m-float {
    position: fixed;
    right: 18px;
    bottom: 90px;
    width: 56px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.m-float-item {
    width: 56px;
    height: 56px;
    background: #fff;
    border: 1px solid var(--m-line);
    border-radius: var(--m-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--m-text-2);
    font-size: 11px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    transition: var(--m-tr);
}

.m-float-item i {
    font-size: 18px;
    margin-bottom: 3px;
    color: var(--m-primary);
}

.m-float-item:hover {
    background: var(--m-primary);
    border-color: var(--m-primary);
    color: #fff;
}

.m-float-item:hover i {
    color: #fff;
}

.m-float-top {
    display: none;
}

.m-float-top.m-show {
    display: flex;
}

.m-float-pop {
    position: absolute;
    right: 66px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid var(--m-line);
    border-radius: var(--m-radius);
    box-shadow: var(--m-shadow);
    padding: 12px 14px;
    white-space: nowrap;
    display: none;
    color: var(--m-text-2);
    font-size: 13px;
    line-height: 1.8;
    text-align: left;
}

.m-float-item:hover .m-float-pop {
    display: block;
}

.m-float-pop::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #fff;
    border-right: 1px solid var(--m-line);
    border-top: 1px solid var(--m-line);
}

.m-float-pop strong {
    color: var(--m-primary);
}

/* ==========================================================================
   通用列表/详情辅助
   ========================================================================== */
.m-crumb {
    padding: 16px 0;
    font-size: 13px;
    color: var(--m-text-3);
}

.m-crumb a {
    color: var(--m-text-3);
}

.m-crumb a:hover {
    color: var(--m-primary);
}

.m-filter {
    background: #fff;
    border-radius: var(--m-radius-lg);
    padding: 6px 20px;
}

.m-filter-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--m-line);
}

.m-filter-row:last-child {
    border-bottom: none;
}

.m-filter-row > b {
    flex: 0 0 70px;
    font-weight: 400;
    color: var(--m-text-3);
    font-size: 13px;
}

.m-filter-row .m-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 4px;
}

.m-filter-row .m-opts a {
    padding: 3px 14px;
    font-size: 13px;
    color: var(--m-text-2);
    border-radius: 14px;
}

.m-filter-row .m-opts a:hover {
    color: var(--m-primary);
}

.m-filter-row .m-opts a.m-on {
    background: var(--m-primary);
    color: #fff;
}

.m-pager {
    text-align: center;
    padding: 26px 0 6px;
    font-size: 13px;
}

.m-pager a,
.m-pager span {
    display: inline-block;
    min-width: 34px;
    height: 34px;
    line-height: 32px;
    padding: 0 10px;
    margin: 0 4px;
    border: 1px solid var(--m-line);
    border-radius: var(--m-radius-sm);
    color: var(--m-text-2);
    background: #fff;
}

.m-pager a:hover,
.m-pager .m-cur {
    background: var(--m-primary);
    border-color: var(--m-primary);
    color: #fff;
}

.m-pager .m-info {
    display: none;
}

/* 单页 */
.m-article-wrap {
    background: #fff;
    border-radius: var(--m-radius-lg);
    padding: 40px;
    margin: 16px 0 40px;
}

.m-article-wrap h1 {
    font-size: 24px;
    text-align: center;
    color: var(--m-text);
    margin: 0 0 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--m-line);
    font-weight: 700;
}

.m-article-content {
    font-size: 14px;
    line-height: 2;
    color: var(--m-text-2);
}

.m-article-content img {
    max-width: 100%;
    height: auto;
    margin: 10px auto;
}

/* 详情页 */
.m-detail {
    background: #fff;
    border-radius: var(--m-radius-lg);
    padding: 26px;
    display: flex;
    gap: 30px;
}

.m-detail-gallery {
    flex: 0 0 420px;
}

.m-detail-main {
    width: 100%;
    height: 420px;
    border: 1px solid var(--m-line);
    border-radius: var(--m-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.m-detail-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.m-detail-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.m-detail-thumbs img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border: 1px solid var(--m-line);
    border-radius: var(--m-radius-sm);
    cursor: pointer;
}

.m-detail-thumbs img.m-on,
.m-detail-thumbs img:hover {
    border-color: var(--m-primary);
}

.m-detail-info {
    flex: 1;
    min-width: 0;
}

.m-detail-title {
    font-size: 22px;
    line-height: 1.5;
    color: var(--m-text);
    font-weight: 700;
    margin: 0 0 14px;
}

.m-detail-sub {
    color: var(--m-text-3);
    font-size: 13px;
    line-height: 1.9;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--m-line);
}

.m-detail-price-box {
    background: var(--m-primary-soft);
    border-radius: var(--m-radius);
    padding: 16px 20px;
    margin: 16px 0;
}

.m-detail-price {
    color: var(--m-primary);
    font-size: 30px;
    font-weight: 700;
}

.m-detail-price::before {
    content: "\00a5";
    font-size: 18px;
}

.m-detail-price del {
    font-size: 14px;
    color: var(--m-text-3);
    font-weight: 400;
    margin-left: 10px;
}

.m-detail-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    font-size: 13px;
    color: var(--m-text-2);
    margin-bottom: 20px;
}

.m-detail-meta span {
    color: var(--m-text-3);
}

.m-detail-btns {
    display: flex;
    gap: 14px;
}

.m-detail-btns .m-btn {
    height: 46px;
    padding: 0 40px;
    border-radius: 23px;
    font-size: 16px;
}

.m-detail-btns .m-btn-cart {
    background: #ff9500;
}

.m-detail-tabs {
    background: #fff;
    border-radius: var(--m-radius-lg);
    margin-top: 20px;
    overflow: hidden;
}

.m-tab-hd {
    display: flex;
    border-bottom: 1px solid var(--m-line);
}

.m-tab-hd span {
    padding: 0 28px;
    height: 50px;
    line-height: 50px;
    font-size: 16px;
    color: var(--m-text-2);
    cursor: pointer;
    position: relative;
}

.m-tab-hd span.m-on {
    color: var(--m-primary);
    font-weight: 700;
}

.m-tab-hd span.m-on::after {
    content: "";
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: -1px;
    height: 2px;
    background: var(--m-primary);
}

.m-tab-body {
    padding: 26px;
    font-size: 14px;
    line-height: 2;
    color: var(--m-text-2);
}

.m-tab-body img {
    max-width: 100%;
    height: auto;
}

/* 响应式 */
@media (max-width: 1240px) {
    .m-prod-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .m-header .m-wrap {
        flex-wrap: wrap;
        gap: 16px;
    }

    .m-search {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }

    .m-quick {
        margin-left: auto;
    }

    .m-allcat {
        width: 160px;
        font-size: 15px;
    }

    .m-nav-list > li {
        padding: 0 14px;
        font-size: 15px;
    }

    .m-block-body {
        flex-direction: column;
    }

    .m-catpanel {
        flex: none;
        width: 100%;
        flex-direction: row;
    }

    .m-catpanel-img {
        width: 200px;
        height: 140px;
        flex: 0 0 200px;
    }

    .m-catpanel-links {
        grid-template-columns: repeat(3, 1fr);
    }

    .m-catpanel-more {
        align-self: flex-end;
    }

    .m-prod-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .m-news {
        grid-template-columns: 1fr;
    }

    .m-foot-cols {
        flex-wrap: wrap;
    }

    .m-foot-col {
        flex: 0 0 calc(25% - 15px);
    }
}

@media (max-width: 768px) {
    .m-svc ul {
        flex-wrap: wrap;
        gap: 14px;
    }

    .m-svc li {
        flex: 0 0 45%;
        justify-content: flex-start;
    }

    .m-svc li::after {
        display: none;
    }

    .m-prod-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .m-catpanel {
        flex-direction: column;
    }

    .m-catpanel-img {
        width: 100%;
        flex: none;
        height: 160px;
    }

    .m-detail {
        flex-direction: column;
    }

    .m-detail-gallery {
        flex: none;
        width: 100%;
    }

    .m-detail-main {
        height: 320px;
    }

    .m-mega-inner {
        grid-template-columns: 1fr;
    }

    .m-mega-cats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .m-mega-aside {
        border-left: none;
        padding-left: 0;
        padding-top: 6px;
        border-top: 1px dashed var(--m-line);
    }

    .m-mega-promo {
        display: none;
    }

    .m-foot-col {
        flex: 0 0 calc(50% - 10px);
    }
}

/* ==========================================================================
   列表页 / 详情页 / 单页 补充
   ========================================================================== */
.m-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 16px 0 0;
}

.m-list-grid .m-prod {
    background: #fff;
}

.m-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 4px;
    font-size: 13px;
    color: var(--m-text-3);
}

.m-list-head b {
    color: var(--m-primary);
    font-weight: 700;
}

.m-artlist {
    background: #fff;
    border-radius: var(--m-radius-lg);
    padding: 8px 24px 24px;
    margin-top: 16px;
}

.m-artlist li {
    display: flex;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px dashed var(--m-line);
}

.m-artlist li:last-child {
    border-bottom: none;
}

.m-artlist-img {
    flex: 0 0 180px;
    height: 120px;
    border-radius: var(--m-radius);
    overflow: hidden;
    background: #f7f7f7;
}

.m-artlist-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-artlist-txt {
    flex: 1;
    min-width: 0;
}

.m-artlist-txt h3 {
    margin: 0 0 10px;
    font-size: 17px;
    color: var(--m-text);
    font-weight: 600;
}

.m-artlist-txt h3:hover {
    color: var(--m-primary);
}

.m-artlist-txt p {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--m-text-3);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m-artlist-txt time {
    font-size: 12px;
    color: var(--m-text-4);
}

/* 列表空状态 */
.m-empty {
    padding: 70px 20px 80px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    margin-top: 16px;
}
.m-empty i {
    font-size: 52px;
    color: #d9d9d9;
    display: block;
    margin-bottom: 16px;
}
.m-empty p {
    font-size: 15px;
    color: var(--m-text-3);
    margin: 0 0 18px;
}
.m-empty a {
    display: inline-block;
    height: 36px;
    line-height: 36px;
    padding: 0 22px;
    border-radius: 18px;
    background: var(--m-primary);
    color: #fff;
    font-size: 14px;
}
.m-empty a:hover {
    opacity: .88;
}

.m-related {
    margin-top: 20px;
}

.m-related .m-sec-hd {
    background: #fff;
    border-radius: var(--m-radius-lg) var(--m-radius-lg) 0 0;
    padding: 0 20px;
}

.m-related .m-list-grid {
    background: #fff;
    margin: 0;
    padding: 18px 20px 22px;
    border-radius: 0 0 var(--m-radius-lg) var(--m-radius-lg);
}

@media (max-width: 992px) {
    .m-list-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .m-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== 帮助中心 / 单页文章（show_bz） ===== */
.m-help {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    align-items: start;
}
.m-help-side {
    background: #fff;
    border-radius: var(--m-radius-lg);
    padding: 18px 0 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.m-help-side-hd {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    background: var(--m-grad);
    padding: 12px 20px;
    border-radius: var(--m-radius-lg) var(--m-radius-lg) 0 0;
    margin: -18px 0 12px;
}
.m-help-side-hd i { margin-right: 6px; }
.m-help-group { padding: 0 20px 10px; }
.m-help-group strong {
    display: block;
    font-size: 15px;
    color: var(--m-text);
    padding: 10px 0 8px;
    border-bottom: 1px solid var(--m-line);
    margin-bottom: 6px;
}
.m-help-group ul li a {
    display: block;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all .2s;
}
.m-help-group ul li a:hover,
.m-help-group ul li a.m-on {
    background: #fff2f0;
    color: var(--m-primary);
}
.m-help-main {
    background: #fff;
    border-radius: var(--m-radius-lg);
    padding: 30px 36px 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    min-height: 420px;
}
.m-help-ttl {
    font-size: 24px;
    font-weight: 700;
    color: var(--m-text);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--m-line);
}
.m-help-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 13px;
    padding: 12px 0 20px;
}
.m-help-meta i { margin-right: 4px; }
.m-help-tip {
    margin-top: 30px;
    padding: 14px 18px;
    background: #fff8f7;
    border: 1px dashed #ffd7d2;
    border-radius: 8px;
    color: #a05a52;
    font-size: 13px;
}
.m-help-tip i { color: var(--m-primary); margin-right: 6px; }

@media (max-width: 992px) {
    .m-help { grid-template-columns: 1fr; }
    .m-help-side { order: 2; }
    .m-help-main { order: 1; padding: 22px 18px 30px; }
}

/* =========================================================
   PC 商品详情页（参照 huimeishow 版式，pd- 前缀）
   ========================================================= */
.pd-crumb {
    font-size: 12px;
    color: var(--m-text-3);
    line-height: 2;
}
.pd-crumb a { color: var(--m-text-3); }
.pd-crumb a:hover { color: var(--m-primary); }
.pd-crumb-cur { color: var(--m-text-2); }

/* ---------- 主区三栏 ---------- */
.pd-top {
    display: grid;
    grid-template-columns: 400px 1fr 216px;
    gap: 20px;
    align-items: start;
    margin-top: 12px;
}

/* ---------- 左：图库 ---------- */
.pd-gallery {
    background: #fff;
    border-radius: var(--m-radius-lg);
    padding: 16px;
}
.pd-gallery-main {
    width: 100%;
    height: 368px;
    border: 1px solid var(--m-line);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
}
.pd-gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.pd-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.pd-thumb {
    width: 68px;
    height: 68px;
    border: 1px solid var(--m-line);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}
.pd-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-thumb:hover, .pd-thumb.pd-on { border-color: var(--m-primary); }

.pd-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--m-line);
}
.pd-share { display: flex; align-items: center; gap: 8px; }
.pd-share-lb { font-size: 13px; color: var(--m-text-3); }
.pd-sh {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    transition: var(--m-tr);
}
.pd-sh:hover { opacity: .85; transform: translateY(-1px); }
.pd-sh-wx { background: #3eb135; }
.pd-sh-qzone { background: #f7b52c; }
.pd-sh-wb { background: #e6162d; }
.pd-sh-copy { background: #9aa0a6; }
.pd-fav {
    font-size: 13px;
    color: var(--m-text-2);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.pd-fav:hover, .pd-fav.pd-fav-on { color: var(--m-primary); }

/* ---------- 中：商品信息 ---------- */
.pd-info {
    background: #fff;
    border-radius: var(--m-radius-lg);
    padding: 20px 24px 24px;
    min-width: 0;
}
.pd-title {
    font-size: 18px;
    line-height: 1.6;
    color: var(--m-text);
    font-weight: 600;
    margin: 0;
}
.pd-sub {
    font-size: 13px;
    line-height: 1.7;
    color: var(--m-primary);
    margin-top: 6px;
}

.pd-price-box {
    background: #f7f7f7;
    padding: 12px 16px 14px;
    margin-top: 14px;
}
.pd-market {
    font-size: 12px;
    color: var(--m-text-3);
    line-height: 1.8;
}
.pd-market em { font-style: normal; }
.pd-market del { color: var(--m-text-3); }
.pd-price-row {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}
.pd-price-lb { font-size: 14px; color: var(--m-text-2); font-style: normal; padding-bottom: 4px; }
.pd-price {
    font-size: 30px;
    font-weight: 700;
    color: var(--m-primary);
    line-height: 1.1;
}
.pd-price span { font-size: 30px; }
.pd-price-tip {
    font-size: 12px;
    color: #ff5722;
    padding-bottom: 6px;
    cursor: pointer;
}

.pd-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--m-line);
    font-size: 14px;
    color: var(--m-text-2);
}
.pd-lb { color: var(--m-text-3); flex: 0 0 auto; }
.pd-deliver .pd-region {
    border: 1px solid var(--m-line);
    border-radius: 3px;
    padding: 5px 10px;
    font-size: 13px;
    color: var(--m-text-2);
    cursor: pointer;
    background: #fff;
}
.pd-deliver .pd-region i { color: var(--m-text-3); margin-left: 4px; }
.pd-deliver .pd-fee { margin-left: auto; font-size: 13px; color: var(--m-text-3); }

.pd-sale {
    display: flex;
    border-bottom: 1px solid var(--m-line);
}
.pd-sale-i {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 13px;
    color: var(--m-text-3);
}
.pd-sale-i + .pd-sale-i { border-left: 1px solid var(--m-line); }
.pd-sale-i em { font-style: normal; color: var(--m-primary); font-weight: 700; }

.pd-sku { padding: 4px 0; }
.pd-sku-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
}
.pd-sku-row .pd-lb { padding-top: 5px; }
.pd-sku-vals { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-sku-val {
    border: 1px solid var(--m-line);
    background: #fff;
    padding: 4px 12px;
    font-size: 13px;
    color: var(--m-text-2);
    border-radius: 3px;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
    transition: all .15s;
}
.pd-sku-val:hover { border-color: var(--m-primary); color: var(--m-primary); }
.pd-sku-val.pd-on {
    border-color: var(--m-primary);
    color: #fff;
    background: var(--m-primary);
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(230, 0, 18, .18);
}
.pd-sku-val.pd-on::after {
    content: "\2713";
    margin-left: 5px;
    font-size: 11px;
}
.pd-sku-val.pd-sku-static {
    cursor: default;
    color: var(--m-text-3);
    background: #fafafa;
}
.pd-sku-val.pd-sku-static:hover { border-color: var(--m-line); color: var(--m-text-3); }

.pd-num-row { border-bottom: none; padding: 6px 0 12px; }
.pd-num {
    display: inline-flex;
    border: 1px solid var(--m-line);
    height: 32px;
    background: #fff;
}
.pd-num-btn {
    width: 32px;
    line-height: 30px;
    text-align: center;
    font-size: 16px;
    color: var(--m-text-2);
    background: #fafafa;
}
.pd-num-btn:hover { color: var(--m-primary); }
.pd-num-input {
    width: 46px;
    height: 30px;
    border: none;
    border-left: 1px solid var(--m-line);
    border-right: 1px solid var(--m-line);
    text-align: center;
    font-size: 14px;
    color: var(--m-text);
    outline: none;
}
.pd-stock { margin-left: 14px; font-size: 13px; color: var(--m-text-3); }
.pd-stock em { font-style: normal; color: var(--m-text-2); }

.pd-btns {
    display: flex;
    gap: 14px;
    margin-top: 6px;
}
.pd-btn {
    height: 48px;
    padding: 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 17px;
    border-radius: 4px;
    transition: var(--m-tr);
}
.pd-btn-buy {
    background: #fff;
    border: 1px solid var(--m-primary);
    color: var(--m-primary);
}
.pd-btn-buy:hover { background: #fff5f5; }
.pd-btn-cart {
    background: var(--m-primary);
    color: #fff;
    flex: 1;
    max-width: 260px;
}
.pd-btn-cart:hover { background: #c6000f; }

.pd-promise {
    margin-top: 16px;
    font-size: 13px;
    color: var(--m-text-3);
}
.pd-promise i { color: var(--m-primary); margin-right: 5px; }

/* ---------- 右：客服栏 ---------- */
.pd-side { display: flex; flex-direction: column; gap: 14px; }
.pd-side-card {
    background: #fff;
    border-radius: var(--m-radius-lg);
    padding: 14px;
}
.pd-side-brand { text-align: center; }
.pd-brand-logo { max-width: 100%; max-height: 54px; object-fit: contain; }
.pd-brand-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--m-text);
    padding: 6px 0;
}
.pd-side-tip { font-size: 12px; color: var(--m-text-3); margin-top: 6px; }
.pd-side-hd {
    display: block;
    font-style: normal;
    font-size: 13px;
    font-weight: 700;
    color: var(--m-text);
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--m-line);
}
.pd-side-list { display: flex; flex-direction: column; gap: 8px; }
.pd-qq {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 28px;
    background: #eef6fd;
    border: 1px solid #cfe6fa;
    color: #1284d6;
    font-size: 13px;
    border-radius: 3px;
}
.pd-qq:hover { background: #e2f0fc; }
.pd-qq-name { font-size: 12px; color: var(--m-text-3); text-align: center; }
.pd-side-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--m-text-2);
}
.pd-side-line i { color: var(--m-primary); }
.pd-side-svc { list-style: none; margin: 0; padding: 0; }
.pd-side-svc li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--m-text-2);
}
.pd-side-svc li i { color: var(--m-primary); width: 14px; text-align: center; }

/* ---------- 下部：热销推荐 + 选项卡 ---------- */
.pd-bottom {
    display: grid;
    grid-template-columns: 208px 1fr;
    gap: 20px;
    align-items: start;
    margin-top: 20px;
}

.pd-hot { background: #fff; border-radius: var(--m-radius-lg); overflow: hidden; }
.pd-hot-hd {
    background: var(--m-bg-soft);
    height: 46px;
    line-height: 46px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 700;
    color: var(--m-text);
    border-bottom: 1px solid var(--m-line);
}
.pd-hot-list { padding: 10px 12px 14px; }
.pd-hot-item {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--m-line);
}
.pd-hot-item:last-child { border-bottom: none; }
.pd-hot-img {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border: 1px solid var(--m-line);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pd-hot-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-hot-info { min-width: 0; flex: 1; }
.pd-hot-name {
    font-size: 12px;
    line-height: 1.5;
    color: var(--m-text-2);
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.pd-hot-item:hover .pd-hot-name { color: var(--m-primary); }
.pd-hot-price { font-size: 13px; font-weight: 700; color: var(--m-primary); margin-top: 4px; }

.pd-tabs { background: #fff; border-radius: var(--m-radius-lg); overflow: hidden; }
.pd-nav {
    display: flex;
    background: var(--m-bg-soft);
    border-bottom: 1px solid var(--m-line);
    list-style: none;
    margin: 0;
    padding: 0;
}
.pd-nav li {
    position: relative;
    padding: 0 26px;
    height: 46px;
    line-height: 46px;
    font-size: 15px;
    color: var(--m-text-2);
    cursor: pointer;
    border-right: 1px solid var(--m-line);
}
.pd-nav li a { color: inherit; display: block; }
.pd-nav li em {
    font-style: normal;
    color: var(--m-primary);
    font-size: 12px;
    margin-left: 3px;
}
.pd-nav li:hover { color: var(--m-primary); }
.pd-nav li.pd-curr {
    background: #fff;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
}
.pd-nav li.pd-curr a { color: var(--m-primary); font-weight: 700; }
.pd-nav li.pd-curr::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    margin-left: -6px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid var(--m-primary);
    z-index: 2;
}

.pd-panes { padding: 26px 30px 34px; }
.pd-pane { font-size: 14px; line-height: 1.95; color: var(--m-text-2); }
.pd-empty { text-align: center; color: #999; padding: 50px 0; font-size: 14px; }

.pd-attrs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 24px;
    list-style: none;
    margin: 0 0 24px;
    padding: 0 0 22px;
    border-bottom: 1px solid var(--m-line);
}
.pd-attr { font-size: 13px; color: var(--m-text-2); line-height: 1.7; }
.pd-attr b { font-weight: 400; color: var(--m-text-3); }

.pd-content { word-break: break-all; }
.pd-content img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

.pd-cmt-list { list-style: none; margin: 0; padding: 0; }
.pd-cmt { padding: 14px 0; border-bottom: 1px dashed var(--m-line); }
.pd-cmt:last-child { border-bottom: none; }
.pd-cmt-top { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.pd-cmt-top strong { font-size: 13px; color: var(--m-text); }
.pd-cmt-top span { font-size: 12px; color: var(--m-text-3); }
.pd-cmt-body { font-size: 14px; color: var(--m-text-2); line-height: 1.8; }

/* ---------- 响应式 ---------- */
@media (max-width: 1240px) {
    .pd-top { grid-template-columns: 340px 1fr; }
    .pd-side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
    .pd-side-card { flex: 1; min-width: 200px; }
    .pd-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 992px) {
    .pd-top { grid-template-columns: 1fr; }
    .pd-gallery-main { height: 320px; }
    .pd-attrs { grid-template-columns: repeat(2, 1fr); }
    .pd-btn { padding: 0 20px; font-size: 15px; }
}
