@font-face{font-family:'SiyuanRouhei';src:url('/assets/fonts/siyuan-rouhei-heavy.woff2') format('woff2');font-weight:400 900;font-display:swap;}
/* ==========================================================================
   即购即达 · 商城新版前台（参考 365diandao 布局）
   仅用于新版页面，所有类名以 nm- 前缀，避免影响旧页面
   ========================================================================== */

:root {
    --nm-red: #e3393c;
    --nm-red-dark: #c9272a;
    --nm-orange: #ff6b00;
    --nm-text: #333;
    --nm-sub: #666;
    --nm-muted: #999;
    --nm-line: #ececec;
    --nm-bg: #f5f5f5;
    --nm-dark: #3d4851;
    --nm-w: 1190px;
}

.nm-page * { box-sizing: border-box; }
.nm-page { margin: 0; padding: 0; background: #fff; color: var(--nm-sub); font: 12px/1.5 Arial, "Microsoft YaHei", "PingFang SC", sans-serif; }
.nm-page a { color: inherit; text-decoration: none; }
.nm-page a:hover { color: var(--nm-red); }
.nm-page ul, .nm-page ol, .nm-page li { list-style: none; margin: 0; padding: 0; }
.nm-page img { border: 0; vertical-align: middle; }
.nm-page h1, .nm-page h2, .nm-page h3, .nm-page h4, .nm-page p { margin: 0; }
.nm-page button, .nm-page input { font-family: inherit; }
.nm-page button { cursor: pointer; }

.nm-wrap { width: var(--nm-w); margin: 0 auto; }
.nm-clear::after { content: ""; display: block; clear: both; }

/* ==========================================================================
   1. 顶部通栏
   ========================================================================== */
.nm-top { height: 32px; line-height: 32px; background: #f5f4f4; border-bottom: 1px solid #e6e6e6; color: #7f7f7a; font-size: 12px; }
.nm-top .nm-wrap { display: flex; justify-content: space-between; }
.nm-top a { color: #7f7f7a; }
.nm-top a:hover { color: var(--nm-red); }
.nm-top-left { display: flex; align-items: center; }
.nm-top-left .nm-hello { color: #7f7f7a; }
.nm-top-left .nm-hello b { color: #3e3a39; font-weight: 400; }
.nm-top-left .nm-login { color: var(--nm-red); margin-left: 10px; }
.nm-top-left .nm-reg { color: var(--nm-red); margin-left: 6px; }
.nm-top-left .nm-sep { color: #ddd; margin: 0 8px; }
.nm-top-left .nm-user { color: #3e3a39; margin-left: 8px; }
.nm-quick { display: flex; align-items: center; }
.nm-quick > li { position: relative; padding: 0 11px; height: 32px; line-height: 32px; }
.nm-quick > li + li::before { content: ""; position: absolute; left: 0; top: 10px; height: 12px; border-left: 1px solid #ddd; }
.nm-quick .nm-cart-link b { color: var(--nm-red); font-weight: 400; padding: 0 3px; }
.nm-quick .nm-caret { display: inline-block; width: 0; height: 0; border-top: 4px solid #b5b5b5; border-left: 4px solid transparent; border-right: 4px solid transparent; margin-left: 4px; position: relative; top: -2px; }
.nm-quick .nm-drop { display: none; position: absolute; right: 0; top: 31px; min-width: 118px; background: #fff; border: 1px solid #ddd; box-shadow: 0 2px 10px rgba(0,0,0,.08); z-index: 300; padding: 6px 0; }
.nm-quick .nm-drop a { display: block; line-height: 28px; padding: 0 14px; white-space: nowrap; }
.nm-quick > li:hover .nm-drop { display: block; }
.nm-quick > li:hover { background: #fff; }

/* ==========================================================================
   2. 头部 logo / 搜索
   ========================================================================== */
.nm-header { background: #fff; }
.nm-header-inner { width: var(--nm-w); margin: 0 auto; height: 104px; display: flex; align-items: center; position: relative; }
.nm-logo { width: 220px; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nm-logo-mark { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, #ff5a5f, var(--nm-red)); color: #fff; font-size: 26px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(227,57,60,.28); letter-spacing: -2px; }
.nm-logo-text { display: flex; flex-direction: column; justify-content: center; }
.nm-logo-text h1 { font-family:'SiyuanRouhei','PingFang SC','Microsoft YaHei',sans-serif; font-size: 24px; color: #c8161d; letter-spacing: 1px; line-height: 1.15; font-weight: 800; }
.nm-logo-text p { font-family:'SiyuanRouhei','PingFang SC','Microsoft YaHei',sans-serif; font-size: 14px; color: #c8161d; margin-top: 2px; letter-spacing: 1.5px; font-weight: 700; }
.nm-searchbox { width: 620px; margin-left: 30px; }
.nm-search-form { display: flex; border: 2px solid var(--nm-red); height: 38px; background: #fff; position: relative; }
.nm-search-tabs { display: flex; align-items: center; border-right: 1px solid #eee; padding: 0 10px; font-size: 12px; color: #666; flex-shrink: 0; }
.nm-search-tabs span { cursor: pointer; padding: 0 5px; }
.nm-search-tabs span.on { color: var(--nm-red); font-weight: 700; }
.nm-search-form input { flex: 1; border: 0; outline: 0; padding: 0 12px; font-size: 13px; color: #333; height: 34px; }
.nm-search-form input::placeholder { color: #bbb; }
.nm-search-form button { width: 100px; border: 0; background: var(--nm-red); color: #fff; font-size: 15px; letter-spacing: 3px; }
.nm-search-form button:hover { background: var(--nm-red-dark); }
.nm-hotwords { height: 22px; line-height: 22px; margin-top: 6px; color: #999; font-size: 12px; overflow: hidden; white-space: nowrap; }
.nm-hotwords span { color: #bbb; margin-right: 6px; }
.nm-hotwords a { margin-right: 12px; color: #888; }
.nm-hotwords a:hover { color: var(--nm-red); }
.nm-head-ad { margin-left: auto; width: 200px; height: 80px; border-radius: 6px; overflow: hidden; position: relative; background: linear-gradient(135deg, #fff1e8, #ffe3d4); display: flex; flex-direction: column; justify-content: center; padding: 0 16px; }
.nm-head-ad .t1 { font-size: 15px; color: #d4380d; font-weight: 700; }
.nm-head-ad .t2 { font-size: 11px; color: #e07b52; margin-top: 3px; max-width: 132px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-head-ad .go { position: absolute; right: 8px; bottom: 8px; font-size: 11px; color: #d4380d; border: 1px solid #f3b39a; border-radius: 10px; padding: 1px 8px; }

/* ==========================================================================
   3. 导航 + 分类
   ========================================================================== */
.nm-nav { background: #fff; border-bottom: 2px solid var(--nm-red); position: relative; z-index: 60; }
.nm-nav-inner { width: var(--nm-w); margin: 0 auto; display: flex; height: 38px; position: relative; }
.nm-cat-btn { width: 200px; background: var(--nm-red); color: #fff; font-size: 15px; font-weight: 700; line-height: 38px; padding-left: 18px; flex-shrink: 0; letter-spacing: 1px; }
.nm-cat-btn i { display: inline-block; width: 16px; height: 12px; margin-right: 8px; border-top: 2px solid #fff; border-bottom: 2px solid #fff; position: relative; top: -1px; }
.nm-cat-btn i::after { content: ""; position: absolute; left: 0; top: 3px; width: 16px; border-top: 2px solid #fff; }
.nm-nav-links { display: flex; align-items: center; flex: 1; }
.nm-nav-links a { display: block; padding: 0 24px; line-height: 38px; font-size: 15px; font-weight: 700; color: #333; letter-spacing: .5px; }
.nm-nav-links a:hover, .nm-nav-links a.on { color: var(--nm-red) !important; }
.nm-nav-links .nm-nav-new { position: relative; }
.nm-nav-links .nm-nav-new::after { content: "HOT"; position: absolute; top: -8px; right: 2px; font-size: 9px; color: #fff; background: var(--nm-orange); border-radius: 6px 6px 6px 0; padding: 0 4px; line-height: 13px; font-weight: 400; }

/* 4. 首屏 */
.nm-first { width: var(--nm-w); margin: 0 auto; display: grid; grid-template-columns: 200px 790px 200px; height: 491px; position: relative; z-index: 10; }
/* 左侧分类 */
.nm-cats { background: var(--nm-dark); height: 491px; position: relative; padding: 6px 0; }
.nm-cats > li { height: 32px; line-height: 32px; padding: 0 14px 0 18px; color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.nm-cats > li > a { color: #fff; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nm-cats > li:hover { background: rgba(255,255,255,.14); }
.nm-cats > li .nm-cat-arrow { color: rgba(255,255,255,.55); font-family: serif; font-size: 15px; }
.nm-cats > li .nm-cat-ico { width: 18px; height: 18px; margin-right: 9px; flex-shrink: 0; text-align: center; font-size: 13px; line-height: 18px; opacity: .95; font-style: normal; }
.nm-cats > li > a { display: flex; align-items: center; }
.nm-cats .nm-mega { display: none; position: absolute; left: 200px; top: 0; width: 780px; height: 491px; background: #fff; box-shadow: 8px 8px 22px rgba(0,0,0,.12); padding: 18px 26px 10px; z-index: 70; overflow: hidden; }
.nm-cats > li:hover .nm-mega { display: block; }
.nm-mega-head { display: flex; align-items: center; border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; }
.nm-mega-head h3 { font-size: 17px; color: #333; font-weight: 700; }
.nm-mega-head h3 span { font-size: 12px; color: #bbb; font-weight: 400; margin-left: 8px; }
.nm-mega-head a { margin-left: auto; font-size: 12px; color: #999; }
.nm-mega-head a:hover { color: var(--nm-red); }
.nm-mega-subs { padding: 12px 0 6px; border-bottom: 1px dashed #eee; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.nm-mega-subs a { font-size: 13px; color: #555; padding: 2px 10px; background: #f7f7f7; border-radius: 12px; }
.nm-mega-subs a:hover { background: #fff1f1; color: var(--nm-red); }
.nm-mega-goods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 14px; }
.nm-mega-good { display: block; }
.nm-mega-good .pic { width: 100%; height: 92px; background: #fafafa; border-radius: 4px; overflow: hidden; }
.nm-mega-good .pic img { width: 100%; height: 100%; object-fit: cover; }
.nm-mega-good .nm { font-size: 12px; color: #555; height: 20px; overflow: hidden; margin-top: 5px; white-space: nowrap; text-overflow: ellipsis; }
.nm-mega-good .pr { font-size: 13px; color: var(--nm-red); font-weight: 700; }
.nm-mega-empty { padding: 26px 0; color: #bbb; font-size: 13px; text-align: center; }

/* 轮播 */
.nm-slider { position: relative; width: 790px; height: 491px; overflow: hidden; background: #f2f2f2; }
.nm-slider .nm-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; background-size: cover; background-position: center; }
.nm-slider .nm-slide.on { opacity: 1; z-index: 2; }
.nm-slide-mask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,.12) 46%, rgba(0,0,0,0) 70%); }
.nm-slide-text { position: absolute; left: 46px; top: 50%; transform: translateY(-50%); color: #fff; z-index: 3; }
.nm-slide-tag { display: inline-block; font-size: 12px; letter-spacing: 2px; border: 1px solid rgba(255,255,255,.7); border-radius: 12px; padding: 1px 10px; margin-bottom: 14px; }
.nm-slide-text h2 { font-size: 38px; font-weight: 700; letter-spacing: 3px; text-shadow: 0 2px 8px rgba(0,0,0,.18); }
.nm-slide-text p { font-size: 15px; line-height: 26px; margin: 12px 0 24px; opacity: .92; }
.nm-slide-btn { display: inline-block; background: #fff; color: #333 !important; font-size: 14px; font-weight: 600; padding: 9px 24px; border-radius: 20px; }
.nm-slide-btn:hover { background: var(--nm-red); color: #fff !important; }
.nm-arrow { position: absolute; top: 50%; margin-top: -26px; width: 36px; height: 52px; line-height: 52px; text-align: center; color: #fff; background: rgba(0,0,0,.22); font-size: 24px; z-index: 5; opacity: 0; transition: .2s; font-family: serif; }
.nm-slider:hover .nm-arrow { opacity: 1; }
.nm-arrow:hover { background: rgba(0,0,0,.45); }
.nm-arrow.prev { left: 0; }
.nm-arrow.next { right: 0; }
.nm-dots { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; z-index: 5; }
.nm-dots span { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.6); margin: 0 4px; cursor: pointer; }
.nm-dots span.on { background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }

/* 右侧公告 + 小banner */
.nm-first-right { width: 200px; display: flex; flex-direction: column; gap: 4px; }
.nm-notice { background: #fff; height: 250px; border: 1px solid #f0f0f0; padding: 0 12px; overflow: hidden; }
.nm-notice-hd { height: 38px; line-height: 38px; border-bottom: 1px solid #f3f3f3; display: flex; align-items: center; }
.nm-notice-hd b { font-size: 14px; color: #333; font-weight: 700; }
.nm-notice-hd b::before { content: "📢"; font-size: 13px; margin-right: 4px; }
.nm-notice-hd a { margin-left: auto; font-size: 12px; color: #999; }
.nm-notice li { height: 34px; line-height: 34px; font-size: 12px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-notice li a { color: #666; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-notice li .nm-tag { display: inline-block; font-size: 10px; color: var(--nm-red); border: 1px solid #f6c6c7; border-radius: 2px; line-height: 14px; padding: 0 3px; margin-right: 6px; transform: scale(.95); }
.nm-mini { height: 120px; border-radius: 2px; position: relative; overflow: hidden; display: block; padding: 16px 14px; color: #fff; }
.nm-mini.m1 { background: linear-gradient(135deg, #ff7a45 0%, #e3393c 100%); }
.nm-mini.m2 { background: linear-gradient(135deg, #5b8cff 0%, #3557c9 100%); }
.nm-mini b { font-size: 17px; letter-spacing: 1px; display: block; }
.nm-mini span { font-size: 12px; opacity: .9; display: block; margin-top: 4px; }
.nm-mini em { position: absolute; right: 12px; bottom: 10px; font-style: normal; font-size: 11px; border: 1px solid rgba(255,255,255,.6); border-radius: 10px; padding: 1px 8px; }

/* ==========================================================================
   5. 固定右侧栏
   ========================================================================== */
.nm-side { position: fixed; right: 0; top: 0; height: 100%; z-index: 900; }
.nm-side-menu { width: 40px; height: 100%; background: #2a2a2e; padding-top: 12vh; display: flex; flex-direction: column; align-items: center; }
.nm-side-item { width: 40px; height: 46px; color: #cfcfcf; font-size: 11px; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.nm-side-item + .nm-side-item { margin-top: 8px; }
.nm-side-item i { font-size: 17px; font-style: normal; line-height: 20px; }
.nm-side-item span { display: block; line-height: 12px; transform: scale(.85); }
.nm-side-item:hover { background: var(--nm-red); color: #fff; }
.nm-side-item .nm-side-badge { position: absolute; top: 2px; right: 2px; background: var(--nm-red); color: #fff; font-size: 10px; line-height: 14px; min-width: 14px; border-radius: 7px; padding: 0 3px; }
.nm-side-menu .nm-side-top { margin-top: auto; margin-bottom: 12px; }
.nm-side-panel { position: fixed; right: 40px; width: 300px; background: #fff; box-shadow: -4px 0 18px rgba(0,0,0,.1); display: none; z-index: 899; top: 50%; transform: translateY(-50%); max-height: 70vh; overflow: hidden; }
.nm-side-panel.on { display: block; }
.nm-side-panel-hd { height: 40px; line-height: 40px; padding: 0 14px; background: #f7f7f7; font-size: 14px; color: #333; font-weight: 700; display: flex; justify-content: space-between; }
.nm-side-panel-hd b { font-weight: 700; }
.nm-side-panel-hd a { font-size: 12px; color: #999; }
.nm-side-panel-bd { padding: 8px 14px 14px; max-height: calc(70vh - 40px); overflow: auto; }
.nm-side-empty { padding: 30px 0; text-align: center; color: #bbb; font-size: 12px; }
.nm-side-cart-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f4f4f4; }
.nm-side-cart-row img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; background: #fafafa; }
.nm-side-cart-row .i { flex: 1; min-width: 0; }
.nm-side-cart-row .n { font-size: 12px; color: #333; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nm-side-cart-row .p { font-size: 12px; color: var(--nm-red); margin-top: 3px; }
.nm-side-cart-total { display: flex; justify-content: space-between; padding: 12px 0 4px; font-size: 13px; color: #333; }
.nm-side-cart-total b { color: var(--nm-red); font-size: 16px; }
.nm-side-btn { display: block; height: 34px; line-height: 34px; text-align: center; background: var(--nm-red); color: #fff !important; border-radius: 2px; margin-top: 8px; font-size: 13px; }
.nm-asset-row { display: flex; gap: 10px; padding: 6px 0 14px; }
.nm-asset-box { flex: 1; background: #fff6f0; border-radius: 6px; padding: 10px; text-align: center; }
.nm-asset-box b { display: block; font-size: 18px; color: var(--nm-red); }
.nm-asset-box span { font-size: 11px; color: #999; }

/* ==========================================================================
   6. 通用区块头 / 商品卡片
   ========================================================================== */
.nm-sec { width: var(--nm-w); margin: 0 auto; padding-top: 26px; }
.nm-sec-hd { height: 48px; display: flex; align-items: center; border-bottom: 2px solid #f0f0f0; margin-bottom: 14px; }
.nm-sec-hd h2 { font-size: 24px; color: #333; font-weight: 700; line-height: 26px; border-left: 6px solid var(--nm-red); padding-left: 12px; letter-spacing: 1px; }
.nm-sec-hd .sub { font-size: 12px; color: #aaa; margin-left: 12px; }
.nm-sec-hd .links { margin-left: auto; display: flex; gap: 20px; font-size: 14px; color: #666; }
.nm-sec-hd .links a:hover { color: var(--nm-red); }
.nm-sec-hd .links a.on { color: var(--nm-red); font-weight: 700; border-bottom: 2px solid var(--nm-red); padding-bottom: 3px; }
.nm-more { margin-left: auto; font-size: 12px; color: #999; }
.nm-more:hover { color: var(--nm-red); }

.nm-prod { background: #fff; position: relative; transition: box-shadow .2s, transform .2s; display: block; }
.nm-prod:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); transform: translateY(-2px); z-index: 2; }
.nm-prod .pic { display: block; width: 100%; padding-top: 100%; position: relative; overflow: hidden; background: #fafafa; }
.nm-prod .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.nm-prod:hover .pic img { transform: scale(1.05); }
.nm-prod .nm-prod-tag { position: absolute; left: 0; top: 0; background: var(--nm-red); color: #fff; font-size: 11px; line-height: 18px; padding: 0 6px; z-index: 2; }
.nm-prod .nm-prod-body { padding: 8px 10px 12px; }
.nm-prod .nm-prod-name { font-size: 12px; line-height: 18px; color: #333; height: 36px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nm-prod .nm-prod-name em { font-style: normal; color: #fff; background: var(--nm-red); font-size: 10px; padding: 0 3px; border-radius: 2px; margin-right: 3px; }
.nm-prod .nm-prod-price { margin-top: 6px; color: var(--nm-red); font-size: 16px; font-weight: 700; }
.nm-prod .nm-prod-price small { font-size: 11px; font-weight: 400; }
.nm-prod .nm-prod-old { color: #aaa; font-size: 12px; text-decoration: line-through; margin-left: 6px; font-weight: 400; }
.nm-prod .nm-prod-sales { color: #aaa; font-size: 11px; margin-top: 2px; }
.nm-prod .nm-prod-cart { position: absolute; right: 10px; bottom: 10px; width: 26px; height: 26px; line-height: 24px; text-align: center; border-radius: 50%; border: 1px solid var(--nm-red); color: var(--nm-red); font-size: 16px; background: #fff; }
.nm-prod .nm-prod-cart:hover { background: var(--nm-red); color: #fff; }
.nm-empty-prod { background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 220px; color: #c9b2b2; }

/* 图片位 */
.nm-tile { display: block; position: relative; overflow: hidden; background: #f6f6f6; }
.nm-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.nm-tile:hover img { transform: scale(1.04); }
.nm-tile .ov { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(0,0,0,.42), rgba(0,0,0,.05)); }
.nm-tile .tx { position: absolute; left: 20px; bottom: 22px; color: #fff; z-index: 2; }
.nm-tile .tx b { display: block; font-size: 22px; letter-spacing: 2px; }
.nm-tile .tx span { font-size: 12px; opacity: .85; display: block; margin-top: 4px; }
.nm-tile .tx em { font-style: normal; display: inline-block; margin-top: 10px; font-size: 12px; border: 1px solid rgba(255,255,255,.7); padding: 3px 12px; border-radius: 14px; }

/* 占位图位 */
.nm-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: 100%; height: 100%; min-height: 60px; color: #bfa5a5; background: repeating-linear-gradient(135deg, #faf7f7 0 10px, #f6f1f1 10px 20px); border: 1px dashed #eadcdc; }
.nm-ph b { font-size: 14px; color: #b08080; font-weight: 600; letter-spacing: 1px; }
.nm-ph span { font-size: 11px; color: #c4adad; margin-top: 4px; }
.nm-ph .nm-ph-ico { font-size: 20px; margin-bottom: 6px; opacity: .55; }

/* ==========================================================================
   7. 限时抢购
   ========================================================================== */
.nm-flash { width: var(--nm-w); margin: 0 auto; padding-top: 18px; }
.nm-flash-hd { height: 56px; display: flex; align-items: center; }
.nm-flash-hd h2 { font-size: 24px; color: #333; font-weight: 700; letter-spacing: 1px; }
.nm-flash-hd h2 em { font-style: normal; color: var(--nm-red); }
.nm-flash-hd .nm-flash-sub { font-size: 13px; color: #999; margin-left: 10px; }
.nm-countdown { display: flex; align-items: center; margin-left: 22px; font-size: 13px; color: #666; }
.nm-countdown .lb { margin-right: 6px; }
.nm-countdown b { display: inline-block; width: 24px; height: 24px; line-height: 24px; text-align: center; background: #333; color: #fff; font-size: 13px; border-radius: 3px; font-weight: 400; margin: 0 1px; }
.nm-countdown i { font-style: normal; margin: 0 2px; color: #666; }
.nm-flash-hd .nm-more { margin-left: auto; }
.nm-flash-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.nm-flash-item { background: #fff; border: 1px solid #f0f0f0; padding: 10px; text-align: center; position: relative; transition: .2s; }
.nm-flash-item:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.nm-flash-item .pic { display:block; width: 100%; padding-top: 100%; position: relative; overflow: hidden; background: #fafafa; }
.nm-flash-item .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nm-flash-item .st { position: absolute; left: 10px; top: 10px; background: rgba(227,57,60,.92); color: #fff; font-size: 11px; line-height: 20px; padding: 0 6px; z-index: 2; }
.nm-flash-item .st.end { background: rgba(120,120,120,.85); }
.nm-flash-item .nm { color:#333; font-size: 12px; line-height: 18px; height: 36px; overflow: hidden; margin-top: 8px; text-align: left; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nm-flash-item .pr { color: var(--nm-red); font-size: 18px; font-weight: 700; margin-top: 6px; text-align: left; }
.nm-flash-item .pr small { font-size: 11px; }
.nm-flash-item .op { color: #aaa; font-size: 12px; text-decoration: line-through; margin-left: 6px; font-weight: 400; }
.nm-flash-item .bar { height: 6px; background: #ffe9e9; border-radius: 3px; margin: 8px 0 4px; overflow: hidden; }
.nm-flash-item .bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff8a65, var(--nm-red)); border-radius: 3px; }
.nm-flash-item .txt { font-size: 11px; color: #999; text-align: left; }
.nm-flash-item .buy { display: block; height: 28px; line-height: 28px; background: var(--nm-red); color: #fff !important; font-size: 12px; margin-top: 8px; border-radius: 2px; }
.nm-flash-item .buy.dis { background: #cfcfcf; cursor: not-allowed; }

/* ==========================================================================
   8. 楼层通用
   ========================================================================== */
.nm-floor { width: var(--nm-w); margin: 0 auto; padding-top: 30px; }
.nm-floor-hd { height: 46px; display: flex; align-items: center; border-bottom: 2px solid #f0f0f0; margin-bottom: 10px; }
.nm-floor-hd h2 { font-size: 24px; color: #333; font-weight: 700; line-height: 26px; border-left: 6px solid var(--nm-red); padding-left: 12px; }
.nm-floor-hd .nm-floor-sub { font-size: 12px; color: #aaa; margin-left: 12px; }
.nm-floor-hd .nm-floor-tabs { margin-left: auto; display: flex; gap: 18px; font-size: 14px; color: #666; }
.nm-floor-hd .nm-floor-tabs span { cursor: pointer; padding-bottom: 3px; }
.nm-floor-hd .nm-floor-tabs span.on { color: var(--nm-red); border-bottom: 2px solid var(--nm-red); font-weight: 700; }
.nm-floor-hd .nm-more { margin-left: 18px; }

/* 楼层一：左大图 + 右图片组 + 商品行 */
.nm-f1 { display: grid; grid-template-columns: 230px 950px; gap: 10px; }
.nm-f1-left { background: #fbfbfb; display: flex; flex-direction: column; height: 715px; }
.nm-f1-hero { height: 470px; width: 230px; position: relative; overflow: hidden; display: block; }
.nm-f1-hero img { width: 100%; height: 100%; object-fit: cover; }
.nm-f1-hero .ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 40%, rgba(0,0,0,.55)); }
.nm-f1-hero .tx { position: absolute; left: 16px; bottom: 18px; color: #fff; z-index: 2; }
.nm-f1-hero .tx b { font-size: 22px; letter-spacing: 2px; display: block; }
.nm-f1-hero .tx span { font-size: 12px; opacity: .85; display: block; margin-top: 4px; }
.nm-f1-cats { padding: 12px 10px 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.nm-f1-cats a { font-size: 12px; color: #666; background: #fff; border: 1px solid #eee; border-radius: 2px; padding: 3px 8px; }
.nm-f1-cats a:hover { color: var(--nm-red); border-color: #f6c6c7; }
.nm-f1-brands { margin-top: auto; padding: 10px; border-top: 1px dashed #eee; }
.nm-f1-brands .t { font-size: 12px; color: #999; margin-bottom: 6px; }
.nm-f1-brands .r { display: flex; gap: 6px; }
.nm-f1-brands .r a { flex: 1; height: 48px; background: #fff; border: 1px solid #eee; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #555; overflow: hidden; white-space: nowrap; padding: 0 4px; }
.nm-f1-brands .r a:hover { color: var(--nm-red); border-color: #f6c6c7; }
.nm-f1-right { display: grid; grid-template-columns: 470px 470px; grid-template-rows: 470px 235px; gap: 10px; }
.nm-f1-big { width: 470px; height: 470px; }
.nm-f1-big .tx b { font-size: 28px; }
.nm-f1-small { display: grid; grid-template-columns: 230px 230px; grid-template-rows: 230px 230px; gap: 10px; }
.nm-f1-small .nm-tile { width: 230px; height: 230px; }
.nm-f1-prods { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid #f0f0f0; }
.nm-f1-prods .nm-prod { border-right: 1px solid #f4f4f4; }
.nm-f1-prods .nm-prod:last-child { border-right: 0; }

/* 楼层二：通栏 banner + 5 个分类位 */
.nm-f2-banner { width: 1190px; height: 200px; margin-bottom: 10px; }
.nm-f2-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.nm-f2-tiles .nm-tile { height: 280px; }
.nm-f2-tiles .nm-ph { height: 280px; }

/* 楼层三：通栏 + 4 个大商品卡 */
.nm-f3-banner { width: 1190px; height: 142px; margin-bottom: 12px; }
.nm-f3-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.nm-f3-card { background: #fff; border: 1px solid #f2f2f2; }
.nm-f3-card .pic { height: 288px; }
.nm-f3-card .nm-prod-name { font-size: 14px; height: 44px; }
.nm-f3-card .nm-prod-price { font-size: 20px; }

/* 楼层四：三栏图片墙 */
.nm-f4 { display: grid; grid-template-columns: 390px 600px 200px; height: 400px; }
.nm-f4-left .nm-tile { width: 390px; height: 400px; }
.nm-f4-mid { display: grid; grid-template-columns: 300px 300px; grid-template-rows: 200px 200px; }
.nm-f4-mid .nm-tile { width: 300px; height: 200px; }
.nm-f4-right .nm-tile { width: 200px; height: 400px; }
.nm-f4 .nm-ph { height: 100%; }

/* 楼层五：左 icon 墙 + 右 2 图 + 商品行 */
.nm-f5 { display: grid; grid-template-columns: 240px 950px; gap: 0; }
.nm-f5-left { display: flex; flex-direction: column; gap: 8px; }
.nm-f5-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #eee; border: 1px solid #eee; }
.nm-f5-icons a { background: #fff; height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; color: #666; gap: 4px; }
.nm-f5-icons a i { font-style: normal; font-size: 20px; }
.nm-f5-icons a:hover { color: var(--nm-red); }
.nm-f5-big { height: 240px; }
.nm-f5-right { display: grid; grid-template-columns: 710px 230px; grid-template-rows: 480px; gap: 10px; }
.nm-f5-main { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1px; background: #eee; }
.nm-f5-main .nm-tile { width: 100%; height: 100%; }
.nm-f5-side { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }
.nm-f5-side .nm-tile { height: 100%; }

/* 品牌旗舰店 */
.nm-brandshop { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.nm-brandshop .nm-prod { border: 1px solid #f2f2f2; }

/* 品牌街 */
.nm-brands { display: grid; grid-template-columns: 290px 530px 290px; gap: 40px; height: 330px; }
.nm-brands-side { height: 330px; }
.nm-brands-mid { background: #fff; border: 1px solid #f0f0f0; padding: 18px 24px; display: flex; flex-direction: column; }
.nm-brands-mid .t { font-size: 16px; color: #333; font-weight: 700; margin-bottom: 4px; }
.nm-brands-mid .s { font-size: 12px; color: #aaa; margin-bottom: 14px; }
.nm-brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.nm-brand-card { border: 1px solid #f0f0f0; background: #fff; height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nm-brand-card .logo { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #fff1f1, #ffe0e0); color: var(--nm-red); font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.nm-brand-card .n { font-size: 12px; color: #555; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nm-brand-card .c { font-size: 11px; color: #bbb; }
.nm-brand-card:hover { border-color: #f6c6c7; }

/* 资讯 / 底部图片行 */
.nm-news { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.nm-news .nm-tile { height: 160px; }
.nm-news-box { background: #fff; border: 1px solid #f0f0f0; padding: 14px 16px; height: 160px; overflow: hidden; }
.nm-news-box .t { font-size: 15px; color: #333; font-weight: 700; border-bottom: 1px solid #f2f2f2; padding-bottom: 8px; margin-bottom: 6px; display: flex; justify-content: space-between; }
.nm-news-box .t a { font-size: 12px; color: #999; font-weight: 400; }
.nm-news-box li { font-size: 12px; color: #666; line-height: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-news-box li::before { content: "·"; color: var(--nm-red); margin-right: 6px; }

/* ==========================================================================
   9. 楼层导航 / 页脚
   ========================================================================== */
.nm-floor-nav { position: fixed; left: max(10px, calc(50% - 700px)); top: 50%; transform: translateY(-50%); background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.08); display: none; z-index: 80; }
.nm-floor-nav.on { display: block; }
.nm-floor-nav a { display: block; width: 48px; height: 30px; line-height: 30px; text-align: center; font-size: 12px; color: #625352; border-bottom: 1px dotted #ddd; }
.nm-floor-nav li:last-child a { border-bottom: 0; }
.nm-floor-nav a:hover, .nm-floor-nav li.on a { background: var(--nm-red); color: #fff; }
.nm-floor-nav .nm-floor-top { font-size: 14px; }

.nm-footer { margin-top: 40px; }
.nm-footer-service { background: #f7f7f7; border-top: 1px solid #eee; padding: 28px 0; }
.nm-footer-service .nm-wrap { display: flex; }
.nm-footer-cols { display: flex; flex: 1; }
.nm-footer-col { width: 165px; }
.nm-footer-col dt { font-size: 15px; color: #333; font-weight: 700; margin-bottom: 14px; }
.nm-footer-col dd { margin: 0; line-height: 24px; font-size: 12px; color: #999; }
.nm-footer-col dd a { color: #999; }
.nm-footer-col dd a:hover { color: var(--nm-red); }
.nm-footer-logo { width: 200px; display: flex; align-items: flex-start; gap: 10px; }
.nm-footer-logo .nm-logo-mark { width: 44px; height: 44px; border-radius: 12px; font-size: 21px; }
.nm-footer-logo h3 { font-size: 18px; color: var(--nm-red); letter-spacing: 1px; }
.nm-footer-logo p { font-size: 11px; color: #999; margin-top: 3px; }
.nm-footer-qr { width: 150px; text-align: center; }
.nm-footer-qr .box { width: 84px; height: 84px; margin: 0 auto; background: #fff; border: 1px dashed #ddd; display: flex; align-items: center; justify-content: center; color: #c0a3a3; font-size: 11px; text-align: center; line-height: 1.4; }
.nm-footer-qr p { font-size: 12px; color: #999; margin-top: 6px; }
.nm-footer-copy { background: #38383c; color: #b9b9b9; text-align: center; padding: 16px 0; font-size: 12px; line-height: 22px; }
.nm-footer-copy a { color: #b9b9b9; }
.nm-footer-links { margin-bottom: 4px; }
.nm-footer-links a { margin: 0 8px; }

/* ==========================================================================
   10. 工具 / 响应式
   ========================================================================== */
.nm-toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%) translateY(10px); background: rgba(0,0,0,.82); color: #fff; padding: 10px 22px; border-radius: 20px; font-size: 13px; z-index: 9999; opacity: 0; pointer-events: none; transition: .25s; }
.nm-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.nm-backtop { position: fixed; right: 56px; bottom: 40px; width: 40px; height: 40px; line-height: 40px; text-align: center; background: #fff; color: #666; box-shadow: 0 2px 12px rgba(0,0,0,.12); border-radius: 4px; cursor: pointer; z-index: 80; display: none; }
.nm-backtop.on { display: block; }
.nm-skel { background: linear-gradient(90deg, #f4f4f4 25%, #ececec 37%, #f4f4f4 63%); background-size: 400% 100%; animation: nm-skel 1.2s ease infinite; }
@keyframes nm-skel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

@media (max-width: 1399px) {
    .nm-floor-nav { display: none !important; }
}
@media (max-width: 1279px) {
    .nm-side { display: none !important; }
    .nm-backtop { right: 16px; }
}
@media (max-width: 1189px) {
    .nm-wrap, .nm-header-inner, .nm-nav-inner, .nm-first, .nm-sec, .nm-flash, .nm-floor, .nm-f2-banner, .nm-f3-banner { width: 100%; }
    .nm-first { grid-template-columns: 200px 1fr 0; }
    .nm-first-right { display: none; }
    .nm-slider { width: 100%; }
    .nm-floor-nav { display: none !important; }
}
@media (max-width: 900px) {
    .nm-top { display: none; }
    .nm-header-inner { height: auto; padding: 12px 14px; flex-wrap: wrap; gap: 10px; }
    .nm-logo { width: auto; }
    .nm-logo-mark { width: 42px; height: 42px; font-size: 21px; border-radius: 11px; }
    .nm-logo-text h1 { font-size: 19px; }
    .nm-searchbox { width: 100%; margin-left: 0; order: 3; }
    .nm-head-ad { display: none; }
    .nm-nav-inner { height: auto; flex-wrap: wrap; }
    .nm-cat-btn { width: 100%; height: 38px; }
    .nm-nav-links { overflow-x: auto; white-space: nowrap; }
    .nm-nav-links a { padding: 0 12px; font-size: 14px; }
    .nm-first { display: block; height: auto; }
    .nm-cats { display: none; }
    .nm-slider { width: 100%; height: 240px; }
    .nm-slide-text { left: 20px; }
    .nm-slide-text h2 { font-size: 24px; }
    .nm-slide-text p { font-size: 12px; margin: 6px 0 12px; }
    .nm-flash-list { grid-template-columns: repeat(2, 1fr); }
    .nm-f1 { display: block; }
    .nm-f1-left { height: auto; flex-direction: row; flex-wrap: wrap; }
    .nm-f1-hero { width: 100%; height: 200px; }
    .nm-f1-right { grid-template-columns: 1fr; grid-template-rows: auto; }
    .nm-f1-big, .nm-f1-small, .nm-f1-small .nm-tile { width: 100%; height: auto; }
    .nm-f1-small { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .nm-f1-small .nm-tile { height: 140px; }
    .nm-f1-prods { grid-template-columns: repeat(2, 1fr); }
    .nm-f2-tiles, .nm-f3-list, .nm-brandshop, .nm-news { grid-template-columns: repeat(2, 1fr); }
    .nm-f2-tiles .nm-tile { height: 180px; }
    .nm-f4 { display: block; height: auto; }
    .nm-f4-left .nm-tile, .nm-f4-right .nm-tile, .nm-f4-mid .nm-tile { width: 100%; height: 140px; }
    .nm-f4-mid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .nm-f5 { display: block; }
    .nm-f5-right { grid-template-columns: 1fr; grid-template-rows: auto; }
    .nm-f5-big { height: 180px; }
    .nm-brands { display: block; height: auto; }
    .nm-brands-side { display: none; }
    .nm-side { display: none; }
    .nm-footer-cols { flex-wrap: wrap; }
    .nm-footer-col { width: 50%; margin-bottom: 16px; }
    .nm-footer-logo, .nm-footer-qr { display: none; }
    .nm-backtop { right: 12px; }
}

/* ===== 补充：新版首页细节 ===== */
.nm-prod .pic .nm-ph { position: absolute; inset: 0; }
.nm-f1-prods .nm-prod .pic { padding-top: 0; height: 150px; }
.nm-f1-prods .nm-prod .pic img { position: absolute; inset: 0; }
.nm-f1-prods .nm-prod .nm-prod-body { padding: 6px 8px; }
.nm-f1-prods .nm-prod .nm-prod-name { height: 32px; font-size: 12px; }
.nm-f1-prods .nm-prod .nm-prod-price { font-size: 15px; margin-top: 3px; }
.nm-f1-prods .nm-prod .nm-prod-sales { display: none; }
.nm-f1-prods .nm-prod .nm-prod-cart { bottom: 6px; }
.nm-f3-list .nm-prod .nm-prod-body { padding: 10px 14px 14px; }
.nm-f3-list .nm-prod .nm-prod-name { font-size: 14px; height: 44px; }
.nm-f3-list .nm-prod .nm-prod-price { font-size: 20px; }
.nm-f2-tiles .nm-tile .tx b { font-size: 17px; }
.nm-f2-tiles .nm-tile .tx { left: 14px; bottom: 14px; }
.nm-f4-mid .nm-tile .tx b { font-size: 17px; }
.nm-f4-mid .nm-tile .tx { left: 14px; bottom: 14px; }
.nm-f4-right .nm-tile .tx b { font-size: 17px; }
.nm-f4-right .nm-tile .tx { left: 14px; bottom: 14px; }
.nm-f5-main .nm-tile .tx b { font-size: 17px; }
.nm-f5-main .nm-tile .tx { left: 14px; bottom: 14px; }
.nm-f5-side .nm-tile .tx b { font-size: 16px; }
.nm-f5-side .nm-tile .tx { left: 12px; bottom: 12px; }
.nm-f5-side .nm-tile .tx em { display: none; }
.nm-f5-big .tx b { font-size: 20px; }
.nm-f5-big .tx { left: 14px; bottom: 14px; }
.nm-f5-big .tx em { display: none; }

/* 分类底部推广位（绝对定位，避免撑破左侧菜单） */
.nm-cats .nm-cats-promo { position: absolute; left: 0; right: 0; bottom: 8px; height: auto; display: block; padding: 0 10px; margin: 0; }
.nm-cats .nm-cats-promo a { display: block; border-radius: 4px; padding: 7px 10px; color: #fff; margin-bottom: 6px; }
.nm-cats .nm-cats-promo .p1 { background: linear-gradient(135deg, #ff8a4c, #e3393c); }
.nm-cats .nm-cats-promo .p2 { background: linear-gradient(135deg, #4a7dff, #2f55c9); }
.nm-cats .nm-cats-promo b { display: block; font-size: 12px; font-weight: 700; }
.nm-cats .nm-cats-promo span { display: block; font-size: 10px; opacity: .85; margin-top: 1px; }
.nm-cats .nm-cats-promo em { display: none; }

/* 浅色图片位上的文字 */
.nm-tile-light .tx, .nm-tile-light .tx b { color: #5d4a5a; }
.nm-tile-light .tx span { color: rgba(93, 74, 90, .8); }
.nm-tile-light .tx em { color: #5d4a5a; border-color: rgba(93, 74, 90, .35); }

/* ==========================================================================
   11. 商品列表页
   ========================================================================== */
.nm-crumb { width: var(--nm-w); margin: 14px auto 12px; font-size: 12px; color: #999; }
.nm-crumb a { color: #999; }
.nm-crumb a:hover { color: var(--nm-red); }
.nm-crumb .sep { margin: 0 6px; color: #ccc; }
.nm-crumb b { color: #333; font-weight: 400; }

.nm-list { width: var(--nm-w); margin: 0 auto 30px; display: grid; grid-template-columns: 200px 980px; gap: 10px; align-items: start; }
.nm-list-side { background: #fff; border: 1px solid #f0f0f0; position: sticky; top: 10px; }
.nm-list-side-hd { height: 42px; line-height: 42px; padding: 0 14px; background: #f7f7f7; border-bottom: 1px solid #eee; font-size: 15px; font-weight: 700; color: #333; }
.nm-list-side-hd em { font-style: normal; float: right; font-size: 11px; color: #bbb; font-weight: 400; }
.nm-tree { padding: 6px 0 8px; }
.nm-tree-row { display: flex; align-items: center; height: 38px; padding-right: 10px; border-left: 3px solid transparent; cursor: pointer; }
.nm-tree-row:hover { background: #fff8f8; }
.nm-tree-row.on { background: #fff1f1; border-left-color: var(--nm-red); }
.nm-tree-arrow { width: 20px; height: 38px; line-height: 38px; text-align: center; color: #bbb; font-size: 11px; flex-shrink: 0; transition: transform .15s; user-select: none; }
.nm-tree-arrow.open { transform: rotate(90deg); color: #999; }
.nm-tree-arrow.leaf { visibility: hidden; }
.nm-tree-name { flex: 1; font-size: 13px; color: #555; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nm-tree-row.on .nm-tree-name { color: var(--nm-red); font-weight: 700; }
.nm-tree-cnt { color: #bbb; font-size: 11px; margin-left: 6px; flex-shrink: 0; }
.nm-tree-row.on .nm-tree-cnt { color: #e58a8b; }
.nm-tree-children { display: none; }
.nm-tree-children.open { display: block; }
.nm-tree-children .nm-tree-row { padding-left: 14px; background: #fcfcfc; }
.nm-tree-children .nm-tree-row:hover { background: #fff8f8; }
.nm-tree-children .nm-tree-row.on { background: #fff1f1; }
.nm-tree-children .nm-tree-row .nm-tree-name { font-size: 12px; }
.nm-tree-all { display: flex; align-items: center; height: 40px; padding: 0 12px 0 20px; border-left: 3px solid transparent; cursor: pointer; border-bottom: 1px dashed #f0f0f0; margin-bottom: 2px; }
.nm-tree-all:hover { background: #fff8f8; }
.nm-tree-all.on { background: #fff1f1; border-left-color: var(--nm-red); }
.nm-tree-all .nm-tree-name { font-size: 13px; font-weight: 700; color: #333; }
.nm-tree-all.on .nm-tree-name { color: var(--nm-red); }
.nm-list-side-extra { margin-top: 10px; background: #fff; border: 1px solid #f0f0f0; padding: 14px 16px; }
.nm-list-side-extra .t { font-size: 14px; font-weight: 700; color: #333; margin-bottom: 10px; }
.nm-list-side-extra li { font-size: 12px; color: #888; line-height: 28px; }
.nm-list-side-extra li::before { content: "✓"; color: var(--nm-red); margin-right: 8px; }
.nm-list-side-extra .ph { margin-top: 10px; height: 80px; border: 1px dashed #eadcdc; background: repeating-linear-gradient(135deg, #faf7f7 0 10px, #f6f1f1 10px 20px); display: flex; align-items: center; justify-content: center; color: #c4adad; font-size: 11px; }

.nm-list-main { min-width: 0; }
.nm-list-banner { height: 110px; border-radius: 2px; display: flex; align-items: center; padding: 0 30px; color: #fff; position: relative; overflow: hidden; background: linear-gradient(120deg, #a51f22 0%, #e3393c 55%, #ff8350 100%); }
.nm-list-banner::after { content: ""; position: absolute; right: -40px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.08); }
.nm-list-banner::before { content: ""; position: absolute; right: 120px; bottom: -80px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.06); }
.nm-list-banner h2 { font-size: 26px; font-weight: 700; letter-spacing: 2px; position: relative; z-index: 2; }
.nm-list-banner p { font-size: 12px; opacity: .9; margin-top: 8px; position: relative; z-index: 2; }
.nm-list-banner .ico { position: absolute; right: 46px; top: 50%; transform: translateY(-50%); font-size: 54px; opacity: .9; z-index: 1; }
.nm-list-toolbar { height: 50px; background: #fff; border: 1px solid #f0f0f0; margin: 10px 0; display: flex; align-items: center; padding: 0 12px; gap: 14px; position: sticky; top: 0; z-index: 30; }
.nm-sort { display: flex; }
.nm-sort a { display: block; height: 32px; line-height: 30px; padding: 0 16px; border: 1px solid #eee; margin-right: -1px; font-size: 13px; color: #666; background: #fff; cursor: pointer; }
.nm-sort a:hover { color: var(--nm-red); border-color: #f3c7c8; position: relative; z-index: 1; }
.nm-sort a.on { background: var(--nm-red); border-color: var(--nm-red); color: #fff; position: relative; z-index: 2; }
.nm-list-count { margin-left: auto; font-size: 12px; color: #999; }
.nm-list-count b { color: var(--nm-red); font-size: 14px; font-weight: 700; }
.nm-list-search { display: flex; height: 32px; border: 1px solid #ddd; }
.nm-list-search input { width: 150px; border: 0; outline: 0; padding: 0 10px; font-size: 12px; color: #333; }
.nm-list-search button { width: 52px; border: 0; background: #333; color: #fff; font-size: 12px; }
.nm-list-search button:hover { background: var(--nm-red); }
.nm-list-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.nm-list-grid .nm-prod { border: 1px solid #f2f2f2; }
.nm-list-grid .nm-prod-body { padding: 8px 10px 12px; }
.nm-list-empty { grid-column: 1 / -1; padding: 90px 0; text-align: center; color: #999; background: #fff; border: 1px solid #f0f0f0; font-size: 13px; }
.nm-list-empty .ico { font-size: 40px; display: block; margin-bottom: 12px; opacity: .5; }
.nm-list-empty .btn { display: inline-block; margin-top: 14px; padding: 6px 18px; border: 1px solid var(--nm-red); color: var(--nm-red); font-size: 12px; border-radius: 2px; }
.nm-list-pager { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 26px 0 8px; flex-wrap: wrap; }
.nm-page-btn { min-width: 34px; height: 34px; line-height: 32px; padding: 0 9px; border: 1px solid #e5e5e5; background: #fff; color: #666; font-size: 13px; text-align: center; cursor: pointer; }
.nm-page-btn:hover { border-color: var(--nm-red); color: var(--nm-red); }
.nm-page-btn.cur { background: var(--nm-red); border-color: var(--nm-red); color: #fff; }
.nm-page-btn.dis { color: #ccc; cursor: not-allowed; border-color: #f1f1f1; }
.nm-page-btn.dis:hover { border-color: #f1f1f1; color: #ccc; }
.nm-page-total { margin-left: 10px; font-size: 12px; color: #999; }

@media (max-width: 1189px) {
    .nm-crumb, .nm-list { width: 100%; }
    .nm-crumb { padding: 0 10px; }
    .nm-list { padding: 0 10px; grid-template-columns: 190px 1fr; }
    .nm-list-toolbar { position: static; }
}
@media (max-width: 900px) {
    .nm-crumb { margin: 10px auto; }
    .nm-list { display: block; padding: 0 10px; }
    .nm-list-side { position: static; margin-bottom: 10px; }
    .nm-tree { max-height: 260px; overflow: auto; }
    .nm-list-side-extra { display: none; }
    .nm-list-banner { height: 90px; padding: 0 18px; }
    .nm-list-banner h2 { font-size: 20px; }
    .nm-list-banner .ico { font-size: 38px; right: 18px; }
    .nm-list-toolbar { height: auto; flex-wrap: wrap; padding: 8px 10px; gap: 8px; }
    .nm-sort { width: 100%; }
    .nm-sort a { flex: 1; text-align: center; padding: 0 8px; }
    .nm-list-count { margin-left: 0; }
    .nm-list-search { flex: 1; }
    .nm-list-search input { width: 100%; }
    .nm-list-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* 列表页右侧栏链接颜色 */
.nm-side a.nm-side-item { color: #cfcfcf !important; }
.nm-side a.nm-side-item:hover { background: var(--nm-red); color: #fff !important; }

/* ==========================================================================
   12. 首页通栏首屏（临时使用参考站大图）
   ========================================================================== */
.nm-hero { position: relative; width: 100%; height: 491px; overflow: hidden; background: #0b2a3a; }
.nm-hero .nm-slider { position: absolute; inset: 0; width: 100%; height: 491px; }
.nm-hero .nm-slide { background-size: cover; background-position: center top; }
.nm-hero .nm-slide-text { left: calc(50% - 345px); }
.nm-hero-inner { position: relative; z-index: 10; width: 1190px; height: 491px; margin: 0 auto; display: flex; justify-content: space-between; pointer-events: none; }
.nm-hero-inner .nm-cats { pointer-events: auto; width: 200px; height: 491px; background: rgba(61, 72, 81, .96); }
.nm-hero-inner .nm-first-right { pointer-events: auto; width: 200px; height: 491px; margin-left: auto; }
.nm-hero .nm-arrow.prev { left: calc(50% - 587px); }
.nm-hero .nm-arrow.next { right: calc(50% - 587px); }
.nm-hero .nm-dots { bottom: 16px; }

@media (max-width: 1189px) {
    .nm-hero-inner { width: 100%; }
}
@media (max-width: 900px) {
    .nm-hero { height: 240px; }
    .nm-hero .nm-slider { height: 240px; }
    .nm-hero-inner { height: 240px; width: 100%; }
    .nm-hero .nm-slide-text { left: 20px; }
    .nm-hero .nm-arrow.prev { left: 0; }
    .nm-hero .nm-arrow.next { right: 0; }
}

/* 沿用原站小鸡 logo */
.nm-logo-mark.nm-logo-chick {
    background: url(/favicon.ico?v=20260606) center/contain no-repeat;
    box-shadow: none;
    color: transparent;
    font-size: 0;
    padding: 0;
    border-radius: 0;
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, .6)) drop-shadow(0 0 14px rgba(245, 158, 11, .3));
}

/* 红底按钮 / 彩色广告位文字统一白色 */
.nm-cat-btn { color: #fff !important; }
.nm-mini { color: #fff !important; }
.nm-mini b, .nm-mini span, .nm-mini em { color: #fff; }

/* ==========================================================================
   13. 商品详情页
   ========================================================================== */
.nm-detail { width: var(--nm-w); margin: 14px auto 0; display: grid; grid-template-columns: 420px 750px; gap: 20px; align-items: start; }
.nm-gallery { background: #fff; }
.nm-gallery .main { width: 420px; height: 420px; border: 1px solid #f0f0f0; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.nm-gallery .main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nm-gallery .main .nm-ph { border: 0; }
.nm-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.nm-thumbs .t { width: 76px; height: 76px; border: 1px solid #eee; background: #fff; cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.nm-thumbs .t img { width: 100%; height: 100%; object-fit: cover; }
.nm-thumbs .t.on { border-color: var(--nm-red); box-shadow: 0 0 0 1px var(--nm-red); }

.nm-info h1 { font-size: 22px; color: #222; line-height: 1.45; font-weight: 700; }
.nm-info .sub { color: #999; font-size: 12px; margin: 8px 0 14px; }
.nm-info .sub span { margin-right: 12px; }
.nm-price-box { background: #fff7f3; border: 1px solid #ffe1d6; padding: 16px 20px; }
.nm-price-box .now { color: var(--nm-red); font-size: 34px; font-weight: 700; line-height: 1; }
.nm-price-box .now small { font-size: 18px; font-weight: 400; }
.nm-price-box .old { color: #aaa; font-size: 14px; text-decoration: line-through; margin-left: 10px; }
.nm-price-box .meta { display: flex; gap: 28px; color: #999; font-size: 12px; margin-top: 10px; }
.nm-price-box .meta b { color: #666; font-weight: 400; }
.nm-services { display: flex; gap: 26px; padding: 14px 0; border-bottom: 1px dashed #eee; color: #666; font-size: 12px; }
.nm-services span::before { content: "✓"; color: var(--nm-red); margin-right: 5px; }
.nm-buy-row { display: flex; align-items: center; gap: 12px; padding: 18px 0 10px; }
.nm-qty { display: flex; height: 38px; border: 1px solid #ddd; background: #fff; }
.nm-qty button { width: 34px; border: 0; background: #f7f7f7; color: #666; font-size: 16px; }
.nm-qty button:hover { color: var(--nm-red); }
.nm-qty input { width: 52px; border: 0; border-left: 1px solid #eee; border-right: 1px solid #eee; text-align: center; font-size: 13px; outline: 0; }
.nm-btn-cart, .nm-btn-buy { height: 40px; line-height: 40px; padding: 0 30px; font-size: 15px; font-weight: 600; border-radius: 2px; text-align: center; }
.nm-btn-cart { border: 1px solid var(--nm-red); color: var(--nm-red) !important; background: #fff; }
.nm-btn-cart:hover { background: #fff1f1; }
.nm-btn-buy { border: 1px solid var(--nm-red); background: var(--nm-red); color: #fff !important; }
.nm-btn-buy:hover { background: var(--nm-red-dark); }
.nm-btn-cart.dis, .nm-btn-buy.dis { background: #ddd; border-color: #ddd; color: #fff !important; cursor: not-allowed; }
.nm-coupon-tip { display: none; margin-top: 12px; padding: 10px 14px; background: #fff7e6; border: 1px dashed #ffb74d; color: #d46b08; font-size: 12px; }
.nm-coupon-tip a { color: #d4380d; font-weight: 700; margin-left: 6px; }

.nm-detail-extra { width: var(--nm-w); margin: 24px auto 0; background: #fff; border: 1px solid #f0f0f0; }
.nm-detail-tabs { display: flex; border-bottom: 1px solid #f0f0f0; background: #fafafa; }
.nm-detail-tabs a { padding: 0 28px; height: 46px; line-height: 46px; font-size: 15px; color: #666; border-right: 1px solid #f0f0f0; }
.nm-detail-tabs a.on { background: #fff; color: var(--nm-red); font-weight: 700; border-top: 2px solid var(--nm-red); height: 44px; line-height: 42px; }
.nm-detail-panel { padding: 26px 30px; min-height: 180px; }
.nm-detail-panel .desc-body { font-size: 14px; line-height: 1.9; color: #444; }
.nm-detail-panel .desc-body img { max-width: 100%; height: auto; }
.nm-detail-panel h3 { font-size: 15px; color: #333; margin: 0 0 14px; font-weight: 700; }
.nm-params { width: 100%; border-collapse: collapse; font-size: 13px; }
.nm-params th, .nm-params td { border: 1px solid #f0f0f0; padding: 10px 14px; text-align: left; }
.nm-params th { width: 140px; background: #fafafa; color: #888; font-weight: 400; }
.nm-params td { color: #333; }
.nm-batch { background: #fafafa; border: 1px solid #f2f2f2; padding: 10px 14px; font-size: 12px; color: #666; margin-bottom: 16px; }
.nm-batch b { color: #333; }
.nm-trace-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nm-trace-card { border: 1px solid #f0f0f0; padding: 16px; }
.nm-trace-card .label { display: inline-block; font-size: 12px; color: #fff; background: var(--nm-red); padding: 2px 10px; border-radius: 2px; }
.nm-trace-card .t-name { font-size: 15px; color: #333; font-weight: 700; margin: 10px 0 4px; }
.nm-trace-card .t-en { font-size: 11px; color: #aaa; }
.nm-trace-card .t-row { display: flex; font-size: 12px; color: #666; margin-top: 8px; line-height: 1.6; }
.nm-trace-card .t-row .k { width: 64px; color: #999; flex-shrink: 0; }
.nm-trace-card .t-row .v { flex: 1; }
.nm-trace-card .cert { display: inline-block; font-size: 11px; color: #2c8a5a; background: #eef8f2; padding: 2px 8px; margin: 2px 6px 2px 0; }
.nm-trace-empty { color: #bbb; font-size: 13px; padding: 30px 0; text-align: center; }

.nm-reco { width: var(--nm-w); margin: 26px auto 0; }
.nm-reco-hd { height: 44px; display: flex; align-items: center; border-bottom: 2px solid #f0f0f0; margin-bottom: 12px; }
.nm-reco-hd h2 { font-size: 22px; color: #333; font-weight: 700; border-left: 6px solid var(--nm-red); padding-left: 12px; line-height: 24px; }
.nm-reco-hd .nm-more { margin-left: auto; font-size: 12px; color: #999; }
.nm-reco-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.nm-reco-grid .nm-prod { border: 1px solid #f2f2f2; }

@media (max-width: 1189px) {
    .nm-detail, .nm-detail-extra, .nm-reco { width: 100%; }
    .nm-detail { padding: 0 10px; grid-template-columns: 380px 1fr; gap: 16px; }
    .nm-gallery .main { width: 380px; height: 380px; }
    .nm-detail-extra, .nm-reco { padding: 0 10px; }
}
@media (max-width: 900px) {
    .nm-detail { display: block; padding: 0 10px; }
    .nm-gallery .main { width: 100%; height: auto; aspect-ratio: 1 / 1; }
    .nm-info { margin-top: 14px; }
    .nm-info h1 { font-size: 18px; }
    .nm-price-box .now { font-size: 28px; }
    .nm-buy-row { flex-wrap: wrap; }
    .nm-btn-cart, .nm-btn-buy { flex: 1; padding: 0 12px; }
    .nm-detail-tabs a { padding: 0 14px; font-size: 13px; }
    .nm-detail-panel { padding: 16px; }
    .nm-trace-grid { grid-template-columns: 1fr; }
    .nm-reco-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .nm-detail-extra, .nm-reco { padding: 0 10px; }
}

/* ==========================================================================
   14. 购物车
   ========================================================================== */
.nm-steps { width: var(--nm-w); margin: 14px auto 12px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: #999; }
.nm-steps .s { display: flex; align-items: center; gap: 8px; }
.nm-steps .s b { width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%; background: #eee; color: #999; font-size: 12px; font-weight: 400; }
.nm-steps .s.on { color: var(--nm-red); }
.nm-steps .s.on b { background: var(--nm-red); color: #fff; }
.nm-steps .line { flex: 1; height: 1px; background: #eee; }

.nm-cart { width: var(--nm-w); margin: 0 auto 26px; background: #fff; border: 1px solid #f0f0f0; }
.nm-cart-head, .nm-cart-row { display: grid; grid-template-columns: 50px 1fr 120px 140px 120px 80px; align-items: center; }
.nm-cart-head { height: 44px; background: #fafafa; border-bottom: 1px solid #f0f0f0; font-size: 12px; color: #999; text-align: center; }
.nm-cart-head .l { text-align: left; padding-left: 14px; }
.nm-cart-row { padding: 16px 0; border-bottom: 1px solid #f4f4f4; }
.nm-cart-row:last-child { border-bottom: 0; }
.nm-cart-check { text-align: center; }
.nm-cart-check input { width: 14px; height: 14px; accent-color: var(--nm-red); cursor: pointer; }
.nm-cart-good { display: flex; gap: 12px; align-items: center; min-width: 0; padding-right: 12px; }
.nm-cart-good img, .nm-cart-good .ph { width: 80px; height: 80px; object-fit: cover; background: #fafafa; border: 1px solid #f4f4f4; flex-shrink: 0; }
.nm-cart-good .ph { display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 20px; }
.nm-cart-good .info { min-width: 0; }
.nm-cart-good .name { font-size: 13px; color: #333; line-height: 20px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nm-cart-good .name:hover { color: var(--nm-red); }
.nm-cart-good .meta { font-size: 11px; color: #bbb; margin-top: 6px; }
.nm-cart-price, .nm-cart-sub { text-align: center; font-size: 13px; color: #333; }
.nm-cart-sub { color: var(--nm-red); font-weight: 700; }
.nm-cart-qty { display: flex; justify-content: center; }
.nm-cart-qty .q { display: flex; height: 30px; border: 1px solid #ddd; }
.nm-cart-qty .q button { width: 26px; border: 0; background: #f7f7f7; color: #666; }
.nm-cart-qty .q input { width: 40px; border: 0; border-left: 1px solid #eee; border-right: 1px solid #eee; text-align: center; font-size: 12px; outline: 0; }
.nm-cart-del { text-align: center; }
.nm-cart-del a { font-size: 12px; color: #999; }
.nm-cart-del a:hover { color: var(--nm-red); }
.nm-cart-bar { position: sticky; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid #f0f0f0; display: flex; align-items: center; gap: 16px; padding: 14px 18px; }
.nm-cart-bar .all { font-size: 13px; color: #666; display: flex; align-items: center; gap: 8px; }
.nm-cart-bar .all input { width: 14px; height: 14px; accent-color: var(--nm-red); }
.nm-cart-bar .clear { font-size: 12px; color: #999; }
.nm-cart-bar .sum { margin-left: auto; font-size: 13px; color: #666; }
.nm-cart-bar .sum b { color: var(--nm-red); font-size: 22px; font-weight: 700; margin-left: 6px; }
.nm-cart-bar .go { height: 42px; line-height: 42px; padding: 0 34px; background: var(--nm-red); color: #fff !important; font-size: 15px; font-weight: 700; }
.nm-cart-bar .go.dis { background: #ccc; cursor: not-allowed; }
.nm-cart-empty { padding: 80px 20px; text-align: center; color: #999; }
.nm-cart-empty .ico { font-size: 46px; display: block; margin-bottom: 12px; opacity: .5; }
.nm-cart-empty .btn { display: inline-block; margin-top: 16px; padding: 9px 26px; border: 1px solid var(--nm-red); color: var(--nm-red) !important; font-size: 13px; }

@media (max-width: 1189px) {
    .nm-steps, .nm-cart { width: 100%; }
    .nm-steps { padding: 0 10px; }
    .nm-cart { width: auto; margin: 0 10px 26px; }
}
@media (max-width: 900px) {
    .nm-steps { flex-wrap: wrap; gap: 6px; }
    .nm-steps .line { display: none; }
    .nm-cart-head { display: none; }
    .nm-cart-row { grid-template-columns: 34px 1fr; grid-template-rows: auto auto; row-gap: 8px; padding: 12px 10px; }
    .nm-cart-check { grid-row: 1 / 3; }
    .nm-cart-good { padding-right: 0; }
    .nm-cart-good img, .nm-cart-good .ph { width: 66px; height: 66px; }
    .nm-cart-price { display: none; }
    .nm-cart-qty { justify-content: flex-start; padding-left: 78px; }
    .nm-cart-sub { text-align: left; padding-left: 12px; }
    .nm-cart-del { text-align: right; padding-right: 8px; grid-column: 2; }
    .nm-cart-bar { flex-wrap: wrap; gap: 10px; }
    .nm-cart-bar .sum { margin-left: 0; }
    .nm-cart-bar .go { flex: 1; text-align: center; padding: 0 16px; }
}

/* ==========================================================================
   15. 结算页
   ========================================================================== */
.nm-checkout { width: var(--nm-w); margin: 0 auto 30px; display: grid; grid-template-columns: 1fr 330px; gap: 20px; align-items: start; }
.nm-co-card { background: #fff; border: 1px solid #f0f0f0; padding: 20px 24px; margin-bottom: 14px; }
.nm-co-card h2 { font-size: 16px; color: #333; font-weight: 700; padding-left: 10px; border-left: 3px solid var(--nm-red); line-height: 18px; margin-bottom: 16px; }
.nm-co-houses { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.nm-co-house { border: 1px solid #eee; padding: 8px 12px; cursor: pointer; font-size: 12px; color: #666; line-height: 1.5; max-width: 100%; }
.nm-co-house b { color: #333; font-weight: 700; }
.nm-co-house.on { border-color: var(--nm-red); background: #fff7f3; }
.nm-co-house:hover { border-color: #f3b9ba; }
.nm-co-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nm-co-row { display: flex; align-items: center; }
.nm-co-row.full { grid-column: 1 / -1; align-items: flex-start; }
.nm-co-row label { width: 72px; flex-shrink: 0; font-size: 13px; color: #666; }
.nm-co-row input, .nm-co-row textarea { flex: 1; border: 1px solid #e5e5e5; padding: 8px 10px; font-size: 13px; outline: 0; font-family: inherit; }
.nm-co-row input:focus, .nm-co-row textarea:focus { border-color: var(--nm-red); }
.nm-co-row textarea { resize: vertical; min-height: 62px; }
.nm-co-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f4f4f4; }
.nm-co-item:last-child { border-bottom: 0; }
.nm-co-item img, .nm-co-item .ph { width: 70px; height: 70px; object-fit: cover; background: #fafafa; border: 1px solid #f4f4f4; flex-shrink: 0; }
.nm-co-item .ph { display: flex; align-items: center; justify-content: center; color: #ccc; }
.nm-co-item .info { flex: 1; min-width: 0; }
.nm-co-item .name { font-size: 13px; color: #333; line-height: 20px; }
.nm-co-item .meta { font-size: 12px; color: #999; margin-top: 6px; }
.nm-co-item .price { text-align: right; font-size: 13px; color: #333; white-space: nowrap; }
.nm-co-item .price b { color: var(--nm-red); }
.nm-co-item .qty { display: inline-flex; align-items: center; border: 1px solid #ddd; height: 28px; margin-top: 6px; }
.nm-co-item .qty button { width: 24px; border: 0; background: #f7f7f7; color: #666; }
.nm-co-item .qty input { width: 38px; border: 0; border-left: 1px solid #eee; border-right: 1px solid #eee; text-align: center; font-size: 12px; outline: 0; }
.nm-co-delivery { display: flex; gap: 24px; font-size: 13px; color: #333; margin-bottom: 12px; }
.nm-co-delivery label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.nm-co-delivery input { accent-color: var(--nm-red); }
.nm-co-remark { display: flex; align-items: center; gap: 10px; }
.nm-co-remark label { font-size: 13px; color: #666; flex-shrink: 0; }
.nm-co-remark input { flex: 1; border: 1px solid #e5e5e5; padding: 8px 10px; font-size: 13px; outline: 0; }
.nm-co-summary { background: #fff; border: 1px solid #f0f0f0; padding: 20px 22px; position: sticky; top: 10px; }
.nm-co-summary h2 { font-size: 16px; color: #333; font-weight: 700; margin-bottom: 14px; }
.nm-co-summary .row { display: flex; justify-content: space-between; font-size: 13px; color: #666; padding: 7px 0; }
.nm-co-summary .row.total { border-top: 1px solid #f0f0f0; margin-top: 8px; padding-top: 14px; font-size: 14px; color: #333; }
.nm-co-summary .row.total b { color: var(--nm-red); font-size: 24px; font-weight: 700; }
.nm-co-submit { display: block; width: 100%; height: 44px; line-height: 44px; text-align: center; background: var(--nm-red); color: #fff !important; border: 0; font-size: 15px; font-weight: 700; margin-top: 16px; }
.nm-co-submit:hover { background: var(--nm-red-dark); }
.nm-co-submit.dis { background: #ccc; cursor: not-allowed; }
.nm-co-tip { font-size: 11px; color: #aaa; text-align: center; margin-top: 10px; line-height: 1.7; }
.nm-co-tip.login a { color: var(--nm-red); }
.nm-co-error { padding: 70px 20px; text-align: center; color: #999; background: #fff; border: 1px solid #f0f0f0; }
.nm-co-error .btn { display: inline-block; margin-top: 14px; padding: 8px 22px; border: 1px solid var(--nm-red); color: var(--nm-red) !important; }

.nm-co-success { width: var(--nm-w); margin: 20px auto 40px; background: #fff; border: 1px solid #f0f0f0; padding: 56px 20px; text-align: center; }
.nm-co-success .ok { width: 70px; height: 70px; line-height: 70px; border-radius: 50%; background: #52c41a; color: #fff; font-size: 38px; margin: 0 auto 18px; }
.nm-co-success h2 { font-size: 22px; color: #333; margin-bottom: 12px; }
.nm-co-success p { font-size: 14px; color: #666; line-height: 1.9; }
.nm-co-success p b { color: var(--nm-red); font-size: 20px; }
.nm-co-success .btns { margin-top: 24px; display: flex; gap: 12px; justify-content: center; }
.nm-co-success .btns a { padding: 9px 24px; border: 1px solid var(--nm-red); color: var(--nm-red) !important; font-size: 13px; }
.nm-co-success .btns a.main { background: var(--nm-red); color: #fff !important; }

@media (max-width: 1189px) {
    .nm-checkout, .nm-co-success { width: 100%; }
    .nm-checkout { padding: 0 10px; grid-template-columns: 1fr 300px; }
    .nm-co-success { margin: 20px 10px 40px; width: auto; }
}
@media (max-width: 900px) {
    .nm-checkout { display: block; padding: 0 10px; }
    .nm-co-card { padding: 14px; }
    .nm-co-form { grid-template-columns: 1fr; }
    .nm-co-row.full { grid-column: auto; }
    .nm-co-summary { position: static; margin-top: 4px; }
    .nm-co-item img, .nm-co-item .ph { width: 58px; height: 58px; }
    .nm-co-success { margin: 16px 10px 30px; padding: 34px 14px; }
}

/* 结算步骤完成态 */
.nm-steps .s.done { color: #52c41a; }
.nm-steps .s.done b { background: #52c41a; color: #fff; }

/* ==========================================================================
   移动端头部：频道下拉菜单
   ========================================================================== */
.nm-mobile-menu-btn {
    display: none;
}

.nm-mobile-menu {
    display: none;
}

.nm-mobile-cart {
    display: none;
}

@media (max-width: 900px) {
    .nm-header {
        position: relative;
        z-index: 200;
    }

    .nm-mobile-cart {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        margin-left: auto;
        border: 1px solid #ffe0dc;
        border-radius: 10px;
        background: #fff6f4;
        color: #e4393c;
        text-decoration: none;
    }

    .nm-mobile-cart svg {
        width: 21px;
        height: 21px;
        display: block;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .nm-mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        margin-left: 6px;
        padding: 0;
        border: 1px solid #eef0f4;
        border-radius: 10px;
        background: #fff;
        color: #5b6472;
        cursor: pointer;
        transition: background .18s ease, color .18s ease, border-color .18s ease;
    }

    .nm-mobile-menu-btn svg {
        width: 19px;
        height: 19px;
        display: block;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform .2s ease;
    }

    .nm-mobile-menu-btn.on {
        border-color: #ffd9d5;
        background: #fff5f4;
        color: #e4393c;
    }

    .nm-mobile-menu-btn.on svg {
        transform: rotate(180deg);
    }

    .nm-mobile-menu {
        position: absolute;
        top: 100%;
        right: 12px;
        z-index: 600;
        display: none;
        width: 262px;
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 130px);
        overflow-y: auto;
        padding: 10px;
        border: 1px solid #eef0f4;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
    }

    .nm-mobile-menu::before {
        content: "";
        position: absolute;
        top: -6px;
        right: 17px;
        width: 11px;
        height: 11px;
        background: #fff;
        border-left: 1px solid #eef0f4;
        border-top: 1px solid #eef0f4;
        transform: rotate(45deg);
    }

    .nm-mobile-menu.open {
        display: block;
        animation: nmMenuDown .18s ease-out;
    }

    @keyframes nmMenuDown {
        from { opacity: .5; transform: translateY(-4px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .nm-mobile-menu-hd {
        display: flex;
        align-items: baseline;
        gap: 6px;
        padding: 2px 8px 7px;
    }

    .nm-mobile-menu-hd b {
        color: #1f2937;
        font-size: 13px;
        font-weight: 700;
    }

    .nm-mobile-menu-hd span {
        color: #a3acb9;
        font-size: 10px;
    }

    .nm-mobile-menu-list a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 9px 8px;
        border-radius: 10px;
        color: inherit;
        text-decoration: none;
    }

    .nm-mobile-menu-list a:active {
        background: #fff7f6;
    }

    .nm-mobile-menu-list a + a {
        border-top: 1px solid #f7f8fa;
        border-radius: 0;
    }

    .mm-ico {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        border-radius: 9px;
        font-size: 13px;
        font-weight: 700;
        line-height: 1;
    }

    .mm-red { background: #fff1f2; color: #e4393c; }
    .mm-purple { background: #f5f3ff; color: #7c3aed; }
    .mm-amber { background: #fffbeb; color: #d97706; }
    .mm-pink { background: #fdf2f8; color: #db2777; }
    .mm-blue { background: #eef4ff; color: #3b82f6; }

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

    .mm-txt b {
        display: block;
        color: #1f2937;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.3;
    }

    .mm-txt small {
        display: block;
        margin-top: 2px;
        color: #a3acb9;
        font-size: 10px;
        line-height: 1.4;
    }

    .nm-mobile-menu-list a > i {
        flex: 0 0 auto;
        color: #cbd5e1;
        font-style: normal;
        font-size: 18px;
        line-height: 1;
    }
}

@media (max-width: 900px) {
    /* 移动端统一由底部导航承担导航，隐藏桌面页脚 */
    .nm-footer {
        display: none !important;
    }
}

/* ==========================================================================
   顶部「手机端」：桌面端弹出手机模拟预览
   ========================================================================== */
.nm-preview-mask {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 15, 28, .64);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.nm-preview-mask.on {
    display: flex;
    animation: nmPreviewFade .18s ease-out;
}

.nm-preview-dialog {
    display: flex;
    flex-direction: column;
    width: 438px;
    max-width: 100%;
    max-height: calc(100vh - 32px);
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 26px;
    background: linear-gradient(150deg, #162033, #0b1424);
    box-shadow: 0 32px 90px rgba(0, 0, 0, .55);
}

.nm-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 4px 10px;
}

.nm-preview-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #e5e7eb;
}

.nm-preview-title b {
    font-size: 14px;
    letter-spacing: .5px;
}

.nm-preview-title span {
    color: #94a3b8;
    font-size: 10px;
}

.nm-preview-tools {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nm-preview-tools button {
    height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 7px;
    background: rgba(255, 255, 255, .06);
    color: #cbd5e1;
    font-size: 11px;
    cursor: pointer;
}

.nm-preview-tools button:hover {
    border-color: rgba(228, 57, 60, .55);
    color: #fff;
}

.nm-preview-close {
    width: 30px;
    padding: 0 !important;
    font-size: 18px;
    line-height: 1;
}

.nm-preview-phone {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: clamp(360px, calc(100vh - 190px), 780px);
    padding: 10px;
    border: 1px solid #334155;
    border-radius: 34px;
    background: linear-gradient(145deg, #1f2937, #0b1220);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.nm-preview-bezel {
    flex: 0 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nm-preview-cam {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0f172a;
    box-shadow: inset 0 0 0 1px #334155;
}

.nm-preview-speaker {
    width: 48px;
    height: 4px;
    border-radius: 2px;
    background: #0f172a;
    box-shadow: inset 0 0 0 1px #334155;
}

.nm-preview-screen {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
}

.nm-preview-screen iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.nm-preview-foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 4px 0;
    color: #64748b;
    font-size: 10px;
}

@keyframes nmPreviewFade {
    from { opacity: .6; }
    to { opacity: 1; }
}

/* ===== 商城公告弹窗（对接后台商城公告） ===== */
.nm-notice-mask{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(15,23,42,.45);display:none;align-items:center;justify-content:center;padding:20px;z-index:2000}
.nm-notice-mask.show{display:flex}
.nm-notice-dialog{background:#fff;border-radius:14px;max-width:560px;width:100%;max-height:80vh;overflow:auto;padding:26px 28px;position:relative;box-shadow:0 20px 60px rgba(0,0,0,.25)}
.nm-notice-dialog h3{margin:0 0 14px;font-size:19px;color:#0f172a;padding-right:28px;line-height:1.4}
.nm-notice-content{color:#475569;font-size:14px;line-height:1.9;word-break:break-word;white-space:pre-wrap}
.nm-notice-close{position:absolute;top:12px;right:14px;width:30px;height:30px;border:none;border-radius:50%;background:#f1f5f9;color:#64748b;font-size:18px;line-height:1;cursor:pointer}
.nm-notice-close:hover{background:#e2e8f0;color:#0f172a}
@media(max-width:640px){.nm-notice-dialog{padding:20px;max-height:75vh}}

/* 公告列表弹窗 */
.nm-notice-list{list-style:none;margin:0;padding:0}
.nm-notice-list li{border-bottom:1px dashed #eef2f7}
.nm-notice-list li:last-child{border-bottom:none}
.nm-notice-list a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;padding:10px 2px;color:#334155;text-decoration:none;font-size:14px;line-height:1.5}
.nm-notice-list a:hover{color:#0066cc}

/* 楼层1 左下角推荐商品 */
.nm-f1-rec{display:flex;flex-direction:column;flex:1;min-height:0;margin:10px 0 0;background:#fff;border:1px solid #f0f0f0;overflow:hidden}
.nm-f1-rec-img{flex:1;min-height:0;overflow:hidden;background:#f7f7f7}
.nm-f1-rec-img img{width:100%;height:100%;object-fit:cover;display:block}
.nm-f1-rec b{font-size:12px;color:#333;padding:6px 8px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nm-f1-rec-price{color:var(--nm-red);font-size:14px;font-weight:700;padding:2px 8px 0}
.nm-f1-rec em{font-style:normal;font-size:11px;color:#999;padding:0 8px 8px}
.nm-f1-rec:hover{border-color:#f6c6c7}

/* ===== 全部服务分类页 ===== */
.svc-tree { padding: 6px 0 10px; }
.svc-tree .g { margin-top: 6px; }
.svc-tree .p { font-size: 12px; color: #333; font-weight: 700; padding: 6px 12px; background: #fafafa; }
.svc-tree a { display: block; padding: 5px 12px 5px 20px; font-size: 12px; color: #666; }
.svc-tree a:hover { color: var(--nm-red); }
.svc-tree a.on { color: var(--nm-red); background: #fff5f5; border-left: 2px solid var(--nm-red); }
.svc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.svc-card { display: flex; gap: 12px; background: #fff; border: 1px solid #f0f0f0; padding: 14px; transition: border-color .2s, box-shadow .2s; }
.svc-card:hover { border-color: #f6c6c7; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.svc-card .ico { width: 44px; height: 44px; border-radius: 10px; background: #fff2f0; color: var(--nm-red); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex-shrink: 0; }
.svc-card h3 { font-size: 14px; color: #333; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.svc-card h3 em { font-style: normal; font-size: 10px; color: #999; background: #f5f5f5; padding: 1px 5px; border-radius: 2px; font-weight: 400; }
.svc-card p { font-size: 12px; color: #999; line-height: 1.6; }
.svc-card .pr { color: var(--nm-red); font-size: 14px; font-weight: 700; margin-top: 6px; }
.svc-card .go { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--nm-red); }
@media (max-width: 900px) { .svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .svc-cards { grid-template-columns: 1fr; } }

/* 服务分类：数量 */
.svc-tree a .n { float: right; font-size: 11px; color: #bbb; }
.svc-tree a.on .n { color: var(--nm-red); }

.svc-tree a.p { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.svc-tree a.p:hover { color: #333; }
.svc-tree a.p .n { float: none; }


/* 全部服务：商品卡风格 */
.nm-svc-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, #fff3f1, #ffe2dd); color: var(--nm-red); }
.nm-svc-ph span { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; }
.nm-svc-ph em { font-style: normal; font-size: 11px; color: #c9857f; }
.nm-svc-tag { font-style: normal; font-size: 10px; color: #999; background: #f5f5f5; padding: 1px 4px; border-radius: 2px; margin-left: 4px; font-weight: 400; }
.nm-svc-unit { font-size: 11px; font-weight: 400; color: #999; margin-left: 2px; }
.nm-svc-free { font-size: 13px !important; }
.nm-services-page .nm-list-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .nm-services-page .nm-list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .nm-services-page .nm-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 服务详情页 */
.nm-svc-tagrow { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.nm-svc-tagchip { font-size: 12px; color: #e3393c; background: #fff1f1; border: 1px solid #ffd9d5; border-radius: 2px; padding: 2px 8px; }
.nm-svc-subline { display: flex; flex-wrap: wrap; gap: 16px; color: #999; font-size: 12px; padding: 10px 0; border-top: 1px dashed #eee; }
.nm-reco-grid .nm-prod .pic { display: block; position: relative; width: 100%; padding-top: 100%; overflow: hidden; background: #fafafa; }
.nm-reco-grid .nm-prod .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }


/* ===== 联系商家聊天 ===== */
.nm-chat-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; z-index: 3000; padding: 16px; }
.nm-chat-mask.show { display: flex; }
.nm-chat-box { width: 380px; max-width: 100%; height: 520px; max-height: 82vh; background: #fff; border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.nm-chat-hd { height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid #f0f0f0; }
.nm-chat-hd b { font-size: 15px; color: #222; }
.nm-chat-close { border: 0; background: transparent; font-size: 20px; color: #999; cursor: pointer; }
.nm-chat-body { flex: 1; overflow-y: auto; background: #f6f7f9; padding: 14px; }
.nm-chat-empty { text-align: center; color: #999; font-size: 12px; padding: 30px 0; }
.nm-chat-msg { display: flex; flex-direction: column; margin-bottom: 12px; }
.nm-chat-msg.user { align-items: flex-end; }
.nm-chat-msg.seller { align-items: flex-start; }
.nm-chat-msg .bubble { max-width: 78%; padding: 8px 12px; border-radius: 10px; font-size: 13px; line-height: 1.6; word-break: break-word; white-space: pre-wrap; }
.nm-chat-msg.user .bubble { background: #e4393c; color: #fff; border-bottom-right-radius: 2px; }
.nm-chat-msg.seller .bubble { background: #fff; color: #333; border-bottom-left-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.nm-chat-msg .time { font-size: 10px; color: #bbb; margin-top: 3px; }
.nm-chat-ft { flex-shrink: 0; display: flex; gap: 8px; padding: 10px; border-top: 1px solid #f0f0f0; background: #fff; }
.nm-chat-ft input { flex: 1; height: 38px; border: 1px solid #e5e5e5; border-radius: 6px; padding: 0 10px; font-size: 13px; outline: 0; }
.nm-chat-ft input:focus { border-color: #e4393c; }
.nm-chat-ft button { width: 70px; height: 38px; border: 0; border-radius: 6px; background: #e4393c; color: #fff; font-size: 14px; cursor: pointer; }
@media (max-width: 640px) { .nm-chat-box { width: 100%; height: 80vh; } }


/* 聊天商品卡片 */
.nm-chat-goods { width: 44px; height: 38px; border: 1px solid #e4393c; background: #fff; color: #e4393c; border-radius: 6px; font-size: 13px; cursor: pointer; flex-shrink: 0; }
.nm-chat-card { display: flex; gap: 9px; width: 236px; max-width: 100%; background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 8px; text-decoration: none; color: #333; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.nm-chat-card img { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.nm-chat-card-ph { width: 56px; height: 56px; border-radius: 6px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.nm-chat-card-info { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.nm-chat-card-info b { font-size: 13px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-chat-card-info em { font-style: normal; color: #e4393c; font-size: 13px; margin-top: 2px; }
.nm-chat-card-info i { font-style: normal; color: #999; font-size: 11px; margin-top: 3px; }
