/* 每日签到 · 蓝色主题（与账变/安全中心 #1d84ff 一致） */

.si-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  background: #f0f4fa;
  color: #1a2332;
}

/* —— 一体化顶栏 —— */
.si-head {
  padding-bottom: 16px;
  color: #fff;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(180deg, #1565cc 0%, #1d84ff 72%, #358ef5 100%);
  box-shadow: 0 6px 20px rgba(13, 58, 110, 0.14);
  border-radius: 0 0 22px 22px;
}

.si-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
}

.si-back {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.si-nav-title {
  flex: 1;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: 0.02em;
  font-family: var(--app-display, sans-serif);
}

.si-nav-spacer {
  width: 40px;
  flex-shrink: 0;
}

.si-hero-sk {
  margin: 8px 14px 0;
}

.si-hero-panel {
  margin: 4px 14px 0;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background:
    repeating-linear-gradient(
      -18deg,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 2px,
      transparent 2px,
      transparent 10px
    ),
    radial-gradient(ellipse 85% 100% at 100% 40%, rgba(255, 255, 255, 0.16), transparent 52%),
    rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.si-hero-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.si-avatar {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 14px rgba(8, 48, 96, 0.22);
}

.si-profile-text {
  flex: 1;
  min-width: 0;
}

.si-hero-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.95);
}

.si-streak {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.si-streak strong {
  font-size: 18px;
  font-weight: 900;
}

.si-sub {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

.si-balance-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(8, 48, 96, 0.18);
  font-size: 15px;
  font-weight: 800;
  color: #1565cc;
}

.si-balance-coin {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.si-week-track {
  margin-top: 12px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.si-week-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.85) 100%);
  transition: width 0.35s ease;
}

.si-week-meta {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  text-align: right;
}

/* —— 主体卡片 —— */
.si-body {
  margin-top: 12px;
  padding: 0 14px 12px;
}

.si-card {
  margin-bottom: 12px;
  padding: 16px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(29, 132, 255, 0.08);
  box-shadow: 0 8px 24px rgba(13, 58, 110, 0.06);
}

.si-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.si-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #1a2332;
}

.si-card-title--solo {
  margin-bottom: 12px;
}

.si-rule-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  padding: 0;
  background: none;
  color: #5c6b80;
  font-size: 12px;
  font-weight: 600;
}

.si-rule-ico {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #c5d4e8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  font-style: normal;
  color: #1d84ff;
}

.si-more-link {
  border: 0;
  padding: 0;
  background: none;
  color: #1d84ff;
  font-size: 13px;
  font-weight: 700;
}

/* 7 日宫格 */
.si-reward-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.si-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 88px;
  padding: 10px 4px;
  border: 0;
  border-radius: 14px;
  background: #eef4fc;
  color: #5c6b80;
  text-align: center;
  font-family: inherit;
}

.si-cell:disabled {
  opacity: 1;
}

.si-cell.is-today:not(:disabled) {
  cursor: pointer;
  background: #e3f0ff;
  box-shadow: inset 0 0 0 2px rgba(29, 132, 255, 0.45);
}

.si-cell.is-done {
  background: linear-gradient(145deg, #358ef5 0%, #1d84ff 55%, #1565cc 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(29, 132, 255, 0.28);
}

.si-cell-day {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.92;
}

.si-cell-coin {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.si-cell.is-done .si-cell-coin {
  filter: brightness(1.05);
}

.si-cell-reward {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.si-cell--bonus {
  grid-column: span 2;
  flex-direction: row;
  justify-content: flex-start;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  text-align: left;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f2ff 100%);
  border: 1px dashed rgba(29, 132, 255, 0.25);
}

.si-bonus-coin {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
}

.si-bonus-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.si-bonus-day {
  font-size: 13px;
  font-weight: 800;
  color: #1565cc;
}

.si-bonus-line {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
}

.si-bonus-reward {
  font-size: 11px;
  font-weight: 800;
  color: #1d84ff;
}

.si-cell--bonus.is-done {
  background: linear-gradient(135deg, #4da3ff 0%, #1d84ff 55%, #1565cc 100%);
  border-style: solid;
  border-color: transparent;
  color: #fff;
}

.si-cell--bonus.is-done .si-bonus-day,
.si-cell--bonus.is-done .si-bonus-reward {
  color: #fff;
}

/* 任务列表 */
.si-task-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.si-task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #eef2f8;
}

.si-task-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.si-task-ico {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  background: #e8f4ff;
  color: #1565cc;
}

.si-task-ico img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.si-task-ico.is-share {
  background: #ffe8f0;
  color: #c2185b;
}

.si-task-ico.is-buy {
  background: #e8f8ef;
  color: #0d8a4a;
  font-size: 16px;
}

.si-task-ico.is-mall {
  background: #fff4e8;
  color: #d9480f;
  font-size: 16px;
}

.si-task-main {
  flex: 1;
  min-width: 0;
}

.si-task-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #1a2332;
  line-height: 1.35;
}

.si-task-desc {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: #7a8799;
  line-height: 1.35;
}

.si-task-btn {
  flex-shrink: 0;
  min-width: 72px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #358ef5 0%, #1d84ff 55%, #1565cc 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(29, 132, 255, 0.28);
}

.si-task-btn:disabled,
.si-task-btn.is-done {
  background: #eef2f8;
  color: #9aa8ba;
  box-shadow: none;
}

/* 精选兑换 */
.si-mall-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.si-mall-chip {
  display: block;
  padding: 10px;
  border-radius: 14px;
  background: #f5f9ff;
  border: 1px solid rgba(29, 132, 255, 0.08);
  text-decoration: none;
  color: inherit;
}

.si-mall-thumb {
  aspect-ratio: 1;
  border-radius: 12px;
  background: #e8f2ff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 800;
  color: #8eb8e8;
}

.si-mall-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.si-mall-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #333;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
}

.si-mall-cost {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 800;
  color: #1d84ff;
}

/* 规则弹层 */
.si-rule-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(13, 40, 72, 0.45);
  align-items: flex-end;
  justify-content: center;
}

.si-rule-mask.is-open {
  display: flex;
}

.si-rule-sheet {
  width: 100%;
  max-width: 480px;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  background: #fff;
}

.si-rule-sheet h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  color: #1a2332;
}

.si-rule-sheet ul {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 13px;
  color: #555;
  line-height: 1.75;
}

.si-rule-close {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 13px 0;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #358ef5, #1d84ff);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
