/* 转盘匹配主题 */
:root {
  --主色: #b91c1c;
  --次色: #dc2626;
  --金色: #fbbf24;
  --青色: #22d3ee;
  --绿色: #10b981;
  --橙色: #ff8e53;
  --文字: #3f1d1d;
  --弱文字: #7f1d1d;
  --描边: rgba(185, 28, 28, 0.12);
  --玻璃背景: rgba(255, 248, 240, 0.78);
  --卡片背景: rgba(255, 253, 250, 0.88);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  color: var(--文字);
  background:
    radial-gradient(circle at 20% 20%, rgba(220, 38, 38, 0.12) 0%, transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.16) 0%, transparent 24%),
    linear-gradient(135deg, #fff8f0 0%, #fef3e2 42%, #fffaf3 100%);
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(185, 28, 28, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 28, 28, 0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 20%, rgba(220, 38, 38, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(251, 191, 36, 0.14) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
  animation: 光晕漂移 20s ease-in-out infinite;
}

@keyframes 光晕漂移 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-5%, -5%) rotate(180deg); }
}

.页面外壳 {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
  position: relative;
  z-index: 1;
}

.英雄区,
.玻璃卡片,
.端卡片,
.信息卡片 {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 248, 240, 0.58));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(185, 28, 28, 0.12);
  box-shadow: 0 20px 60px rgba(127, 29, 29, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  border-radius: 24px;
}

.英雄区 {
  padding: 28px;
  margin-bottom: 32px;
}

.顶部栏 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.品牌标识 {
  display: flex;
  align-items: center;
  gap: 14px;
}

.品牌图标 {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #dc2626, #b91c1c 55%, #7f1d1d);
  box-shadow: 0 8px 24px rgba(185, 28, 28, 0.16), 0 0 40px rgba(220, 38, 38, 0.16);
  font-size: 28px;
  position: relative;
  overflow: hidden;
}

.品牌图标 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.品牌标识 strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #7f1d1d, #dc2626);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.品牌标识 small {
  display: block;
  color: var(--弱文字);
  font-size: 13px;
  margin-top: 2px;
}

.积分标签 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.26);
  color: #92400e;
  font-weight: 600;
  font-size: 15px;
  box-shadow: none;
  white-space: nowrap;
}

.主视觉 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 20px 0;
}

.文案区 {
  flex: 1;
  max-width: 520px;
}

.状态标签 {
  display: inline-flex;
  padding: 8px 18px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.18);
  color: var(--次色);
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

h1 {
  margin: 24px 0 18px;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.15;
  letter-spacing: -1.5px;
  font-weight: 800;
  background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 55%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--弱文字);
  margin: 12px 0;
}

.操作组 {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.霓虹按钮,
.弹窗主按钮,
.弹窗次按钮 {
  border-radius: 14px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.霓虹按钮 {
  border: 0;
  position: relative;
  overflow: hidden;
}

.主按钮,
.中心按钮,
.弹窗主按钮 {
  background: linear-gradient(135deg, #dc2626, #b91c1c 55%, #7f1d1d);
  color: #fff;
  border: 0;
}

.次要按钮,
.玻璃按钮,
.弹窗次按钮 {
  background: rgba(255, 255, 255, 0.72);
  color: var(--文字);
  border: 1px solid var(--描边);
}

.次要按钮:hover,
.玻璃按钮:hover,
.弹窗次按钮:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--次色);
}

.弹窗主按钮 {
  box-shadow: 0 8px 24px rgba(185, 28, 28, 0.3);
}

.弹窗主按钮:hover {
  box-shadow: 0 12px 32px rgba(185, 28, 28, 0.42);
}

.转盘卡片 {
  width: min(400px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
}

#转盘 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: transform 3.5s cubic-bezier(0.12, 0.8, 0.18, 1);
  will-change: transform;
}

.指针 {
  position: absolute;
  top: -8px;
  z-index: 3;
  width: 40px;
  height: 52px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  filter: drop-shadow(0 4px 8px rgba(185, 28, 28, 0.4));
}

.指针 svg {
  width: 40px;
  height: 52px;
}

.中心按钮 {
  position: absolute;
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px;
  border: 6px solid rgba(255, 255, 255, 0.95);
  box-shadow: none;
  cursor: pointer;
  transition: all 0.3s;
}

.活动信息区 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
  margin-top: 32px;
  min-width: 0;
}

