.home-page {
  padding-bottom: var(--page-bottom-with-nav);
  overflow-x: hidden;
}

.topbar,
.hero-banner,
.fortune,
.horoscope-card,
.event-card,
.site-footer {
  width: var(--w-content);
  margin: 0 auto;
}

.guest-hero-card,
.section-title-block {
  width: 100%;
  margin: 0 auto;
}

.topbar {
  width: var(--w-topbar);
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  margin: 0;
}

.topbar-actions {
  width: auto;
  height: 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 16px;
  height: 16px;
  border: 0;
  padding: 0;
  background: transparent;
  display: grid;
  place-items: center;
}

.icon-image {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.menu-icon {
  width: 12px;
  height: 12px;
}

.hero-banner,
.fortune,
.horoscope-card,
.event-card,
.forecast-card,
.tool-card,
.sign-card,
.featured-card,
.footer-box {
  position: relative;
  overflow: hidden;
}

.guest-hero-card {
  position: relative;
  overflow: hidden;
  min-height: clamp(230px, 58vw, 280px);
  height: auto;
  border-radius: 20px;
  background: #15161a;
  box-sizing: border-box;
  border: 1px solid #fdf5d7;
  box-shadow: 0 4px 20px 0 rgba(255, 200, 91, 0.6);
  display: none;
}

.guest-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.guest-hero-star {
  position: absolute;
  right: 14px;
  bottom: 6px;
  width: 100px;
  height: 102px;
  max-width: 28%;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
}

.guest-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: inherit;
  width: 100%;
  max-width: none;
  padding: clamp(24px, 6vw, 30px) clamp(20px, 7vw, 28px) clamp(20px, 5vw, 24px);
}

