/* 天天奖券·开奖结果详情(单期完整名单) /activity/lottery/records
   设计稿：PC 39400:119352（H5 无稿，按项目既有活动页规则自适应）
   桌面优先，主断点 @media (max-width: 768px) */

.activity-lottery-records {
  font-family: "PingFang SC", sans-serif;
  color: var(--text-primary);
}

.activity-lottery-records__inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ---------- 面包屑 ---------- */

.activity-lottery-records__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.activity-lottery-records__breadcrumb-link {
  color: var(--text-primary);
  transition: color .2s;
}

.activity-lottery-records__breadcrumb-link:hover {
  color: var(--color-primary-500);
}

.activity-lottery-records__breadcrumb-sep {
  color: var(--text-primary);
}

.activity-lottery-records__breadcrumb-current {
  color: var(--text-secondary);
}

/* ---------- 期号信息卡 ---------- */

.activity-lottery-records__period {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border: 1px solid var(--color-black-alpha-10);
  border-radius: 12px;
  background-image: linear-gradient(-7.365deg, #FFFFFF 74.3%, #FDF7E0 130.8%);
}

/* 奖杯下方的暖色柔光（CSS 重建设计稿里的渐变椭圆） */
.activity-lottery-records__period-glow {
  position: absolute;
  left: 84.1%;
  top: 122px;
  width: 180px;
  height: 97px;
  border-radius: 50%;
  background-image: linear-gradient(180deg, #FDF7E0 0%, rgba(253, 245, 234, 0) 59%);
  pointer-events: none;
}

.activity-lottery-records__period-globe {
  position: absolute;
  left: 85.3%;
  top: 29px;
  width: 142px;
  height: 142px;
  pointer-events: none;
}

.activity-lottery-records__period-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px;
}

.activity-lottery-records__period-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.activity-lottery-records__period-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  color: #000;
  white-space: nowrap;
}

.activity-lottery-records__period-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 4px;
  background: rgba(255, 45, 85, 0.1);
  font-size: 14px;
  line-height: 20px;
  color: #FF2D55;
  white-space: nowrap;
}

.activity-lottery-records__period-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-lottery-records__period-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  line-height: 22px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.activity-lottery-records__period-icon {
  width: 20px;
  height: 20px;
  opacity: .7;
}

/* ---------- 我的本期结果 ---------- */

.activity-lottery-records__mine {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid #FCE3AD;
  border-radius: 12px;
  background: linear-gradient(to top, #FDF6DE, #FFFFFF);
}

.activity-lottery-records__mine-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 4px;
  background: #FEEEA2;
  font-size: 14px;
  line-height: 20px;
  color: #DD6915;
  white-space: nowrap;
}

.activity-lottery-records__mine-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.activity-lottery-records__mine-icon {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}

.activity-lottery-records__mine-icon img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  transform: translate(-50%, -52%);
  object-fit: contain;
}

/* 礼盒下方的落地阴影 */
.activity-lottery-records__mine-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 40px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(221, 160, 21, 0.18);
  filter: blur(1px);
}

.activity-lottery-records__mine-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.activity-lottery-records__mine-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--text-primary);
}

.activity-lottery-records__mine-em {
  font-style: normal;
  color: #FF2D55;
}

.activity-lottery-records__mine-sub {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
}

/* ---------- 中奖名单 ---------- */

.activity-lottery-records__list-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--color-black-alpha-10);
  border-radius: 12px;
  background: #FFFFFF;
}

.activity-lottery-records__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-lottery-records__group-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-lottery-records__group-bar {
  width: 6px;
  height: 24px;
  border-radius: 3px;
  background: var(--color-primary-500);
}

.activity-lottery-records__group-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  color: var(--text-primary);
  white-space: nowrap;
}

.activity-lottery-records__group-count {
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.activity-lottery-records__rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-lottery-records__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-black-alpha-10);
}

/* [hidden] 需显式压过 display:flex */
.activity-lottery-records__row[hidden] {
  display: none;
}

/* 收合态隐藏该组"更多"行,由展开按钮切换 */
.activity-lottery-records__group--collapsed .activity-lottery-records__row--more {
  display: none;
}

/* JS 按数据隐藏空组/短组的展开按钮([hidden] 需压过 display:flex) */
.activity-lottery-records__group[hidden],
.activity-lottery-records__toggle[hidden] {
  display: none;
}

