/* ============================================================================
   pages/shop.css · 会员与积分 / 支付页（#/shop）
   依赖：tokens + base + components（designer 共享层）
   说明：收费能力保留页 —— 免费期( payEnabled=false )只显示权益说明；
        收费期(payEnabled=true)显示套餐/积分包/扫码支付/订单四态。
        ⚠️ 视觉按 F 组件规范自拟（designer 的 shop 设计规格未到，交付时标注待复核）。
   ========================================================================== */

/* ------------------------------ 状态 hero ------------------------------ */
.shop-hero { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-4); }
.shop-hero-ico {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-text);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
}
.shop-hero-ico svg { width: 22px; height: 22px; }
.shop-hero-main { flex: 1; min-width: 0; }
.shop-hero-title { font-size: var(--fs-20); font-weight: var(--fw-bold); letter-spacing: .01em; line-height: var(--lh-2); }
.shop-hero-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.shop-hero-sub { margin-top: 6px; font-size: var(--fs-12); line-height: var(--lh-4); color: var(--txt-2); }
.shop-hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: 10px; }
.shop-hero-actions .btn { min-height: 34px; padding: 0 14px; font-size: var(--fs-12); }
.shop-hero-note {
  display: flex; align-items: flex-start; gap: 6px;
  margin-top: 10px; padding: 8px var(--s-3);
  border-radius: var(--r-sm);
  background: var(--warn-soft); border: 1px solid var(--warn-line);
  font-size: 10px; line-height: var(--lh-3); color: var(--warn);
}
.shop-hero-note svg { width: 13px; height: 13px; flex: none; margin-top: 1px; }

/* ------------------------------ 套餐 / 积分包 ------------------------------ */
.plan-list { padding: 0 var(--s-2); }
.shop-plan {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  padding: 13px var(--s-3);
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-1);
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.shop-plan:last-child { border-bottom: 0; }
.shop-plan:active { transform: scale(.995); background: var(--surface-1); }
.shop-plan.is-hot { background: linear-gradient(100deg, var(--brand-soft), transparent 78%); }
.shop-plan-name { display: flex; align-items: center; gap: 6px; }
.shop-plan-ribbon {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 7px;
  border-radius: var(--r-full);
  font-size: 9px;
  font-weight: var(--fw-medium);
  letter-spacing: .02em;
  color: var(--txt-on-brand);
  background: var(--brand-grad);
  flex: none;
}
.shop-plan-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.shop-plan-name { font-size: var(--fs-15); font-weight: var(--fw-semibold); color: var(--txt-0); }
.shop-plan-desc { font-size: 10px; line-height: var(--lh-3); color: var(--txt-2); }
.shop-plan-price { flex: none; text-align: right; }
.shop-plan-price b { display: block; font-size: var(--fs-20); font-weight: var(--fw-bold); color: var(--brand-text); line-height: 1; letter-spacing: -.01em; }
.shop-plan-price i { display: block; margin-top: 4px; font-size: 9px; font-style: normal; color: var(--txt-3); }
.shop-plan--pack .shop-plan-price b { font-size: var(--fs-17); }

/* ------------------------------ 支付说明 ------------------------------ */
.pay-steps {
  margin: 4px 0 0;
  padding-left: 1.25em;
  font-size: var(--fs-12);
  line-height: var(--lh-4);
  color: var(--txt-1);
}
.pay-steps li { margin: 5px 0; }
.pay-steps b, .pay-steps .strong { color: var(--txt-0); font-weight: var(--fw-semibold); }

/* ------------------------------ 免费期说明 ------------------------------ */
.free-list { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.free-list li { display: flex; align-items: flex-start; gap: 7px; font-size: var(--fs-13); line-height: var(--lh-4); color: var(--txt-1); }
.free-list li svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--ok); }
.free-list li b { color: var(--txt-0); font-weight: var(--fw-semibold); }

/* ------------------------------ 积分解锁 ------------------------------ */
.unlock-card { padding: var(--s-3) var(--s-4); }
.unlock-balance {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-1);
  font-size: var(--fs-12);
  color: var(--txt-2);
}
.unlock-balance b { font-size: var(--fs-26); font-weight: var(--fw-bold); color: var(--aurora-teal); line-height: 1; }
.unlock-balance .btn { margin-left: auto; align-self: center; }
.unlock-list .list-item { min-height: 52px; }
.unlock-list .li-title { font-size: var(--fs-13); }