.guest-hero-title {
  margin: 0;
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(24px, 6.6vw, 28px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: normal;
  color: #ffffff;
  /* text-wrap: balance; */
  overflow-wrap: anywhere;
}

.guest-hero-desc {
  width: 100%;
  max-inline-size: 100%;
  margin: 0;
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(13px, 3.5vw, 14px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.6);
  overflow-wrap: anywhere;
}

.guest-hero-cta {
  align-self: flex-start;
  margin-top: auto;
  inline-size: fit-content;
  max-inline-size: 100%;
  padding: 10px 18px 10px 16px;
  border: 0;
  border-radius: 80px;
  background: linear-gradient(270deg, #fdf5d7 0%, #ffc85b 100%);
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(13px, 3.4vw, 14px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: normal;
  color: #000000;
  text-align: left;
  cursor: pointer;
}

.guest-hero-cta img {
  width: 15px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 auto;
}

.guest-hero-cta-label {
  min-width: 0;
  text-align: center;
  white-space: normal;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

html.zodiachub-guest-user .guest-hero-card,
.state-empty-user .guest-hero-card {
  display: flex;
}

html.is-rtl[dir="rtl"] .guest-hero-content {
  margin-left: auto;
  margin-right: 0;
  text-align: right;
}

html.is-rtl[dir="rtl"] .guest-hero-star {
  left: 14px;
  right: auto;
}

html.is-rtl[dir="rtl"] .guest-hero-cta {
  direction: rtl;
  text-align: right;
}

.zodiachub-guest-user .hero-banner,
.zodiachub-guest-user .fortune,
.state-empty-user .hero-banner,
.state-empty-user .fortune {
  display: none;
}

.hero-banner {
  min-height: var(--h-hero);
  height: auto;
  padding: 15px 23px 24px 20px;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-md);
  border: var(--border-main);
  background:
    url("../assets/images/home/hero/banner-bg.webp?v=20260417122805") center / 116% 120% no-repeat;
  box-shadow: 0 0 22px rgba(159, 175, 255, 0.18);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 241px;
  max-width: calc(100% - 126px);
  min-height: calc(var(--h-hero) - 39px);
  display: flex;
  flex-direction: column;
}

.hero-title {
  margin: 0;
  font-size: var(--fs-20);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 2;
}

.hero-date {
  margin: 0;
  margin-top: 6px;
  font-size: var(--fs-14);
  color: rgba(255, 255, 255, 0.72);
  position: relative;
  z-index: 2;
}

.hero-art {
  position: absolute;
  top: 50%;
  right: 24px;
  width: 96px;
  height: 74px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

html.is-rtl[dir="rtl"] .hero-banner {
  direction: rtl;
}

html.is-rtl[dir="rtl"] .hero-content {
  margin-left: auto;
  margin-right: 0;
  align-items: flex-end;
  text-align: right;
}

html.is-rtl[dir="rtl"] .hero-title,
html.is-rtl[dir="rtl"] .hero-date {
  width: 100%;
  text-align: right;
}

html.is-rtl[dir="rtl"] .hero-art {
  right: auto;
  left: 24px;
}

html.zodiachub-authenticated-user:not(.zodiachub-home-hero-art-ready) .hero-art {
  opacity: 0;
}

.image-placeholder,
.chip-icon,
.item-icon,
.nav-icon {
  display: grid;
  place-items: center;
  user-select: none;
}

.zodiac-figure {
  color: rgba(195, 246, 255, 0.95);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 0 16px rgba(84, 219, 255, 0.4);
}

.hero-figure {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
}

.hero-gender-badge {
  position: absolute;
  right: 14px;
  bottom: 2px;
  width: 18px;
  height: 18px;
  object-fit: contain;
  z-index: 3;
}

.fortune {
  min-height: var(--h-fortune);
  height: auto;
  max-height: 480px;
  padding: 16px 20px 16px 20px;
 
  box-sizing: border-box;
  border: var(--border-main);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(17, 20, 40, 0.24) 0%, rgba(17, 20, 40, 0.12) 100%),
    url("../assets/images/home/fortune/card-bg.webp?v=20260417122805") center 42% / cover no-repeat,
    var(--surface-1);
  box-shadow: var(--shadow-card-cyan);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@keyframes home-skeleton-loading {
  0% {
    background-position: 200% 50%;
  }
  100% {
    background-position: -200% 50%;
  }
}

.fortune-skeleton,
.fortune-skeleton > *,
.fortune-skeleton-metric {
  display: none !important;
}

.fortune .is-value-skeleton {
  color: transparent !important;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    rgba(167, 179, 236, 0.22) 22%,
    rgba(223, 230, 255, 0.5) 40%,
    rgba(167, 179, 236, 0.22) 62%
  );
  background-size: 400% 100%;
  animation: home-skeleton-loading 3.4s ease-in-out infinite;
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 4px 10px rgba(42, 54, 124, 0.12);
}

html.zodiachub-home-fortune-loading .fortune-sign,
html.zodiachub-home-fortune-loading .fortune-date,
html.zodiachub-home-fortune-loading .fortune-text,
html.zodiachub-home-fortune-loading .fortune-metric-value,
html.zodiachub-home-fortune-loading .fortune-comprehensive-score {
  color: transparent !important;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    rgba(167, 179, 236, 0.22) 22%,
    rgba(223, 230, 255, 0.5) 40%,
    rgba(167, 179, 236, 0.22) 62%
  );
  background-size: 400% 100%;
  animation: home-skeleton-loading 3.4s ease-in-out infinite;
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 4px 10px rgba(42, 54, 124, 0.12);
}

html.zodiachub-home-fortune-loading .fortune-sign {
  width: 96px;
  height: 34px;
}

html.zodiachub-home-fortune-loading .fortune-date {
  width: 96px;
  height: 20px;
  min-height: 20px;
  max-height: 20px;
  line-height: 20px;
  margin-top: 8px;
}

html.zodiachub-home-fortune-loading .fortune-text {
  width: 100%;
  height: 80px;
  min-height: 80px;
  max-height: 80px;
  margin-top: 10px;
}

html.zodiachub-home-fortune-loading .fortune-metric-value {
  width: 44px;
}

html.zodiachub-home-fortune-loading .fortune-comprehensive-score {
  width: 52px;
}

html.zodiachub-home-fortune-loading .fortune-view-more {
  display: inline-block;
  position: relative;
  color: transparent !important;
  font-size: 0;
  text-shadow: none !important;
  width: 128px;
  height: 18px;
  min-height: 18px;
  max-height: 18px;
  line-height: 18px;
  border-radius: 10px;
  margin-top: 8px;
  text-decoration: none;
  overflow: hidden;
  pointer-events: none;
  vertical-align: top;
}

html.zodiachub-home-fortune-loading .fortune-view-more span {
  visibility: hidden;
}

html.zodiachub-home-fortune-loading .fortune-view-more::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    rgba(167, 179, 236, 0.22) 22%,
    rgba(223, 230, 255, 0.5) 40%,
    rgba(167, 179, 236, 0.22) 62%
  );
  background-size: 400% 100%;
  animation: home-skeleton-loading 3.4s ease-in-out infinite;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 4px 10px rgba(42, 54, 124, 0.12);
}

