/* ============================================================
   前台商城专用样式
   ============================================================ */

/* ---------------- 公告条 ---------------- */
.notice-bar {
  background: linear-gradient(90deg, rgba(109, 94, 252, 0.16), rgba(34, 211, 238, 0.1));
  border-bottom: 1px solid var(--line);
  font-size: 13px; color: #c4c9dd;
}
.notice-bar .container { display: flex; align-items: center; gap: 10px; height: 40px; overflow: hidden; }
.notice-bar .badge { font-size: 11px; background: var(--brand); color: #fff; padding: 2px 8px; border-radius: 5px; font-weight: 600; flex: none; }
.notice-bar .txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- Hero ---------------- */
.hero { padding: 62px 0 34px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 46px; align-items: center; }
.hero h1 { font-size: 46px; line-height: 1.16; font-weight: 800; letter-spacing: -1.4px; margin: 16px 0 16px; }
.hero h1 .grad { background: linear-gradient(100deg, #a99cff 5%, #6ee7f7 55%, #f5c451 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--text-2); font-size: 15.5px; max-width: 520px; line-height: 1.8; }
.hero-chips { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 22px; }
.hero-search { display: flex; gap: 10px; margin-top: 28px; max-width: 480px; }
.hero-search .input { height: 46px; border-radius: 12px; }
.hero-stats { display: flex; gap: 34px; margin-top: 32px; }
.hero-stats .n { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
.hero-stats .l { font-size: 12.5px; color: var(--text-3); }

/* ---------------- 实时订单播报 ---------------- */
.live-panel {
  background: linear-gradient(180deg, rgba(23, 26, 41, 0.9), rgba(17, 19, 31, 0.9));
  border: 1px solid var(--line-2); border-radius: 20px; padding: 20px;
  backdrop-filter: blur(12px); box-shadow: var(--shadow);
}
.live-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
.live-head .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.live-list { max-height: 268px; overflow: hidden; position: relative; }
.live-item { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; animation: slideIn 0.45s ease; }
.live-item:last-child { border-bottom: none; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-9px); } to { opacity: 1; transform: none; } }
.live-item .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; flex: none; }
.live-item .txt { flex: 1; min-width: 0; }
.live-item .txt b { font-weight: 600; }
.live-item .txt div { font-size: 11.5px; color: var(--text-3); }

/* ---------------- 专区导航 ---------------- */
.hub-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.hub-card {
  position: relative; overflow: hidden; border-radius: 17px; padding: 20px 18px;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: 0.22s;
  min-height: 148px; display: flex; flex-direction: column;
}
.hub-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42); }
.hub-card .glow { position: absolute; width: 150px; height: 150px; border-radius: 50%; filter: blur(48px); opacity: 0.28; right: -46px; top: -56px; }
.hub-card .ico { font-size: 26px; margin-bottom: auto; }
.hub-card .idx { position: absolute; right: 14px; top: 12px; font-size: 11px; letter-spacing: 1px; color: var(--text-3); font-weight: 600; }
.hub-card h3 { font-size: 16px; font-weight: 650; margin-bottom: 5px; }
.hub-card p { font-size: 12.5px; color: var(--text-3); line-height: 1.55; }
.hub-card .go { font-size: 12.5px; color: var(--brand-2); margin-top: 10px; opacity: 0; transition: 0.2s; }
.hub-card:hover .go { opacity: 1; }