/* ------------------------------ 我的订单 ------------------------------ */
.order-card { padding: 0 var(--s-4); }
.order-row {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: 12px 0;
  border-bottom: 1px solid var(--line-1);
}
.order-row:last-child { border-bottom: 0; }
.order-main { flex: 1; min-width: 0; }
.order-no { font-size: var(--fs-12); color: var(--txt-1); letter-spacing: .02em; }
.order-goods { margin-top: 3px; font-size: var(--fs-13); color: var(--txt-0); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-time { margin-top: 3px; font-size: 10px; color: var(--txt-3); }
.order-trail { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.order-price { font-size: var(--fs-15); font-weight: var(--fw-semibold); color: var(--txt-0); font-variant-numeric: tabular-nums; }
.order-hint { font-size: 10px; color: var(--txt-3); }
.order-hint--err { color: var(--danger); }

/* ------------------------------ 扫码支付弹层内容 ------------------------------ */
.pay-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: var(--s-2) 0 var(--s-3);
}
.pay-amount { font-size: var(--fs-34); font-weight: var(--fw-bold); color: var(--txt-0); letter-spacing: -.02em; line-height: 1; }
.pay-amount small { font-size: var(--fs-17); color: var(--txt-2); margin-right: 2px; font-weight: var(--fw-medium); }
.pay-amount-tip { font-size: var(--fs-11); color: var(--txt-2); text-align: center; line-height: var(--lh-3); }
.pay-amount-tip b { color: var(--brand-text); font-weight: var(--fw-semibold); }
.pay-qr-hint {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  max-width: 252px;
  font-size: 10px;
  line-height: var(--lh-3);
  color: var(--txt-2);
  text-align: left;
}
.pay-qr-hint svg { width: 13px; height: 13px; flex: none; margin-top: 1px; color: var(--aurora-teal); }
.pay-qr-hint b { color: var(--txt-1); font-weight: var(--fw-semibold); }
.pay-qr {
  width: 196px; height: 196px;
  border-radius: var(--r-md);
  background: #fff;
  padding: 8px;
  box-shadow: var(--sh-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pay-qr img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 6px; }
.pay-qr-ph {
  width: 196px; height: 196px;
  border-radius: var(--r-md);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  padding: 0 14px;
  text-align: center;
  background: var(--surface-1);
  border: 1px dashed var(--line-2);
  color: var(--txt-2);
  font-size: var(--fs-12);
  line-height: var(--lh-4);
}
.pay-qr-ph .hint { font-size: 10px; line-height: var(--lh-3); max-width: 11em; }
.pay-goods { font-size: var(--fs-12); color: var(--txt-2); }
.pay-no { display: flex; align-items: center; gap: 8px; font-size: var(--fs-11); color: var(--txt-2); }
.pay-no .num { color: var(--txt-1); font-size: var(--fs-12); letter-spacing: .02em; }
.pay-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--s-3);
  padding: 10px;
  border-radius: var(--r-sm);
  background: var(--surface-1);
  border: 1px solid var(--line-1);
  font-size: var(--fs-12);
  color: var(--txt-2);
}
.pay-status .spinner { width: 15px; height: 15px; border-width: 2px; }

/* ------------------------------ 页脚 ------------------------------ */
.shop-disclaimer {
  display: flex;
  gap: 6px;
  padding: var(--s-2) 4px var(--s-1);
  font-size: 10px;
  line-height: var(--lh-3);
  color: var(--txt-3);
}
.shop-disclaimer svg { width: 12px; height: 12px; flex: none; margin-top: 1px; }

/* ------------------------------ 骨架 ------------------------------ */
.shop-skeleton .sk-card { margin-bottom: 10px; }

/* ------------------------------ 亮色微调 ------------------------------ */
:root[data-theme="light"] .shop-plan:active { background: var(--bg-2); }
:root[data-theme="light"] .pay-qr { background: #fff; }