html.zodiachub-home-fortune-loading .fortune-comprehensive-stars {
  position: relative;
  width: 108px;
  min-height: 16px;
}

html.zodiachub-home-fortune-loading .fortune-comprehensive-stars img {
  opacity: 0;
}

html.zodiachub-home-fortune-loading .fortune-comprehensive-stars::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 108px;
  height: 16px;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    rgba(167, 179, 236, 0.22) 22%,
    rgba(223, 230, 255, 0.5) 40%,
    rgba(167, 179, 236, 0.22) 62%
  );
  background-size: 400% 100%;
  animation: home-skeleton-loading 3.4s ease-in-out infinite;
}

.fortune-sign.is-value-skeleton-sign {
  width: 96px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  line-height: 34px;
  display: block;
}

.fortune-date.is-value-skeleton-date {
  width: 96px;
  height: 20px;
  min-height: 20px;
  max-height: 20px;
  line-height: 20px;
  display: inline-block;
  flex: 0 0 20px;
}

.fortune-metric-value.is-value-skeleton-metric {
  width: 44px;
  min-height: 36px;
  line-height: 36px;
}

.fortune-comprehensive-score.is-value-skeleton-score {
  width: 52px;
  min-height: 36px;
  line-height: 36px;
}

.fortune-text.is-value-skeleton-text {
  width: 100%;
  height: 80px;
  min-height: 50px;
  max-height: 100px;
  line-height: 24px;
  display: block;
}

.fortune-sign {
  min-height: 34px;
  line-height: 34px;
}

.fortune-date {
  width: fit-content;
  max-width: 100%;
  height: 20px;
  min-height: 20px;
  max-height: 20px;
  line-height: 20px;
  display: inline-block;
  flex: 0 0 20px;
}

.fortune-text {
  min-height: 16px;
}

.fortune-metric-value {
  min-height: 36px;
  line-height: 36px;
}

.fortune-comprehensive-score {
  min-height: 36px;
  line-height: 36px;
}

.fortune::before {
  display: none;
}

.fortune::before,
.horoscope-card::before,
.forecast-card::before,
.tool-card::before,
.sign-card::before,
.featured-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.06) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.05) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.04) 0 1px, transparent 2px),
    radial-gradient(circle at 35% 80%, rgba(255, 255, 255, 0.05) 0 1px, transparent 2px);
  pointer-events: none;
}

.tag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  box-sizing: border-box;
  border: var(--border-cyan-soft);
  background: var(--grad-pill-cyan);
  color: var(--accent-cyan);
  font-size: var(--fs-14);
  font-weight: 500;
}

.fortune-tag {
  gap: 8px;
  /* width: 158px; */
  justify-content: flex-start;
  /* padding: 0 0 0 9px; */
  backdrop-filter: blur(10px) saturate(100%);
}

.fortune-head-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}

.fortune-metrics {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.fortune-metric {
  width: 94px;
  height: 80px;
  flex: 0 1 calc((100% - 20px) / 3);
  min-width: 0;
  border-radius: 20px;
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.fortune-metric::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.26);
  pointer-events: none;
}

.fortune-metric-cause {
  background: linear-gradient(180deg, rgba(190, 204, 255, 0.16) 0%, rgba(190, 204, 255, 0.5) 100%);
  box-shadow: inset 0 1px 0 rgba(235, 241, 255, 0.36), 0 8px 18px rgba(90, 128, 255, 0.2);
}

