/* 签到页 */
.ck-page { padding-bottom: 24px; background: #f5f5f5; min-height: 100vh; }

.ck-hero {
  position: relative;
  padding: 12px 14px 72px;
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8a65 45%, #ffb74d 100%);
  color: #fff;
  overflow: hidden;
}
.ck-hero::before,
.ck-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.ck-hero::before { width: 120px; height: 120px; top: -30px; right: 20px; }
.ck-hero::after { width: 80px; height: 80px; bottom: 40px; left: -20px; }

.ck-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 44px;
}
.ck-topbar .back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #fff;
}
.ck-topbar .back img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.ck-topbar .title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  margin-right: 36px;
}

.ck-summary {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 8px;
  font-size: 15px;
}
.ck-summary b { font-size: 22px; font-weight: 700; margin: 0 2px; }

.ck-btn {
  position: relative;
  z-index: 2;
  display: block;
  width: 72%;
  max-width: 280px;
  margin: 18px auto 0;
  padding: 12px 0;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe566, #ffc107);
  color: #8b4513;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.ck-btn:disabled {
  opacity: 0.95;
  cursor: default;
}
.ck-btn.closed {
  background: #ccc;
  color: #666;
  box-shadow: none;
}

.ck-body { margin-top: -48px; padding: 0 12px 16px; position: relative; z-index: 3; }

.ck-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ck-month { font-size: 16px; font-weight: 600; margin-bottom: 10px; color: #333; }

.ck-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}
.ck-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px 0;
}
.ck-day {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #333;
}
.ck-day.muted { color: #ccc; }
.ck-day .dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.ck-day.signed .dot { background: #ff4d4f; color: #fff; }
.ck-day.today .dot { border: 2px solid #ff4d4f; color: #ff4d4f; }

.ck-card-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: #333; }

.ck-reward-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ck-coupon {
  flex-shrink: 0;
  width: 88px;
  height: 56px;
  background: linear-gradient(135deg, #ff6b6b, #e53935);
  border-radius: 6px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ck-coupon::before,
.ck-coupon::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: #f5f5f5;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.ck-coupon::before { left: -5px; }
.ck-coupon::after { right: -5px; }
.ck-coupon .amt { font-size: 20px; font-weight: 700; line-height: 1.1; }
.ck-coupon .unit { font-size: 11px; opacity: 0.95; }
.ck-reward-info .name { font-size: 16px; font-weight: 700; color: #333; }
.ck-reward-info .sub { font-size: 12px; color: #999; margin-top: 4px; }

.ck-progress-wrap { position: relative; height: 8px; margin: 8px 0 20px; }
.ck-progress-bg {
  position: absolute;
  left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: #eee;
  border-radius: 2px;
}
.ck-progress-bar {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: #ff4d4f;
  border-radius: 2px;
  width: 0;
  transition: width 0.3s;
}
.ck-milestones {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 12px;
  pointer-events: none;
}
.ck-milestone-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.ck-milestone-dot.done { background: #ff4d4f; }

.ck-nodes {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.ck-node {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.ck-packet {
  width: 42px;
  height: 48px;
  margin: 0 auto 4px;
  background: linear-gradient(180deg, #ff7875 0%, #f5222d 100%);
  border-radius: 6px 6px 4px 4px;
  position: relative;
  opacity: 0.45;
}
.ck-packet::after {
  content: '';
  position: absolute;
  left: 4px; right: 4px;
  top: 14px;
  height: 6px;
  background: #ffd666;
  border-radius: 2px;
}
.ck-node.reached .ck-packet { opacity: 1; }
.ck-node .day-label { font-size: 11px; color: #999; }
.ck-node .reward-label { font-size: 12px; font-weight: 600; color: #ff4d4f; margin-top: 2px; }
.ck-node .status {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  padding: 1px 8px;
  border-radius: 10px;
  border: 1px solid #ddd;
  color: #999;
}
.ck-node.reached .status {
  border-color: #ff4d4f;
  color: #ff4d4f;
}

.ck-note {
  text-align: center;
  font-size: 12px;
  color: #ff4d4f;
  padding: 4px 8px 16px;
  line-height: 1.6;
}

.ck-topbar .login-theme-btn {
  flex-shrink: 0;
  margin-left: 4px;
  background: rgba(255, 255, 255, 0.2);
  color: #fcd34d;
}
.ck-topbar .login-theme-btn:active {
  background: rgba(255, 255, 255, 0.32);
}
.ck-topbar .title {
  margin-right: 0;
}

html.xxb-theme-dark .ck-page,
html.login-theme-dark .ck-page {
  background: #12141c;
  -webkit-font-smoothing: antialiased;
}
html.xxb-theme-dark .ck-card,
html.login-theme-dark .ck-card {
  background: #252836;
  color: #f0f2f5;
}
html.xxb-theme-dark .ck-day.muted,
html.login-theme-dark .ck-day.muted {
  color: #8b93a8;
}
html.xxb-theme-dark .ck-note,
html.login-theme-dark .ck-note {
  color: #f87171;
  font-size: 14px;
  line-height: 1.55;
}