/* ---------------- 分类 Tab ---------------- */
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-tab {
  padding: 8px 17px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text-2); cursor: pointer; font-size: 13.5px; transition: 0.18s;
}
.cat-tab:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.cat-tab.on { background: linear-gradient(135deg, var(--brand), #8b7cff); border-color: transparent; color: #fff; font-weight: 600; }

/* ---------------- 商品网格 ---------------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prod-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 17px;
  padding: 18px; display: flex; flex-direction: column; transition: 0.22s; position: relative; overflow: hidden;
}
.prod-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42); }
.prod-card .badge {
  position: absolute; right: 0; top: 16px; font-size: 11px; font-weight: 600;
  padding: 3px 10px 3px 8px; border-radius: 7px 0 0 7px; background: var(--gold); color: #2a1f00;
}
.prod-top { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.prod-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; flex: none; }
.prod-card h3 { font-size: 15px; font-weight: 620; line-height: 1.35; }
.prod-card .sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.prod-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; min-height: 22px; }
.prod-tags .tag { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--text-2); }
.prod-foot { margin-top: auto; display: flex; align-items: flex-end; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-size: 22px; font-weight: 700; color: #ffb4a8; letter-spacing: -0.6px; line-height: 1.1; }
.price small { font-size: 13px; font-weight: 500; }
.price-face { font-size: 12px; color: var(--text-3); text-decoration: line-through; }
.prod-foot .btn { margin-left: auto; }
.prod-sales { font-size: 12px; color: var(--text-3); }

/* ---------------- 服务流程 ---------------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flow-step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; padding: 24px 20px; }
.flow-step .num {
  font-size: 12px; font-weight: 700; color: var(--brand-2); letter-spacing: 1.4px; margin-bottom: 12px;
}
.flow-step h4 { font-size: 15.5px; margin-bottom: 8px; font-weight: 620; }
.flow-step p { font-size: 13px; color: var(--text-3); line-height: 1.7; }
.flow-step::after {
  content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); font-size: 16px;
}
.flow-step:last-child::after { display: none; }

/* ---------------- 下单弹窗 ---------------- */
.order-modal { max-width: 1000px; }
.order-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; }
.order-left { padding: 24px; border-right: 1px solid var(--line); overflow-y: auto; max-height: 70vh; }
.order-right { padding: 24px; overflow-y: auto; max-height: 70vh; background: var(--bg-2); }
.order-prod { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.order-prod .ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 25px; flex: none; }
.order-prod h3 { font-size: 17px; font-weight: 650; }
.order-prod .meta { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }

/* 商品说明 / 使用须知（下单弹窗内） */
.notice-box {
  display: flex; gap: 10px; padding: 12px 14px; margin-bottom: 20px; border-radius: 12px;
  background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.24);
}
.notice-box .ni { font-size: 14px; flex: none; line-height: 1.55; }
.notice-box b { display: block; font-size: 12.5px; font-weight: 650; color: #fbc65e; margin-bottom: 5px; }
.notice-box p { font-size: 12px; line-height: 1.72; color: var(--text-2); }

.sku-list { display: grid; gap: 9px; }
.sku-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2);
  cursor: pointer; transition: 0.16s;
}
.sku-item:hover { border-color: rgba(109, 94, 252, 0.55); }
.sku-item.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.sku-item .radio { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; position: relative; }
.sku-item.on .radio { border-color: var(--brand); background: var(--brand); }
.sku-item.on .radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.sku-item .info { flex: 1; min-width: 0; }
.sku-item .info b { font-size: 14px; font-weight: 600; }
.sku-item .info div { font-size: 12px; color: var(--text-3); }
.sku-item .p { text-align: right; }
.sku-item .p b { font-size: 16px; color: #ffb4a8; font-weight: 700; }
.sku-item .p div { font-size: 11.5px; color: var(--text-3); text-decoration: line-through; }
.sku-item .stock-warn { font-size: 11.5px; color: var(--warn); }

.sec-title { font-size: 13px; color: var(--text-2); font-weight: 600; margin: 22px 0 12px; display: flex; align-items: center; gap: 8px; }
.sec-title .n { width: 19px; height: 19px; border-radius: 6px; background: var(--brand-soft); color: #b3a9ff; font-size: 11px; display: grid; place-items: center; font-weight: 700; }

.pay-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pay-item {
  display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: 11px;
  border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 13.5px; transition: 0.16s;
}
.pay-item:hover { border-color: rgba(109, 94, 252, 0.5); }
.pay-item.on { border-color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.pay-item .ic { font-size: 16px; }

.qty-row { display: flex; align-items: center; gap: 12px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
.stepper button { width: 32px; height: 32px; border: none; background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 16px; }
.stepper button:hover { background: var(--surface-3); }
.stepper span { width: 42px; text-align: center; font-size: 14px; font-weight: 600; }

.summary { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.summary .row { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 9px; color: var(--text-2); }
.summary .row.total { font-size: 15px; color: var(--text); margin-top: 12px; }
.summary .row.total b { font-size: 26px; color: #ffb4a8; font-weight: 750; letter-spacing: -0.8px; }
.trust { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); margin-top: 16px; }

/* ---------------- 收银台 ---------------- */
.cashier { text-align: center; padding: 8px 0; }
.cashier .qr { display: inline-block; padding: 12px; background: #fff; border-radius: 16px; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4); }
.cashier .amt { font-size: 36px; font-weight: 750; color: #ffb4a8; letter-spacing: -1.2px; margin: 16px 0 6px; }
.cashier .amt small { font-size: 18px; }
.cashier .oid { font-size: 13px; color: var(--text-2); }
.cashier .oid b { font-family: ui-monospace, Consolas, monospace; color: var(--brand-2); }
.countdown { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--warn); background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.3); padding: 4px 11px; border-radius: 999px; margin-top: 12px; }

/* ---------------- 结果 / 时间线 ---------------- */
.result-head { text-align: center; padding: 10px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.result-head .big { font-size: 44px; line-height: 1; margin-bottom: 12px; }
.result-head h3 { font-size: 19px; font-weight: 650; margin-bottom: 6px; }
.result-head p { font-size: 13.5px; color: var(--text-3); }

.info-rows { display: grid; gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 22px; }
.info-rows .r { display: flex; gap: 14px; padding: 11px 15px; background: var(--surface-2); font-size: 13.5px; }
.info-rows .r .k { width: 92px; color: var(--text-3); flex: none; }
.info-rows .r .v { flex: 1; word-break: break-all; }
.info-rows .r .v b { font-family: ui-monospace, Consolas, monospace; color: var(--brand-2); }

.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1.5px; background: var(--line-2); }
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -24px; top: 5px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--surface); border: 2px solid var(--text-3);
}
.tl-item.ok::before { border-color: var(--ok); background: var(--ok); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16); }
.tl-item.err::before { border-color: var(--danger); background: var(--danger); box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.16); }
.tl-item.warn::before { border-color: var(--warn); background: var(--warn); }
.tl-item .m { font-size: 13.5px; }
.tl-item .t { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- FAQ ---------------- */
.faq { display: grid; gap: 11px; max-width: 880px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-q { padding: 17px 20px; cursor: pointer; display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 550; }
.faq-q .ar { margin-left: auto; color: var(--text-3); transition: 0.22s; }
.faq-item.on .faq-q .ar { transform: rotate(45deg); color: var(--brand-2); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.on .faq-a { max-height: 460px; }
.faq-a .inner { padding: 0 20px 18px 20px; font-size: 13.5px; color: var(--text-2); line-height: 1.85; }

/* ---------------- 查询页 ---------------- */
.query-box { max-width: 640px; margin: 0 auto; }
.query-result { margin-top: 26px; display: grid; gap: 14px; }
.q-order { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 18px 20px; }
.q-order .top { display: flex; align-items: center; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--line); margin-bottom: 13px; }
.q-order .top .nm { font-weight: 620; font-size: 15px; }
.q-order .top .st { margin-left: auto; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .order-body { grid-template-columns: 1fr; }
  .order-left { border-right: none; border-bottom: 1px solid var(--line); max-height: none; }
  .order-right { max-height: none; }
}
@media (max-width: 780px) {
  .hero h1 { font-size: 33px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .hub-grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 16px; }
  .modal { max-width: 100%; }
}
@media (max-width: 520px) {
  .prod-grid { grid-template-columns: 1fr; }
  .pay-list { grid-template-columns: 1fr; }
}
