/* 每日签到 · LZW 红金 + 五星红旗元素 */

.coins-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(env(safe-area-inset-bottom) + 28px);
  background: linear-gradient(180deg, #f8f2f3 0%, #f5f6f8 220px, #f0f1f4 100%);
}

.coins-hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 20px;
  color: #fff;
  background:
    radial-gradient(ellipse 55% 70% at 92% 8%, rgba(212, 160, 23, 0.28), transparent 55%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgba(200, 16, 46, 0.35), transparent 50%),
    linear-gradient(155deg, #7a1020 0%, #8b1a2a 52%, #8b1528 100%);
}
.coins-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  pointer-events: none;
}
.coins-hero-glow {
  position: absolute;
  top: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 215, 110, 0.28) 0%, transparent 70%);
  pointer-events: none;
}
.coins-hero-flag {
  position: absolute;
  top: calc(6px + env(safe-area-inset-top, 0px));
  right: -14px;
  width: 96px;
  opacity: 0.16;
  transform: rotate(8deg);
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}
.coins-hero-flag svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.coins-hero-star {
  position: absolute;
  top: calc(22px + env(safe-area-inset-top, 0px));
  left: 18px;
  font-size: 42px;
  line-height: 1;
  color: rgba(245, 215, 110, 0.1);
  pointer-events: none;
  text-shadow: 0 0 16px rgba(245, 215, 110, 0.15);
}

.coins-hero-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
}
.coins-hero-nav .back {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}
.coins-hero-nav .title-wrap {
  flex: 1;
  min-width: 0;
}
.coins-hero-nav .eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: rgba(232, 176, 106, 0.92);
}
.coins-hero-nav .title {
  font-size: 17px;
  font-weight: 800;
  font-family: var(--app-display, sans-serif);
  line-height: 1.25;
  color: #fff;
}
.coins-hero-nav .mall-link {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.coins-hero-sk {
  position: relative;
  z-index: 2;
  margin: 0 14px 12px;
}

.coins-hero-wallet {
  position: relative;
  z-index: 2;
  padding: 4px 18px 18px;
}
.coins-hero-wallet .lab {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}
.coins-hero-wallet .val {
  margin-top: 4px;
  font-family: var(--app-display, sans-serif);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
}
.coins-hero-wallet .val small {
  font-size: 15px;
  font-weight: 700;
  margin-left: 4px;
  opacity: 0.75;
}

.coins-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.coins-hero-chips .chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}
.coins-hero-chips .chip.is-on {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.coins-hero-chips .chip.accent {
  background: rgba(232, 176, 106, 0.22);
  border-color: rgba(232, 176, 106, 0.55);
  color: #ffe8b8;
}

.coins-body {
  position: relative;
  z-index: 2;
  margin-top: -4px;
  padding: 0 14px 12px;
}

.coins-sign-card {
  margin-bottom: 12px;
  padding: 16px 14px 14px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(139, 26, 42, 0.08);
  box-shadow: 0 8px 24px rgba(122, 16, 32, 0.08);
}
.coins-sign-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.coins-sign-hd .streak {
  font-size: 15px;
  font-weight: 800;
  color: #222;
}
.coins-sign-hd .streak em {
  font-style: normal;
  color: #c8102e;
}
.coins-sign-hd .tip {
  margin-top: 4px;
  font-size: 11px;
  color: #999;
  line-height: 1.45;
}
.coins-sign-hd .rule-link {
  flex-shrink: 0;
  border: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(139, 26, 42, 0.08);
  color: #8b1a2a;
  font-size: 12px;
  font-weight: 600;
}

.coins-cal-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin: 0 -2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.coins-cal-track::-webkit-scrollbar {
  display: none;
}
.coins-cal-day {
  flex: 0 0 72px;
  padding: 10px 8px 8px;
  border-radius: 14px;
  background: #f5f6f8;
  border: 1px solid #eceef2;
  text-align: center;
}
.coins-cal-day.is-done {
  background: #fdf2f4;
  border-color: rgba(200, 16, 46, 0.18);
}
.coins-cal-day.is-current {
  background: linear-gradient(180deg, #fff5f6, #fde8eb);
  border-color: rgba(200, 16, 46, 0.45);
  box-shadow: 0 6px 14px rgba(200, 16, 46, 0.16);
}
.coins-cal-day .d-num {
  font-size: 10px;
  font-weight: 700;
  color: #aaa;
  letter-spacing: 0.04em;
}
.coins-cal-day.is-done .d-num,
.coins-cal-day.is-current .d-num {
  color: #8b1a2a;
}
.coins-cal-day .d-ico {
  width: 36px;
  height: 36px;
  margin: 6px auto 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.coins-signin-ico img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  vertical-align: middle;
}
.coins-cal-day .d-reward {
  font-size: 12px;
  font-weight: 800;
  color: #333;
}

.coins-sign-btn {
  display: block;
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #c8102e 0%, #8b1a2a 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.28);
}
.coins-sign-btn:disabled {
  background: #e8eaee;
  color: #999;
  box-shadow: none;
}

.coins-section {
  margin-bottom: 12px;
  padding: 14px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(139, 26, 42, 0.06);
  box-shadow: 0 4px 16px rgba(122, 16, 32, 0.05);
}
.coins-section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.coins-section-hd .title {
  font-size: 15px;
  font-weight: 800;
  color: var(--app-primary-dark, #8b1a2a);
}
.coins-section-hd .more {
  font-size: 12px;
  font-weight: 600;
  color: #c8102e;
  text-decoration: none;
}

.coins-earn-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}
.coins-earn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 6px 10px;
  border-radius: 14px;
  background: #fafbfc;
  border: 1px solid #eef0f3;
  text-align: center;
}
.coins-earn-item .ico,
.coins-signin-ico {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 28px;
  line-height: 1;
}
.coins-earn-item .ico img,
.coins-signin-ico img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}
.coins-earn-item .t {
  margin-top: 6px;
  width: 100%;
  font-size: 12px;
  font-weight: 800;
  color: #222;
  line-height: 1.25;
}
.coins-earn-item .d {
  margin-top: 4px;
  width: 100%;
  font-size: 10px;
  color: #999;
  line-height: 1.35;
  min-height: 27px;
}

.coins-mall-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.coins-mall-scroll::-webkit-scrollbar {
  display: none;
}
.coins-mall-card {
  flex: 0 0 128px;
  padding: 10px;
  border-radius: 14px;
  background: #fafbfc;
  border: 1px solid #eceef2;
  text-decoration: none;
  color: inherit;
}
.coins-mall-card .cover {
  aspect-ratio: 1;
  border-radius: 10px;
  background: #eee;
  overflow: hidden;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.coins-mall-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.coins-mall-card .cover .ph {
  font-size: 28px;
  opacity: 0.5;
}
.coins-mall-card .name {
  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;
}
.coins-mall-card .pts {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #c8102e;
}
.coins-mall-card .pts small {
  font-size: 10px;
  font-weight: 600;
  color: #999;
}

.coins-rule-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.45);
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.coins-rule-mask.is-open {
  display: flex;
}
.coins-rule-panel {
  width: 100%;
  max-width: 480px;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  background: #fff;
}
.coins-rule-panel h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  color: var(--app-primary-dark, #8b1a2a);
}
.coins-rule-panel ul {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 13px;
  color: #555;
  line-height: 1.75;
}
.coins-rule-panel .close-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 13px 0;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #c8102e, #8b1a2a);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
