/* ============================================================
 * pages.css — 首页 / 轮盘 / 仓库 / 商城 差异化样式
 * ==========================================================*/

/* ============ 首页 ============ */

.hero-card {
  text-align: center;
  padding: 30px 20px 26px;
}

.hero-label {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.hero-names {
  font-size: 15px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.hero-days {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.hero-days-unit {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dim);
  margin-left: 4px;
}

.hero-clock {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.clock-seg b {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.clock-seg i {
  font-style: normal;
  font-size: 12px;
  color: var(--text-dim);
  margin-left: 2px;
}

.clock-sep {
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}

/* 一言卡片 */
.quote-card {
  position: relative;
  padding: 22px 20px;
  border-left: 4px solid var(--accent);
  cursor: pointer;
  user-select: none;
  transition: transform 0.12s;
}

.quote-card:active { transform: scale(0.98); }

.quote-mark {
  font-size: 34px;
  line-height: 1;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
}

.quote-text {
  font-size: 16px;
  line-height: 1.8;
  margin-top: 4px;
  min-height: 1.8em;
}

.quote-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 倒计时清单 */
.count-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.count-item + .count-item { margin-top: 10px; }

.count-item.is-past { opacity: 0.55; }

.count-item.is-today {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.count-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.count-item.is-past .count-icon {
  background: var(--bg);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.count-main { flex: 1; min-width: 0; }
.count-name { font-size: 15px; font-weight: 600; }
.count-date { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

.count-days {
  text-align: right;
  flex: none;
}

.count-days-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.count-item.is-today .count-days-num { font-size: 15px; }

.count-item.is-past .count-days-num { color: var(--text-dim); }

.count-days-label {
  font-size: 11px;
  color: var(--text-dim);
}

/* ============ 每日轮盘 ============ */

.wheel-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 18px;
}

.wheel-wrap {
  position: relative;
  width: min(84vw, 340px);
  margin: 0 auto;
  aspect-ratio: 1;
}

.wheel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 6px solid var(--bg-card);
  box-shadow: 0 6px 24px var(--shadow);
  overflow: hidden;
  will-change: transform;
  background: var(--bg-card);
}

.wheel.spinning {
  transition: transform 4.2s cubic-bezier(0.12, 0.8, 0.08, 1);
}

.wheel-sector {
  position: absolute;
  inset: 0;
}

.wheel-label {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 13px;
  font-weight: 600;
  color: var(--wheel-text);
  white-space: nowrap;
  text-align: center;
}

.wheel-pointer {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-card);
  box-shadow: 0 2px 8px var(--shadow);
  z-index: 3;
}

.wheel-pointer::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 13px;
  height: 16px;
  background: var(--accent);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.wheel-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
}

.wheel-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 4px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 10px var(--shadow);
}

.wheel-actions { margin-top: 26px; text-align: center; }

.spin-btn {
  width: 100%;
  max-width: 280px;
  padding: 15px 0;
  font-size: 17px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 0 6px 16px var(--shadow);
  transition: transform 0.1s, background-color 0.2s;
}

.spin-btn:active { transform: scale(0.96); background: var(--accent-press); }

.spin-btn[disabled] { opacity: 0.45; pointer-events: none; }

.wheel-tip {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

/* ============ 奖品仓库 ============ */

.prize-item.is-used { opacity: 0.55; }

.prize-item.is-used .item-icon {
  background: var(--bg);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.data-manage {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}

.data-manage-title {
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 12px;
}

.data-manage-btns {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============ 兑换商城 ============ */

.shop-balance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  margin-bottom: 16px;
  background: var(--accent-soft);
  border-radius: 14px;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}

.shop-balance .balance-num {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.goods-price {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.goods-stock {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.goods-item .btn { flex: none; }

/* ============ 通用页脚留白 ============ */
.page-footer-space { height: 12px; }
