/* ============================================================
   限时秒杀 · 精致主题（列表 / 详情 / 支付）
   浅色 · 红橙品牌色 · 与商城前台 shop.css 风格统一
   ============================================================ */
:root {
  --sk-brand:   #ff4d4f;
  --sk-brand2:  #ff7a45;
  --sk-ink:     #1c2330;
  --sk-ink2:    #5a657a;
  --sk-muted:   #9aa4b6;
  --sk-line:    #eef1f6;
  --sk-bg:      #f5f7fb;
  --sk-card:    #ffffff;
  --sk-radius:  16px;
  --sk-shadow:  0 10px 30px rgba(28,35,48,.08);
  --sk-shadow-sm: 0 6px 18px rgba(28,35,48,.06);
}
body { background: var(--sk-bg); }

/* ---------- 列表页外壳 ---------- */
.sk-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px 48px; }

.sk-hero {
  background: linear-gradient(120deg, #ff6b3d 0%, #ff4d4f 55%, #ff5b8a 100%);
  color: #fff; border-radius: 22px; padding: 28px 32px; margin-top: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  box-shadow: 0 20px 44px rgba(236,74,59,.28);
}
.sk-hero__txt h1 { font-size: 26px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.sk-hero__txt h1 i { font-size: 22px; }
.sk-hero__txt p { font-size: 13px; opacity: .92; margin-top: 7px; }

.sk-count { display: flex; align-items: center; gap: 7px; background: rgba(0,0,0,.20);
  padding: 11px 16px; border-radius: 14px; font-size: 13px; font-weight: 600; }
.sk-count span { opacity: .92; }
.sk-count b { background: #fff; color: #ff4d4f; font-weight: 800; font-size: 18px;
  min-width: 30px; text-align: center; padding: 4px 6px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.sk-count i { font-style: normal; font-weight: 800; font-size: 18px; }

.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 22px; }

/* ---------- 秒杀卡片 ---------- */
.sk-card { background: var(--sk-card); border-radius: var(--sk-radius); overflow: hidden;
  box-shadow: var(--sk-shadow-sm); transition: .22s; display: flex; flex-direction: column;
  position: relative; text-decoration: none; }
.sk-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(28,35,48,.14); }

.sk-card__media { position: relative; aspect-ratio: 1/1;
  background: linear-gradient(135deg, #f3f5f9, #e9edf3);
  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sk-card__media img { width: 100%; height: 100%; object-fit: cover; }
.sk-card__ph { width: 62px; height: 62px; border-radius: 16px;
  background: linear-gradient(135deg, var(--sk-brand), var(--sk-brand2)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; }
.sk-card__badge { position: absolute; top: 10px; left: 10px;
  background: linear-gradient(135deg, #ff7a45, #ff4d4f); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px; display: flex; align-items: center; gap: 4px; z-index: 2; }

.sk-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.sk-card__name { font-size: 14px; font-weight: 600; color: var(--sk-ink); line-height: 1.45;
  height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sk-card__price { display: flex; align-items: baseline; gap: 8px; }
.sk-card__now { color: var(--sk-brand); font-weight: 800; font-size: 21px; }
.sk-card__now small { font-size: 13px; font-weight: 700; margin-right: 1px; }
.sk-card__old { color: var(--sk-muted); text-decoration: line-through; font-size: 12px; }
.sk-card__meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--sk-ink2); }
.sk-card__meta i { color: var(--sk-brand2); margin-right: 3px; }

.sk-stock { height: 6px; background: #f0f2f6; border-radius: 6px; overflow: hidden; }
.sk-stock i { display: block; height: 100%; background: linear-gradient(135deg, #ff7a45, #ff4d4f); border-radius: 6px; }

.sk-card__go { margin-top: 2px; text-align: center; background: linear-gradient(135deg, #ff7a45, #ff4d4f);
  color: #fff; font-size: 14px; font-weight: 700; padding: 11px; border-radius: 12px; transition: .15s; }
.sk-card:hover .sk-card__go { filter: brightness(1.05); }

.sk-empty { text-align: center; padding: 70px 20px; color: var(--sk-muted); font-size: 14px; grid-column: 1 / -1; }
.sk-empty .ic { width: 64px; height: 64px; border-radius: 50%; background: #ffe9e8; color: var(--sk-brand);
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 14px; }

/* ---------- 详情页（两栏） ---------- */
.skd-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px 48px; }
.skd-box { background: var(--sk-card); border-radius: 22px; overflow: hidden; box-shadow: var(--sk-shadow); margin-top: 18px; }
.skd-main { display: grid; grid-template-columns: 440px 1fr; }

.skd-gallery { padding: 24px; border-right: 1px solid var(--sk-line); }
.skd-gallery__main { position: relative; aspect-ratio: 1/1; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #f3f5f9, #e9edf3); display: flex; align-items: center; justify-content: center; }
.skd-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.skd-gallery__ph { width: 96px; height: 96px; border-radius: 22px;
  background: linear-gradient(135deg, var(--sk-brand), var(--sk-brand2)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 800; }
.skd-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.skd-gallery__thumbs img, .skd-gallery__thumbs .t { width: 62px; height: 62px; border-radius: 12px; object-fit: cover;
  cursor: pointer; border: 2px solid transparent; background: #f0f2f6; display: flex; align-items: center;
  justify-content: center; font-weight: 800; color: #c7cdd8; overflow: hidden; }
.skd-gallery__thumbs .on { border-color: var(--sk-brand); }

.skd-info { padding: 28px 30px; display: flex; flex-direction: column; gap: 16px; }
.skd-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.skd-tag { background: linear-gradient(135deg, #ff7a45, #ff4d4f); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; }
.skd-tag--soft { background: #fff0ed; color: var(--sk-brand); }

.skd-title { font-size: 24px; font-weight: 900; color: var(--sk-ink); line-height: 1.4; }

.skd-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(135deg, #fff5f3, #fff); border: 1px solid #ffe2dd; border-radius: 14px; padding: 14px 16px; }
.skd-now { color: #ff4d4f; font-weight: 900; font-size: 36px; }
.skd-now small { font-size: 19px; font-weight: 800; margin-right: 2px; }
.skd-old { color: var(--sk-muted); text-decoration: line-through; font-size: 14px; }
.skd-off { background: #fff0ed; color: var(--sk-brand); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }

.skd-count { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--sk-line);
  border-radius: 12px; padding: 9px 14px; font-size: 13px; font-weight: 700; color: var(--sk-ink2); }
.skd-count b { background: linear-gradient(135deg, #ff7a45, #ff4d4f); color: #fff; font-weight: 800; font-size: 15px;
  min-width: 26px; text-align: center; padding: 3px 6px; border-radius: 7px; font-variant-numeric: tabular-nums; }
.skd-count i { font-style: normal; font-weight: 800; }

.skd-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; color: var(--sk-ink2); }
.skd-meta i { color: var(--sk-brand2); margin-right: 6px; }
.skd-stock { height: 8px; background: #f0f2f6; border-radius: 8px; overflow: hidden; }
.skd-stock i { display: block; height: 100%; background: linear-gradient(135deg, #ff7a45, #ff4d4f); border-radius: 8px; }

/* 数量步进 */
.skd-qty { display: flex; align-items: center; gap: 14px; }
.skd-qty .sl { font-size: 14px; font-weight: 700; color: var(--sk-ink); }
.skd-stepper { display: inline-flex; align-items: center; border: 1px solid var(--sk-line); border-radius: 10px; overflow: hidden; }
.skd-stepper button { width: 38px; height: 38px; border: none; background: #fafbfd; font-size: 20px; color: var(--sk-ink); cursor: pointer; }
.skd-stepper button:disabled { color: #c7cdd8; cursor: not-allowed; }
.skd-stepper input { width: 56px; height: 38px; border: none; border-left: 1px solid var(--sk-line); border-right: 1px solid var(--sk-line);
  text-align: center; font-size: 15px; font-weight: 700; color: var(--sk-ink); }

/* 地址选择 */
.skd-addr { border: 1px solid var(--sk-line); border-radius: 14px; padding: 18px 18px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%); box-shadow: var(--sk-shadow-sm); }
.skd-addr__hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.skd-label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--sk-ink); }
.skd-label::before { content: ''; width: 4px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, var(--sk-brand2), var(--sk-brand)); }
.skd-addr__add { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700;
  color: var(--sk-brand); text-decoration: none; cursor: pointer;
  padding: 5px 12px; border-radius: 20px; background: rgba(255, 77, 79, .08);
  border: 1px solid rgba(255, 77, 79, .18); transition: all .15s; }
.skd-addr__add:hover { background: var(--sk-brand); border-color: var(--sk-brand); color: #fff; }
.skd-select { width: 100%; height: 44px; border: 1px solid var(--sk-line); border-radius: 10px; padding: 0 12px;
  font-size: 14px; color: var(--sk-ink); background: #fff; outline: none; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.skd-select:hover { border-color: #ffd3d3; }
.skd-select:focus { border-color: var(--sk-brand); box-shadow: 0 0 0 3px rgba(255, 77, 79, .12); }
.skd-addr__empty { display: flex; align-items: center; gap: 10px; margin: 2px 0 2px; padding: 14px 16px;
  border: 1px dashed #f3c9c9; border-radius: 10px; background: #fffbfa;
  font-size: 13px; color: var(--sk-ink2); }
.skd-addr__empty i { font-size: 16px; color: var(--sk-brand); }
.skd-addr__form { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--sk-line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.skd-addr__form input { width: 100%; box-sizing: border-box; height: 44px; border: 1px solid var(--sk-line);
  border-radius: 10px; padding: 0 14px; font-size: 14px; color: var(--sk-ink); background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s; }
.skd-addr__form input::placeholder { color: #b6bdcb; }
.skd-addr__form input:hover { border-color: #ffd3d3; }
.skd-addr__form input:focus { border-color: var(--sk-brand); box-shadow: 0 0 0 3px rgba(255, 77, 79, .12); }
.skd-addr__row { grid-column: 1 / -1; display: flex; gap: 10px; }
.skd-addr__row input { flex: 1; min-width: 0; }
.skd-addr__row .skd-region { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--sk-line); border-radius: 10px;
  padding: 0 12px; font-size: 14px; color: var(--sk-ink); background: #fff; cursor: pointer; outline: none;
  transition: border-color .15s, box-shadow .15s; }
.skd-addr__row .skd-region:hover { border-color: #ffd3d3; }
.skd-addr__row .skd-region:focus { border-color: var(--sk-brand); box-shadow: 0 0 0 3px rgba(255, 77, 79, .12); }
.skd-addr__form .full { grid-column: 1 / -1; }
.skd-addr__form-btns { grid-column: 1 / -1; display: flex; gap: 10px; margin-top: 2px; }
.skd-addr__form-btns button { flex: 1.4; height: 44px; border: none; border-radius: 10px; font-size: 14px;
  font-weight: 700; cursor: pointer; transition: transform .12s, box-shadow .15s, filter .15s; }
.skd-addr__form-btns button:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.skd-addr__form-btns .ok { background: linear-gradient(135deg, var(--sk-brand2), var(--sk-brand)); color: #fff;
  box-shadow: 0 6px 14px rgba(255, 77, 79, .25); }
.skd-addr__form-btns .ok:hover { filter: brightness(1.05); box-shadow: 0 8px 18px rgba(255, 77, 79, .32); }
.skd-addr__form-btns .ok:active { transform: translateY(1px); }
.skd-addr__form-btns .ghost { flex: 1; background: #fff; color: var(--sk-ink2); border: 1px solid var(--sk-line); }
.skd-addr__form-btns .ghost:hover { color: var(--sk-ink); border-color: #d9dee8; background: #fafbfd; }
@media (max-width: 640px) { .skd-addr__form { grid-template-columns: 1fr; } }

/* 立即抢购 */
.skd-buy { display: block; width: 100%; text-align: center; text-decoration: none; border: none; cursor: pointer;
  background: linear-gradient(135deg, #ff7a45, #ff4d4f); color: #fff; font-size: 17px; font-weight: 800;
  padding: 16px; border-radius: 14px; box-shadow: 0 12px 26px rgba(236,74,59,.28); transition: .15s; }
.skd-buy:hover { filter: brightness(1.04); transform: translateY(-1px); }
.skd-buy:disabled { background: #d7dbe3; box-shadow: none; cursor: not-allowed; }
.skd-back { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--sk-muted); text-decoration: none; }
.skd-tip { font-size: 12px; color: var(--sk-muted); line-height: 1.7; }

/* 商品详情 + 须知 */
.skd-detail { padding: 26px 30px 32px; border-top: 1px solid var(--sk-line); }
.skd-detail__tt { font-size: 17px; font-weight: 800; color: var(--sk-ink); display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.skd-detail__tt::before { content: ''; width: 4px; height: 16px; border-radius: 4px; background: linear-gradient(135deg, #ff7a45, #ff4d4f); }
.skd-content { font-size: 14px; line-height: 1.9; color: var(--sk-ink2); }
.skd-content p { margin: 0 0 10px; }
.skd-notice { margin-top: 18px; background: #fafbfd; border: 1px solid var(--sk-line); border-radius: 14px; padding: 16px 18px; }
.skd-notice h4 { font-size: 14px; color: var(--sk-ink); margin: 0 0 8px; }
.skd-notice li { font-size: 13px; color: var(--sk-ink2); line-height: 1.9; margin-left: 18px; }

.skd-empty { text-align: center; padding: 80px 20px; color: var(--sk-muted); font-size: 15px; line-height: 2; }
.skd-empty i { font-size: 40px; color: #ffd0cd; display: block; margin-bottom: 10px; }

/* ---------- 支付弹窗 ---------- */
.skd-mask { position: fixed; inset: 0; background: rgba(20,26,38,.5); display: flex; align-items: center; justify-content: center; z-index: 999; padding: 16px; }
.skd-pay { width: 100%; max-width: 420px; background: #fff; border-radius: 18px; padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.skd-pay__hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.skd-pay__tt { font-size: 17px; font-weight: 800; color: var(--sk-ink); }
.skd-pay__close { border: none; background: none; font-size: 22px; color: var(--sk-muted); cursor: pointer; line-height: 1; }
.skd-pay__amt { font-size: 14px; color: var(--sk-muted); margin-bottom: 16px; }
.skd-pay__amt b { color: #ff4d4f; font-size: 22px; font-weight: 900; }
.skd-methods { display: flex; flex-direction: column; gap: 10px; }
.skd-method { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--sk-line);
  background: #fff; border-radius: 12px; padding: 13px 14px; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--sk-ink); transition: .15s; }
.skd-method:hover { border-color: var(--sk-brand); background: #fff7f6; }
.skd-method i { font-size: 22px; width: 26px; text-align: center; }
.skd-qr { text-align: center; padding: 8px 0 4px; }
.skd-qr img { width: 220px; height: 220px; border: 1px solid var(--sk-line); border-radius: 12px; }
.skd-qr p { font-size: 13px; color: var(--sk-muted); margin-top: 8px; }
.skd-pay__ok { text-align: center; padding: 14px 0; }
.skd-pay__ok i { font-size: 52px; color: #16a34a; }
.skd-pay__ok h3 { font-size: 18px; color: var(--sk-ink); margin: 10px 0 6px; }
.skd-pay__ok p { font-size: 13px; color: var(--sk-muted); }
.skd-pay__ok a { display: inline-block; margin-top: 14px; background: linear-gradient(135deg, #ff7a45, #ff4d4f); color: #fff;
  text-decoration: none; font-weight: 700; padding: 11px 26px; border-radius: 12px; }

/* ---------- 轻提示 ---------- */
.skd-toast { position: fixed; left: 50%; top: 24px; transform: translateX(-50%); background: rgba(28,35,48,.92); color: #fff;
  font-size: 14px; padding: 10px 18px; border-radius: 10px; z-index: 9999; opacity: 0; transition: .2s; pointer-events: none; }
.skd-toast.show { opacity: 1; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .skd-main { grid-template-columns: 1fr; }
  .skd-gallery { border-right: none; border-bottom: 1px solid var(--sk-line); }
  .skd-gallery__main { aspect-ratio: 4/3; }
  .sk-hero { padding: 22px 20px; }
  .sk-hero__txt h1 { font-size: 22px; }
  .sk-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .skd-info { padding: 22px 18px; }
  .skd-detail { padding: 22px 18px 28px; }
  .skd-title { font-size: 20px; }
  .skd-now { font-size: 30px; }
}
