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

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

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

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

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

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

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

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

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

/* ---------- 奖池切换（同开奖结果页） ---------- */

.activity-lottery-winners__tabs {
  display: flex;
  align-items: center;
  gap: 18px;
}

.activity-lottery-winners__tab {
  width: 120px;
  height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--color-black-alpha-5);
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 18px;
  line-height: 24px;
  color: var(--color-neutral-900);
  cursor: pointer;
  white-space: nowrap;
  transition: filter .2s;
}

.activity-lottery-winners__tab:hover {
  filter: brightness(0.97);
}

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

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

.activity-lottery-winners__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-winners__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-winners__period-globe {
  position: absolute;
  left: 85.3%;
  top: 29px;
  width: 142px;
  height: 142px;
  pointer-events: none;
}

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

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

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

.activity-lottery-winners__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-winners__period-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

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

.activity-lottery-winners__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-winners__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-winners__mine-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

/* 礼盒下方的落地阴影 */
.activity-lottery-winners__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-winners__mine-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

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

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

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

.activity-lottery-winners__mine-btn {
  flex-shrink: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 8px 0 12px;
  border-radius: 999px;
  background: var(--color-primary-500);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--text-primary);
  white-space: nowrap;
  transition: filter .2s;
}

.activity-lottery-winners__mine-btn:hover {
  filter: brightness(0.95);
}

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

/* ---------- 中奖名单（平铺不分类目） ---------- */

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

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

.activity-lottery-winners__section-bar {
  width: 6px;
  height: 28px;
  border-radius: 4px;
  background: var(--color-primary-500);
}

.activity-lottery-winners__section-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: normal;
  color: var(--text-primary);
}

.activity-lottery-winners__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-winners__rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-lottery-winners__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

/* 分隔线画在行顶：JS 按数据量隐藏尾部占位行后，最后一条可见行不会残留下边线 */
.activity-lottery-winners__row + .activity-lottery-winners__row {
  border-top: 1px solid var(--color-black-alpha-10);
}

/* [hidden] 需显式压过 display:flex（JS 按数据量隐藏多余占位行） */
.activity-lottery-winners__row[hidden] {
  display: none;
}

/* 收合态默认只露前 10 名，「查看全部」展开 */
.activity-lottery-winners__rows--collapsed .activity-lottery-winners__row:nth-child(n+11) {
  display: none;
}

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

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

.activity-lottery-winners__more {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: 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-winners__more:hover {
  color: var(--text-primary);
}

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

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

.activity-lottery-winners__more[aria-expanded="true"] .activity-lottery-winners__more-icon {
  transform: rotate(180deg);
}

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

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

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

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

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

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

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

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

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

.activity-lottery-winners__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-winners__btn--primary {
  background: var(--color-primary-500);
  color: var(--text-primary);
}

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

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

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

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

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

  .activity-lottery-winners__tabs {
    gap: 8px;
  }

  .activity-lottery-winners__tab {
    flex: 1;
    width: auto;
    min-width: 0;
    height: 32px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  .activity-lottery-winners__mine-btn {
    height: 24px;
    padding: 0 4px 0 12px;
    font-size: 12px;
    line-height: 18px;
  }

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

  .activity-lottery-winners__list-section {
    gap: 12px;
  }

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

  .activity-lottery-winners__section-title {
    font-size: 18px;
    line-height: 24px;
  }

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

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

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

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

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

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

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

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

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

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

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

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