.fortune-metric-love {
  background: linear-gradient(180deg, rgba(225, 177, 212, 0.14) 0%, rgba(225, 177, 212, 0.48) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 228, 246, 0.34), 0 8px 18px rgba(154, 94, 172, 0.2);
}

.fortune-metric-lucky {
  background: linear-gradient(180deg, rgba(159, 225, 248, 0.14) 0%, rgba(159, 225, 248, 0.5) 100%);
  box-shadow: inset 0 1px 0 rgba(213, 245, 255, 0.35), 0 8px 18px rgba(89, 168, 205, 0.2);
}

.fortune-metric-value {
  margin: 0;
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: normal;
  color: #ffffff;
  letter-spacing: normal;
}

.fortune-metric-label {
  margin: 0;
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: normal;
  text-transform: capitalize;
  letter-spacing: normal;
  color: #ffffff;
}

.fortune-metric-cause .fortune-metric-label {
  color: #beccff;
}

.fortune-metric-love .fortune-metric-label {
  color: #e1b1d4;
}

.fortune-metric-lucky .fortune-metric-label {
  color: #9fe1f8;
}

.fortune-comprehensive {
  width: 100%;
  max-width: 309px;
  height: 80px;
  border-radius: 20px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  padding: 14px 20px 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background:
    radial-gradient(26px 22px at 42% 35%, rgba(255, 245, 255, 0.28), rgba(255, 245, 255, 0)),
    radial-gradient(22px 18px at 86% 26%, rgba(255, 186, 255, 0.24), rgba(255, 186, 255, 0)),
    linear-gradient(180deg, rgba(253, 245, 215, 0.18) 0%, rgba(253, 245, 215, 0.52) 100%);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255, 250, 237, 0.42), 0 10px 20px rgba(121, 99, 166, 0.2);
}

.fortune-comprehensive::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.fortune-comprehensive-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

html.is-rtl[dir="rtl"] .fortune,
html.is-rtl[dir="rtl"] .fortune-head-row,
html.is-rtl[dir="rtl"] .fortune-sign,
html.is-rtl[dir="rtl"] .fortune-date,
html.is-rtl[dir="rtl"] .fortune-text,
html.is-rtl[dir="rtl"] .fortune-view-more {
  direction: rtl;
  text-align: right;
}

html.is-rtl[dir="rtl"] .fortune-head-row {
  justify-content: flex-end;
}

html.is-rtl[dir="rtl"] .fortune-tag {
  margin-left: auto;
  margin-right: 0;
  flex-direction: row-reverse;
}

html.is-rtl[dir="rtl"] .fortune-tag span {
  text-align: right;
}

.fortune-comprehensive-title {
  margin: 0;
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: normal;
  text-transform: capitalize;
  letter-spacing: normal;
  color: #ffffff;
}

.fortune-comprehensive-stars {
  display: flex;
  gap: 8px;
  align-items: center;
}

html.is-rtl[dir="rtl"] .fortune-comprehensive {
  direction: rtl;
  flex-direction: row-reverse;
  padding: 14px 18px 12px 20px;
}

html.is-rtl[dir="rtl"] .fortune-comprehensive-left {
  align-items: flex-end;
  text-align: right;
}

html.is-rtl[dir="rtl"] .fortune-comprehensive-stars {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.fortune-comprehensive-stars img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.fortune-comprehensive-score {
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: normal;
  color: #ffffff;
  letter-spacing: normal;
}

.tag-icon {
  width: 14px;
  height: 16px;
  object-fit: contain;
}

.fortune-illustration {
  position: absolute;
  top: 10px;
  right: 20px;
  width: 111px;
  height: 109px;
  z-index: 1;
}

html.is-rtl[dir="rtl"] .fortune-illustration {
  right: auto;
  left: 20px;
}

.fortune-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateY(6px);
}

html.is-rtl[dir="rtl"] .fortune-illustration img {
  transform: translateY(6px) scaleX(-1);
}

