/* ==========================================================
   八戒牧业 · 营销系统样式（年猪认购 / 生态商城 / 账户 / 后台）
   依赖 css/style.css 的变量与基础组件
   ========================================================== */

:root{
  --red-700:#b91c1c;
  --red-600:#c0392b;
  --red-500:#dc2626;
  --red-50:#fef2f2;
  --gold-500:#d97706;
}

/* ---------- 内页通用横幅（商城/账户/协议等，与 .page-banner 同风格） ---------- */
.page-hero{
  padding:64px 0 66px;
  background:linear-gradient(135deg,#0f3d22,#1c7a3f 55%,#3fa04b);
  color:#fff;position:relative;overflow:hidden;
}
.page-hero::before,.page-hero::after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.08)}
.page-hero::before{width:240px;height:240px;right:-60px;top:-90px}
.page-hero::after{width:140px;height:140px;right:170px;bottom:-70px}
.page-hero .crumb{font-size:13px;color:#a9d6ae;position:relative;z-index:1;margin:0 0 4px}
.page-hero .crumb a{color:#cfe8d2;font-weight:600}
.page-hero .crumb a:hover{color:#fff}
.page-hero h1{font-size:36px;font-weight:800;color:#fff;letter-spacing:1px;line-height:1.25;margin:8px 0 10px;position:relative;z-index:1}
.page-hero h1 em{font-style:normal;color:#fbbf24}
.page-hero .lead{font-size:15px;color:#e2f3e5;max-width:680px;line-height:1.8;margin:0;position:relative;z-index:1}

/* ---------- 年猪认购：页头/倒计时 ---------- */
.festive-hero{
  padding:72px 0 66px;
  background:
    radial-gradient(720px 280px at 88% -30%,rgba(251,191,36,.25) 0%,transparent 62%),
    radial-gradient(520px 220px at 6% 120%,rgba(251,191,36,.14) 0%,transparent 60%),
    linear-gradient(135deg,#7f1d1d 0%,#b91c1c 55%,#9a3412 100%);
  border-bottom:none;
  position:relative;
}
.festive-hero .crumb{color:rgba(255,255,255,.8)}
.festive-hero .crumb a{color:#fecaca}
.festive-hero h1{
  color:#fff;
  font-size:48px;
  letter-spacing:2px;
  text-shadow:0 2px 16px rgba(0,0,0,.22);
}
.festive-hero h1 em{color:#fbbf24;font-style:normal}
.festive-hero .lead{color:rgba(255,255,255,.94);font-size:16.5px}
@media (max-width:640px){
  .page-hero{padding:44px 0 40px}
  .page-hero h1{font-size:30px}
  .festive-hero{padding:52px 0 46px}
  .festive-hero h1{font-size:34px;letter-spacing:1px}
}
.countdown-band{
  background:#1f2937;color:#fff;padding:18px 0;
}
.countdown-inner{display:flex;align-items:center;gap:18px;flex-wrap:wrap;justify-content:center}
.cd-title{font-weight:800;font-size:18px;color:#fbbf24;letter-spacing:1px}
.cd-cells{display:flex;gap:10px}
.cd-cell{
  background:#fff;color:var(--red-600);border-radius:10px;min-width:74px;
  padding:8px 10px;text-align:center;box-shadow:0 3px 0 rgba(0,0,0,.25);
}
.cd-cell strong{display:block;font-size:26px;font-variant-numeric:tabular-nums;line-height:1.1}
.cd-cell span{font-size:12px;color:#6b7280;font-weight:600;letter-spacing:.5px}
.cd-note{font-size:13px;opacity:.75}

/* ---------- 年味故事 ---------- */
.story-wrap .section-head{margin-bottom:28px}
.story-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.story-card{
  background:#fffbeb;border:1px solid #fde68a;border-left:5px solid var(--gold-500);
  border-radius:14px;padding:26px 28px;
}
.story-card h3{margin-bottom:12px;font-size:19px;color:#92400e}
.story-card p{color:#57534e;line-height:1.9;font-size:15px}
.story-card p strong{color:var(--red-600)}
.story-tip{
  margin-top:12px;font-weight:800;color:var(--red-600)!important;
  font-size:17px!important;letter-spacing:1px;
}

/* ---------- 年猪套餐 ---------- */
.yp-plans{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.yp-plan{
  position:relative;background:#fff;border:2px solid #e5e7eb;border-radius:16px;
  padding:30px 26px 26px;text-align:center;transition:transform .25s,box-shadow .25s,border-color .25s;
  display:flex;flex-direction:column;
}
.yp-plan:hover{transform:translateY(-6px);box-shadow:0 18px 36px rgba(185,28,28,.12);border-color:var(--red-500)}
.yp-plan.featured{border-color:var(--red-500);box-shadow:0 14px 30px rgba(185,28,28,.14)}
.yp-badge{
  position:absolute;top:-13px;left:50%;transform:translateX(-50%);
  background:linear-gradient(135deg,var(--red-600),#ef4444);color:#fff;
  font-size:12px;font-weight:700;letter-spacing:2px;padding:5px 16px;border-radius:99px;white-space:nowrap;
}
.yp-plan h3{font-size:20px;margin-bottom:12px}
.yp-price{margin-bottom:16px}
.yp-price em{font-style:normal;color:var(--red-500);font-size:18px;font-weight:700}
.yp-price strong{color:var(--red-500);font-size:44px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.yp-price del{color:#9ca3af;font-size:14px;margin-left:8px}
.yp-price .yp-dep-tag{display:inline-block;background:#fee2e2;color:var(--red-600);font-size:12px;font-weight:700;padding:2px 9px;border-radius:99px;margin-right:8px;vertical-align:8px}
.yp-settle{font-size:12.5px;color:#6b7280;line-height:1.65;margin:-6px 0 14px}
.yp-plan ul{list-style:none;text-align:left;margin:0 0 14px;flex:1}
.yp-plan ul li{
  padding:7px 0 7px 24px;position:relative;color:#4b5563;font-size:14px;line-height:1.6;
  border-bottom:1px dashed #f3f4f6;
}
.yp-plan ul li::before{
  content:"";position:absolute;left:2px;top:13px;width:13px;height:13px;border-radius:50%;
  background:var(--red-50);border:2px solid var(--red-500);
}
.yp-stock{font-size:13px;color:#92400e;background:#fef3c7;border-radius:8px;padding:6px 0;margin-bottom:14px}
.btn-red{
  background:linear-gradient(135deg,#c0392b,#dc2626);color:#fff;
  box-shadow:0 8px 18px rgba(220,38,38,.28);
}
.btn-red:hover{background:linear-gradient(135deg,#a93226,#b91c1c);color:#fff}
.btn-lg{padding:14px 34px;font-size:16px}
.btn-block{width:100%}
.yp-extra{
  text-align:center;margin-top:30px;color:#6b7280;font-size:14px;
  background:#f0fdf4;border:1px dashed #bbf7d0;border-radius:12px;padding:14px 18px;
}
.yp-extra a{color:var(--green-700);font-weight:700}

/* ---------- 认购表单 ---------- */
.order-wrap{max-width:880px}
.yp-form{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:34px;box-shadow:0 10px 30px rgba(0,0,0,.05)}
.form-block{margin-bottom:22px}
.form-label{display:block;font-weight:700;color:#374151;margin-bottom:12px}
.yp-radio-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.yp-radio{cursor:pointer}
.yp-radio input{display:none}
.yp-radio span{
  display:block;border:2px solid #e5e7eb;border-radius:12px;padding:12px 14px;transition:.2s;
}
.yp-radio span strong{display:block;font-size:15px;color:#374151}
.yp-radio span small{color:#9ca3af;font-size:12px}
.yp-radio input:checked + span{border-color:var(--red-500);background:var(--red-50)}
.yp-radio input:checked + span strong{color:var(--red-600)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 18px;margin-bottom:20px}
.form-item label{display:block;font-size:13px;font-weight:600;color:#4b5563;margin-bottom:6px}
.form-item label small{color:#9ca3af;font-weight:400}
.form-item input,.form-item select,.form-item textarea{
  width:100%;padding:11px 14px;border:1.5px solid #e5e7eb;border-radius:10px;font-size:14px;
  background:#fafafa;transition:border-color .2s;box-sizing:border-box;font-family:inherit;
}
.form-item input:focus,.form-item select:focus,.form-item textarea:focus{outline:none;border-color:var(--green-600);background:#fff}
.yp-summary{
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;
  background:#fef2f2;border:1px dashed #fca5a5;border-radius:12px;padding:14px 18px;margin-bottom:20px;
}
.yp-summary strong{color:var(--red-600);font-size:24px;font-variant-numeric:tabular-nums}
.yp-deposit{color:#92400e;font-size:14px;font-weight:600}
.yp-agree{margin-top:14px;font-size:12px;color:#9ca3af;text-align:center}

/* ---------- 流程步骤 ---------- */
.steps-row{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.step-item{
  background:#fff;border-radius:14px;padding:26px 20px;text-align:center;border:1px solid #e5e7eb;
}
.step-item span{
  display:inline-flex;width:44px;height:44px;border-radius:50%;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--red-600),#ef4444);color:#fff;font-size:18px;font-weight:800;margin-bottom:12px;
}
.step-item h3{font-size:16px;margin-bottom:6px}
.step-item p{font-size:13px;color:#6b7280;line-height:1.7}

/* ==========================================================
   生态商城
   ========================================================== */
.shop-toolbar{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-bottom:34px}
.shop-tab{
  border:1.5px solid #e5e7eb;background:#fff;color:#4b5563;border-radius:99px;
  padding:9px 22px;font-size:14px;cursor:pointer;transition:.2s;font-family:inherit;
}
.shop-tab:hover{border-color:var(--green-600);color:var(--green-700)}
.shop-tab.active{background:var(--green-700);border-color:var(--green-700);color:#fff;font-weight:700}
/* 商城两类商品分区标题（全部视图下认购/普通分组） */
.shop-sep{grid-column:1/-1;display:flex;align-items:baseline;gap:10px;margin:14px 0 2px;padding-bottom:8px;border-bottom:2px solid var(--green-700);flex-wrap:wrap}
.shop-sep span{font-weight:800;font-size:17px;color:var(--green-700)}
.shop-sep .ss-dep{color:#b45309}
.shop-sep .ss-note{font-weight:400;font-size:12px;color:#6b7280;border:0}
/* 我的订单分组行（未付款 / 已买到 / 已取消） */
.og-row td{background:#f3f4f6;padding:7px 10px;border-top:2px solid #e5e7eb}
.og-row span{font-weight:800;font-size:13px}
.og-row .og-no{color:#b45309}
.og-row .og-ok{color:var(--green-700)}
.og-row .og-off{color:#9ca3af;font-weight:600}
.shop-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:26px}
.p-card{
  background:#fff;border:1px solid #e5e7eb;border-radius:16px;overflow:hidden;
  display:flex;flex-direction:row;align-items:stretch;transition:transform .25s,box-shadow .25s;
}
.p-card:hover{transform:translateY(-5px);box-shadow:0 16px 32px rgba(0,0,0,.09)}
.p-thumb{position:relative;width:38%;min-width:250px;flex:0 0 auto;min-height:260px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.p-thumb svg{width:110px;height:110px}
@media (max-width:640px){.p-thumb svg{width:84px;height:84px}}
.p-thumb .p-tag{
  position:absolute;top:12px;left:12px;background:var(--red-500);color:#fff;
  font-size:12px;font-weight:700;padding:5px 13px;border-radius:99px;letter-spacing:1px;
  box-shadow:0 2px 8px rgba(0,0,0,.18);
}
.t-nianzhu{background:linear-gradient(135deg,#fecaca,#fca5a5)}
.t-xianrou{background:linear-gradient(135deg,#fde68a,#fcd34d)}
.t-lawei{background:linear-gradient(135deg,#e7d7c1,#d6bb95)}
.t-techan{background:linear-gradient(135deg,#d1fae5,#a7f3d0)}
.p-body{padding:22px 24px 22px;display:flex;flex-direction:column;flex:1;min-width:0}
.p-cat{font-size:12px;color:var(--green-700);font-weight:700;letter-spacing:1px;margin-bottom:5px}
.p-body h3{font-size:18px;margin-bottom:6px;line-height:1.35}
.p-desc{font-size:13px;color:#6b7280;line-height:1.7;flex:1;margin-bottom:12px}
.p-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}
.p-price{color:var(--red-600);font-weight:800;font-size:19px;font-variant-numeric:tabular-nums}
.p-price small{font-size:12px;font-weight:600}
.p-price del{color:#c0c4cc;font-size:12px;font-weight:400;margin-left:4px}
.p-price .p-dep{display:inline-block;background:#fee2e2;color:var(--red-600);font-size:12px;font-weight:700;padding:2px 8px;border-radius:99px;margin-right:6px;vertical-align:2px}
.p-stock{display:block;font-size:12px;color:#9ca3af;margin-top:2px}
.btn-cart{
  background:var(--green-700);color:#fff;border:none;border-radius:9px;padding:9px 14px;
  font-size:13px;cursor:pointer;white-space:nowrap;font-family:inherit;transition:.2s;
}
.btn-cart:hover{background:var(--green-800)}
.btn-cart.btn-link{
  background:#fff;color:var(--red-600);border:1.5px solid var(--red-500);
}
.btn-cart.btn-link:hover{background:var(--red-50)}
.shop-note{text-align:center;color:#9ca3af;font-size:13px;margin-top:30px}

/* ---------- 购物车 ---------- */
.cart-fab{
  position:fixed;right:26px;bottom:96px;z-index:90;width:56px;height:56px;border-radius:50%;
  background:var(--green-700);color:#fff;border:none;cursor:pointer;box-shadow:0 10px 24px rgba(21,128,61,.4);
  display:flex;align-items:center;justify-content:center;
}
.cart-fab:hover{background:var(--green-800)}
.cart-fab .cart-num{
  position:absolute;top:-4px;right:-4px;background:var(--red-500);color:#fff;min-width:20px;height:20px;
  border-radius:99px;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center;padding:0 5px;
}
.cart-mask,.auth-mask,.ok-mask{
  position:fixed;inset:0;background:rgba(15,23,42,.5);z-index:110;opacity:0;pointer-events:none;transition:.25s;
}
.cart-mask.show,.auth-mask.show,.ok-mask.show{opacity:1;pointer-events:auto}
.cart-drawer{
  position:fixed;top:0;right:-420px;width:390px;max-width:92vw;height:100%;background:#fff;z-index:120;
  transition:right .3s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column;box-shadow:-12px 0 40px rgba(0,0,0,.15);
}
.cart-drawer.open{right:0}
.cart-head{
  display:flex;align-items:center;justify-content:space-between;padding:18px 22px;
  border-bottom:1px solid #f0f0f0;font-weight:800;font-size:17px;
}
.cart-close{background:none;border:none;font-size:24px;color:#9ca3af;cursor:pointer;line-height:1}
.cart-items{flex:1;overflow-y:auto;padding:14px 22px}
.cart-empty{text-align:center;color:#9ca3af;padding:60px 0;font-size:14px}
.cart-item{display:flex;gap:12px;padding:12px 0;border-bottom:1px dashed #f0f0f0;align-items:center}
.ci-thumb{width:52px;height:52px;border-radius:10px;flex:none;display:flex;align-items:center;justify-content:center}
.ci-thumb svg{width:30px;height:30px}
.ci-info{flex:1;min-width:0}
.ci-info h4{font-size:13.5px;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ci-info .ci-price{color:var(--red-600);font-weight:700;font-size:13px}
.ci-ops{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.qty-box{display:flex;align-items:center;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden}
.qty-box button{width:26px;height:26px;border:none;background:#f9fafb;cursor:pointer;font-size:15px;color:#374151}
.qty-box b{width:30px;text-align:center;font-size:13px}
.ci-del{background:none;border:none;color:#d1d5db;font-size:12px;cursor:pointer}
.ci-del:hover{color:var(--red-500)}
.cart-foot{border-top:1px solid #f0f0f0;padding:16px 22px 20px}
.cart-total{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:14px}
.cart-total strong{color:var(--red-600);font-size:24px;font-variant-numeric:tabular-nums}

/* ---------- 结算 / 认证弹窗 ---------- */
.modal{
  position:fixed;inset:0;z-index:130;display:flex;align-items:center;justify-content:center;padding:20px;
  opacity:0;pointer-events:none;transition:.25s;
}
.modal.show{opacity:1;pointer-events:auto}
.modal-box{
  background:#fff;border-radius:18px;width:460px;max-width:100%;max-height:92vh;overflow-y:auto;
  padding:28px 30px;transform:translateY(16px);transition:.3s;
}
.modal.show .modal-box{transform:none}
.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.modal-head h3{font-size:18px}
.auth-tabs{display:flex;gap:8px;margin-bottom:20px;background:#f3f4f6;border-radius:10px;padding:4px}
.auth-tab{
  flex:1;border:none;background:none;padding:9px;border-radius:8px;cursor:pointer;
  font-size:14px;color:#6b7280;font-family:inherit;
}
.auth-tab.active{background:#fff;color:var(--green-800);font-weight:700;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.field{margin-bottom:14px}
.field label{display:block;font-size:13px;font-weight:600;color:#4b5563;margin-bottom:6px}
.field input,.field select,.field textarea{
  width:100%;padding:11px 13px;border:1.5px solid #e5e7eb;border-radius:10px;font-size:14px;
  background:#fafafa;box-sizing:border-box;font-family:inherit;transition:border-color .2s;
}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--green-600);background:#fff}
.auth-err{color:var(--red-600);font-size:13px;min-height:18px;margin-bottom:8px}
.auth-agree{margin-bottom:10px}
.auth-agree .agree-line{display:flex;align-items:flex-start;gap:8px;font-size:13px;font-weight:400;color:#6b7280;cursor:pointer;line-height:1.6}
.auth-agree .agree-line input[type=checkbox]{width:16px;height:16px;margin-top:2px;accent-color:var(--green-600);flex:none}
.auth-agree .agree-line a{color:var(--green-700);font-weight:600;text-decoration:underline}
.co-summary{background:#f9fafb;border-radius:12px;padding:14px 16px;margin-bottom:16px;font-size:13.5px;color:#4b5563}
.co-paynote{grid-column:1/-1;font-size:12px;color:#92400e;background:#fffbeb;border-radius:8px;padding:8px 12px;margin:2px 0 0;line-height:1.6}
/* 结账支付方式提示（2026-09-27 定价机制隔离）：普通全款 / 认购定金 / 混单拦截 */
.co-paymode{border:1px solid #e5e7eb;border-radius:10px;background:#f9fafb;padding:10px 14px;font-size:13px;line-height:1.6;color:#374151}
.co-paymode b{font-size:14px}
.co-paymode small{color:#6b7280}
.co-paymode.dep{border-color:#fcd34d;background:#fffbeb}
.co-paymode.full{border-color:#bbf7d0;background:#f0fdf4}
.co-paymode.mixed{border-color:#fca5a5;background:#fef2f2;color:#b91c1c;font-weight:500}
.co-summary .row{display:flex;justify-content:space-between;padding:3px 0}
.co-summary .amount{color:var(--red-600);font-weight:800;font-size:17px}
.co-items{color:#6b7280;font-size:12.5px;line-height:1.8;margin-top:6px;border-top:1px dashed #e5e7eb;padding-top:8px}

/* ---------- 结算：所在地区定位 / 地图预览 / 自提点 ---------- */
.co-region{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:8px}
.co-region input{
  width:100%;padding:10px 12px;border:1px solid #e5e7eb;border-radius:10px;background:#fafbfa;
  font-size:14px;color:#1f2937;cursor:pointer;
}
.co-region input:focus{outline:none;border-color:var(--green-600);background:#fff;cursor:text}
.btn-loc{
  white-space:nowrap;padding:10px 14px;border:1px solid var(--green-600);border-radius:10px;background:#fff;
  color:var(--green-700);font-size:13.5px;font-weight:700;cursor:pointer;
}
.btn-loc:hover{background:#f0fdf4}
.co-loc-tip{font-size:12px;color:#6b7280;margin:8px 0 0;line-height:1.6}
.co-loc-tip.ok{color:var(--green-700)}
.co-loc-tip.warn{color:#b45309}
.co-map{margin:0 0 14px;border-radius:12px;overflow:hidden;border:1px solid #e5e7eb;background:#f3f4f6}
.co-map img{display:block;width:100%;height:auto;max-height:220px;object-fit:cover}
.co-map-meta{font-size:12px;color:#6b7280;padding:6px 10px;margin:0;background:#fff;border-top:1px solid #f3f4f6}
.co-pickup-box{
  background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;padding:10px 12px;
  font-size:12.5px;color:#166534;line-height:1.7;margin-bottom:14px;
}
.co-pickup-box em{color:#4d7c0f;font-style:normal;font-size:12px}

/* ---------- 后台：系统设置 ---------- */
.set-hint{font-size:12.5px;color:#4b5563;margin:10px 0 0;line-height:1.7}
.set-note{font-size:12px;color:#6b7280;line-height:1.8;background:#f9fafb;border-radius:10px;padding:10px 14px;margin:12px 0 0}
.set-note code{background:#eef2f1;padding:1px 5px;border-radius:5px;font-size:12px}
.set-in{width:100%;padding:7px 10px;border:1px solid #e5e7eb;border-radius:8px;background:#fafbfa;font-size:13px;color:#1f2937}
.set-in:focus{outline:none;border-color:var(--green-600);background:#fff}
@media (max-width:640px){
  .co-region{grid-template-columns:1fr 1fr}
  .co-region input#coDist{grid-column:1/2}
  .btn-loc{grid-column:1/-1}
}

/* ---------- 下单成功 ---------- */
.ok-box{text-align:center}
.ok-box .ok-icon{
  width:64px;height:64px;border-radius:50%;background:#dcfce7;color:var(--green-700);
  display:flex;align-items:center;justify-content:center;margin:6px auto 16px;font-size:30px;
}
.ok-box h3{margin-bottom:8px}
.ok-box p{color:#6b7280;font-size:14px;line-height:1.8}
.ok-box .ok-no{
  display:inline-block;background:#f0fdf4;border:1px dashed #86efac;color:var(--green-800);
  font-weight:800;padding:8px 18px;border-radius:10px;margin:12px 0 18px;letter-spacing:1px;
}

/* ---------- 轻提示 ---------- */
.toast{
  position:fixed;left:50%;bottom:40px;transform:translate(-50%,20px);z-index:200;
  background:#1f2937;color:#fff;padding:11px 22px;border-radius:99px;font-size:14px;
  opacity:0;pointer-events:none;transition:.3s;box-shadow:0 10px 26px rgba(0,0,0,.25);max-width:86vw;
}
.toast.show{opacity:1;transform:translate(-50%,0)}

/* ==========================================================
   账户中心
   ========================================================== */
.account-wrap{max-width:860px;margin:0 auto}
.ac-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:32px;box-shadow:0 10px 30px rgba(0,0,0,.05)}
.ac-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:18px}
/* 「我的」页购物车入口卡片 */
.ac-cart-entry{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#f6faf5;border:1px solid #e6efe6;border-radius:12px;padding:14px 16px;margin-bottom:18px}
.ac-cart-entry b{font-size:14.5px;color:#166534}
.ac-cart-entry small{color:#6b7280;font-size:12.5px}
.ac-user{display:flex;align-items:center;gap:12px}
.ac-avatar{
  width:46px;height:46px;border-radius:50%;background:var(--green-700);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:19px;font-weight:800;
}
.ac-user h3{font-size:18px}
.ac-user p{font-size:13px;color:#9ca3af}
.order-table{width:100%;border-collapse:collapse;font-size:13.5px}
.order-table th{
  text-align:left;padding:10px 12px;background:#f0fdf4;color:#166534;
  font-size:12px;letter-spacing:.5px;border-bottom:2px solid #dcfce7;white-space:nowrap;
}
.order-table td{padding:12px;border-bottom:1px solid #f3f4f6;vertical-align:top;line-height:1.7}
.order-table .no{font-weight:700;color:#374151;white-space:nowrap}
.order-table .amt{color:var(--red-600);font-weight:800;white-space:nowrap}
.st-tag{display:inline-block;font-size:12px;font-weight:700;padding:3px 10px;border-radius:99px;white-space:nowrap}
.pay-tag{display:inline-block;font-size:12px;font-weight:700;padding:3px 10px;border-radius:99px;white-space:nowrap;margin:2px 4px 2px 0}
.pay-tag.pay-ok{background:#dcfce7;color:#15803d}
.pay-tag.pay-no{background:#fef3c7;color:#b45309}
.st-pending{background:#fef3c7;color:#92400e}
.st-confirmed{background:#dbeafe;color:#1d4ed8}
.st-shipping{background:#e0e2ff;color:#4338ca}
.st-done{background:#dcfce7;color:#15803d}
.st-cancelled{background:#f3f4f6;color:#6b7280}
.empty-tip{text-align:center;color:#9ca3af;padding:50px 0;font-size:14px}

/* ==========================================================
   管理后台
   ========================================================== */
body.admin-body{background:#f3f4f6;font-family:inherit}
.adm-topbar{
  background:#14532d;color:#fff;padding:14px 0;
}
.adm-topbar .container{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.adm-brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:17px}
.adm-brand small{font-weight:500;opacity:.7;font-size:12px;display:block}
.adm-logout{background:rgba(255,255,255,.14);border:none;color:#fff;padding:8px 16px;border-radius:8px;cursor:pointer;font-size:13px;font-family:inherit}
.adm-logout:hover{background:rgba(255,255,255,.25)}
.adm-login-wrap{min-height:70vh;display:flex;align-items:center;justify-content:center;padding:40px 16px}
.adm-login{background:#fff;border-radius:16px;padding:36px;width:400px;max-width:100%;box-shadow:0 16px 40px rgba(0,0,0,.08)}
.adm-login h2{margin-bottom:6px}
.adm-login .hint{color:#9ca3af;font-size:13px;margin-bottom:20px}
.adm-tabs{display:flex;gap:10px;margin:22px 0}
.adm-tab{
  border:1.5px solid #e5e7eb;background:#fff;border-radius:10px;padding:10px 22px;cursor:pointer;
  font-size:14px;color:#4b5563;font-family:inherit;transition:.2s;
}
.adm-tab.active{background:var(--green-700);border-color:var(--green-700);color:#fff;font-weight:700}
.stat-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}
.stat-card{background:#fff;border-radius:14px;padding:20px 22px;border:1px solid #e5e7eb}
.stat-card .sc-label{font-size:12.5px;color:#6b7280;margin-bottom:8px}
.stat-card .sc-val{font-size:26px;font-weight:800;color:#111827;font-variant-numeric:tabular-nums}
.stat-card .sc-val.red{color:var(--red-600)}
.stat-card .sc-val.green{color:var(--green-700)}
.stat-card .sc-sub{font-size:12px;color:#9ca3af;margin-top:6px}
.panel{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:22px 24px;margin-bottom:22px}
.panel h3{font-size:15.5px;margin-bottom:16px;color:#374151}
#chart7{width:100%;height:auto;display:block}
.top-list{list-style:none}
.top-list li{display:flex;align-items:center;gap:12px;padding:9px 0;border-bottom:1px dashed #f3f4f6;font-size:13.5px}
.top-list .tl-idx{
  width:22px;height:22px;border-radius:6px;background:#f0fdf4;color:var(--green-700);
  font-weight:800;font-size:12px;display:flex;align-items:center;justify-content:center;flex:none;
}
.top-list .tl-name{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-list .tl-bar{height:8px;border-radius:99px;background:#f3f4f6;flex:1.2;overflow:hidden}
.top-list .tl-bar i{display:block;height:100%;background:linear-gradient(90deg,#22c55e,#15803d);border-radius:99px}
.top-list .tl-qty{color:#6b7280;white-space:nowrap;font-size:12.5px}
.adm-filter{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.chip{
  border:1.5px solid #e5e7eb;background:#fff;border-radius:99px;padding:6px 16px;cursor:pointer;
  font-size:13px;color:#4b5563;font-family:inherit;transition:.15s;
}
.chip.active{background:#14532d;border-color:#14532d;color:#fff;font-weight:700}
.adm-table-wrap{overflow-x:auto}
.adm-table{width:100%;border-collapse:collapse;font-size:13px;min-width:860px}
.adm-table th{
  text-align:left;padding:10px 12px;background:#f9fafb;color:#6b7280;font-size:12px;
  border-bottom:2px solid #eef2f0;white-space:nowrap;
}
.adm-table td{padding:12px;border-bottom:1px solid #f3f4f6;vertical-align:top;line-height:1.7}
.adm-table .no{font-weight:700;white-space:nowrap}
.adm-table .amt{color:var(--red-600);font-weight:800;white-space:nowrap}
.adm-ops{display:flex;gap:6px;flex-wrap:wrap}
.mini-btn{
  border:1px solid #e5e7eb;background:#fff;border-radius:7px;padding:4px 10px;font-size:12px;
  cursor:pointer;color:#374151;font-family:inherit;transition:.15s;white-space:nowrap;
}
.mini-btn:hover{border-color:var(--green-600);color:var(--green-700)}
.mini-btn.warn{color:#b45309}.mini-btn.warn:hover{border-color:#d97706;color:#b45309}
.mini-btn.danger{color:var(--red-600)}.mini-btn.danger:hover{border-color:var(--red-500)}
.mini-btn.ok{color:var(--green-700)}.mini-btn.ok:hover{border-color:var(--green-600)}
.btn-export{
  background:#fff;border:1.5px solid var(--green-700);color:var(--green-700);border-radius:9px;
  padding:8px 18px;font-size:13px;cursor:pointer;font-family:inherit;
}
.btn-export:hover{background:#f0fdf4}
.adm-loading{text-align:center;color:#9ca3af;padding:50px 0}

/* ==========================================================
   响应式
   ========================================================== */
@media (max-width:960px){
  .story-grid,.yp-plans{grid-template-columns:repeat(2,1fr)}
  .shop-grid{grid-template-columns:repeat(2,1fr);gap:18px}
  .p-thumb{min-width:200px;min-height:220px}
  .p-body{padding:18px 18px 18px}
  .p-body h3{font-size:16.5px}
  .steps-row,.stat-cards{grid-template-columns:repeat(2,1fr)}
  .yp-radio-row{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
  .yp-form{padding:24px 20px}
  .countdown-inner{gap:10px}
  .cd-cell{min-width:62px}
}
@media (max-width:640px){
  .story-grid,.yp-plans{grid-template-columns:1fr}
  .shop-grid{grid-template-columns:1fr;gap:16px}
  .p-card{flex-direction:column}
  .p-thumb{width:100%;min-width:0;min-height:0;aspect-ratio:4/3}
  .p-body{padding:16px 16px 18px}
  .p-body h3{font-size:17px}
  .p-desc{display:block}
  .steps-row{grid-template-columns:1fr 1fr}
  .stat-cards{grid-template-columns:1fr 1fr}
  .cart-drawer{width:100vw;max-width:100vw}
  .modal-box{padding:22px 18px}
  .cd-title{font-size:15px}
  .nav-cta .btn-outline{display:none}
}

/* ===================== 运营完善补充 ===================== */
/* 首页主图（真实照片） */
.hero-photo{margin:0;border-radius:24px;overflow:hidden;position:relative;box-shadow:0 24px 60px rgba(20,83,45,.22);border:5px solid #fff}
.hero-photo img{width:100%;height:auto;display:block;aspect-ratio:4/5;object-fit:cover}
.hero-photo figcaption{position:absolute;left:0;right:0;bottom:0;padding:36px 18px 12px;font-size:13px;color:#fff;background:linear-gradient(to top,rgba(10,46,22,.72),transparent)}
/* 首页横幅视频：铺满主视觉容器，替换航拍图 */
.hero-photo video.hero-video{width:100%;height:auto;display:block;aspect-ratio:4/5;object-fit:cover;background:#0b2a15}

/* ===================== 商品视频 ===================== */
/* 商品卡片「有视频」角标 */
.p-vid{position:absolute;left:12px;bottom:12px;z-index:2;display:inline-flex;align-items:center;gap:4px;padding:5px 11px;border-radius:999px;background:rgba(10,46,22,.72);color:#fff;font-size:12px;line-height:1.4;pointer-events:none}
/* 详情弹窗内嵌播放器 */
.pd-video{margin:14px 0 4px}
.pd-video video{width:100%;max-height:340px;display:block;border-radius:14px;background:#000;box-shadow:0 10px 28px rgba(20,83,45,.16)}
.pd-video-tip{display:block;margin-top:6px;font-size:12px;color:#6b7280}
/* 后台媒体网格里的视频缩略块 */
.img-tile-vid{position:relative;width:100%;aspect-ratio:1/.72;background:#0b2a15;border-radius:10px 10px 0 0;overflow:hidden;display:flex;align-items:center;justify-content:center}
.img-tile-vid video{width:100%;height:100%;object-fit:cover;opacity:.85}
.img-tile-vid::before{content:"🎬";position:absolute;top:6px;left:8px;font-size:15px;z-index:2;text-shadow:0 1px 3px rgba(0,0,0,.6)}
/* 年味故事实景图 */
.story-photos{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:26px}
.story-photos figure{margin:0;border-radius:16px;overflow:hidden;position:relative;box-shadow:0 14px 34px rgba(20,83,45,.16);border:4px solid #fff}
.story-photos img{width:100%;height:100%;object-fit:cover;display:block;aspect-ratio:16/10}
.story-photos figcaption{position:absolute;left:0;right:0;bottom:0;padding:32px 14px 10px;font-size:12.5px;color:#fff;background:linear-gradient(to top,rgba(10,46,22,.7),transparent)}
@media (max-width:640px){.story-photos{grid-template-columns:1fr}}

/* ----- 年猪文化实拍图集 ----- */
.culture-block{margin-top:34px;padding-top:26px;border-top:1px dashed rgba(185,28,28,.25)}
.culture-title{font-size:20px;color:var(--red-700);margin:0 0 6px}
.culture-desc{font-size:13.5px;color:var(--muted);margin:0 0 18px}
.culture-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.culture-grid figure{margin:0;border-radius:14px;overflow:hidden;position:relative;box-shadow:0 10px 26px rgba(20,83,45,.14);border:3px solid #fff}
.culture-grid img{width:100%;height:100%;object-fit:cover;display:block;aspect-ratio:4/3;transition:transform .4s}
.culture-grid figure:hover img{transform:scale(1.05)}
.culture-grid figcaption{position:absolute;left:0;right:0;bottom:0;padding:30px 10px 8px;font-size:12px;color:#fff;background:linear-gradient(to top,rgba(10,20,12,.72),transparent);text-align:center}
@media (max-width:960px){.culture-grid{grid-template-columns:1fr 1fr}}
@media (max-width:480px){.culture-grid{grid-template-columns:1fr}}

/* ----- 集团企业卡片 + 营业执照公示（关于页） ----- */
.group-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:26px}
.group-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px 20px;text-align:center;box-shadow:0 8px 22px rgba(20,83,45,.08);transition:transform .25s,box-shadow .25s}
.group-card:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(20,83,45,.14)}
.group-card h3{font-size:19px;color:var(--green-900);margin:0 0 8px}
.group-tag{display:inline-block;font-size:12.5px;color:var(--green-700);background:var(--green-50);border:1px solid #cfe8c8;border-radius:999px;padding:4px 14px;font-weight:600}
.license-card{max-width:820px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px 16px 14px;box-shadow:0 14px 34px rgba(20,83,45,.14);text-align:center}
.license-card img{width:100%;border-radius:10px;display:block}
.license-card p{font-size:13px;color:var(--muted);margin:12px 4px 2px;line-height:1.7}
@media (max-width:960px){.group-grid{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.group-grid{grid-template-columns:1fr}}

/* ----- 总部照片组（关于页联系我们） ----- */
.hq-photos{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}
.hq-photos figure{margin:0;border-radius:14px;overflow:hidden;position:relative;box-shadow:0 12px 30px rgba(20,83,45,.16);border:4px solid #fff}
.hq-photos img{width:100%;height:100%;object-fit:cover;display:block;aspect-ratio:4/3}
.hq-photos figcaption{position:absolute;left:0;right:0;bottom:0;padding:28px 12px 9px;font-size:12.5px;color:#fff;background:linear-gradient(to top,rgba(10,46,22,.7),transparent);text-align:center}
@media (max-width:640px){.hq-photos{grid-template-columns:1fr}}

/* ----- 商城商品实拍图 ----- */
/* 主图容器比例与 1:1 设计图不一致，cover 会裁掉文案；改 contain 完整显示，
   白底设计图与卡片白底无缝融合，任何比例的主图都不再被裁切（保转化率） */
.p-thumb.has-img{padding:0;background:#fff}
.p-thumb.has-img img{width:100%;height:100%;object-fit:contain;display:block}
.p-thumb.has-img .p-tag{z-index:1}
/* 无实拍图时的兜底：饱和度降低 + 原生商品 SVG 倾斜，弱化“色块感” */
.p-thumb:not(.has-img){background-blend-mode:multiply}
.p-thumb:not(.has-img) svg{opacity:.5;transform:rotate(-6deg)}
/* 套餐一句话口号 */
.yp-slogan{font-size:13.5px;color:#b45309;background:#fff7ed;border:1px dashed #fdba74;border-radius:10px;padding:7px 10px;margin:0 0 12px}
/* 商品编辑表单 */
.prod-form{background:#f6faf5;border:1px solid #d7ead9;border-radius:12px;padding:16px 18px;margin-bottom:18px}
.prod-form .form-item{margin-bottom:10px}
.prod-form label{font-size:12px;color:#4b5563;display:block;margin-bottom:4px}
.prod-form label small{color:#9ca3af;font-weight:400}
.prod-form input,.prod-form select,.prod-form textarea{width:100%;padding:8px 10px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;box-sizing:border-box;background:#fff;font-family:inherit}
.prod-form input:focus,.prod-form select:focus,.prod-form textarea:focus{outline:none;border-color:var(--green-600)}
.prod-form textarea{resize:vertical;line-height:1.65}
.prod-form input:disabled{background:#f3f4f6;color:#9ca3af}
.pf-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;border-bottom:1px dashed #d7ead9;padding-bottom:10px;margin-bottom:14px}
.pf-head b{font-size:15px;color:#14532d}
.pf-head span{font-size:12px;color:#9ca3af}
.pf-group{font-size:12.5px;font-weight:700;color:#15803d;background:#eaf6ec;border-radius:99px;display:inline-block;padding:3px 12px;margin:6px 0 10px}
.prod-form .form-grid{margin-bottom:8px}
.pf-g4{grid-template-columns:repeat(4,1fr)}
.pf-g3{grid-template-columns:repeat(3,1fr)}
.pf-g2{grid-template-columns:repeat(2,1fr)}
.pf-g1{grid-template-columns:1fr}
.pf-inline{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pf-inline select{flex:1;min-width:150px}
.pf-inline input[type=number]{width:110px}
.pf-check{display:flex!important;align-items:center;gap:6px;font-size:13px!important;color:#374151!important;margin:0!important;white-space:nowrap;cursor:pointer}
.pf-check input{width:auto!important;padding:0!important;margin:0}
.pf-hint{display:block;font-size:12px;color:#9ca3af;margin-top:4px;line-height:1.5}
.pf-thumb img{width:56px;height:56px;object-fit:cover;border-radius:8px;border:2px solid #fff;box-shadow:0 4px 12px rgba(20,83,45,.18);display:block}
.pf-foot{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px dashed #d7ead9;padding-top:14px;margin-top:6px}
/* 商品主图：站内图片资源库（预览 / 选择 / 上传） */
.img-picker{border:1px solid #e5e7eb;border-radius:10px;background:#fff;padding:10px}
.img-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.img-bar-foot{border-top:1px dashed #e5e7eb;margin-top:10px;padding-top:10px}
.prod-form .img-bar .btn-sm{padding:7px 14px;width:auto}
.img-search{flex:1;min-width:150px;max-width:300px}
.img-tip{font-size:12px;color:#6b7280}
.img-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:10px;max-height:300px;overflow-y:auto;padding:10px 2px 2px;margin-top:8px}
.img-tile{position:relative;border:2px solid #e5e7eb;border-radius:10px;overflow:hidden;background:#f9fafb;cursor:pointer;transition:border-color .18s,box-shadow .18s,transform .18s}
.img-tile:hover{border-color:#86efac;box-shadow:0 6px 16px rgba(20,83,45,.14);transform:translateY(-1px)}
.img-tile.on{border-color:var(--green-600);box-shadow:0 0 0 3px rgba(21,128,61,.14)}
.img-tile>img{display:block;width:100%;height:82px;object-fit:cover;background:#fff}
.img-tile-name{display:block;font-size:12px;color:#4b5563;padding:4px 6px;line-height:1.35;word-break:break-all;background:#fff}
.img-tile-name em{display:block;font-style:normal;color:#9ca3af;font-size:12px}
.img-tile-ops{position:absolute;top:4px;right:4px;display:flex;gap:4px;opacity:0;transition:opacity .18s}
.img-tile:hover .img-tile-ops{opacity:1}
.img-op{border:none;border-radius:6px;background:rgba(17,24,39,.78);color:#fff;font-size:12px;padding:3px 7px;cursor:pointer;line-height:1.4;font-family:inherit}
.img-op:hover{background:rgba(17,24,39,.94)}
.img-op.del{background:rgba(185,28,28,.86)}
.img-op.del:hover{background:rgba(185,28,28,1)}
.img-tile-on{position:absolute;left:4px;top:4px;background:var(--green-600);color:#fff;font-size:12px;padding:2px 6px;border-radius:6px;font-weight:700}
.img-empty{grid-column:1/-1;text-align:center;color:#9ca3af;font-size:12.5px;padding:26px 10px}
.img-cur{display:flex;align-items:center;gap:8px;min-width:0}
.img-cur b{font-size:12px;color:#374151;font-weight:600;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.img-bar-foot input{flex:1;min-width:150px}
@media (max-width:640px){
  .img-grid{grid-template-columns:repeat(auto-fill,minmax(88px,1fr));max-height:250px}
  .img-cur b{max-width:110px}
}
/* 商品运营概览 */
.prod-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px}
.ps-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:16px 20px}
.ps-label{font-size:12.5px;color:#6b7280;margin-bottom:6px}
.ps-val{font-size:24px;font-weight:800;color:#111827;font-variant-numeric:tabular-nums}
.ps-val.green{color:var(--green-700)}
.ps-val.red{color:var(--red-600)}
/* 面板标题行 + 搜索 */
.adm-bar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:14px}
.adm-bar h3{margin:0}
.adm-bar-ops{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.adm-search{width:220px;padding:8px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:13.5px;font-family:inherit;background:#fff}
.adm-search:focus{outline:none;border-color:var(--green-600)}
/* 批量操作条 */
.batch-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;padding:10px 14px;margin-bottom:14px;font-size:13.5px;color:#374151}
.batch-bar b{color:var(--green-700);font-size:15px}
/* 商品表格补充 */
.adm-table .th-ck{width:38px;text-align:center}
.adm-table .th-ck input{width:16px;height:16px;accent-color:#15803d;cursor:pointer}
.adm-table tr.row-off td{opacity:.55}
/* 正在编辑的那一行：左侧色条 + 淡底，避免「编辑的是哪一个」产生歧义 */
.adm-table tr.row-editing td{background:#f0fdf4;box-shadow:inset 0 0 0 1px #bbf7d0}
.adm-table tr.row-editing td:first-child{box-shadow:inset 4px 0 0 0 #15803d,inset 0 0 0 1px #bbf7d0}
.adm-build{font-size:12px;opacity:.85;margin-right:12px;padding:3px 9px;border-radius:99px;background:rgba(255,255,255,.14);font-family:ui-monospace,Consolas,monospace}
.pt-cell{display:flex;gap:10px;align-items:flex-start;min-width:240px}
.pt-cell>div{min-width:0}
.pt-img{width:44px;height:44px;object-fit:cover;border-radius:8px;border:1px solid #e5e7eb;flex:0 0 auto}
.pt-icon{width:44px;height:44px;border-radius:8px;background:#f0fdf4;display:flex;align-items:center;justify-content:center;font-size:20px;flex:0 0 auto}
.sort-in{width:64px;padding:5px 6px;border:1px solid #d1d5db;border-radius:6px;font-size:13px;text-align:center;font-family:inherit}
.sort-in:focus{outline:none;border-color:var(--green-600)}
/* 后台轻提示 */
.adm-toast{position:fixed;left:50%;bottom:34px;transform:translate(-50%,20px);background:rgba(20,83,45,.94);color:#fff;padding:11px 22px;border-radius:99px;font-size:14px;opacity:0;transition:all .28s ease;z-index:9999;pointer-events:none;box-shadow:0 10px 30px rgba(0,0,0,.2)}
.adm-toast.show{opacity:1;transform:translate(-50%,0)}
@media (max-width:960px){
  .prod-stats{grid-template-columns:repeat(2,1fr)}
  .pf-g4,.pf-g3{grid-template-columns:repeat(2,1fr)}
  .adm-search{width:100%}
  .adm-bar-ops{width:100%}
}
@media (max-width:640px){
  .prod-stats{grid-template-columns:1fr 1fr}
  .pf-g4,.pf-g3,.pf-g2{grid-template-columns:1fr}
  .pf-inline input[type=number]{width:90px}
}
/* 商品属性 / 库存提示 / 详情入口（后台可维护） */
.p-attrs{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:9px}
.p-attrs span{font-size:12px;color:#4b5563;background:#f3f6f3;border:1px solid #e6ece6;border-radius:6px;padding:2px 7px;line-height:1.5}
.p-attrs b{color:#9ca3af;font-weight:600;margin-right:3px}
.p-note{font-size:12px;color:#b45309;background:#fffbeb;border:1px dashed #fcd34d;border-radius:7px;padding:4px 8px;margin-bottom:9px;line-height:1.5}
.p-more{align-self:flex-start;background:none;border:none;color:var(--green-700);font-size:12.5px;font-weight:700;font-family:inherit;cursor:pointer;padding:6px 0 0;text-decoration:underline;text-underline-offset:3px}
.p-more:hover{color:var(--green-800)}
.p-card.p-sold .p-thumb{filter:grayscale(.55);opacity:.75}
.btn-cart.btn-sold{background:#e5e7eb;color:#9ca3af;cursor:not-allowed}
/* 商品详情弹窗 */
#pdModal.show{background:rgba(15,46,22,.55)}
.pd-box{width:720px}
.pd-body{padding:4px 0 0}
.pd-top{display:flex;gap:16px;align-items:flex-start;margin-bottom:16px}
.pd-thumb{width:180px;height:180px;flex:0 0 auto;border-radius:12px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#fff}
.pd-thumb svg{width:70px;height:70px}
.pd-thumb.has-img img{width:100%;height:100%;object-fit:contain;display:block}
.pd-info{min-width:0}
.pd-info h3{font-size:17px;margin-bottom:6px}
.pd-price{color:var(--red-600);font-weight:800;font-size:24px;font-variant-numeric:tabular-nums;margin-bottom:4px}
.pd-price small{font-size:13px;font-weight:600}
.pd-price del{color:#c0c4cc;font-size:13px;font-weight:400;margin-left:6px}
.pd-price b{font-weight:800}
.pd-settle{font-size:13px;color:#92400e;background:#fef3c7;border-radius:8px;padding:7px 12px;margin-top:6px;line-height:1.6}
.pd-stock{font-size:12.5px;color:#6b7280;line-height:1.7}
.pd-attrs{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#eef2ee;border:1px solid #eef2ee;border-radius:10px;overflow:hidden;margin-bottom:16px}
.pd-attr{background:#fff;padding:10px 14px;font-size:13px;display:flex;gap:10px;justify-content:space-between}
.pd-attr span{color:#9ca3af}
.pd-attr b{color:#374151;text-align:right}
.pd-line{font-size:13.5px;color:#4b5563;line-height:1.75;margin-bottom:12px}
.pd-detail{font-size:13.5px;color:#374151;line-height:1.85;background:#f6faf5;border:1px solid #e6efe6;border-radius:10px;padding:14px 16px;margin-bottom:16px}
.pd-foot{margin-top:4px}
/* 详情弹窗购买行：数量选择器 + 加入购物车（小计） */
.pd-buy{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.pd-qty{height:42px;flex:none}
.pd-qty button{width:38px;height:40px;font-size:18px}
.pd-qty b{width:46px;font-size:15px;color:#111827}
.pd-qty button:disabled{opacity:.35;cursor:not-allowed}
.pd-buy .btn{flex:1;min-width:200px}
.pd-buy-max{width:100%;font-size:12px;color:#9ca3af;margin:0}
@media (max-width:640px){
  .pd-top{flex-direction:column}
  .pd-thumb{width:100%;height:auto;aspect-ratio:4/3}
  .pd-attrs{grid-template-columns:1fr}
  .pd-buy .btn{min-width:150px}
}
/* ---------- 商品详情页：长图模块（后台可维护 images/detail/<商品id>/NN-*.jpg） ---------- */
.pd-shots{display:flex;flex-direction:column;gap:10px;margin:16px 0 4px}
.pd-shots img{width:100%;height:auto;display:block;border-radius:12px;border:1px solid #e6efe6;background:#fff}
.pd-shots-cap{font-size:12.5px;color:#9ca3af;text-align:center;margin:8px 0 0}
@media (max-width:640px){.pd-shots{gap:6px}.pd-shots img{border-radius:8px}}
/* 留言卡片 */
.msg-card{border:1px solid #e5e7eb;border-radius:12px;padding:14px 16px;margin-bottom:12px;background:#fff}
.msg-card.handled{opacity:.62;background:#fafcfa}
.msg-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.msg-detail{margin:8px 0 0;font-size:14px;color:#374151;line-height:1.6}
/* 页脚协议链接 */
.footer-bottom a{color:inherit;text-decoration:none;border-bottom:1px dashed currentColor}
.footer-bottom a:hover{color:#fff}
/* 公安备案徽标行：徽章与文字垂直居中，不影响 flex 换行 */
.footer-bottom .beian-ga a{display:inline-flex;align-items:center;gap:4px}
.footer-bottom .beian-ga img{width:14px;height:14px;display:block;flex:none}

/* ---------- 首页三入口 ---------- */
.dual-cards.triple{grid-template-columns:repeat(3,1fr)}
.entry-yp{background:linear-gradient(120deg,#991b1b,#dc2626)}
.entry-yp .entry-cta{color:#991b1b}
.entry-shop{background:linear-gradient(120deg,#0f766e,#14b8a6)}
.entry-shop .entry-cta{color:#0f766e}
.entry-yp .entry-icon,.entry-shop .entry-icon,.entry-cf .entry-icon,.entry-ad .entry-icon{opacity:.45}
@media (max-width:960px){
  .dual-cards.triple{grid-template-columns:1fr}
}

/* ---------- 扫码支付 · 到店核销 ---------- */
.ok-box .ok-btns{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:16px}
.pay-box{max-width:420px;text-align:center}
.pay-amt{font-size:15px;color:#6b7280;margin:2px 0 14px}
.pay-amt b{font-size:26px;color:#b91c1c;font-weight:800;margin-left:2px}
.pay-chs{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-bottom:16px}
.pay-ch{border:1.5px solid #e5e7eb;background:#fff;color:#374151;border-radius:99px;padding:7px 18px;font-size:13.5px;font-weight:600;cursor:pointer;transition:.18s}
.pay-ch:hover{border-color:#86efac}
.pay-ch.active{border-color:#15803d;background:#f0fdf4;color:#15803d}
.pay-qr{display:flex;justify-content:center;align-items:center;padding:12px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;min-height:180px}
.pay-qr svg{max-width:200px;height:auto;display:block}
.pay-qr-sm{padding:8px;min-height:0}
.pay-qr-sm svg{max-width:140px}
.pay-tip{font-size:12.5px;color:#6b7280;line-height:1.7;margin:12px 0 0}
.pay-tip b{color:#15803d}
.pay-foot{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:14px;font-size:13px;color:#6b7280}
.pay-foot .btn{width:100%}
.pay-dot{width:8px;height:8px;border-radius:50%;background:#22c55e;display:inline-block;animation:payPulse 1.2s infinite}
@keyframes payPulse{0%,100%{opacity:1}50%{opacity:.25}}
.pay-loading,.pay-empty{color:#9ca3af;font-size:13.5px;text-align:center;padding:34px 10px;line-height:1.9}
.pay-err{color:#dc2626;font-size:13.5px;text-align:center;padding:24px 10px;line-height:1.9}
.pay-sandbox{margin-top:10px;display:flex;flex-direction:column;align-items:center;gap:6px}
.pay-sandbox small{font-size:12px;color:#9ca3af}
.pay-ok{padding:8px 0 4px}
.pay-ok-icon{width:56px;height:56px;line-height:56px;border-radius:50%;background:#dcfce7;color:#15803d;font-size:30px;font-weight:800;margin:0 auto 12px}
.pay-ok-icon.ok-warn{background:#fef3c7;color:#b45309}
.pay-ok h4{font-size:17px;margin-bottom:4px;color:#111827}
.pay-ok p{font-size:13.5px;color:#4b5563;margin:0 0 4px}
.pay-ok small{font-size:12px;color:#9ca3af}
.pay-code{margin-top:14px;border:1px dashed #bbf7d0;background:#f0fdf4;border-radius:12px;padding:12px}
.pay-code-label{margin:0 0 6px;font-size:12px;color:#15803d;font-weight:700;letter-spacing:.5px}
.pay-code b{font-size:26px;letter-spacing:6px;color:#111827;font-family:"Courier New",monospace}
.pay-tag.pay-warn{background:#fef3c7;color:#b45309}
.vf-code{font-family:"Courier New",monospace;letter-spacing:2px;color:#15803d}

/* ---------- 后台核销台 ---------- */
.verify-panel{display:grid;grid-template-columns:1.1fr 1fr;gap:20px}
@media (max-width:860px){.verify-panel{grid-template-columns:1fr}}
.verify-inbox{background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;padding:18px}
.verify-inbox label{display:block;font-size:13px;color:#4b5563;margin-bottom:8px;font-weight:600}
.verify-input{display:flex;gap:8px}
.verify-input input{flex:1;font-size:20px;letter-spacing:5px;font-family:"Courier New",monospace;padding:12px 14px;border:2px solid #d1d5db;border-radius:10px;letter-spacing:5px}
.verify-input input:focus{outline:none;border-color:#15803d;background:#f0fdf4}
.verify-hint{font-size:12.5px;color:#9ca3af;margin:10px 0 0;line-height:1.7}
.verify-result{margin-top:14px}
.verify-card{border:1px solid #e5e7eb;border-radius:12px;padding:14px 16px;background:#fff}
.verify-card h4{margin:0 0 8px;font-size:15px}
.verify-card dl{display:grid;grid-template-columns:86px 1fr;gap:6px 10px;margin:0;font-size:13.5px}
.verify-card dt{color:#9ca3af}
.verify-card dd{margin:0;color:#111827;word-break:break-all}
.verify-ok{border-color:#86efac;background:#f0fdf4}
.verify-warn{border-color:#fcd34d;background:#fffbeb}
.vf-badge{display:inline-block;font-size:12px;font-weight:700;padding:3px 10px;border-radius:99px;white-space:nowrap}
.vf-badge.vf-done{background:#dcfce7;color:#15803d}
.vf-badge.vf-wait{background:#fef3c7;color:#b45309}
.vf-badge.vf-none{background:#f3f4f6;color:#9ca3af}
.chk-row{display:flex;align-items:center;gap:8px;font-size:13.5px;color:#374151;margin:10px 0}
.set-note{font-size:12.5px;color:#6b7280;line-height:1.9;margin-top:12px}
.set-note b{color:#374151}
.set-badge{display:inline-block;font-size:12px;font-weight:700;padding:2px 9px;border-radius:99px;margin-left:6px}
.set-badge.on{background:#dcfce7;color:#15803d}
.set-badge.off{background:#fef3c7;color:#b45309}


/* ---------- 后台 · 营销活动编辑 ---------- */
.cpf-sec{
  font-size:13.5px;color:#15803d;margin:20px 0 10px;padding-bottom:6px;
  border-bottom:1px dashed #d1fae5;display:flex;align-items:baseline;gap:6px;
}
.cpf-sec:first-child{margin-top:0}
.cpf-row{
  border:1px solid #e5e7eb;border-radius:12px;padding:12px 13px;margin-bottom:12px;
  background:#fafdf9;display:flex;flex-direction:column;gap:8px;
}
.cpf-row-head{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.cpf-row-body{display:grid;grid-template-columns:1fr 110px 1fr 110px;gap:8px}
.cpf-row input,.cpf-row textarea{
  width:100%;padding:8px 11px;border:1px solid #e0e6e1;border-radius:9px;font-size:13px;
  font-family:inherit;background:#fff;
}
.cpf-row input:focus,.cpf-row textarea:focus{outline:none;border-color:var(--green-600);background:#fff}
.cpf-row textarea{resize:vertical;line-height:1.7}
@media (max-width:640px){.cpf-row-body{grid-template-columns:1fr 1fr}}

/* 混合购物车拆单结算：认购 / 普通分组切换 */
.co-split{display:flex;gap:8px;margin:10px 0 6px}
.co-split-btn{flex:1;border:1.5px solid #d1d5db;background:#f9fafb;color:#374151;border-radius:10px;padding:10px 8px;font-size:13px;font-weight:600;cursor:pointer;transition:all .15s}
.co-split-btn.active{border-color:#15803d;background:#f0fdf4;color:#15803d}
.co-split-note{font-size:12px;color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;padding:8px 10px;margin:6px 0 2px;line-height:1.6}

/* 附近地点选择列表（微信位置选择同款，结算弹窗内） */
.co-poi-list{margin:8px 0 0;border:1px solid #e5e7eb;border-radius:10px;background:#fff;overflow:hidden}
.co-poi-head{font-size:12px;color:#6b7280;padding:8px 12px;background:#f9fafb;border-bottom:1px solid #e5e7eb}
.co-poi-item{display:block;width:100%;text-align:left;padding:9px 12px;border:0;border-bottom:1px solid #f3f4f6;background:#fff;cursor:pointer;font:inherit;line-height:1.5;transition:background .15s}
.co-poi-item:last-child{border-bottom:0}
.co-poi-item:hover{background:#f0fdf4}
.co-poi-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.co-poi-main{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#111827;font-weight:600;font-size:13px}
.co-poi-first .co-poi-main{color:var(--green-700,#15803d)}
.co-poi-dist{flex:none;font-size:12px;color:#9ca3af}
.co-poi-sub{display:block;margin-top:2px;font-size:12px;color:#6b7280;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ===== 手机端体验增强（≤640）：触控目标 ≥40~46px + iOS 输入不自动放大 + 弹窗贴边 ===== */
@media (max-width:640px){
  .btn{padding:13px 22px;min-height:46px;font-size:16px}
  .btn-sm{padding:11px 18px;min-height:40px;font-size:14px}
  .btn-lg{min-height:50px;font-size:16px}
  .btn-loc{padding:10px 14px;min-height:44px}
  .btn-export{padding:10px 16px;min-height:40px}
  .chip{padding:10px 18px;min-height:40px;font-size:14px}
  .tab-btn{padding:10px 18px;min-height:42px}
  .cart-close{width:44px;height:44px;min-width:44px;min-height:44px}
  /* iOS：输入控件 <16px 聚焦时页面会自动放大——统一抬到 16px */
  .form-item input,.form-item select,.form-item textarea,
  .field input,.field select,.field textarea,
  .co-region input{font-size:16px}
  /* 弹窗更贴边，内容区更满 */
  .modal{padding:12px}
  .modal-box{padding:22px 16px;border-radius:14px}
  .cart-fab{right:14px;bottom:86px;width:52px;height:52px}
}

/* ===== 商品专属链接（/p/<id>）：分享卡片首图横幅 + 详情内「复制链接」按钮 ===== */
.pd-share-banner{display:block;width:100%;height:clamp(140px,32vw,240px);object-fit:cover;background:#f3f4f6}
.pd-linkbtn{display:inline-flex;align-items:center;gap:6px;margin-top:10px;padding:7px 14px;min-height:36px;border:1px solid #d1d5db;border-radius:999px;background:#fff;color:#374151;font:inherit;font-size:13px;line-height:1;cursor:pointer;transition:border-color .18s,color .18s,background .18s}
.pd-linkbtn:hover{border-color:#15803d;color:#15803d;background:#f0fdf4}
@media (max-width:640px){.pd-linkbtn{min-height:40px;padding:9px 16px}}

/* ===== 生态商城开张开关（后台系统设置 → 关闭时显示「即将开张」公告、全站隐藏商城入口） ===== */
.shop-closed-note{max-width:560px;margin:26px auto;padding:36px 24px;text-align:center;background:#F4FAF0;border:1.5px dashed #b7dcb2;border-radius:18px}
.shop-closed-note .scn-icon{font-size:42px;line-height:1}
.shop-closed-note h3{margin:12px 0 8px;color:#15803d;font-size:21px;letter-spacing:.5px}
.shop-closed-note p{margin:0 auto 18px;max-width:430px;color:#4b5563;font-size:14.5px;line-height:1.75}
.shop-closed-note .scn-acts{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
html.shop-closed a[href="shop.html"],html.shop-closed a[href^="shop.html"]{display:none!important}
