/* ==========================================================================
   即购即达 · 商城新版前台 —— 促销页（限时秒杀 / 邻里拼团）
   仅配合 nm.css 使用，类名统一 nmp- 前缀，避免影响其它页面
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 通栏 Banner
   -------------------------------------------------------------------------- */
.nmp-hero {
    width: var(--nm-w);
    height: 120px;
    margin: 0 auto 12px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 34px;
    background: linear-gradient(120deg, #a51f22 0%, var(--nm-red) 55%, #ff8350 100%);
}
.nmp-hero::after {
    content: "";
    position: absolute;
    right: -40px; top: -70px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}
.nmp-hero::before {
    content: "";
    position: absolute;
    right: 150px; bottom: -90px;
    width: 210px; height: 210px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
}
.nmp-hero-gr { background: linear-gradient(120deg, #9e1c20 0%, #d92b2f 50%, #ff9a5a 100%); }
.nmp-hero-tx { position: relative; z-index: 2; }
.nmp-hero-tx h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
    color: #fff;
}
.nmp-hero-tx h2 i { font-style: normal; margin-right: 8px; }
.nmp-hero-tx p { font-size: 12px; opacity: .9; margin-top: 8px; letter-spacing: .5px; }
.nmp-hero-stats { display: flex; align-items: flex-end; gap: 26px; margin-left: auto; position: relative; z-index: 2; }
.nmp-hero-stats span { font-size: 12px; opacity: .92; text-align: center; }
.nmp-hero-stats b { display: block; font-size: 24px; line-height: 1.1; font-weight: 700; }
.nmp-hero-ico {
    position: absolute;
    right: 40px; top: 50%;
    transform: translateY(-50%);
    font-size: 62px;
    opacity: .18;
    z-index: 1;
    line-height: 1;
}
.nmp-hero-stats ~ .nmp-hero-ico { right: 210px; opacity: .1; }

/* --------------------------------------------------------------------------
   2. 阶段选项卡
   -------------------------------------------------------------------------- */
.nmp-tabs {
    width: var(--nm-w);
    margin: 0 auto 10px;
    background: #fff;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    padding: 0 6px;
}
.nmp-tabs a {
    position: relative;
    height: 46px;
    line-height: 46px;
    padding: 0 24px;
    font-size: 14px;
    color: #666;
}
.nmp-tabs a:hover { color: var(--nm-red); }
.nmp-tabs a.on { color: var(--nm-red); font-weight: 700; }
.nmp-tabs a.on::after {
    content: "";
    position: absolute;
    left: 16px; right: 16px; bottom: -1px;
    height: 2px;
    background: var(--nm-red);
}
.nmp-tabs a b {
    display: inline-block;
    min-width: 18px;
    height: 17px;
    line-height: 17px;
    padding: 0 5px;
    margin-left: 5px;
    border-radius: 9px;
    background: #f4f4f4;
    color: #999;
    font-size: 11px;
    font-weight: 400;
    text-align: center;
    vertical-align: 1px;
}
.nmp-tabs a.on b { background: #fff1f1; color: var(--nm-red); }
.nmp-tabs .nmp-tabs-tip { margin-left: auto; font-size: 12px; color: #bbb; padding-right: 12px; }

/* --------------------------------------------------------------------------
   3. 商品卡片网格
   -------------------------------------------------------------------------- */
.nmp-grid {
    width: var(--nm-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    align-items: stretch;
}
.nmp-card {
    background: #fff;
    border: 1px solid #f2f2f2;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.nmp-card:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .1); transform: translateY(-2px); z-index: 2; }
.nmp-card .pic {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #fafafa;
}
.nmp-card .pic img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.nmp-card:hover .pic img { transform: scale(1.04); }
.nmp-card .pic .nm-ph { position: absolute; inset: 0; border: 0; }
.nmp-card .badge {
    position: absolute;
    left: 0; top: 0;
    z-index: 2;
    background: var(--nm-red);
    color: #fff;
    font-size: 11px;
    line-height: 22px;
    padding: 0 8px;
}
.nmp-card .badge.upcoming { background: #3d8bff; }
.nmp-card .badge.ended { background: rgba(120, 120, 120, .92); }
.nmp-card .badge.soldout { background: #8c8c8c; }
.nmp-card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.nmp-card .name {
    font-size: 13px;
    line-height: 19px;
    height: 38px;
    color: #333;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.nmp-card .name:hover { color: var(--nm-red); }
.nmp-card .price-line { display: flex; align-items: baseline; margin-top: 8px; min-height: 26px; flex-wrap: wrap; }
.nmp-card .price { color: var(--nm-red); font-size: 20px; font-weight: 700; line-height: 1; }
.nmp-card .price small { font-size: 12px; font-weight: 400; margin-right: 1px; }
.nmp-card .old { color: #aaa; font-size: 12px; text-decoration: line-through; margin-left: 6px; }
.nmp-card .save {
    margin-left: auto;
    font-size: 11px;
    color: var(--nm-red);
    background: #fff1f1;
    border: 1px solid #ffdcdc;
    border-radius: 2px;
    padding: 0 4px;
    line-height: 16px;
}
.nmp-card .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.nmp-card .tags span {
    font-size: 11px;
    color: #d4380d;
    background: #fff7f0;
    border: 1px solid #ffe2cf;
    padding: 0 5px;
    line-height: 18px;
}
.nmp-bar { height: 8px; background: #ffe9e9; border-radius: 4px; overflow: hidden; margin-top: 10px; }
.nmp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff8a65, var(--nm-red)); border-radius: 4px; }
.nmp-card .prog-txt { display: flex; justify-content: space-between; font-size: 11px; color: #999; margin-top: 5px; }
.nmp-card .prog-txt b { color: var(--nm-red); font-weight: 700; }
.nmp-card .times { font-size: 11px; color: #999; line-height: 18px; margin-top: 6px; }
.nmp-card .times .row { display: flex; justify-content: space-between; gap: 6px; }
.nmp-card .times .row span:last-child { white-space: nowrap; }
.nmp-card .cd-line { display: flex; align-items: center; gap: 4px; margin-top: 2px; color: #888; }
.nmp-card .cd { color: var(--nm-red); font-weight: 700; font-family: Consolas, Menlo, monospace; font-size: 12px; letter-spacing: .3px; }
.nmp-card .cd.off { color: #aaa; font-weight: 400; font-family: inherit; }
.nmp-card .nmp-btn {
    display: block;
    height: 32px;
    line-height: 32px;
    margin-top: auto;
    text-align: center;
    background: var(--nm-red);
    color: #fff !important;
    font-size: 13px;
    border-radius: 2px;
    border: 0;
    padding: 0;
}
.nmp-card .nmp-btn:hover { background: var(--nm-red-dark); color: #fff !important; }
.nmp-card .nmp-btn.soon { background: #3d8bff; }
.nmp-card .nmp-btn.soon:hover { background: #2f7ae5; }
.nmp-card .nmp-btn.dis { background: #ccc; cursor: not-allowed; }
.nmp-card .nmp-btn.dis:hover { background: #ccc; }
.nmp-card .nmp-btn + .nmp-btn { margin-top: 6px; }

/* 空态 / 分页 */
.nmp-empty {
    grid-column: 1 / -1;
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 78px 20px;
    text-align: center;
    color: #999;
    font-size: 13px;
}
.nmp-empty .ico { display: block; font-size: 42px; opacity: .45; margin-bottom: 12px; }
.nmp-empty .btn {
    display: inline-block;
    margin-top: 16px;
    padding: 7px 20px;
    border: 1px solid var(--nm-red);
    color: var(--nm-red) !important;
    font-size: 12px;
    border-radius: 2px;
}
.nmp-pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; padding: 24px 0 8px; }

/* 加载骨架 */
.nmp-skel-grid { width: var(--nm-w); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }

/* --------------------------------------------------------------------------
   4. 详情页（秒杀 / 拼团通用）
   -------------------------------------------------------------------------- */
.nmp-phase {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    line-height: 24px;
    padding: 0 12px;
    border-radius: 12px;
    background: var(--nm-red);
    color: #fff;
    font-size: 12px;
    margin-bottom: 10px;
}
.nmp-phase.upcoming { background: #3d8bff; }
.nmp-phase.ended { background: #9a9a9a; }
.nmp-phase.soldout { background: #8c8c8c; }
.nmp-phase.disabled { background: #b5b5b5; }
.nmp-price-tag {
    display: inline-block;
    font-style: normal;
    font-size: 12px;
    color: #fff;
    background: var(--nm-red);
    border-radius: 2px;
    padding: 1px 8px;
    margin-right: 8px;
    vertical-align: 6px;
}
.nmp-discount { font-size: 12px; color: var(--nm-red); margin-left: 10px; font-weight: 700; }
.nmp-cd-big {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fff7f3;
    border: 1px solid #ffe1d6;
    padding: 12px 16px;
    margin-top: 14px;
    color: #666;
    font-size: 13px;
    flex-wrap: wrap;
}
.nmp-cd-big .lb { margin-right: 4px; }
.nmp-cd-big b {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: #333;
    color: #fff;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 400;
    font-family: Consolas, Menlo, monospace;
}
.nmp-cd-big i { font-style: normal; color: #666; font-weight: 700; margin: 0 1px; }
.nmp-cd-big .nmp-cd-note { margin-left: 6px; font-size: 12px; color: #999; }
.nmp-progress-lg {
    position: relative;
    height: 18px;
    border-radius: 9px;
    background: #ffe9e9;
    overflow: hidden;
    margin-top: 14px;
}
.nmp-progress-lg i {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: linear-gradient(90deg, #ff8a65, var(--nm-red));
    border-radius: 9px;
}
.nmp-progress-lg span {
    position: relative;
    z-index: 1;
    display: block;
    line-height: 18px;
    text-align: center;
    font-size: 11px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}
.nmp-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
    padding: 14px 0;
    margin: 14px 0;
    border-top: 1px dashed #eee;
    border-bottom: 1px dashed #eee;
    font-size: 13px;
    color: #555;
}
.nmp-meta-grid .k { color: #999; margin-right: 8px; }
.nmp-meta-grid b { color: #333; font-weight: 400; }
.nmp-actions { display: flex; align-items: center; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.nmp-actions .nm-btn-cart { display: inline-block; text-align: center; line-height: 38px; height: 40px; }
.nmp-actions .nm-btn-buy { min-width: 210px; }
.nmp-tip { font-size: 12px; color: #999; line-height: 20px; margin-top: 12px; }
.nmp-tip .hl { color: var(--nm-red); }
.nmp-share-row { display: flex; gap: 18px; margin-top: 12px; font-size: 12px; color: #999; }
.nmp-share-row span::before { content: "✓"; color: var(--nm-red); margin-right: 5px; }

/* 拼团专属信息 */
.nmp-tuan-tag {
    display: inline-block;
    font-style: normal;
    font-size: 11px;
    color: #fff;
    background: var(--nm-red);
    border-radius: 2px;
    padding: 1px 7px;
    margin-left: 8px;
    vertical-align: 8px;
}
.nmp-tag {
    display: inline-block;
    font-size: 12px;
    line-height: 20px;
    color: var(--nm-red);
    background: #fff7f3;
    border: 1px solid #ffdfd2;
    padding: 0 8px;
    margin: 0 8px 8px 0;
}
.nmp-open-btn {
    display: block;
    width: 100%;
    height: 44px;
    line-height: 44px;
    background: var(--nm-red);
    color: #fff !important;
    border: 0;
    border-radius: 2px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 6px;
    text-align: center;
}
.nmp-open-btn:hover { background: var(--nm-red-dark); }
.nmp-open-btn.dis { background: #ccc; cursor: not-allowed; }
.nmp-open-btn.dis:hover { background: #ccc; }

/* --------------------------------------------------------------------------
   5. 分区（进行中的团 / 团详情 / 商品说明）
   -------------------------------------------------------------------------- */
.nmp-section {
    width: var(--nm-w);
    margin: 18px auto 0;
    background: #fff;
    border: 1px solid #f0f0f0;
}
.nmp-section-hd {
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    border-bottom: 1px solid #f2f2f2;
    background: #fafafa;
}
.nmp-section-hd h3 {
    font-size: 16px;
    color: #333;
    font-weight: 700;
    border-left: 4px solid var(--nm-red);
    padding-left: 10px;
    line-height: 18px;
}
.nmp-section-hd em { font-style: normal; font-size: 12px; color: #999; margin-left: 10px; }
.nmp-section-hd .nm-more { margin-left: auto; font-size: 12px; color: #999; }
.nmp-section-bd { padding: 16px 18px; }
.nmp-section-bd .nmp-empty { border: 0; padding: 40px 20px; }

.nmp-team-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #f2f2f2;
    margin-bottom: 10px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.nmp-team-row:last-child { margin-bottom: 0; }
.nmp-team-row:hover { border-color: #f6c6c7; box-shadow: 0 4px 14px rgba(0, 0, 0, .05); }
.nmp-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ffe2e2, #ffd1d2);
    color: var(--nm-red);
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.nmp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nmp-team-info { flex: 1; min-width: 0; }
.nmp-team-name {
    font-size: 14px;
    color: #222;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.nmp-team-name .nmp-leader-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 400;
    color: #fff;
    background: var(--nm-red);
    border-radius: 2px;
    padding: 0 4px;
    line-height: 14px;
    margin-left: 6px;
    vertical-align: 1px;
}
.nmp-team-sub { font-size: 12px; color: #999; margin-top: 5px; }
.nmp-team-sub b { color: var(--nm-red); font-weight: 700; }
.nmp-team-cd {
    font-size: 12px;
    color: var(--nm-red);
    font-weight: 700;
    font-family: Consolas, Menlo, monospace;
    white-space: nowrap;
}
.nmp-join-btn {
    height: 32px;
    line-height: 32px;
    padding: 0 20px;
    background: var(--nm-red);
    color: #fff !important;
    font-size: 13px;
    border: 0;
    border-radius: 2px;
    cursor: pointer;
    flex-shrink: 0;
}
.nmp-join-btn:hover { background: var(--nm-red-dark); }
.nmp-join-btn.dis { background: #ccc; cursor: not-allowed; }
.nmp-join-btn.dis:hover { background: #ccc; }

.nmp-members {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px 10px;
    margin: 16px 0 4px;
}
.nmp-member { text-align: center; font-size: 12px; color: #666; }
.nmp-member .nmp-avatar { margin: 0 auto 7px; position: relative; }
.nmp-member.is-leader .nmp-avatar { background: linear-gradient(135deg, #ffe0c8, #ffcfa8); color: #c9560a; }
.nmp-member .leader-flag {
    position: absolute;
    left: 50%; bottom: -6px;
    transform: translateX(-50%);
    background: var(--nm-red);
    color: #fff;
    font-size: 9px;
    line-height: 13px;
    padding: 0 5px;
    border-radius: 6px;
    white-space: nowrap;
}
.nmp-member.empty .nmp-avatar {
    background: #fafafa;
    border: 1px dashed #ddd;
    color: #ccc;
    font-size: 20px;
    font-weight: 400;
    box-shadow: none;
}
.nmp-member .nm-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #777; }
.nmp-member.empty .nm-name { color: #bbb; }
.nmp-team-note {
    margin-top: 14px;
    padding: 12px 14px;
    background: #fff9f5;
    border: 1px dashed #ffd7c2;
    font-size: 12px;
    color: #d46b08;
    line-height: 20px;
}

/* --------------------------------------------------------------------------
   6. 开团 / 参团 弹窗
   -------------------------------------------------------------------------- */
.nmp-mask {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: nmp-fade .18s ease;
}
@keyframes nmp-fade { from { opacity: 0; } to { opacity: 1; } }
.nmp-modal {
    width: 440px;
    max-width: 92vw;
    max-height: 90vh;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 48px rgba(0, 0, 0, .22);
    animation: nmp-up .2s ease;
}
@keyframes nmp-up { from { transform: translateY(14px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.nmp-modal-hd {
    height: 48px;
    line-height: 48px;
    padding: 0 18px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.nmp-modal-hd b { font-size: 15px; color: #333; font-weight: 700; }
.nmp-modal-hd .close { font-size: 22px; color: #999; line-height: 1; cursor: pointer; }
.nmp-modal-hd .close:hover { color: var(--nm-red); }
.nmp-modal-bd { padding: 16px 18px 2px; overflow-y: auto; }
.nmp-field { margin-bottom: 14px; }
.nmp-field label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.nmp-field label em { color: var(--nm-red); font-style: normal; margin-left: 3px; }
.nmp-field input,
.nmp-field textarea,
.nmp-field select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 2px;
    padding: 9px 10px;
    font-size: 13px;
    color: #333;
    font-family: inherit;
    outline: 0;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.nmp-field input:focus,
.nmp-field textarea:focus,
.nmp-field select:focus { border-color: var(--nm-red); box-shadow: 0 0 0 2px rgba(227, 57, 60, .08); }
.nmp-field textarea { resize: vertical; min-height: 66px; line-height: 1.6; }
.nmp-field .nmp-field-tip { font-size: 11px; color: #bbb; margin-top: 4px; }
.nmp-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #fff7f3;
    border: 1px solid #ffe1d6;
    margin-bottom: 16px;
}
.nmp-summary img { width: 50px; height: 50px; object-fit: cover; border-radius: 2px; background: #fafafa; flex-shrink: 0; }
.nmp-summary .i { flex: 1; min-width: 0; }
.nmp-summary .n { font-size: 13px; color: #333; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nmp-summary .p { font-size: 12px; color: var(--nm-red); margin-top: 5px; }
.nmp-summary .p b { font-size: 18px; }
.nmp-summary .q { font-size: 12px; color: #999; flex-shrink: 0; }
.nmp-form-err {
    display: none;
    margin-bottom: 12px;
    padding: 7px 10px;
    background: #fff1f0;
    border: 1px solid #ffd6d4;
    color: #cf1322;
    font-size: 12px;
    line-height: 18px;
}
.nmp-form-err.on { display: block; }
.nmp-modal-ft { padding: 4px 18px 18px; flex-shrink: 0; }
.nmp-submit {
    display: block;
    width: 100%;
    height: 42px;
    line-height: 42px;
    background: var(--nm-red);
    color: #fff;
    border: 0;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.nmp-submit:hover { background: var(--nm-red-dark); }
.nmp-submit:disabled { background: #ccc; cursor: not-allowed; }
.nmp-modal-tip { font-size: 11px; color: #aaa; text-align: center; margin-top: 10px; line-height: 17px; }

/* --------------------------------------------------------------------------
   7. 商品说明
   -------------------------------------------------------------------------- */
.nmp-desc-text { font-size: 13px; line-height: 2; color: #555; word-break: break-word; }
.nmp-desc-text p { margin: 0 0 10px; }
.nmp-desc-empty { color: #bbb; text-align: center; padding: 34px 0; font-size: 13px; }

/* --------------------------------------------------------------------------
   8. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1189px) {
    .nmp-hero,
    .nmp-tabs,
    .nmp-grid,
    .nmp-skel-grid,
    .nmp-section { width: 100%; }
    .nmp-hero { border-radius: 0; padding: 0 20px; }
    .nmp-grid { padding: 0 10px; }
    .nmp-skel-grid { padding: 0 10px; }
    .nmp-tabs { border-left: 0; border-right: 0; }
    .nmp-section { border-left: 0; border-right: 0; }
}
@media (max-width: 900px) {
    .nmp-hero { height: auto; min-height: 96px; padding: 16px 18px; }
    .nmp-hero-tx h2 { font-size: 21px; }
    .nmp-hero-stats { gap: 16px; }
    .nmp-hero-stats b { font-size: 19px; }
    .nmp-hero-ico { display: none; }
    .nmp-tabs { overflow-x: auto; white-space: nowrap; }
    .nmp-tabs a { padding: 0 14px; font-size: 13px; flex-shrink: 0; }
    .nmp-tabs .nmp-tabs-tip { display: none; }
    .nmp-grid,
    .nmp-skel-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .nmp-card .name { font-size: 12px; }
    .nmp-card .price { font-size: 18px; }
    .nmp-card .save { display: none; }
    .nmp-section-bd { padding: 12px; }
    .nmp-team-row { padding: 10px; gap: 10px; flex-wrap: wrap; }
    .nmp-team-info { flex-basis: calc(100% - 56px); }
    .nmp-team-cd { margin-left: 54px; }
    .nmp-join-btn { margin-left: auto; }
    .nmp-members { grid-template-columns: repeat(4, 1fr); }
    .nmp-meta-grid { grid-template-columns: 1fr 1fr; gap: 8px 10px; font-size: 12px; }
    .nmp-actions .nm-btn-buy { min-width: 0; flex: 1; }
    .nmp-actions .nm-btn-cart { flex: 1; padding: 0 10px; }
    .nmp-cd-big b { width: 28px; height: 28px; line-height: 28px; font-size: 14px; }
    .nmp-mask { align-items: flex-end; }
    .nmp-modal { width: 100%; max-width: 100%; max-height: 88vh; border-radius: 10px 10px 0 0; }
}
@media (max-width: 420px) {
    .nmp-grid { grid-template-columns: 1fr 1fr; }
    .nmp-card .times .row { display: block; }
    .nmp-members { grid-template-columns: repeat(3, 1fr); }
}

/* ===== 详情页信息区整理 ===== */
.nm-detail > * { min-width: 0; }
.nmp-price-note { font-size: 12px; color: #aaa; margin-left: 10px; }
.nmp-progress-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.nmp-progress-row .nmp-bar { flex: 1; margin: 0; }
.nmp-progress-row > span { font-size: 12px; color: #999; white-space: nowrap; }
.nmp-ended-note {
    display: inline-block;
    height: 40px;
    line-height: 38px;
    padding: 0 22px;
    border: 1px solid #ddd;
    color: #999 !important;
    background: #f7f7f7;
    font-size: 14px;
}
.nmp-actions .nm-btn-cart { min-width: 150px; padding: 0 20px; }
.nmp-actions .nm-btn-buy { min-width: 170px; padding: 0 24px; }
.nmp-open-btn { display: inline-block; width: auto; min-width: 200px; padding: 0 30px; }
.nmp-section-bd .nmp-empty { padding: 24px 20px; }
@media (max-width: 900px) {
    .nmp-open-btn { width: 100%; }
    .nmp-ended-note { width: 100%; text-align: center; }
    .nmp-actions .nm-btn-cart, .nmp-actions .nm-btn-buy { flex: 1; min-width: 0; }
}
