/* 成长计划页 · 白天白蓝玻璃（对齐 site-day-theme 锁定语言） */

.growth-page-body { min-height: 100vh; }

.growth-page-shell {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
}

.growth-page-main { margin-top: 1rem; }

/* —— Hero：势能条 + 卡数 + 签到 —— */
.growth-hero {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(26, 90, 150, 0.16);
  box-shadow: 0 2px 8px rgba(15, 39, 64, 0.07);
  margin-bottom: 1.5rem;
}

.growth-hero__energy { min-width: 0; }

.growth-hero__energy-num {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.growth-hero__energy-val {
  font-size: 2rem;
  font-weight: 700;
  color: #0f2740;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.growth-hero__energy-unit {
  font-size: 0.8rem;
  color: rgba(15, 39, 64, 0.55);
}

.growth-hero__energy-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(26, 90, 150, 0.12);
  overflow: hidden;
}

.growth-hero__energy-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #1f4a6e, #2a7ab0);
  transition: width 0.4s ease;
}

.growth-hero__energy-hint {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: rgba(15, 39, 64, 0.55);
}

.growth-hero__cards-count {
  text-align: center;
  padding: 0 0.5rem;
}

.growth-hero__cards-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: #15324f;
  font-variant-numeric: tabular-nums;
}

.growth-hero__cards-num small {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(15, 39, 64, 0.45);
}

.growth-hero__cards-label {
  font-size: 0.68rem;
  color: rgba(15, 39, 64, 0.5);
  margin-top: 0.15rem;
}

.growth-hero__checkin {
  font-size: 0.78rem;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

/* —— Section —— */
.growth-section { margin-bottom: 2rem; }

.growth-section__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #15324f;
  margin: 0 0 0.75rem;
}

/* —— 任务列表 —— */
.growth-tasks { display: flex; flex-direction: column; gap: 0.6rem; }

.growth-task {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(26, 90, 150, 0.14);
  box-shadow: 0 1px 3px rgba(15, 39, 64, 0.05);
  transition: border-color 0.2s;
}

.growth-task.is-done {
  border-color: rgba(110, 231, 183, 0.4);
  background: rgba(236, 253, 245, 0.6);
}

.growth-task__main { flex: 1; min-width: 0; }

.growth-task__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f2740;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.growth-task__desc {
  font-size: 0.76rem;
  color: rgba(15, 39, 64, 0.65);
  line-height: 1.5;
  margin-bottom: 0.3rem;
}

.growth-task__goal {
  font-size: 0.7rem;
  color: rgba(15, 39, 64, 0.5);
}

.growth-task__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.growth-task__reward {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1f4a6e;
  white-space: nowrap;
}

.growth-task__btn {
  font-size: 0.74rem;
  padding: 0.35rem 0.85rem;
}

.growth-task__btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* —— 标签 —— */
.growth-tag {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 600;
  background: rgba(26, 90, 150, 0.12);
  color: #1f4a6e;
}

.growth-tag--pc {
  background: rgba(180, 200, 230, 0.4);
  color: #15324f;
}

/* —— 节气卡收集墙 —— */
.growth-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.6rem;
}

.growth-card {
  position: relative;
  padding: 0.75rem 0.7rem 0.85rem;
  border-radius: 12px;
  min-height: 7rem;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(26, 90, 150, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 3px rgba(15, 39, 64, 0.05);
  overflow: hidden;
}

.growth-card.is-unlocked {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(226, 240, 250, 0.7));
}

.growth-card.is-locked {
  align-items: center;
  justify-content: center;
  background: rgba(239, 237, 232, 0.6);
  border-style: dashed;
  border-color: rgba(15, 39, 64, 0.12);
}

.growth-card__lock {
  font-size: 1.6rem;
  color: rgba(15, 39, 64, 0.25);
  margin-bottom: 0.2rem;
}

.growth-card__season {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(15, 39, 64, 0.45);
  margin-bottom: 0.15rem;
}

.growth-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: #0f2740;
  line-height: 1.2;
}

.growth-card__name-en {
  font-size: 0.62rem;
  color: rgba(15, 39, 64, 0.5);
  margin-top: 0.1rem;
}

.growth-card__line {
  font-size: 0.68rem;
  color: rgba(15, 39, 64, 0.62);
  line-height: 1.45;
  margin-top: 0.4rem;
  flex: 1;
}

.growth-card__element {
  position: absolute;
  top: 0.55rem;
  right: 0.6rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}

.growth-card--木 .growth-card__element { background: #4a9d5e; }
.growth-card--火 .growth-card__element { background: #d65d4a; }
.growth-card--金 .growth-card__element { background: #b89952; }
.growth-card--水 .growth-card__element { background: #3a7ab0; }

/* —— 状态文案 —— */
.growth-loading,
.growth-error {
  padding: 2.5rem 1rem;
  text-align: center;
  color: rgba(15, 39, 64, 0.6);
  font-size: 0.85rem;
}

.growth-error { color: #c0392b; }

/* —— 手机窄屏 —— */
@media (max-width: 640px) {
  .growth-hero {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  text-align: left;
  padding: 1rem;
  }
  .growth-hero__cards-count { text-align: left; }
  .growth-cards { grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)); }
}
