/* 卿梦 · 靓号商城前台 */
.lh-shop {
  --lh-gold-1: #f7d98c;
  --lh-gold-2: #e9a94e;
  --lh-primary: var(--zb-primary, #7c5cff);
  --lh-surface: var(--zb-surface, #fff);
  --lh-text: var(--zb-text, #1f2330);
  --lh-muted: var(--zb-text-2, #7a7689);
  --lh-border: var(--zb-border, #ece9f5);
  padding: 8px 0 60px;
  color: var(--lh-text);
}

/* Hero */
.lh-shop-hero { padding: 26px 0 18px; }
.lh-shop-hero h1 {
  margin: 0 0 8px; font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(120deg, #6a4cff, #9b7bff 55%, #e9a94e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lh-shop-hero p { margin: 0; color: var(--lh-muted); font-size: 14px; }

/* 筛选 */
.lh-shop-filters {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
  background: var(--lh-surface); border: 1px solid var(--lh-border);
  border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 8px 26px rgba(23, 18, 51, .06);
  backdrop-filter: blur(12px);
}
.lh-shop-filters label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--lh-muted); }
.lh-shop-filters select,
.lh-shop-filters input {
  height: 38px; min-width: 118px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--lh-border); background: var(--lh-surface); color: var(--lh-text);
  font-size: 13px;
}
.lh-shop-filters input { min-width: 140px; }
.lh-shop-filters select:focus,
.lh-shop-filters input:focus { outline: 2px solid rgba(124, 92, 255, .22); border-color: var(--lh-primary); }

.lh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 22px; border-radius: 12px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #6a4cff, #8b6bff); color: #fff;
  font-size: 14px; font-weight: 600; text-decoration: none;
  box-shadow: 0 8px 22px rgba(124, 92, 255, .26);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s;
}
.lh-btn:hover { transform: translateY(-1px); color: #fff; box-shadow: 0 12px 28px rgba(124, 92, 255, .34); }
.lh-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.lh-btn.ghost {
  background: transparent; color: var(--lh-text); border: 1px solid var(--lh-border); box-shadow: none;
}
.lh-btn.ghost:hover { border-color: var(--lh-primary); color: var(--lh-primary); }

/* 号码卡 */
.lh-shop-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px; margin-top: 22px;
}
.lh-shop-card {
  display: block; position: relative; overflow: hidden;
  background: var(--lh-surface); border: 1px solid var(--lh-border);
  border-radius: 18px; padding: 20px 18px 18px; text-decoration: none; color: var(--lh-text);
  box-shadow: 0 8px 24px rgba(23, 18, 51, .05);
  transition: transform .22s cubic-bezier(.22,.61,.36,1), box-shadow .22s ease, border-color .22s;
}
.lh-shop-card::after {
  content: ""; position: absolute; inset: 0; border-radius: 18px; pointer-events: none;
  background: linear-gradient(160deg, rgba(124, 92, 255, .06), transparent 42%);
}
.lh-shop-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(23, 18, 51, .12); border-color: rgba(124, 92, 255, .35); }
.lh-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.lh-digits { font-size: 12px; color: var(--lh-muted); }
.lh-shop-number {
  font-size: 26px; font-weight: 800; letter-spacing: 2px; margin: 0 0 10px;
  font-variant-numeric: tabular-nums;
}
.lh-shop-price { font-size: 20px; font-weight: 800; color: #e11d48; margin-bottom: 12px; }
.lh-shop-buy { font-size: 13px; color: var(--lh-primary); font-weight: 600; }

/* 等级标签 */
.lh-grade-tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  background: #f3f2f7; color: #6b6878;
}
.lh-grade-s .lh-grade-tag,
.lh-grade-tag.lh-grade-tag-s {
  background: linear-gradient(135deg, var(--lh-gold-1), var(--lh-gold-2)); color: #472e00;
}
.lh-grade-s .lh-shop-number {
  background: linear-gradient(120deg, #d1a13a, #f7d98c 45%, #e9a94e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lh-grade-a .lh-grade-tag { background: #f1ecff; color: #5b3fd6; }
.lh-grade-a .lh-shop-number { color: #5b3fd6; }
.lh-grade-b .lh-grade-tag { background: #e8f2ff; color: #1d5fd0; }
.lh-grade-b .lh-shop-number { color: #1d5fd0; }
.lh-grade-c .lh-grade-tag { background: #e6fbf8; color: #0f8a7a; }
.lh-grade-c .lh-shop-number { color: #0f8a7a; }

.lh-shop-pager { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.lh-shop-pager a {
  min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--lh-border); background: var(--lh-surface);
  color: var(--lh-text); text-decoration: none; font-size: 13px;
}
.lh-shop-pager a.current { background: #171233; color: #fff; border-color: #171233; }

/* 详情 */
.lh-back { display: inline-block; margin: 14px 0 18px; font-size: 13px; color: var(--lh-muted); text-decoration: none; }
.lh-back:hover { color: var(--lh-primary); }
.lh-detail {
  position: relative; overflow: hidden; text-align: center;
  background: var(--lh-surface); border: 1px solid var(--lh-border); border-radius: 22px;
  padding: 42px 24px 34px; box-shadow: 0 14px 40px rgba(23, 18, 51, .08);
}
.lh-detail::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 280px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(124, 92, 255, .16), transparent 70%);
  pointer-events: none;
}
.lh-detail-number {
  position: relative; font-size: clamp(34px, 7vw, 56px); font-weight: 800; letter-spacing: 5px;
  margin-bottom: 14px; font-variant-numeric: tabular-nums;
}
.lh-detail-number.small { font-size: 22px; letter-spacing: 2px; }
.lh-detail.lh-grade-s .lh-detail-number {
  background: linear-gradient(120deg, #c9962f, #f7d98c 42%, #e9a94e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lh-detail.lh-grade-a .lh-detail-number { color: #5b3fd6; }
.lh-detail.lh-grade-b .lh-detail-number { color: #1d5fd0; }
.lh-detail.lh-grade-c .lh-detail-number { color: #0f8a7a; }
.lh-detail-meta { display: flex; gap: 12px; justify-content: center; align-items: center; color: var(--lh-muted); font-size: 13px; margin-bottom: 18px; }
.lh-detail-price { font-size: 32px; font-weight: 800; color: #e11d48; margin-bottom: 22px; }
.lh-detail form { display: inline-block; }
.lh-hint { color: var(--lh-muted); font-size: 12px; margin: 12px 0 0; }
.lh-notice-block {
  text-align: left; max-width: 520px; margin: 26px auto 0; padding: 16px 18px;
  background: rgba(124, 92, 255, .05); border: 1px solid rgba(124, 92, 255, .14);
  border-radius: 14px; font-size: 13px; color: var(--lh-muted); line-height: 1.8;
}
.lh-notice-block strong { display: block; color: var(--lh-text); margin-bottom: 6px; font-size: 13px; }

/* 收银台 */
.lh-cashier {
  max-width: 520px; margin: 10px auto 40px; background: var(--lh-surface);
  border: 1px solid var(--lh-border); border-radius: 20px; overflow: hidden;
  box-shadow: 0 16px 44px rgba(23, 18, 51, .1);
}
.lh-cashier-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px; background: linear-gradient(120deg, #171233, #2a2050);
  color: #fff; font-size: 14px; font-weight: 600;
}
.lh-cashier-head code { color: var(--lh-gold-1); background: none; font-size: 12px; }
.lh-cashier-body { padding: 22px; }
.lh-cashier-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px dashed var(--lh-border); font-size: 14px;
}
.lh-cashier-row > span { color: var(--lh-muted); font-size: 13px; }
.lh-cashier-amount { font-size: 22px; color: #e11d48; }
.lh-cashier-actions { margin-top: 20px; }
.lh-cashier-actions .lh-btn { width: 100%; }
.lh-cashier-cancel { margin-top: 12px; text-align: center; }

/* 通知 */
.lh-notice { border-radius: 12px; padding: 12px 16px; font-size: 13px; margin-bottom: 16px; border: 1px solid transparent; }
.lh-notice.ok { background: #ecfdf3; color: #15803d; border-color: #c8ecd4; }
.lh-notice.err { background: #fdecec; color: #b91c1c; border-color: #f7c9c9; }
.lh-notice.warn { background: #fff7e6; color: #b45309; border-color: #f6ddb8; }
.lh-empty-box {
  text-align: center; padding: 56px 20px; color: var(--lh-muted);
  background: var(--lh-surface); border: 1px dashed var(--lh-border); border-radius: 18px;
}

/* 我的靓号 */
.lh-my-numbers, .lh-my-orders { padding: 6px 0 10px; }
.lh-my-number-card {
  position: relative; overflow: hidden; text-align: center;
  border-radius: 18px; padding: 26px 20px;
  background: linear-gradient(150deg, rgba(124, 92, 255, .08), rgba(233, 169, 78, .08));
  border: 1px solid rgba(124, 92, 255, .16);
}
.lh-my-label { display: block; font-size: 12px; color: var(--lh-muted); margin-bottom: 8px; }
.lh-my-number {
  display: block; font-size: clamp(28px, 5vw, 40px); font-weight: 800; letter-spacing: 4px;
  background: linear-gradient(120deg, #c9962f, #f7d98c 45%, #e9a94e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.lh-my-meta { display: flex; gap: 10px; justify-content: center; align-items: center; margin: 10px 0 8px; font-size: 12px; color: var(--lh-muted); }
.lh-my-link { font-size: 12px; color: var(--lh-muted); }
.lh-my-link code { font-size: 12px; }
.lh-sub-title { font-size: 15px; margin: 24px 0 10px; }

/* 我的订单 / 表格 */
.lh-order-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.lh-order-tabs a {
  padding: 6px 14px; border-radius: 999px; font-size: 13px; text-decoration: none;
  color: var(--lh-muted); border: 1px solid transparent;
}
.lh-order-tabs a.active { background: rgba(124, 92, 255, .1); color: var(--lh-primary); border-color: rgba(124, 92, 255, .22); font-weight: 600; }

.lh-table { width: 100%; border-collapse: collapse; }
.lh-table th {
  text-align: left; font-size: 12px; color: var(--lh-muted); font-weight: 600;
  padding: 10px 8px; border-bottom: 1px solid var(--lh-border); white-space: nowrap;
}
.lh-table td { padding: 12px 8px; border-bottom: 1px solid var(--lh-border); font-size: 13px; }
.lh-table tr:last-child td { border-bottom: none; }
.lh-number { letter-spacing: 1.5px; font-variant-numeric: tabular-nums; }
.lh-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lh-actions form { margin: 0; }
.lh-link { background: none; border: none; padding: 0; cursor: pointer; font-size: 12px; color: var(--lh-primary); text-decoration: none; }
.lh-link:hover { text-decoration: underline; }
.lh-link.ok { color: #15803d; }
.lh-link.danger { color: #dc2626; }
.lh-muted { color: var(--lh-muted); }
.lh-order-pending { color: #b45309; font-weight: 600; }
.lh-order-paid { color: #15803d; font-weight: 600; }
.lh-order-cancelled, .lh-order-expired { color: var(--lh-muted); }

/* 暗色适配（跟随主题 .dark-mode / data-theme） */
.dark-mode .lh-shop,
[data-theme="dark"] .lh-shop {
  --lh-surface: #1d1836;
  --lh-border: #2f2854;
  --lh-text: #edeaf7;
  --lh-muted: #9a95b3;
}
.dark-mode .lh-shop-card,
[data-theme="dark"] .lh-shop-card { box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.dark-mode .lh-cashier,
[data-theme="dark"] .lh-cashier { box-shadow: 0 16px 44px rgba(0, 0, 0, .45); }
.dark-mode .lh-notice.ok, [data-theme="dark"] .lh-notice.ok { background: rgba(21, 128, 61, .14); }
.dark-mode .lh-notice.err, [data-theme="dark"] .lh-notice.err { background: rgba(185, 28, 28, .16); }

/* ---------------- 1.1.0 新增：靓号视觉 / 热门靓号 / 倒计时 ---------------- */

/* 号码渲染兜底（详细特效由 class-lh-visual.php 内联 CSS 驱动，这里只保底排版） */
.lh-pretty { display: inline-flex; align-items: center; gap: 6px; line-height: 1.2; white-space: nowrap; }
.lh-pretty-num { position: relative; display: inline-block; font-weight: 800; letter-spacing: .5px; overflow: hidden; }
.lh-pretty-link { text-decoration: none; color: inherit; }
.lh-pretty-link:hover .lh-pretty-num { opacity: .82; }

/* 首页热门靓号 */
.lh-hot-numbers {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 10px;
}
.lh-hot-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 10px; border-radius: 14px; text-decoration: none;
  background: linear-gradient(180deg, #fff 0%, #faf8ff 100%);
  border: 1px solid var(--lh-border, #ece9f5);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.lh-hot-item .lh-pretty-num { font-size: 17px; }
.lh-hot-item em {
  font-style: normal; font-size: 12px; font-weight: 700; color: #b8860b;
  font-variant-numeric: tabular-nums;
}
.lh-hot-item:hover {
  transform: translateY(-2px); border-color: #c9b8ff;
  box-shadow: 0 10px 24px rgba(124, 92, 255, .16);
}

/* 收银台倒计时 */
.lh-countdown {
  font-variant-numeric: tabular-nums; letter-spacing: 1px; color: #b45309;
}
.lh-countdown.expired { color: #dc2626; font-weight: 600; }

.dark-mode .lh-hot-item,
[data-theme="dark"] .lh-hot-item {
  background: linear-gradient(180deg, #1d1930 0%, #17142a 100%);
  border-color: rgba(255, 255, 255, .1);
}
.dark-mode .lh-hot-item em,
[data-theme="dark"] .lh-hot-item em { color: #e9a94e; }

@media (max-width: 720px) {
  .lh-shop-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .lh-shop-number { font-size: 21px; letter-spacing: 1px; }
  .lh-shop-card { padding: 16px 14px; border-radius: 15px; }
  .lh-shop-filters { padding: 14px; gap: 10px; }
  .lh-shop-filters label { flex: 1 1 44%; }
  .lh-shop-filters select, .lh-shop-filters input { width: 100%; min-width: 0; }
  .lh-shop-filters .lh-btn { flex: 1 1 44%; }
  .lh-detail { padding: 30px 16px 26px; border-radius: 18px; }
  .lh-detail-number { letter-spacing: 3px; }
  .lh-table { display: block; overflow-x: auto; white-space: nowrap; }
  .lh-cashier { margin: 6px 0 30px; border-radius: 16px; }
}
