:root {
  --bg: #f5f6fa;
  --card: #ffffff;
  --primary: #c8102e;      /* 兴东/Warwick 红 */
  --primary-d: #9e0c24;
  --text: #1f2430;
  --muted: #6b7280;
  --border: #e5e7eb;
  --ok: #16a34a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.page { max-width: 640px; margin: 0 auto; padding: 24px 16px 48px; }

.hero {
  text-align: center;
  padding: 28px 16px;
  background: linear-gradient(135deg, #1f2430, #3a2230);
  color: #fff;
  border-radius: 16px;
  margin-bottom: 20px;
}
.hero h1 { margin: 0 0 8px; font-size: 22px; }
.hero p { margin: 0; opacity: .85; font-size: 14px; }

.stock-hint { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.stock-hint .label { width: 100%; font-size: 12px; opacity: .7; }
.chip {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
}
.chip.out { opacity: .45; text-decoration: line-through; }

.req { color: var(--primary); font-weight: 700; }
.opt-req { color: var(--muted); font-size: 12px; font-weight: 400; }

/* 折叠子题 */
.followups {
  margin: 12px 0 4px 18px; padding: 12px 0 12px 14px;
  border-left: 3px solid var(--border); background: #fafbfc; border-radius: 0 10px 10px 0;
}
.followup-box > .question:last-child { margin-bottom: 0; }
.other-input { width: 100%; }

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
}

.question { margin-bottom: 22px; }
.q-title { display: block; font-weight: 600; margin-bottom: 10px; }

.options { display: flex; flex-direction: column; gap: 8px; }
.opt {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; transition: .15s;
}
.opt:hover { border-color: var(--primary); background: #fff5f6; }
.opt input { accent-color: var(--primary); }

.text-input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 14px; outline: none;
}
.text-input:focus { border-color: var(--primary); }

.primary {
  width: 100%; padding: 13px; border: none; border-radius: 12px;
  background: var(--primary); color: #fff; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: .15s;
}
.primary:hover { background: var(--primary-d); }
.primary:disabled { opacity: .6; cursor: not-allowed; }

.foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 18px; }

/* 弹窗 */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal.hidden { display: none; }
.modal-card {
  background: #fff; border-radius: 18px; padding: 30px 26px;
  max-width: 340px; width: 100%; text-align: center;
  animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.result-icon { font-size: 46px; }
.modal-card h2 { margin: 10px 0 6px; }
.modal-card p { color: var(--muted); margin: 0 0 6px; }
.code {
  margin: 12px 0; padding: 10px; background: #fff5f6; color: var(--primary-d);
  border-radius: 10px; font-weight: 600; letter-spacing: 1px;
}
.code.hidden { display: none; }

/* 关注引导 */
.follow-line { margin: 18px 0 8px; color: var(--muted); font-size: 14px; text-align: center; }
.social-btn {
  display: block; width: 100%; padding: 12px 16px; border: none; border-radius: 999px;
  background: linear-gradient(135deg, #ff6a9b, #ff9a6a); color: #fff;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: .15s;
}
.social-btn:hover { filter: brightness(1.05); }
.modal-social { margin-top: 14px; }
.muted { color: var(--muted); font-size: 13px; }
.qr-list { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 16px 0; }
.qr-item { text-align: center; }
.qr-item img {
  width: 132px; height: 132px; border-radius: 10px; background: #fff;
  padding: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.08); display: block;
}
.qr-item .pname { margin-top: 8px; font-size: 13px; color: var(--muted); }
/* 官方合成二维码图（B站/抖音/小红书）撑满弹窗宽度 */
.qr-item.qr-composite { width: 100%; }
.qr-item.qr-composite img {
  width: 100%; max-width: 420px; height: auto; margin: 0 auto;
  border-radius: 10px; padding: 0; background: transparent; box-shadow: none;
}

/* 管理后台 */
.admin-wrap { max-width: 880px; }
.bar { height: 10px; background: var(--border); border-radius: 999px; overflow: hidden; min-width: 120px; }
.fill { height: 100%; background: var(--primary); transition: width .3s; }
table { width: 100%; border-collapse: collapse; margin-top: 14px; }
th, td { padding: 10px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--muted); font-weight: 600; }
.rem-input { width: 64px; padding: 6px; border: 1px solid var(--border); border-radius: 8px; }
.btn-sm {
  padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 13px; margin-left: 6px;
}
.btn-sm:hover { border-color: var(--primary); color: var(--primary); }
.key-row { display: flex; gap: 10px; margin-bottom: 10px; }
.key-row input { flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.stat-cards { display: flex; gap: 12px; margin: 16px 0; }
.stat { flex: 1; background: #fff; border-radius: 12px; padding: 14px; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,.05); }
.stat b { display: block; font-size: 24px; color: var(--primary); }
.stat span { font-size: 12px; color: var(--muted); }
.section-title { margin: 22px 0 4px; font-size: 16px; }

/* 暗号黑箱奖标识 */
.secret-badge {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  background: #2a2118; color: #f5c97b; font-size: 12px; font-weight: 600; letter-spacing: 1px;
}

/* 全部问卷回答卡片 */
.survey-list { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.survey-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: #fcfcfd;
}
.survey-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.survey-prize { color: var(--primary); }
.qa-list { display: flex; flex-direction: column; gap: 4px; }
.qa { font-size: 13px; line-height: 1.5; }
.qk { color: var(--muted); }
.qv { color: var(--text); }

/* 抽奖结果核销码行 */
.code-line { margin: 4px 0; }

/* ===== 新增：品牌 logo / 奖品照片 / 两行关注按钮 ===== */

/* 顶部 Warwick logo（缺图时显示文字替代） */
.brand-logo {
  max-height: 60px; width: auto; margin: 0 auto 12px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
  display: block;
}
.brand-word {
  font-weight: 800; letter-spacing: 4px; font-size: 26px; color: #fff;
  margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* 奖品一览 */
.prize-show-card { margin-bottom: 20px; }
.prize-show-title { margin: 0 0 14px; font-size: 17px; }
.prize-show { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.ps-item { width: 30%; min-width: 92px; text-align: center; }
.ps-name { font-size: 12px; margin-top: 6px; line-height: 1.4; }
.ps-stock { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* 奖品照片（缺图降级占位） */
.prize-img {
  width: 84px; height: 84px; margin: 0 auto; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, #f1f2f6, #e6e8ef);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
}
.prize-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prize-img .ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 6px; font-size: 12px; color: var(--muted); flex-direction: column; gap: 2px;
}

/* 结果弹窗里的奖品照片 */
.result-prizes { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 12px 0; }
.rp { text-align: center; }
.rp-name { font-size: 12px; margin-top: 4px; max-width: 96px; }

/* 两行关注按钮（更大、带爪印装饰） */
.social-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 66px; padding: 14px 20px; border: none; border-radius: 18px;
  background: linear-gradient(135deg, #ff6a9b, #ff9a6a); color: #fff;
  font-size: 16px; font-weight: 700; cursor: pointer; transition: .15s;
  white-space: normal; line-height: 1.25; box-shadow: 0 6px 18px rgba(255,106,155,.35);
}
.social-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.social-btn .paw { font-size: 20px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }
.social-btn .btn-lines { display: flex; flex-direction: column; align-items: center; }
.social-btn .l1 { font-size: 16px; }
.social-btn .l2 { font-size: 14px; opacity: .95; }

/* 已参与提示 */
.part-note {
  text-align: center; color: var(--muted); font-size: 13px;
  background: #fafbfc; border: 1px dashed var(--border); border-radius: 10px; padding: 10px 12px; margin: 0 0 4px;
}