.fortune-date,
.fortune-sign,
.fortune-text,
.fortune-view-more,
.mini-text.long,
.read-link,
.event-copy,
.item-meta,
.featured-card-title,
.featured-card-copy,
.footer-box p {
  position: relative;
  z-index: 1;
}

.fortune-date {
  margin: 8px 0 0;
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: normal;
  color: #ffffff;
}

.fortune-sign {
  margin: 8px 0 0;
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: normal;
  color: #9fe1f8;
}

.fortune-text {
  margin: 8px 0 0;
  width: var(--w-fortune-copy);
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.8);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(14px * 1.34 * 5);
}

.fortune-view-more {
  display: inline-block;
  margin-top: 8px;
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: normal;
  text-decoration: underline;
  color: #fdf5d7;
}

.section-title-block .title-section {
  margin: 0;
  font-size: var(--fs-18);
  font-weight: 700;
}

.zodiac-strip {
  /* height: 182px; */
}

.strip-scroll {
  --zodiac-chip-gap: 10px;
  --zodiac-strip-pad-left: 0px;
  --zodiac-strip-pad-right: 16px;
  --zodiac-strip-bleed: calc(var(--space-6) * 2);
  --zodiac-full-count: 3;
  --zodiac-peek-ratio: 0.4;
  --zodiac-chip-width: 88px;
  display: flex;
  gap: var(--zodiac-chip-gap);
  margin-top: 12px;
  width: calc(100% + var(--zodiac-strip-bleed));
  margin-right: calc(var(--zodiac-strip-bleed) * -1);
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px calc(var(--zodiac-strip-pad-right) + var(--zodiac-strip-bleed)) 14px var(--zodiac-strip-pad-left);
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
}

.strip-scroll::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .strip-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(79, 86, 166, 0.55) rgba(79, 86, 166, 0.14);
  }

  .strip-scroll::-webkit-scrollbar {
    display: block;
    height: 8px;
  }

  .strip-scroll::-webkit-scrollbar-track {
    background: rgba(79, 86, 166, 0.14);
    border-radius: 999px;
  }

  .strip-scroll::-webkit-scrollbar-thumb {
    background: rgba(79, 86, 166, 0.55);
    border-radius: 999px;
  }
}

.zodiac-chip {
  position: relative;
  flex: 0 0 var(--zodiac-chip-width);
  width: var(--zodiac-chip-width);
  min-width: var(--zodiac-chip-width);
  height: 112px;
  padding: 0 0 12px;
  border-radius: var(--radius-md);
  border: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(13, 18, 54, 0.22) 0%, rgba(13, 18, 54, 0.4) 100%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.zodiac-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.06) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.05) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.04) 0 1px, transparent 2px),
    radial-gradient(circle at 35% 80%, rgba(255, 255, 255, 0.05) 0 1px, transparent 2px);
  pointer-events: none;
}

.zodiac-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 88px;
  height: 100%;
  object-fit: cover;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

