/* ===== 每日幸运大转盘 · 页面样式（仅 lucky.html 引用） =====
   依赖 style.css 里的基础变量与 .topbar / .footer / .btn 等公共类 */

:root {
  --jz-red: #e5382b;
  --jz-red-dark: #b62619;
  --jz-gold: #ffd24a;
  --jz-gold-dark: #f0a800;
}

body.jz-lucky {
  background: linear-gradient(180deg, #ffe9c2 0%, #fff6e8 42%, #ffffff 100%);
  min-height: 100vh;
}

/* ---------- 头部 ---------- */
.lk-head {
  background: linear-gradient(180deg, var(--jz-red) 0%, var(--jz-red-dark) 100%);
  color: #fff;
  padding: 18px 16px 74px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lk-head::after {
  content: '';
  position: absolute; left: -8%; right: -8%; bottom: -34px; height: 70px;
  background: #fff6e8;
  border-radius: 50% 50% 0 0;
}
.lk-title {
  font-size: 22px; font-weight: 800; letter-spacing: 1px;
  text-shadow: 0 2px 0 rgba(0,0,0,.12);
}
.lk-subtitle { font-size: 13px; opacity: .92; margin-top: 6px; }

.lk-rules-btn {
  position: absolute; right: 12px; top: 14px; z-index: 3;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.5);
  color: #fff; font-size: 12px; line-height: 1;
  padding: 7px 11px; border-radius: 999px; cursor: pointer;
}
.lk-rules-btn:active { transform: scale(.96); }

/* ---------- 信息条 ---------- */
.lk-stats {
  position: relative; z-index: 2;
  margin: -56px 14px 0;
  display: flex; gap: 10px;
}
.lk-stat {
  flex: 1; background: #fff; border-radius: 14px; padding: 12px 6px; text-align: center;
  box-shadow: 0 6px 18px rgba(190,80,20,.12);
}
.lk-stat-num { font-size: 20px; font-weight: 800; color: var(--jz-red); line-height: 1.1; }
.lk-stat-num small { font-size: 12px; font-weight: 600; }
.lk-stat-label { font-size: 11px; color: #8b7a6b; margin-top: 3px; }

/* ---------- 活动时间 ---------- */
.lk-time {
  margin: 12px 14px 0; text-align: center;
  font-size: 12px; color: #9a6a3a;
  background: rgba(255,255,255,.75); border: 1px dashed #f3c99a;
  border-radius: 10px; padding: 8px;
}

/* ---------- 转盘 ---------- */
.lk-wheel-wrap {
  position: relative;
  width: 300px; height: 300px;
  margin: 20px auto 0;
}
.lk-wheel-outer {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe07a, #f7b733 55%, #e79b12);
  box-shadow: 0 10px 28px rgba(180,80,10,.28), inset 0 0 0 6px #fff6e0;
  padding: 18px;
  box-sizing: border-box;
}
.lk-wheel {
  width: 100%; height: 100%;
  border-radius: 50%;
  transform: rotate(0deg);
  will-change: transform;
  position: relative;
}
.lk-wheel svg { display: block; width: 100%; height: 100%; }
.lk-wheel-label {
  font-size: 11px; fill: #6b3410; font-weight: 700;
  pointer-events: none;
}
.lk-wheel-label-sub { font-size: 9px; fill: #a3611f; }

/* 指针 */
.lk-pointer {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(180deg, #fff, #ffe6b8);
  box-shadow: 0 4px 12px rgba(150,70,0,.3), inset 0 0 0 3px var(--jz-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--jz-red);
  z-index: 4; cursor: pointer; user-select: none;
}
.lk-pointer.disabled { color: #bbb; box-shadow: 0 4px 12px rgba(0,0,0,.12), inset 0 0 0 3px #ddd; cursor: not-allowed; }
.lk-pointer::before {
  content: '';
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  border-left: 9px solid transparent; border-right: 9px solid transparent;
  border-bottom: 16px solid var(--jz-red);
}
.lk-pointer.disabled::before { border-bottom-color: #ddd; }

/* ---------- 按钮区 ---------- */
.lk-mine-btn {
  display: block; margin: 18px 14px 0; padding: 12px 0; text-align: center;
  font-size: 15px; font-weight: 800; text-decoration: none; color: #7a3d00;
  background: linear-gradient(180deg, var(--jz-gold), var(--jz-gold-dark));
  border-radius: 12px; box-shadow: 0 6px 16px rgba(240,168,0,.35);
}
.lk-mine-btn:active { transform: translateY(1px); }
.lk-actions { display: flex; gap: 10px; margin: 12px 14px 0; }
.lk-actions .btn {
  flex: 1; text-align: center; font-size: 14px; padding: 12px 0;
  border-radius: 12px; border: none; cursor: pointer;
}
.lk-btn-main {
  background: linear-gradient(180deg, var(--jz-gold), var(--jz-gold-dark));
  color: #7a3d00; font-weight: 800;
  box-shadow: 0 6px 16px rgba(240,168,0,.35);
}
.lk-btn-main:active { transform: translateY(1px); }
.lk-btn-sub { background: #fff; color: var(--jz-red); font-weight: 700; box-shadow: 0 4px 12px rgba(190,80,20,.12); }

/* ---------- 跑马灯 ---------- */
.lk-marquee {
  margin: 18px 14px 0; height: 34px; overflow: hidden;
  background: #fff; border-radius: 10px;
  box-shadow: 0 4px 12px rgba(190,80,20,.1);
  position: relative;
}
.lk-marquee-inner { transition: transform .5s ease; }
.lk-marquee-row {
  height: 34px; line-height: 34px; padding: 0 12px;
  font-size: 12px; color: #7a5b3a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lk-marquee-row b { color: var(--jz-red); }

/* ---------- 中奖滚动区（参考图的"中奖记录"） ---------- */
.lk-wins {
  margin: 12px 14px 0; background: #fff; border-radius: 14px; padding: 12px;
  box-shadow: 0 4px 12px rgba(190,80,20,.08);
}
.lk-wins-title { font-size: 14px; font-weight: 800; color: var(--jz-red); margin-bottom: 8px; }
.lk-win-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; border-bottom: 1px dashed #f3e3d3; font-size: 12px; color: #6b5b4b;
}
.lk-win-row:last-child { border-bottom: none; }
.lk-win-avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 26px;
  background: linear-gradient(135deg, #ffd98a, #f7b733);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #7a3d00; font-weight: 700;
}
.lk-win-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-win-prize { color: var(--jz-red); font-weight: 700; }
.lk-win-time { color: #b5a596; font-size: 11px; }

/* ---------- 弹窗 ---------- */
.lk-mask {
  position: fixed; inset: 0; background: rgba(40,20,5,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
}
.lk-mask[hidden] { display: none; }
.lk-modal {
  width: 100%; max-width: 340px; max-height: 78vh; overflow-y: auto;
  background: #fff; border-radius: 16px; padding: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.3);
  animation: lk-pop .22s ease;
}
@keyframes lk-pop { from { transform: scale(.92); opacity: 0 } to { transform: scale(1); opacity: 1 } }
.lk-modal h3 { font-size: 16px; color: var(--jz-red); margin-bottom: 10px; text-align: center; }
.lk-modal-body { font-size: 13px; color: #5c4a3a; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.lk-modal-close {
  display: block; width: 100%; margin-top: 16px; padding: 11px 0;
  background: var(--jz-red); color: #fff; border: none; border-radius: 10px;
  font-size: 14px; font-weight: 700; cursor: pointer;
}

/* 奖品格 */
.lk-prize-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid #f5ece2;
}
.lk-prize-row:last-child { border-bottom: none; }
.lk-prize-img {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 8px;
  background: #fdf4e8; object-fit: cover;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.lk-prize-info { flex: 1; min-width: 0; }
.lk-prize-name { font-size: 13px; font-weight: 700; color: #4a3828; }
.lk-prize-meta { font-size: 11px; color: #a08a76; margin-top: 2px; }
.lk-prize-level {
  font-size: 10px; color: #fff; background: var(--jz-red);
  border-radius: 4px; padding: 1px 5px; margin-right: 5px;
}
.lk-prize-level.gray { background: #b9aca0; }

/* 中奖结果 */
.lk-result { text-align: center; }
.lk-result-icon { font-size: 46px; line-height: 1; margin-bottom: 8px; }
.lk-result-title { font-size: 18px; font-weight: 800; color: var(--jz-red); margin-bottom: 6px; }
.lk-result-prize { font-size: 15px; font-weight: 700; color: #4a3828; margin: 8px 0; }
.lk-result-tip { font-size: 12px; color: #8b7a6b; line-height: 1.7; }
.lk-claim-input {
  width: 100%; margin-top: 14px; padding: 11px 12px;
  border: 1px solid #f0d9bd; border-radius: 10px; font-size: 14px;
  box-sizing: border-box;
}
.lk-claim-input:focus { outline: none; border-color: var(--jz-gold-dark); }

/* 记录行 */
.lk-rec-row {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 0; border-bottom: 1px solid #f5ece2; font-size: 12px;
}
.lk-rec-row:last-child { border-bottom: none; }
.lk-rec-main { flex: 1; min-width: 0; }
.lk-rec-prize { color: #4a3828; font-weight: 700; }
.lk-rec-time { color: #b5a596; font-size: 11px; margin-top: 2px; }
.lk-rec-status {
  font-size: 11px; padding: 2px 7px; border-radius: 5px; white-space: nowrap;
}
.lk-rec-status.pending { background: #fff2d9; color: #c07a00; }
.lk-rec-status.claimed, .lk-rec-status.done { background: #e8f6ec; color: #2f8a4c; }
.lk-rec-status.none { background: #f2f2f2; color: #999; }

.lk-empty { text-align: center; color: #a08a76; font-size: 13px; padding: 22px 0; }
.lk-note { text-align: center; font-size: 11px; color: #b5a596; margin: 14px 14px 0; line-height: 1.7; }

/* =========================================================
   后台（lucky_admin.html）—— 统一 .lka- 前缀
   ========================================================= */
body.lka-body { background: #f5f6f8; }

.lka-wrap { max-width: 1100px; margin: 0 auto; padding: 16px; }
.lka-card {
  background: #fff; border-radius: 12px; padding: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05); margin-bottom: 16px;
}
.lka-card h3 { font-size: 16px; color: #222; margin-bottom: 14px; }

.lka-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.lka-tab {
  padding: 9px 18px; border-radius: 8px; background: #fff; border: 1px solid #e3e6eb;
  font-size: 14px; color: #555; cursor: pointer;
}
.lka-tab.active { background: #e5382b; border-color: #e5382b; color: #fff; font-weight: 700; }

.lka-login { max-width: 380px; margin: 60px auto; }
.lka-login input {
  width: 100%; padding: 12px; border: 1px solid #dfe3e8; border-radius: 8px;
  font-size: 15px; box-sizing: border-box; margin-bottom: 12px;
}
.lka-btn {
  padding: 9px 16px; border: none; border-radius: 8px; font-size: 14px;
  cursor: pointer; background: #e5382b; color: #fff; font-weight: 600;
}
.lka-btn.ghost { background: #f0f2f5; color: #444; }
.lka-btn.ok { background: #2f8a4c; }
.lka-btn.danger { background: #d9363e; }
.lka-btn:disabled { opacity: .6; cursor: not-allowed; }

.lka-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.lka-field { display: flex; flex-direction: column; gap: 5px; }
.lka-field.full { grid-column: 1 / -1; }
.lka-field label { font-size: 12px; color: #7a8592; }
.lka-field input, .lka-field select, .lka-field textarea {
  padding: 9px 10px; border: 1px solid #dfe3e8; border-radius: 7px;
  font-size: 14px; box-sizing: border-box; font-family: inherit;
}
.lka-field textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.lka-hint { font-size: 11px; color: #9aa4b0; }

.lka-table-wrap { overflow-x: auto; }
.lka-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 900px; }
.lka-table th, .lka-table td {
  padding: 9px 8px; border-bottom: 1px solid #eef1f4; text-align: left; white-space: nowrap;
}
.lka-table th { background: #fafbfc; color: #6b7684; font-weight: 600; font-size: 12px; }
.lka-table tr:hover td { background: #fcfcfd; }
.lka-thumb {
  width: 38px; height: 38px; border-radius: 6px; object-fit: cover; background: #f4f6f8;
  display: inline-block; vertical-align: middle;
}
.lka-tag {
  font-size: 11px; padding: 2px 7px; border-radius: 4px; white-space: nowrap;
}
.lka-tag.balance { background: #fff2d9; color: #c07a00; }
.lka-tag.physical { background: #e8f0ff; color: #2f5fbf; }
.lka-tag.coupon { background: #f0e8ff; color: #6a3fbf; }
.lka-tag.none { background: #f2f2f2; color: #888; }
.lka-tag.on { background: #e8f6ec; color: #2f8a4c; }
.lka-tag.off { background: #f2f2f2; color: #999; }

.lka-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.lka-bar input, .lka-bar select {
  padding: 8px 10px; border: 1px solid #dfe3e8; border-radius: 7px; font-size: 13px;
}
.lka-statline { display: flex; gap: 20px; font-size: 13px; color: #555; margin-bottom: 12px; flex-wrap: wrap; }
.lka-statline b { color: #e5382b; font-size: 16px; }

.lka-pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 14px; font-size: 13px; }

@media (max-width: 640px) {
  .lka-form { grid-template-columns: 1fr; }
}

/* 小屏适配 */
@media (max-width: 360px) {
  .lk-wheel-wrap { width: 260px; height: 260px; }
  .lk-title { font-size: 19px; }
}

/* =========================================================
   我的奖品（lucky_user.html）—— 统一 .lkp- 前缀
   ========================================================= */
.lkp-card {
  margin: 12px 14px 0; background: #fff; border-radius: 14px; padding: 14px;
  box-shadow: 0 4px 14px rgba(190,80,20,.09);
}
.lkp-bal { text-align: center; padding: 6px 0 12px; }
.lkp-bal-num { font-size: 34px; font-weight: 800; color: var(--jz-red); line-height: 1.1; }
.lkp-bal-label { font-size: 12px; color: #8b7a6b; margin-top: 4px; }

.lkp-bal-sub {
  display: flex; border-top: 1px dashed #f0e2d2; padding-top: 12px;
}
.lkp-bal-sub > div { flex: 1; text-align: center; }
.lkp-bal-sub b { display: block; font-size: 14px; color: #4a3828; }
.lkp-bal-sub span { font-size: 11px; color: #a08a76; }

.lkp-main-btn {
  display: block; width: 100%; margin-top: 14px; padding: 12px 0;
  background: linear-gradient(180deg, var(--jz-red), var(--jz-red-dark));
  color: #fff; border: none; border-radius: 10px;
  font-size: 15px; font-weight: 700; cursor: pointer;
}
.lkp-main-btn.ghost {
  background: linear-gradient(180deg, var(--jz-gold), var(--jz-gold-dark)); color: #7a3d00;
}
.lkp-main-btn:disabled {
  background: #eee3d6; color: #b3a495; cursor: not-allowed;
}
.lkp-main-btn:active:not(:disabled) { transform: translateY(1px); }

.lkp-tip { text-align: center; font-size: 12px; color: #b07a2a; margin-top: 8px; line-height: 1.6; }
.lkp-note { font-size: 11px; color: #b5a596; margin-top: 10px; line-height: 1.7; }

/* 标签页 */
.lkp-tabs { display: flex; gap: 8px; margin: 14px 14px 0; }
.lkp-tab {
  flex: 1; text-align: center; padding: 10px 0; font-size: 13px;
  background: #fff; color: #7a5b3a; border-radius: 10px; cursor: pointer;
  box-shadow: 0 3px 10px rgba(190,80,20,.08);
}
.lkp-tab.active { background: var(--jz-red); color: #fff; font-weight: 700; }
.lkp-tab em { font-style: normal; font-size: 11px; opacity: .85; }

.lkp-sec-title { font-size: 15px; font-weight: 800; color: #4a3828; margin-bottom: 10px; }
.lkp-sec-hint { font-size: 11px; font-weight: 400; color: #a08a76; margin-left: 6px; }

/* 奖品条目 */
.lkp-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed #f3e3d3;
}
.lkp-item:last-child { border-bottom: none; }
.lkp-item.used { opacity: .55; }
.lkp-item-img {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 8px;
  background: #fdf4e8; object-fit: cover;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.lkp-item-img.ticket { background: #f6efff; }
.lkp-item-main { flex: 1; min-width: 0; }
.lkp-item-name { font-size: 14px; font-weight: 700; color: #4a3828; }
.lkp-item-meta { font-size: 11px; color: #a08a76; margin-top: 2px; }
.lkp-code {
  display: inline-block; margin-top: 4px; font-size: 11px; letter-spacing: .5px;
  color: #6a3fbf; background: #f6efff; border: 1px dashed #d9c6f5;
  border-radius: 4px; padding: 1px 6px;
}
.lkp-status {
  font-size: 11px; padding: 3px 8px; border-radius: 5px; white-space: nowrap;
  background: #f2f2f2; color: #888;
}
.lkp-status.pending { background: #fff2d9; color: #c07a00; }
.lkp-status.claimed { background: #e8f0ff; color: #2f5fbf; }
.lkp-status.done, .lkp-status.paid, .lkp-status.shipped { background: #e8f6ec; color: #2f8a4c; }
.lkp-status.rejected { background: #fdeaea; color: #c0392b; }
.lkp-status.processing { background: #e8f0ff; color: #2f5fbf; }

/* 我的申请 */
.lkp-req { padding: 10px 0; border-bottom: 1px dashed #f3e3d3; }
.lkp-req:last-child { border-bottom: none; }
.lkp-req-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lkp-req-title { font-size: 14px; font-weight: 700; color: #4a3828; }
.lkp-req-body { font-size: 11px; color: #a08a76; margin-top: 5px; line-height: 1.7; word-break: break-all; }

/* 表单 */
.lkp-form { display: flex; flex-direction: column; gap: 10px; }
.lkp-field label { display: block; font-size: 12px; color: #8b7a6b; margin-bottom: 4px; }
.lkp-field input, .lkp-field select {
  width: 100%; padding: 10px; border: 1px solid #f0d9bd; border-radius: 8px;
  font-size: 14px; box-sizing: border-box; font-family: inherit; background: #fff;
}
.lkp-field input:focus, .lkp-field select:focus { outline: none; border-color: var(--jz-gold-dark); }
.lkp-readonly {
  padding: 10px; background: #fdf4e8; border-radius: 8px;
  font-size: 15px; font-weight: 800; color: var(--jz-red);
}

/* 弹窗加宽（后台用） */
.lk-modal.wide { max-width: 480px; }