.信息卡片 {
  padding: 28px;
  min-width: 0;
  overflow: hidden;
}

.信息卡片 h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #7f1d1d, #dc2626);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.奖品列表,
.记录列表,
.仓库列表 {
  display: grid;
  gap: 14px;
}

.礼品行,
.记录卡片,
.仓库卡片 {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(185, 28, 28, 0.08);
  transition: all 0.3s;
}

.礼品行 {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  min-width: 0;
}

.礼品行:hover,
.记录卡片:hover,
.仓库卡片:hover {
  border-color: rgba(220, 38, 38, 0.28);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(127, 29, 29, 0.08);
}

.礼品缩略图 {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 250, 245, 0.98);
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex: 0 0 64px;
}

.礼品信息 {
  flex: 1;
  min-width: 0;
}

.礼品名称 {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--文字);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.礼品积分 {
  flex: 0 1 auto;
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.礼品积分 strong,
.记录值 {
  color: var(--金色);
  font-weight: 700;
}

.时间文本,
.说明文本,
.弹窗说明 {
  font-size: 15px;
  line-height: 1.8;
  color: var(--弱文字);
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.说明文本 li {
  margin: 10px 0;
  padding-left: 8px;
}

.结果弹窗 {
  position: fixed;
  inset: 0;
  background: rgba(63, 29, 29, 0.68);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  z-index: 1000;
  padding: 20px;
  animation: 淡入 0.3s ease-out;
}

.结果弹窗.显示 {
  display: grid;
}

@keyframes 淡入 {
  from { opacity: 0; }
  to { opacity: 1; }
}

.弹窗内容 {
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,248,240,0.92));
  backdrop-filter: blur(24px);
  border: 1px solid rgba(185, 28, 28, 0.14);
  box-shadow: 0 32px 120px rgba(63, 29, 29, 0.28), inset 0 2px 0 rgba(255,255,255,0.8);
  border-radius: 24px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  animation: 弹出 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.弹窗内容-窄 {
  max-width: 400px;
}

.弹窗内容-滚动 {
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
}

.弹窗内容 h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #7f1d1d, #dc2626);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.弹窗输入 {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--描边);
  background: rgba(255, 255, 255, 0.78);
  color: var(--文字);
  font-size: 16px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 8px 0 16px;
}

.弹窗输入:focus {
  outline: none;
  border-color: var(--次色);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.弹窗按钮组 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.弹窗整行按钮 {
  width: 100%;
  margin-top: 14px;
}

.记录头,
.仓库头 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.记录内容 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--文字);
  text-align: left;
  flex: 1;
}

.记录时间,
.仓库时间 {
  font-size: 13px;
  color: var(--弱文字);
  margin-top: 8px;
  text-align: left;
}

.仓库信息 {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.仓库标题 {
  font-weight: 600;
  color: var(--文字);
}

.仓库标题 strong {
  display: block;
  color: var(--主色);
  margin-bottom: 4px;
}

.状态徽标 {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 auto;
}

.空状态 {
  text-align: center;
  color: var(--弱文字);
  padding: 40px 0;
}

@keyframes 弹出 {
  from {
    transform: scale(0.85) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .主视觉 {
    flex-direction: column;
  }

  .顶部栏 {
    margin-bottom: 18px;
  }

  .转盘卡片 {
    width: min(340px, 100%);
  }

  .主视觉 {
    gap: 18px;
    padding-top: 0;
  }

  .文案区 {
    width: 100%;
  }

  .状态标签 {
    margin-top: -6px;
  }

  .记录头,
  .仓库头 {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .弹窗内容 {
    padding: 24px 18px;
  }

  .弹窗按钮组 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .页面外壳 {
    width: min(1200px, calc(100% - 20px));
    padding-bottom: 40px;
  }

  .活动信息区 {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 22px;
  }

  .信息卡片 {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .信息卡片 h2 {
    font-size: 18px;
    margin-bottom: 14px;
  }

  .礼品行 {
    gap: 10px;
    padding: 12px;
  }

  .礼品缩略图 {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    padding: 6px;
  }

  .礼品名称 {
    font-size: 14px;
    line-height: 1.45;
  }

  .礼品积分 {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .礼品行 {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .礼品积分 {
    width: 100%;
    padding-left: 58px;
    text-align: left;
  }
}