.chip-icon {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  width: 60px;
  height: 60px;
  object-fit: contain;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.zodiac-icon-taurus {
  width: 60px;
  height: 60px;
  margin-bottom: 8px;
}

.zodiac-icon-selected {
  width: 60px;
  height: 60px;
  margin-bottom: 8px;
  opacity: 1;
}

.zodiac-icon-default {
  width: 60px;
  height: 60px;
  margin-bottom: 8px;
  opacity: 0.92;
}

.zodiac-chip p,
.sign-card h3 {
  margin: 0;
  font-size: var(--fs-14);
  font-weight: 700;
}

.zodiac-chip p {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-bottom: 6px;
  font-size: 13px;
  line-height: 1.15;
  color: rgba(227, 235, 255, 0.9);
  text-shadow: 0 2px 8px rgba(8, 15, 56, 0.4);
  transition: color 0.2s ease;
}

.zodiac-chip-default {
  border: 1px solid rgba(160, 175, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(13, 18, 54, 0.22) 0%, rgba(13, 18, 54, 0.4) 100%);
}

.zodiac-chip-default p {
  color: rgba(227, 235, 255, 0.82);
}

.zodiac-chip-selected {
  border: 1px solid rgba(183, 199, 255, 0.95);
  background:
    linear-gradient(180deg, rgba(210, 225, 255, 0.14) 0%, rgba(210, 225, 255, 0.04) 100%);
  box-shadow: 0 0 0 1px rgba(183, 199, 255, 0.25), 0 8px 18px rgba(70, 88, 168, 0.26);
}

.zodiac-chip-selected .chip-icon {
  opacity: 1;
  transform: translateY(6px) scale(1.03);
}

.zodiac-chip-selected p {
  color: #f3f7ff;
}

.horoscope-card {
  width: 348px;
  padding: 14px 16px 14px;
  position: relative;
  border-radius: var(--radius-md);
  border: var(--border-main);
  background:
    linear-gradient(180deg, rgba(21, 22, 26, 0.2) 0%, rgba(21, 22, 26, 0.12) 100%),
    url("../assets/images/home/featured/card-body-bg.webp?v=20260417122805") center 60% / cover no-repeat,
    var(--surface-1);
  box-shadow: var(--shadow-card-cyan-soft);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  box-sizing: border-box;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.tag-today {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  column-gap: 8px;
  row-gap: 2px;
  width: auto;
  max-width: calc(100% - 110px);
  min-height: 28px;
  padding: 0px 14px 0px 12px;
  border-radius: 30px;
  opacity: 1;
  background: linear-gradient(270deg, rgba(159, 225, 248, 0.2) 0%, rgba(159, 225, 248, 0.2) 100%);
  border: 1px solid rgba(159, 225, 248, 0.6);
  white-space: normal;
  box-sizing: border-box;
}

.tag-today span {
  display: block;
  min-width: 0;
  max-width: 100%;
  line-height: 1.15;
  /* text-align: center; */
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.tag-today .tag-icon {
  align-self: center;
  justify-self: center;
  flex: 0 0 auto;
}

.horoscope-stars {
  position: absolute;
  top: 20px;
  right: 16px;
  z-index: 2;
  display: flex;
  gap: 4px;
  align-items: center;
  min-height: 15.52px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.horoscope-stars.is-ready {
  opacity: 1;
  visibility: visible;
}

html.is-rtl[dir="rtl"] .horoscope-card {
  direction: rtl;
}

html.is-rtl[dir="rtl"] .horoscope-stars {
  right: auto;
  left: 16px;
  flex-direction: row-reverse;
}

html.is-rtl[dir="rtl"] .mini-text.long,
html.is-rtl[dir="rtl"] .read-link {
  text-align: right;
  align-self: flex-end;
}

.horoscope-stars img {
  display: block;
  width: 16px;
  height: 15.52px;
  flex-shrink: 0;
}

.rating-star {
  display: block;
  width: 16px;
  height: 15.52px;
  flex-shrink: 0;
  object-fit: contain;
}

.mini-text.long {
  margin: 16px auto 0;
  width: 296px;
  max-width: 100%;
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  max-height: 60px;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  text-align: left;
  align-self: center;
  flex-shrink: 0;
}

.read-link {
  margin-top: 12px;
  align-self: flex-start;
  display: inline-block;
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
  color: #ffffff;
  text-decoration: none;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 767px) {
  .fortune-comprehensive {
    max-width: 100%;
  }
}

.event-card {
  height: var(--h-event);
  padding: 18px 24px 0 108px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(253, 245, 215, 0.85);
  background:
    linear-gradient(180deg, rgba(28, 24, 8, 0.38) 0%, rgba(28, 24, 8, 0.22) 100%),
    #1f1c0f;
  box-shadow: 0 12px 24px rgba(21, 18, 7, 0.18);
}

.event-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.event-star-image {
  position: absolute;
  left: 20px;
  top: 27px;
  width: 57px;
  height: 57px;
  object-fit: contain;
  z-index: 2;
}

.event-head {
  position: relative;
  z-index: 2;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 8px;
  padding: 0 16px 0 12px;
  border-radius: var(--radius-pill);
  color: #fdf5d7;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
}

.glass-gold {
  position: relative;
  border-radius: var(--radius-pill);
  box-sizing: border-box;
  border: 0;
  background: linear-gradient(180deg, rgba(253, 245, 215, 0) 0%, rgba(253, 245, 215, 0.22) 100%);
  backdrop-filter: blur(10px) saturate(100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 220, 0.12),
    0 0 18px rgba(214, 180, 91, 0.16);
}

.event-head-icon {
  width: 14.16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 auto;
}

.event-copy {
  width: 215px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
}

.event-arrow-shell {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 49px;
  height: 39px;
  display: grid;
  place-items: center;
  z-index: 2;
  background: url("../assets/images/home/event/arrow-shell-bg.svg?v=20260417122805") center / 100% 100% no-repeat;
  backdrop-filter: blur(10px) saturate(100%);
}

.event-arrow-icon {
  width: 9px;
  height: 16px;
  object-fit: contain;
  /* transform: translate(1px, 0); */
}

.forecast-grid,
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.forecast-grid.forecast-grid-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.forecast-card,
.tool-card {
  min-height: 166px;
  height: auto;
  padding: 18px 16px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(160, 175, 255, 0.9);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(9, 17, 46, 0.28) 0%, rgba(9, 17, 46, 0.5) 100%),
    url("../assets/images/all-signs-active-bg.webp?v=20260417122805") center / cover no-repeat;
  box-shadow: 0 8px 20px rgba(20, 20, 48, 0.2);
}

.forecast-weekly,
.forecast-monthly {
  width: 100%;
  min-height: 166px;
  height: auto;
  padding: 14px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.forecast-weekly {
  background:
    linear-gradient(180deg, rgba(9, 17, 46, 0.28) 0%, rgba(9, 17, 46, 0.5) 100%),
    url("../assets/images/home/forecasts/weekly-card-bg.webp?v=20260417122805") center / cover no-repeat;
}

.forecast-monthly {
  background:
    linear-gradient(180deg, rgba(9, 17, 46, 0.28) 0%, rgba(9, 17, 46, 0.5) 100%),
    url("../assets/images/home/forecasts/weekly-card-bg.webp?v=20260417122805") center / cover no-repeat;
}

.tool-card {
  height: 118px;
}

.item-meta h3 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  text-transform: capitalize;
  letter-spacing: normal;
  color: #beccff;
}

.item-meta p {
  margin: 8px auto 0;
  width: 128px;
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  text-align: center;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.6);
}

.forecast-icon {
  width: 66px;
  height: 66px;
  margin: 8px auto 10px;
  object-fit: contain;
}

.forecast-card .item-meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.forecast-card .item-meta h3 {
  font-size: 16px;
  margin: 0;
  line-height: 1;
  text-align: center;
  color: #beccff;
}

.forecast-card .item-meta p {
  width: 134px;
  margin-top: 8px;
  line-height: 1.3;
  text-align: center;
  overflow: visible;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tools-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.tool-card-birth {
  width: var(--w-content);
  padding: 20px 18px 0 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(9, 17, 46, 0.26) 0%, rgba(9, 17, 46, 0.42) 100%),
    url("../assets/images/home/tools/birth-chart-bg.png?v=20260417122805") center / cover no-repeat;
}

.tool-icon {
  width: 66px;
  height: 66px;
  object-fit: contain;
  flex: 0 0 auto;
}

.tool-card-birth .item-meta h3 {
  font-size: 16px;
  color: #beccff;
}

.tool-card-birth .item-meta p {
  width: auto;
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-align: left;
}

.all-signs {
  height: auto;
}

.signs-grid {
  display: grid;
  grid-template-columns: repeat(3, 108px);
  gap: 14px 13px;
  margin-top: 20px;
}

.sign-card {
  height: 128px;
  padding-top: 12px;
  padding-left: 6px;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  isolation: isolate;
  border-radius: var(--radius-md);
  border: 0;
  background:
    linear-gradient(180deg, rgba(13, 18, 54, 0.22) 0%, rgba(13, 18, 54, 0.4) 100%),
    url("../assets/images/all-signs-default-bg.webp?v=20260417122805") center / 100% 100% no-repeat;
}

.sign-card.active {
  border: 1px solid rgba(183, 199, 255, 0.95);
  background: url("../assets/images/all-signs-active-bg.webp?v=20260417122805") center / 170% 150% no-repeat;
  box-shadow: 0 10px 22px rgba(142, 171, 255, 0.18);
}

.sign-card::before {
  z-index: 1;
}

.sign-card > * {
  position: relative;
  z-index: 2;
}

.sign-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 3px;
  object-fit: contain;
  transform: translateY(3px);
}

.sign-card p {
  margin: 2px 0 0;
  width: 100%;
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: normal;
  text-align: center;
  color: #ffffff;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.sign-card h3 {
  width: 100%;
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  text-transform: capitalize;
  letter-spacing: normal;
  text-align: center;
  color: #ffffff;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.sign-card.active h3,
.sign-card.active p {
  color: var(--text-primary);
}

.featured {
  height: auto;
}

.featured-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.featured-head .title-section {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.featured-head a {
  flex: 0 0 auto;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.featured-scroll {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding: 0 2px 6px 2px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.featured-scroll::-webkit-scrollbar {
  display: none;
}

.featured-card {
  flex: 0 0 156px;
  width: 156px;
  flex-basis: 156px;
  height: 195px;
  padding: 0;
  border-radius: var(--radius-md);
  box-sizing: border-box;
  border: 0;
  background:
    linear-gradient(180deg, rgba(53, 38, 132, 0.1) 0%, rgba(53, 38, 132, 0.18) 100%),
    url("../assets/images/home/featured/card-body-bg.webp?v=20260417122805") center bottom / 100% 104px no-repeat;
  scroll-snap-align: start;
  box-shadow: 0 10px 22px rgba(79, 95, 190, 0.18);
  background-clip: padding-box;
}

.featured-card::before {
  inset: 1px;
  border-radius: inherit;
  z-index: 1;
}

.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid #beccff;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 3;
}

.featured-cover {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  object-fit: cover;
  border-bottom: 1px solid rgba(190, 204, 255, 0.58);
}

.featured-card-title {
  margin: 15px 0 0;
  padding: 0 15px;
  font-size: 14px;
  /* font-weight: 700; */
  line-height: 1.5;
  color: #9fe1f8;
  text-shadow: none;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(14px * 1.2 * 4);
  word-break: break-word;
}

.featured-card-copy {
  display: none !important;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(349px, calc(100vw - 24px));
  height: var(--h-bottom-nav);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  border-radius: var(--radius-nav);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.nav-item {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.nav-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 7px;
  color: transparent;
}

.nav-home {
  background: linear-gradient(180deg, #ffd36f 0%, #8a55ff 100%);
}

.nav-star {
  background: linear-gradient(180deg, #ffe17a 0%, #ff9c6f 100%);
}

.nav-planet {
  background: linear-gradient(180deg, #7cb3ff 0%, #3156ff 100%);
}

.nav-user {
  background: linear-gradient(180deg, #ff8585 0%, #d64949 100%);
}

.nav-item.active {
  color: var(--text-primary);
}

@media (max-width: 767px) {
  .topbar,
  .hero-banner,
  .fortune,
  .section-title-block,
  .horoscope-card,
  .event-card,
  .site-footer {
    width: 100%;
  }

  .forecast-grid,
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

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

  .fortune-text,
  .mini-text.long {
    width: 100%;
    max-width: 100%;
  }

  .strip-scroll {
    --zodiac-chip-width: 88px;
    --zodiac-strip-bleed: calc(var(--space-6) * 2);
  }

  .guest-hero-cta {
    max-inline-size: 100%;
  }
}

@media (max-width: 359px) {
  .guest-hero-content {
    width: 100%;
    max-width: none;
    padding-inline-end: 20px;
  }

  .guest-hero-star {
    width: 80px;
    height: 82px;
    right: 10px;
    bottom: 8px;
  }

  html.is-rtl[dir="rtl"] .guest-hero-star {
    left: 10px;
    right: auto;
  }

  .guest-hero-cta {
    inline-size: 100%;
    max-inline-size: none;
    justify-self: stretch;
    justify-content: center;
  }
}