.activity-lottery-records__rank {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.activity-lottery-records__rank-medal {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.activity-lottery-records__rank-num {
  font-size: 21px;
  font-weight: 600;
  line-height: 30px;
  color: rgba(0, 0, 0, 0.22);
  white-space: nowrap;
}

.activity-lottery-records__user {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.activity-lottery-records__user-name {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--text-primary);
}

.activity-lottery-records__user-sub {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
}

.activity-lottery-records__prize {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: #FF2D55;
  text-align: right;
}

/* 空态占位：该池暂无开奖/无人中奖时由 JS 解除 hidden */
.activity-lottery-records__empty {
  margin: 0;
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
}

.activity-lottery-records__empty[hidden] {
  display: none;
}

.activity-lottery-records__toggle {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: rgba(0, 0, 0, 0.68);
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s;
}

.activity-lottery-records__toggle:hover {
  color: var(--text-primary);
}

.activity-lottery-records__toggle-icon {
  width: 18px;
  height: 18px;
  transition: transform .2s;
}

.activity-lottery-records__toggle--open .activity-lottery-records__toggle-icon {
  transform: rotate(90deg);
}

/* ---------- 底部按钮 ---------- */

.activity-lottery-records__actions {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.activity-lottery-records__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 58px;
  padding: 11px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  text-align: center;
  white-space: nowrap;
  transition: filter .2s, background-color .2s;
}

.activity-lottery-records__btn--primary {
  background: var(--color-primary-500);
  color: var(--text-primary);
}

.activity-lottery-records__btn--primary:hover {
  filter: brightness(0.95);
}

.activity-lottery-records__btn--ghost {
  background: var(--color-black-alpha-5);
  color: var(--text-secondary);
}

.activity-lottery-records__btn--ghost:hover {
  background: var(--color-black-alpha-10);
}

.activity-lottery-records__btn-icon {
  width: 18px;
  height: 18px;
}

/* ---------- H5（≤768px，无设计稿，按活动页既有 H5 规则自适应：单列 + 尺寸下调） ---------- */

@media (max-width: 768px) {
  .activity-lottery-records__inner {
    gap: 18px;
  }

  .activity-lottery-records__breadcrumb {
    gap: 4px;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
  }

  .activity-lottery-records__period {
    height: auto;
  }

  .activity-lottery-records__period-glow {
    left: auto;
    right: -12px;
    top: auto;
    bottom: -30px;
    width: 120px;
    height: 66px;
  }

  .activity-lottery-records__period-globe {
    left: auto;
    right: 8px;
    top: 16px;
    width: 92px;
    height: 92px;
  }

  .activity-lottery-records__period-body {
    gap: 12px;
    padding: 12px;
  }

  .activity-lottery-records__period-head {
    gap: 8px;
  }

  .activity-lottery-records__period-title {
    font-size: 16px;
    line-height: 22px;
  }

  .activity-lottery-records__period-status {
    font-size: 12px;
    line-height: 18px;
  }

  .activity-lottery-records__period-list {
    gap: 8px;
  }

  .activity-lottery-records__period-item {
    font-size: 13px;
    line-height: 20px;
  }

  .activity-lottery-records__period-icon {
    width: 16px;
    height: 16px;
  }

  .activity-lottery-records__mine {
    gap: 8px;
    padding: 12px;
  }

  .activity-lottery-records__mine-tag {
    font-size: 12px;
    line-height: 18px;
  }

  .activity-lottery-records__mine-icon {
    width: 48px;
    height: 48px;
  }

  .activity-lottery-records__mine-icon img {
    width: 66px;
    height: 66px;
  }

  .activity-lottery-records__mine-icon::after {
    width: 30px;
    height: 3px;
  }

  .activity-lottery-records__mine-info {
    gap: 4px;
  }

  .activity-lottery-records__mine-title {
    font-size: 14px;
    line-height: 20px;
  }

  .activity-lottery-records__mine-sub {
    font-size: 12px;
    line-height: 18px;
  }

  .activity-lottery-records__list-card {
    padding: 12px;
  }

  .activity-lottery-records__group-bar {
    height: 16px;
    border-radius: 3px;
  }

  .activity-lottery-records__group-title {
    font-size: 15px;
    line-height: 22px;
  }

  .activity-lottery-records__group-count {
    font-size: 12px;
    line-height: 18px;
  }

  .activity-lottery-records__row {
    gap: 8px;
    padding: 10px 0;
  }

  .activity-lottery-records__rank,
  .activity-lottery-records__rank-medal {
    width: 28px;
    height: 28px;
  }

  .activity-lottery-records__rank-num {
    font-size: 16px;
    line-height: 22px;
  }

  .activity-lottery-records__user-name {
    font-size: 14px;
    line-height: 20px;
  }

  .activity-lottery-records__user-sub {
    font-size: 12px;
    line-height: 18px;
  }

  .activity-lottery-records__prize {
    max-width: 40%;
    font-size: 13px;
    line-height: 18px;
  }

  .activity-lottery-records__toggle {
    font-size: 12px;
    line-height: 18px;
  }

  .activity-lottery-records__toggle-icon {
    width: 16px;
    height: 16px;
  }

  .activity-lottery-records__actions {
    gap: 12px;
  }

  .activity-lottery-records__btn {
    height: 44px;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 20px;
  }

  .activity-lottery-records__btn-icon {
    width: 16px;
    height: 16px;
  }
}
