/* 星座运势页面 */

.hs-layout {
  display: grid;
  grid-template-columns: 306px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.hs-layout > * {
  min-width: 0;
}

/* ===== 星座选择 ===== */
.hs-picker {
  padding: 18px;
}

.hs-picker-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.hs-picker-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.1em;
}

.hs-picker-head span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.hs-signs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.hs-sign {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
  color: var(--ink-soft);
  text-align: left;
  transition: all 0.15s ease;
}

.hs-sign:hover {
  border-color: var(--red);
  background: var(--surface-tint);
}

.hs-sign.active {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red-deep);
  box-shadow: inset 0 0 0 1px var(--accent-shadow-soft);
}

.hs-symbol {
  flex: none;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-tint);
  color: var(--red);
  font-size: 16px;
  line-height: 1;
}

.hs-sign.active .hs-symbol {
  background: var(--red);
  color: var(--on-accent);
}

.hs-sign-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.hs-sign-text b {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.hs-sign-text em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

/* ===== 结果 ===== */
.hs-result {
  min-height: 620px;
  padding: 22px;
}

.hs-loading {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.hs-retry {
  padding: 8px 18px;
  font-size: 12px;
}

.hs-content {
  animation: hs-in 0.36s ease both;
}

@keyframes hs-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* hero */
.hs-hero {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}

.hs-symbol-big {
  flex: none;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--seal-from), var(--seal-to));
  color: var(--on-accent);
  font-size: 32px;
  line-height: 1;
  box-shadow: 0 10px 22px var(--accent-shadow);
}

.hs-hero-text {
  min-width: 0;
}

.hs-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hs-title-row h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.08em;
}

.hs-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-deep);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.hs-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.hs-headline {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.hs-key {
  flex: none;
  margin-left: auto;
  align-self: flex-start;
  padding: 8px 11px;
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* period tabs */
.hs-periods {
  display: flex;
  gap: 6px;
  margin: 16px 0;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-tint);
}

.hs-period {
  flex: 1 1 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  transition: all 0.15s ease;
}

.hs-period:hover {
  color: var(--red);
}

.hs-period.active {
  border-color: var(--line);
  background: var(--card);
  color: var(--red-deep);
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

/* scores */
.hs-scores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 16px;
  margin-bottom: 16px;
}

.hs-score {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hs-score > span {
  flex: none;
  width: 34px;
  color: var(--muted);
  font-size: 11px;
}

.hs-score-bar {
  flex: 1 1 auto;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-muted);
}

.hs-score-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
  transition: width 0.5s ease;
}

.hs-score b {
  flex: none;
  width: 25px;
  color: var(--ink-soft);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.hs-score.love .hs-score-bar i { background: #d87a8a; }
.hs-score.career .hs-score-bar i { background: var(--blue-gray); }
.hs-score.wealth .hs-score-bar i { background: var(--gold); }
.hs-score.health .hs-score-bar i { background: var(--green); }

/* lucky */
.hs-lucky {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: var(--surface-tint);
}

.hs-lucky-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hs-lucky-item span {
  color: var(--muted);
  font-size: 10px;
}

.hs-lucky-item b {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.hs-color-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border: 1px solid var(--line);
  border-radius: 50%;
  vertical-align: 0;
}

.hs-advice {
  margin: -4px 0 16px;
  padding: 11px 13px;
  border-left: 3px solid var(--red);
  border-radius: 0 10px 10px 0;
  background: var(--red-soft);
  color: var(--red-deep);
  font-size: 12px;
  line-height: 1.8;
}

/* sections */
.hs-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.hs-section {
  padding: 13px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: var(--card);
}

.hs-section:first-child {
  grid-column: 1 / -1;
  background: var(--surface-tint);
}

.hs-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.hs-section-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.hs-section-head span {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
}

.hs-section p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.85;
}

/* timeline */
.hs-timeline-wrap {
  margin-top: 18px;
}

.hs-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.hs-block-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.hs-block-head span {
  color: var(--muted);
  font-size: 10px;
}

.hs-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
}

.hs-timeline-item {
  padding: 10px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: var(--surface-tint);
}

.hs-timeline-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.hs-timeline-top b {
  color: var(--ink);
  font-size: 12px;
}

.hs-timeline-top span {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
}

.hs-timeline-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

/* yi ji */
.hs-yiji {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.hs-yiji > div {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface-tint);
}

.hs-yiji > div > b {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-family: var(--serif);
  font-size: 13px;
}

.hs-yiji .hs-yi > b {
  background: var(--green-soft);
  color: var(--green);
}

.hs-yiji .hs-ji > b {
  background: var(--danger-soft);
  color: var(--danger-deep);
}

.hs-yiji span {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.hs-note {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

/* ===== 响应式 ===== */
@media (max-width: 1060px) {
  .hs-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hs-signs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hs-loading {
    min-height: 260px;
  }
}

@media (max-width: 680px) {
  .hs-picker,
  .hs-result {
    padding: 14px;
  }

  .hs-signs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hs-sign {
    padding: 7px 6px;
  }

  .hs-sign-text em {
    display: none;
  }

  .hs-hero {
    flex-wrap: wrap;
  }

  .hs-symbol-big {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    font-size: 27px;
  }

  .hs-key {
    margin-left: 0;
  }

  .hs-scores,
  .hs-sections,
  .hs-yiji {
    grid-template-columns: minmax(0, 1fr);
  }

  .hs-section:first-child {
    grid-column: auto;
  }

  .hs-periods {
    gap: 4px;
  }

  .hs-period {
    padding: 8px 4px;
    font-size: 11px;
  }
}
