/* ============================================================
   INDEX.CSS  —  首页专属样式
   ============================================================ */

/* ===== 页面骨架 ===== */
.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 1.5rem 3rem;
  max-width: 520px;
  margin: 0 auto;
  animation: pageEntrance 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pageEntrance {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 上半区：标题 ===== */
.hero-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  justify-content: center;
  padding-bottom: 3rem;
  text-align: center;
}

/* ===== 标题装饰 SVG ===== */
.hero-deco-bg {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, #13a5ed 0%, #47d1a3 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0 0.8rem;
  box-shadow: 0 6px 22px rgba(19, 165, 237, 0.32);
  animation: heroDecoFloat 4s ease-in-out infinite;
  flex-shrink: 0;
}
.hero-deco {
  display: block;
}
@keyframes heroDecoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* ===== hero 副标题 & 描述 ===== */
.hero-tagline {
  font-size: clamp(0.85rem, 2.4vw, 0.98rem);
  color: var(--c-text-mid);
  line-height: 1.7;
  margin-bottom: 0.55rem;
  max-width: 400px;
  text-align: center;
}
.hero-desc {
  font-size: clamp(0.78rem, 2vw, 0.88rem);
  color: var(--c-text-soft);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 360px;
  text-align: center;
}

/* ===== Stats 卡片 ===== */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  width: 100%;
  max-width: 420px;
  margin-bottom: 1.75rem;
}
.stat-card {
  padding: 1rem 0.9rem;
  border-radius: var(--r-md);
  background: #fff;
  border: 1.5px solid rgba(19, 165, 237, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
}
.stat-icon-bg {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.45rem;
  flex-shrink: 0;
}
.stat-icon {
  width: 22px;
  height: 22px;
}

/* 左列（奇数）：蓝色 */
.stats-grid .stat-card:nth-child(odd) .stat-icon-bg {
  background: rgba(19, 165, 237, 0.12);
}
.stats-grid .stat-card:nth-child(odd) .stat-icon {
  color: #13a5ed;
}
.stats-grid .stat-card:nth-child(odd) .stat-num {
  color: #13a5ed;
}

/* 右列（偶数）：绿色 */
.stats-grid .stat-card:nth-child(even) .stat-icon-bg {
  background: rgba(71, 209, 163, 0.12);
}
.stats-grid .stat-card:nth-child(even) .stat-icon {
  color: #47d1a3;
}
.stats-grid .stat-card:nth-child(even) .stat-num {
  color: #47d1a3;
}
.stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--c-orange);
  line-height: 1;
}
.stat-lbl {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-text);
}
.stat-sub {
  font-size: 0.68rem;
  color: var(--c-text-soft);
}

/* ===== 标题区 ===== */
.page-title {
  font-size: clamp(1.75rem, 5.5vw, 2.75rem);
  font-weight: 800;
  color: var(--c-text);
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.title-accent {
  color: var(--c-orange);
  position: relative;
}

/* 副标题：带边框的 pill 样式 */
.page-desc {
  display: inline-block;
  font-size: clamp(0.76rem, 2.2vw, 0.88rem);
  color: var(--c-text-mid);
  line-height: 1.6;
  padding: 0.5rem 1.3rem;
  border: 1.5px solid rgba(19, 165, 237, 0.2);
  border-radius: var(--r-pill);
  background: #fff;
  max-width: 460px;
  white-space: nowrap;
}

/* ===== 激活码区 ===== */
.activation-wrap {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.act-label {
  font-size: 0.87rem;
  color: var(--c-text-soft);
  margin-bottom: 0.9rem;
  letter-spacing: 0.03em;
}

.act-row {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}

.act-input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 1.1rem;
  border: 1.5px solid rgba(19, 165, 237, 0.22);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.82);
  color: var(--c-text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.act-input::placeholder {
  color: var(--c-text-soft);
}

.act-input:focus {
  border-color: var(--c-orange);
  box-shadow: 0 0 0 3px rgba(19, 165, 237, 0.13);
}

.act-input.is-error {
  border-color: var(--c-error);
  box-shadow: 0 0 0 3px rgba(212, 63, 63, 0.1);
}

.act-btn {
  height: 52px;
  padding: 0 1.5rem;
  background: linear-gradient(135deg, #13a5ed 0%, #47d1a3 100%);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: filter 0.18s, transform 0.14s, box-shadow 0.18s;
  box-shadow: 0 4px 18px rgba(19, 165, 237, 0.28);
}

.act-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 22px rgba(19, 165, 237, 0.38);
  transform: translateY(-1px);
}

.act-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(19, 165, 237, 0.2);
}

/* 错误提示文字 */
.act-error {
  min-height: 1.3rem;
  font-size: 0.82rem;
  color: var(--c-error);
  line-height: 1.4;
  transition: opacity 0.15s;
}

/* 已激活提示 */
.act-shortcut {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--c-text-soft);
}

.shortcut-link {
  color: var(--c-orange);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(19, 165, 237, 0.35);
  text-underline-offset: 2px;
  transition: opacity 0.15s;
}

.shortcut-link:hover {
  opacity: 0.7;
}

/* 底部版权 */
.brand-footer {
  margin-top: 2rem;
  font-size: 0.76rem;
  color: #c8c0b8;
  letter-spacing: 0.04em;
}

/* ===== 移动端：输入框与按钮竖排 ===== */
@media (max-width: 640px) {
  .page-wrap {
    padding: 3rem 1.25rem 2.5rem;
  }

  .activation-wrap {
    width: 100%;
    max-width: 100%;
  }

  .act-row {
    flex-direction: column;
    width: 100%;
  }

  .act-input {
    width: 100%;
    height: 50px;
    flex: none;
  }

  .act-btn {
    width: 100%;
    height: 50px;
  }
}

@media (max-width: 360px) {
  .page-title {
    font-size: 1.55rem;
  }
}
