:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #8b8f97;
  --line: #ebecef;
  --accent: #2f6bff;
  --accent-soft: #eef3ff;
  --danger: #ed1c24;
  --warn: #ff9700;
  --coupon-deep: #e0182c;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.demo-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  padding: 10px;
  background: #fff;
  border: 1px dashed #c9d8ff;
  border-radius: 12px;
}
.demo-nav a {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef3ff;
  color: #2f6bff;
  text-decoration: none;
  font-weight: 600;
}
.demo-nav a.is-active {
  background: #2f6bff;
  color: #fff;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 14px 36px;
}

.panel { animation: fade .22s ease; }
.hidden { display: none !important; }
.center { text-align: center; padding: 56px 12px; color: var(--muted); }

/* —— 顶部：社交轻量 —— */
.hero {
  padding: 8px 4px 4px;
}
.hero h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.3;
}
.hero-sub {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.num-em {
  color: var(--danger);
  font-size: 20px;
  font-weight: 800;
  padding: 0 2px;
  line-height: 1;
}

.task-card {
  margin-top: 14px;
  padding: 16px;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.task-card.is-ready {
  border-color: #b7d0ff;
  box-shadow: 0 8px 22px rgba(47, 107, 255, 0.10);
}
.ready-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, #eef4ff, #f5f8ff);
}
.ready-banner-tag {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.ready-banner-text {
  font-size: 13px;
  font-weight: 600;
  color: #2a4fbf;
  line-height: 1.35;
}
.btn.claim {
  background: linear-gradient(90deg, #3d7bff, #2f6bff);
  box-shadow: 0 8px 18px rgba(47, 107, 255, 0.28);
}

.task-progress-bar {
  height: 8px;
  border-radius: 99px;
  background: #eef0f3;
  overflow: hidden;
}
.task-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #5b8cff, var(--accent));
  transition: width .35s ease;
}
.task-progress-text {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.task-meta {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.task-meta-item {
  flex: 1;
  min-width: 0;
}
.task-meta-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.task-meta-value {
  font-size: 16px;
  font-weight: 700;
}
.task-meta-value.accent { color: var(--danger); }
.sep { color: #c8cad0; font-weight: 500; margin: 0 2px; }

.coin-tip {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.last-coin-line {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
}

.btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  margin-top: 14px;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 107, 255, 0.22);
}
.btn.primary:active { filter: brightness(0.96); }
.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid #c9d8ff;
  margin-top: 10px;
}
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.is-countdown {
  opacity: 1;
  background: #9bb4f0;
  box-shadow: none;
}

.grant-tip {
  margin: 8px 0 0;
  color: #3d6fe0;
  font-size: 13px;
  text-align: center;
}
.grant-tip:empty {
  display: none;
  margin: 0;
}
.benefit-tip {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* —— 底部：对齐 shuabu-entry-modal —— */
.guide-panel {
  margin-top: 18px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.guide-coupon { margin: 0; }
.guide-coupon-face {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #ff9a3c 0%, #ff5a3c 42%, #e0182c 100%);
}
.guide-coupon-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 8px 12px 10px;
  border-radius: 0 14px 0 14px;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.guide-coupon-value {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 14px 12px;
}
.guide-coupon-value-label {
  color: rgba(255, 255, 255, 0.98);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
}
.guide-coupon-body {
  margin: 0 10px 0;
  padding: 14px 12px 8px;
  border-radius: 12px 12px 0 0;
  background: #fffaf6;
}
.guide-prize { text-align: center; }
.guide-title-coin {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  line-height: 1.45;
}
.guide-title-sub {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #5c5c5c;
  line-height: 1.45;
}
.guide-em {
  color: var(--danger);
  font-weight: 800;
  font-size: 1.08em;
  padding: 0 2px;
}
.guide-withdraw {
  margin-top: 8px;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--warn);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-coupon-teeth {
  height: 12px;
  background-color: var(--coupon-deep);
  background-image: radial-gradient(circle at 6px 12px, #ffffff 5.5px, transparent 6px);
  background-size: 12px 12px;
  background-repeat: repeat-x;
  background-position: 0 0;
}

.guide-body {
  margin-top: 14px;
  padding: 0 16px;
  font-size: 13px;
  line-height: 1.75;
  color: #666;
}
.guide-body-lead {
  margin: 0 0 6px;
  color: #ed1c24 !important;
  font-weight: 700;
  line-height: 1.55;
}
.guide-body-rest {
  margin: 0;
}

.guide-actions {
  margin-top: 16px;
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guide-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  line-height: 1.25;
}
.guide-btn-hint {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}
.guide-btn-hint.on-light { color: #999; }
.guide-btn-main {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 700;
}
.guide-btn--primary {
  background: linear-gradient(to right, #ff9700, #ed1c24);
}
.guide-btn--primary .guide-btn-main { color: #fff; }
.guide-btn--secondary {
  background: #fff;
  border: 1px solid #ed1c24;
}
.guide-btn--secondary .guide-btn-main { color: #ed1c24; }

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
