/* 农苗网 全局样式：基于 layui 的绿色主题覆盖 */
:root {
  --nm-main: #2cab3f;
  --nm-main-dark: #1f8a30;
  --nm-bg: #f5f6f8;
  --nm-text: #333;
  --nm-light: #888;
  --nm-price: #e5502c;
}

body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; font-size: 16px; background: var(--nm-bg); color: var(--nm-text); }
a { color: var(--nm-text); }
a:hover { color: var(--nm-main); }

/* layui 主题色覆盖为绿色 */
.layui-btn:not(.layui-btn-primary):not(.layui-btn-danger):not(.layui-btn-warm):not(.layui-btn-black):not([class*="layui-bg"]),
.layui-btn-normal { background-color: var(--nm-main); }
.layui-btn:hover:not(.layui-btn-primary):not(.layui-btn-danger):not(.layui-btn-warm):not(.layui-btn-black) { background-color: var(--nm-main-dark); }
.layui-btn-primary:hover { border-color: var(--nm-main); color: var(--nm-main); }
.layui-form-checked[lay-skin="primary"] i { border-color: var(--nm-main); background-color: var(--nm-main); color: #fff; }
.layui-form-onswitch { border-color: var(--nm-main); background-color: var(--nm-main); }
.layui-laypage a:hover { color: var(--nm-main); }
.layui-laypage .layui-laypage-curr .layui-laypage-em { background-color: var(--nm-main); }
.layui-tab-title .layui-this { color: var(--nm-main); }
.layui-tab-title .layui-this:after { border-bottom-color: var(--nm-main); border-color: #e2e2e2; border-bottom-color: var(--nm-main); }
.layui-this > .layui-nav-more, .layui-nav-bar { background-color: var(--nm-main) !important; }
.layui-nav .layui-this:after, .layui-nav-bar { background-color: var(--nm-main); }
.layui-input:focus, .layui-textarea:focus { border-color: var(--nm-main) !important; }
.layui-bg-green { background-color: var(--nm-main) !important; color: #fff !important; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- 顶部 ---------- */
.nm-topbar { background: #fff; border-bottom: 1px solid #eee; font-size: 14px; color: var(--nm-light); }
.nm-topbar .container { display: flex; justify-content: space-between; height: 36px; align-items: center; }
.nm-topbar a { margin-left: 16px; color: var(--nm-light); }
.nm-topbar a:hover { color: var(--nm-main); }

.nm-header { background: #fff; position: relative; }
.nm-header .container { display: flex; align-items: center; height: 76px; gap: 24px; }
.nm-logo { font-size: 28px; font-weight: bold; color: var(--nm-main); white-space: nowrap; min-width:225px; }
.nm-logo small { color: var(--nm-light); font-size: 13px; font-weight: normal; margin-left: 8px; }

/* layui-nav 覆盖 */
.nm-nav { flex: 1; }
.nm-nav.layui-nav { background: transparent; padding: 0; height: auto; }
.nm-nav.layui-nav .layui-nav-item { line-height: 44px; }
.nm-nav.layui-nav .layui-nav-item > a { font-size: 17px; color: var(--nm-text); padding: 0 18px; }
.nm-nav.layui-nav .layui-nav-item > a:hover,
.nm-nav.layui-nav .layui-nav-item.layui-this > a { color: var(--nm-main); }
.nm-nav.layui-nav .layui-nav-bar { height: 3px; }
.nm-header-user { display: flex; gap: 10px; align-items: center; font-size: 14px; white-space: nowrap; }

/* 头部搜索（导航右侧） */
.nm-header-searchbox { margin-left: auto; }
.nm-header-search.nm-search-form .layui-input { height: 32px; line-height: 32px; border: 1px solid #d9d9d9; border-right: none; border-radius: 2px 0 0 2px; font-size: 13px; width: 200px; }
.nm-header-search.nm-search-form .layui-input:focus { border-color: var(--nm-main); }
.nm-header-search.nm-search-form .layui-btn { height: 32px; line-height: 32px; width: 62px; border-radius: 0 2px 2px 0; margin: 0; font-size: 13px; padding: 0; }
.nm-header-tags { font-size: 12px; color: var(--nm-light); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-header-tags a { color: var(--nm-light); margin-right: 8px; }
.nm-header-tags a:hover { color: var(--nm-main); }

/* 移动端菜单按钮与下拉层 */
.nm-menu-wrap { display: none; position: relative; }
.nm-menu-btn { display: inline-block; border: 1px solid var(--nm-main); color: var(--nm-main); background: #fff; border-radius: 3px; height: 32px; padding: 0 14px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.nm-menu-btn:hover { background: #f0f9f1; }
.nm-mobile-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); width: 220px; max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid #eee; box-shadow: 0 8px 20px rgba(0,0,0,.15); padding: 6px 0; z-index: 1000; border-radius: 4px; }
.nm-mobile-menu::before { content: ''; position: absolute; top: -6px; right: 18px; width: 12px; height: 12px; background: #fff; border-left: 1px solid #eee; border-top: 1px solid #eee; transform: rotate(45deg); }
.nm-mobile-menu.open { display: block; }
.nm-mobile-menu a { display: block; padding: 11px 18px; font-size: 15px; border-bottom: 1px solid #f4f4f4; }
.nm-mobile-menu a:last-child { border-bottom: none; }
.nm-mobile-menu a.active { color: var(--nm-main); font-weight: bold; }

/* ---------- 搜索 ---------- */
.nm-searchbar { background: #fff; padding: 20px 0 16px; border-bottom: 1px solid #eee; }
.nm-search-form { display: flex; max-width: 720px; }
.nm-search-form .layui-input { flex: 1; height: 46px; border: 2px solid var(--nm-main); border-right: none; border-radius: 0; font-size: 16px; }
.nm-search-form .layui-btn { height: 46px; line-height: 46px; width: 100px; border-radius: 0; margin: 0; font-size: 17px; }
.nm-hot-tags { max-width: 720px; margin-top: 10px; font-size: 13px; color: var(--nm-light); }
.nm-hot-tags a { margin-right: 12px; }

/* ---------- 首页三栏 ---------- */
.nm-home3 { display: grid; grid-template-columns: 232px 1fr 300px; gap: 16px; margin-top: 16px; }

/* 左侧分类 */
.nm-catbox { background: #fff; border-radius: 4px; overflow: visible; position: relative; }
.nm-catbox-title { background: var(--nm-main); color: #fff; padding: 12px 16px; font-size: 16px; font-weight: bold; border-radius: 4px 4px 0 0; }
.nm-cat-item { position: relative; }
.nm-cat-item > a { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; font-size: 15px; border-bottom: 1px solid #f4f4f4; }
.nm-cat-item > a:hover { background: #f0f9f1; color: var(--nm-main); }
.nm-cat-item > a i { color: var(--nm-light); font-size: 12px; }
.nm-cat-pop { display: none; position: absolute; left: 232px; top: -1px; width: 560px; background: #fff; border: 1px solid #e2e2e2; box-shadow: 0 4px 16px rgba(0,0,0,.12); padding: 18px 20px; z-index: 999; border-radius: 0 4px 4px 0; }
.nm-cat-item:hover .nm-cat-pop { display: block; }
.nm-cat-pop h4 { font-size: 14px; color: var(--nm-light); margin-bottom: 10px; }
.nm-cat-pop h4 a { color: var(--nm-main); font-weight: bold; }
.nm-cat-pop .nm-sub-links a { display: inline-block; margin: 0 18px 10px 0; font-size: 14px; color: #555; }
.nm-cat-pop .nm-sub-links a:hover { color: var(--nm-main); }

/* 中间横幅 */
.nm-banner { background: linear-gradient(135deg, #2cab3f, #16b981); border-radius: 4px; color: #fff; padding: 34px 36px; display: flex; flex-direction: column; justify-content: center; min-height: 150px; }
.nm-banner h2 { font-size: 30px; margin-bottom: 10px; }
.nm-banner p { font-size: 16px; opacity: .92; margin-bottom: 20px; }
.nm-banner .layui-btn { background: #fff; color: var(--nm-main); margin-right: 10px; }
.nm-banner .layui-btn:hover { background: #f2f2f2; color: var(--nm-main-dark); }
.nm-banner .nm-btn-accent { box-shadow: 0 4px 12px rgba(255,152,0,.4); }
.nm-btn-accent { background: #ff9800 !important; color: #fff !important; }
.nm-btn-accent:hover { background: #fb8c00 !important; color: #fff !important; }
.nm-banner .layui-btn-primary { border: 1px solid rgba(255,255,255,.7); color: #fff; background: transparent; }
.nm-banner .layui-btn-primary:hover { background: rgba(255,255,255,.15); color: #fff; border-color: #fff; }

/* 右侧公告 */
.nm-home-right { display: flex; flex-direction: column; gap: 12px; }
.nm-member-status { background: linear-gradient(135deg, #2cab3f, #16b981); border-radius: 4px; color: #fff; padding: 16px 18px; }
.nm-member-status .nm-ms-row { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.nm-member-status .nm-ms-row b { font-size: 17px; }
.nm-member-status .nm-ms-row .layui-badge { color: #fff; }
.nm-member-status .nm-ms-tip { font-size: 12px; opacity: .9; margin: 8px 0 12px; }
.nm-member-status .nm-ms-btns { display: flex; gap: 8px; }
.nm-member-status .nm-ms-btns .layui-btn { margin: 0; }
.nm-member-status .nm-ms-btns .layui-btn-primary { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.7); color: #fff; }
.nm-member-status .nm-ms-btns .layui-btn-primary:hover { background: rgba(255,255,255,.25); color: #fff; border-color: #fff; }
.nm-member-status .layui-btn:not(.layui-btn-primary) { background: #fff; color: var(--nm-main); }
.nm-member-status .layui-btn:not(.layui-btn-primary):hover { background: #f2f2f2; color: var(--nm-main-dark); }
.nm-noticebox { background: #fff; border-radius: 4px; padding: 0 0 6px; }
.nm-noticebox h3 { padding: 12px 16px; font-size: 16px; border-bottom: 1px solid #f0f0f0; }
.nm-noticebox h3 a { float: right; font-size: 12px; color: var(--nm-light); font-weight: normal; }
.nm-noticebox ul { padding: 6px 16px; }
.nm-noticebox li { padding: 8px 0; border-bottom: 1px dashed #f0f0f0; font-size: 14px; overflow: hidden; }
.nm-noticebox li:last-child { border-bottom: none; }
.nm-noticebox li a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-noticebox li time { float: right; color: var(--nm-light); font-size: 12px; margin-left: 10px; }

/* ---------- 区块 ---------- */
.nm-section { margin: 20px 0; }
.nm-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.nm-sec-head h2 { font-size: 22px; border-left: 5px solid var(--nm-main); padding-left: 12px; line-height: 1.2; }
.nm-sec-head .more { font-size: 14px; color: var(--nm-light); }

/* 货源卡片 */
.nm-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.nm-grid-2 { grid-template-columns: repeat(2, 1fr); }
.nm-grid-3 { grid-template-columns: repeat(3, 1fr); }
.nm-grid-4 { grid-template-columns: repeat(4, 1fr); }
.nm-grid-6 { grid-template-columns: repeat(6, 1fr); }
.nm-home3-side { grid-template-columns: 1fr 340px; align-items: start; }
.nm-card { background: #fff; border-radius: 4px; overflow: hidden; display: block; transition: box-shadow .2s, transform .2s; }
.nm-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.1); transform: translateY(-2px); }
.nm-card-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: #f2f2f2; }
.nm-card-img.nm-noimg { display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 14px; }
.nm-card-body { padding: 10px 12px 12px; }
.nm-p-name { font-size: 15px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-p-spec { color: var(--nm-light); font-size: 13px; margin: 2px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-p-price { color: var(--nm-price); font-size: 19px; font-weight: bold; }
.nm-p-price small { font-size: 12px; font-weight: normal; }
.nm-p-company { font-size: 12px; color: var(--nm-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.nm-table-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; background: #f2f2f2; display: block; }

/* ---------- 价格行情 ---------- */
.nm-price-list { background: #fff; border-radius: 4px; padding: 6px 18px 14px; }
.nm-price-list table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nm-price-list th { text-align: left; color: var(--nm-light); font-weight: normal; padding: 10px 6px 8px; border-bottom: 2px solid var(--nm-main); }
.nm-price-list td { padding: 9px 6px; border-bottom: 1px solid #f4f4f4; }
.nm-price-list tr:last-child td { border-bottom: none; }
.nm-price-list tr:hover td { background: #f6fbf7; }
.nm-price-val { color: var(--nm-price); font-weight: bold; }
.nm-price-up { color: #e5502c; font-size: 12px; margin-left: 6px; }
.nm-price-down { color: var(--nm-main); font-size: 12px; margin-left: 6px; }
.nm-price-unit { color: var(--nm-light); font-size: 12px; }

/* ---------- 苗有圈 ---------- */
.nm-post-form { background: #fff; border-radius: 4px; padding: 18px; margin-bottom: 18px; }
.nm-post-form textarea { border-radius: 4px; }
.nm-post-imgs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.nm-up-box { width: 96px; height: 96px; border: 1px dashed #d2d2d2; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #999; cursor: pointer; background: #fafafa; font-size: 13px; }
.nm-up-box:hover { border-color: var(--nm-main); color: var(--nm-main); }
.nm-up-prev { position: relative; width: 96px; height: 96px; }
.nm-up-prev img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; border: 1px solid #eee; }
.nm-up-prev .nm-del { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; line-height: 20px; text-align: center; background: #ff5722; color: #fff; border-radius: 50%; cursor: pointer; font-size: 14px; border: none; }
.nm-post-list { display: flex; flex-direction: column; gap: 14px; }

/* 首页苗友动态上下滚动卡片 */
.nm-sec-fill { display: flex; flex-direction: column; height: 100%; }
.nm-carousel-wrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.nm-post-carousel { display: flex; flex-direction: column; gap: 14px; overflow-y: auto; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex: 1; min-height: 0; }
.nm-post-carousel::-webkit-scrollbar { display: none; }
.nm-post-carousel .nm-car-item { flex: 0 0 auto; min-width: 0; padding: 14px 16px; }
.nm-car-img { display: block; width: 100%; height: 150px; object-fit: cover; border-radius: 4px; margin-top: 8px; }
.nm-car-btn { position: absolute; right: 4px; width: 26px; height: 30px; border: 1px solid #e2e2e2; background: rgba(255,255,255,.92); color: #666; cursor: pointer; border-radius: 3px; z-index: 2; font-size: 13px; }
.nm-car-btn:hover { color: var(--nm-main); border-color: var(--nm-main); }
.nm-car-prev { top: 4px; }
.nm-car-next { bottom: 4px; }
.nm-post { background: #fff; border-radius: 4px; padding: 18px; }
.nm-post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.nm-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--nm-main); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.nm-post-author b { font-size: 15px; }
.nm-post-author span { color: var(--nm-light); font-size: 12px; margin-left: 8px; }
.nm-post-content { font-size: 16px; line-height: 1.8; }
.nm-post-imgs { display: grid; grid-template-columns: repeat(3, 160px); gap: 8px; margin-top: 10px; }
.nm-post-imgs img { width: 100%; height: 110px; object-fit: cover; border-radius: 4px; cursor: pointer; }
.nm-post-imgs img:hover { opacity: .9; }
.nm-post-foot { margin-top: 12px; font-size: 13px; color: var(--nm-light); display: flex; gap: 20px; align-items: center; }
.nm-like-btn { border: none; background: none; color: var(--nm-main); cursor: pointer; font-size: 13px; padding: 0; }
.nm-like-btn:hover { color: var(--nm-main-dark); }

/* ---------- 企业 ---------- */
.nm-company-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.nm-plan-grid { grid-template-columns: repeat(4, 1fr); }
.nm-company { background: #fff; border-radius: 4px; padding: 20px; }
.nm-company:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.nm-company h3 { font-size: 18px; margin-bottom: 6px; }
.nm-company-logo { display: inline-block; width: 48px; height: 48px; object-fit: contain; border-radius: 4px; background: #f5f5f5; vertical-align: middle; margin-right: 8px; flex-shrink: 0; }
.nm-company-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.nm-company p { font-size: 13px; color: var(--nm-light); margin-bottom: 10px; min-height: 40px; }
.nm-company-foot { display: flex; justify-content: space-between; align-items: center; }

/* ---------- 链接墙 ---------- */
.nm-link-wall { background: #fff; border-radius: 4px; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.nm-link-wall a { font-size: 14px; }

/* ---------- 页脚 ---------- */
.nm-footer { background: #fff; border-top: 1px solid #eee; margin-top: 40px; padding: 32px 0 20px; font-size: 14px; }
.nm-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 24px; }
.nm-footer h4 { font-size: 16px; margin-bottom: 12px; }
.nm-footer li { margin-bottom: 8px; color: var(--nm-light); }

/* 页脚折叠列：桌面端默认展开、标题加粗；移动端点击标题展开/收起 */
.nm-fold-head { font-size: 16px; font-weight: bold; margin-bottom: 12px; cursor: pointer; color: var(--nm-text); }
.nm-fold-head:hover { color: var(--nm-main); }
.nm-fold-head .nm-fold-mark { float: right; font-size: 13px; color: var(--nm-light); font-weight: normal; display: none; }
.nm-fold-body { display: block; }
.nm-fold.open .nm-fold-body { display: block; }
.nm-footer-bottom { border-top: 1px solid #eee; padding-top: 16px; text-align: center; color: var(--nm-light); font-size: 13px; }
.nm-footer-bottom a { margin: 0 8px; }
.nm-friend-links { margin-top: 12px; text-align: center; color: var(--nm-light); font-size: 13px; }
.nm-friend-links a { margin: 0 8px; }

/* ---------- 分页 ---------- */
.nm-pager { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 24px 0; font-size: 14px; }
.nm-pager a, .nm-pager .layui-laypage-curr { display: inline-block; height: 34px; line-height: 34px; padding: 0 14px; background: #fff; border: 1px solid #e2e2e2; border-radius: 2px; }
.nm-pager .layui-laypage-curr { position: relative; border-color: var(--nm-main) !important; }
.nm-pager .layui-laypage-curr .layui-laypage-em { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 2px; background: var(--nm-main) !important; }
.nm-pager .layui-laypage-curr em { position: relative; color: #fff; font-style: normal; }
.nm-pager .nm-total { color: var(--nm-light); margin-left: 10px; }

/* ---------- 表单页 ---------- */
.nm-form-page { max-width: 300px; margin: 40px auto; background: #fff; border-radius: 4px; padding: 32px; }
.nm-form-page h2 { text-align: center; margin-bottom: 24px; font-size: 22px; }
.nm-form-page .layui-form-item .layui-input-block { margin-left: 0; }
.nm-form-page .layui-btn { width: 100%; height: 44px; line-height: 44px; font-size: 17px; margin-top: 6px; }
.nm-form-tip { text-align: center; font-size: 13px; color: var(--nm-light); margin-top: 14px; }

/* ---------- 面包屑/详情 ---------- */
.nm-detail-card { background: #fff; border-radius: 4px; padding: 26px; }
.nm-detail-card h1 { font-size: 24px; margin-bottom: 14px; }
.nm-detail-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; font-size: 15px; margin-bottom: 18px; }
.nm-detail-meta div span { color: var(--nm-light); margin-right: 8px; }

/* 商品详情图轮播 */
.nm-gallery { display: grid; grid-template-columns: 420px 1fr; gap: 26px; }
.nm-carousel { width: 100%; height: 380px; border-radius: 4px; overflow: hidden; background: #f2f2f2; }
.nm-carousel img { width: 100%; height: 100%; object-fit: cover; }
.nm-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.nm-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; border: 2px solid transparent; cursor: pointer; }
.nm-thumbs img.active, .nm-thumbs img:hover { border-color: var(--nm-main); }

/* ---------- 用户中心 ---------- */
.nm-user-layout { display: grid; grid-template-columns: 200px 1fr; gap: 16px; }
.nm-user-side { background: #fff; border-radius: 4px; padding: 8px 0; height: fit-content; }
.nm-user-side a { display: block; padding: 12px 22px; font-size: 15px; border-left: 3px solid transparent; }
.nm-user-side a.active { background: #f0f9f1; color: var(--nm-main); border-left-color: var(--nm-main); }

/* 表单标签统一对齐（前台+后台）：一项一行，标签列与输入列严格对齐 */
.layui-form .layui-form-label { width: 110px !important; padding: 9px 12px 9px 0 !important; text-align: left !important; box-sizing: border-box; }
.layui-form .layui-input-block { margin-left: 110px !important; }
/* 登录/注册等无标签列的表单页：输入块占满整行，与按钮等宽 */
.nm-form-page .layui-form .layui-input-block { margin-left: 0 !important; }
.layui-form .layui-form-mid { margin-left: 0 !important; }
.nm-user-main { background: #fff; border-radius: 4px; padding: 22px; min-height: 320px; }

/* ---------- APP ---------- */
.nm-app-hero { text-align: center; padding: 56px 20px; background: #fff; border-radius: 4px; }
.nm-app-hero h1 { font-size: 30px; margin-bottom: 10px; }
.nm-app-hero p { color: var(--nm-light); font-size: 17px; margin-bottom: 26px; }
/* APP下载页扩展区块 */
.nm-app-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.nm-app-point { border: 1px solid var(--nm-border, #eee); border-radius: 4px; padding: 14px; }
.nm-app-point p { margin-top: 8px; font-size: 13px; color: var(--nm-light); line-height: 1.7; }
.nm-app-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.nm-app-step { background: #f7faf8; border-radius: 4px; padding: 14px; }
.nm-app-step b { color: var(--nm-main); }
.nm-app-step p { margin-top: 8px; font-size: 13px; color: var(--nm-light); line-height: 1.7; }
.nm-app-faq > div { padding: 10px 0; border-bottom: 1px dashed #eee; }
.nm-app-faq > div:last-child { border-bottom: none; }
.nm-app-faq b { display: block; margin-bottom: 4px; }
.nm-app-faq p { font-size: 13px; color: var(--nm-light); line-height: 1.7; }
.nm-qr-box { display: flex; justify-content: center; gap: 40px; }
.nm-qr { text-align: center; }
.nm-qr img { width: 140px; height: 140px; object-fit: cover; border: 1px solid #eee; }
.nm-qr span { display: block; margin-top: 8px; font-size: 13px; color: var(--nm-light); }

/* ---------- 移动端适配 ---------- */
@media (max-width: 1000px) {
  .nm-header-tags { display: none; }
  .nm-header-search .layui-input { width: 150px; }
  .nm-home3, .nm-home3-side { grid-template-columns: 1fr !important; }
  .nm-catbox { display: none; }
  .nm-grid, .nm-grid-3, .nm-grid-4, .nm-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .nm-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .nm-company-grid { grid-template-columns: repeat(2, 1fr); }
  .nm-app-points, .nm-app-steps { grid-template-columns: repeat(2, 1fr); }
  .nm-gallery { grid-template-columns: 1fr; }
  .nm-carousel { height: 300px; }
  .nm-post-carousel { max-height: 420px; }
}
@media (max-width: 640px) {
  .nm-topbar { display: none; }
  .nm-header .container { height: 56px; padding-top: 0; padding-bottom: 0; gap: 10px; }
  .nm-logo { font-size: 22px; min-width:0; }
  .nm-logo small { display: none; }
  .nm-nav { display: none; }
  .nm-header-searchbox { display: block; flex: 1; min-width: 0; margin-left: 0; }
  .nm-header-search.nm-search-form .layui-input { width: 100%; min-width: 0; }
  .nm-header-user { display: none; }
  .nm-menu-wrap { display: block; }
  .nm-member-status { display: none; }
  .nm-fold-head .nm-fold-mark { display: block; }
  .nm-fold-body { display: none; }
  .nm-fold.open .nm-fold-body { display: block; }
  .nm-grid, .nm-grid-3, .nm-grid-4, .nm-grid-6 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  /* 移动端货源卡片：图上文下，避免横向挤压堆叠 */
  .nm-grid .nm-card { display: block !important; padding: 0 !important; }
  .nm-grid .nm-card-img { width: 100% !important; height: auto !important; aspect-ratio: 1 / 1 !important; }
  .nm-grid .nm-card-body { padding: 10px 12px 12px !important; }
  .nm-grid .nm-p-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .nm-company-grid { grid-template-columns: 1fr; }
  .nm-app-points, .nm-app-steps { grid-template-columns: 1fr; }
  .nm-qr-box { gap: 20px; }
  .nm-plan-grid { grid-template-columns: repeat(2, 1fr); }
  .nm-footer-grid { grid-template-columns: 1fr; }
  .nm-user-layout { grid-template-columns: 1fr; }
  .nm-detail-meta { grid-template-columns: 1fr; }
  .nm-post-imgs { grid-template-columns: repeat(3, 1fr); }
  .nm-banner { padding: 24px 20px; }
  .nm-banner h2 { font-size: 22px; }
  .nm-sec-head h2 { font-size: 18px; }
  .nm-search-form { max-width: 100%; }
  .nm-price-list { overflow-x: auto; }
}
