.page-home {
  --home-gold: linear-gradient(135deg, #FCA311 0%, #E58E00 100%);
  --home-glow: radial-gradient(circle at 70% 20%, rgba(252,163,17,0.22) 0%, transparent 46%);
  background: #0A1128;
  color: #F8F9FA;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  overflow-x: clip;
}

.page-home img {
  max-width: 100%;
  height: auto;
}

.page-home a {
  color: #FCA311;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-home a:hover {
  color: #F8F9FA;
}

.page-home .container {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
}

.page-home .container--narrow {
  max-width: 900px;
}

.page-home .btn--ghost {
  background: transparent;
  border: 1px solid #FCA311;
  color: #FCA311;
}

.page-home .btn--ghost:hover {
  background: #14213D;
  border-color: #F8F9FA;
  color: #F8F9FA;
}

.page-home .hero-split {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  min-height: calc(100vh - 64px);
}

.page-home .hero-split::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, transparent 66%, rgba(252,163,17,0.12) 66%, rgba(252,163,17,0.12) 66.8%, transparent 66.8%);
}

.page-home .hero-split__content {
  padding: 72px 20px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  z-index: 2;
}

.page-home .hero-split__eyebrow {
  font-family: "Roboto Mono", "Courier New", monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #A8DADC;
  border-left: 3px solid #FCA311;
  padding-left: 12px;
  margin: 0;
}

.page-home .hero-split__title {
  font-family: "Montserrat Black", "Impact", "Arial Black", sans-serif;
  font-size: clamp(2.6rem, 9vw, 5.4rem);
  font-style: italic;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
}

.page-home .hero-split__lead {
  max-width: 46ch;
  font-size: 1rem;
  color: #A8DADC;
  margin: 0;
}

.page-home .hero-split__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.page-home .hero-split__meta {
  font-family: "Roboto Mono", "Courier New", monospace;
  font-size: 13px;
  color: rgba(248,249,250,0.6);
  margin: 0;
}

.page-home .hero-split__visual {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0 16px 36px;
  border-radius: 20px;
  background: #14213D;
}

.page-home .hero-split__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.page-home .hero-split__radial {
  position: absolute;
  inset: 0;
  background: var(--home-glow);
}

.page-home .hero-ring {
  position: relative;
  z-index: 1;
  width: 210px;
  height: 210px;
  filter: drop-shadow(0 0 16px rgba(252,163,17,0.35));
}

.page-home .hero-ring__track {
  fill: none;
  stroke: rgba(248,249,250,0.16);
  stroke-width: 10;
}

.page-home .hero-ring__progress {
  fill: none;
  stroke: #FCA311;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dashoffset: 12;
  transform: rotate(-90deg);
  transform-origin: center;
}

.page-home .hero-ring text {
  font-family: "Roboto Mono", "Courier New", monospace;
}

.page-home .hero-ring__value {
  font-size: 44px;
  font-weight: 700;
  text-anchor: middle;
  fill: #FCA311;
}

.page-home .hero-ring__caption {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-anchor: middle;
  fill: #A8DADC;
}

.page-home .hero-split__stat {
  position: absolute;
  z-index: 1;
  background: rgba(10,17,40,0.82);
  border: 1px solid rgba(252,163,17,0.35);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: "Roboto Mono", "Courier New", monospace;
  font-size: 12px;
  color: #F8F9FA;
  margin: 0;
}

.page-home .hero-split__stat--one {
  left: 16px;
  bottom: 20px;
}

.page-home .hero-split__stat--two {
  right: 16px;
  top: 20px;
}

.page-home .report-section,
.page-home .rank-section,
.page-home .upgrade-section {
  padding: clamp(68px, 10vw, 128px) 0;
}

.page-home .pinyin-section {
  padding: clamp(68px, 10vw, 120px) 0;
  background: linear-gradient(135deg, rgba(252,163,17,0.12) 0%, transparent 42%), #14213D;
  border-top: 1px solid rgba(252,163,17,0.28);
  border-bottom: 1px solid rgba(252,163,17,0.28);
}

.page-home .calendar-section {
  padding: clamp(68px, 10vw, 120px) 0;
}

.page-home .section-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.page-home .section-head--compact {
  gap: 12px;
}

.page-home .section-head__text {
  padding-top: 6px;
}

.page-home .section-num {
  font-family: "Montserrat Black", "Impact", "Arial Black", sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(76px, 15vw, 150px);
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: #FCA311;
  background: linear-gradient(135deg, #FCA311 0%, #E58E00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  min-width: 0.7em;
}

.page-home .section-num--sm {
  font-size: clamp(52px, 9vw, 88px);
}

.page-home h2 {
  font-family: "Montserrat Black", "Impact", "Arial Black", sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.7rem, 4.4vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.page-home .section-intro {
  max-width: 66ch;
  font-size: 1.02rem;
  color: #A8DADC;
  margin: 0;
}

.page-home .tabs--filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 8px;
}

.page-home .tabs__btn {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(252,163,17,0.55);
  border-radius: 999px;
  color: #F8F9FA;
  padding: 8px 18px;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-home .tabs__btn:hover {
  border-color: #FCA311;
  color: #FCA311;
}

.page-home .tabs__btn.is-active {
  border-color: #FCA311;
  background: linear-gradient(135deg, #FCA311 0%, #E58E00 100%);
  color: #0A1128;
  font-weight: 700;
}

.page-home .rank-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 14px;
}

.page-home .rank-tabs .tabs__btn {
  font-family: "Roboto Mono", "Courier New", monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-home [data-tab-panel][hidden] {
  display: none !important;
}

.page-home .timeline {
  position: relative;
  margin-top: 26px;
}

.page-home .timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, #FCA311 0%, rgba(252,163,17,0.14) 80%, transparent 100%);
}

.page-home .timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  align-items: start;
  background: #14213D;
  border: 1px solid rgba(168,218,220,0.08);
  border-left: 3px solid #FCA311;
  border-radius: 10px;
  padding: 18px 16px 16px 34px;
  margin-bottom: 14px;
}

.page-home .timeline__item::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 24px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #FCA311;
  box-shadow: 0 0 0 3px rgba(252,163,17,0.2);
}

.page-home .timeline__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 74px;
}

.page-home .timeline__body {
  min-width: 0;
}

.page-home .timeline__time {
  font-family: "Roboto Mono", "Courier New", monospace;
  font-size: 13px;
  color: #A8DADC;
}

.page-home .timeline__title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #F8F9FA;
  margin: 0 0 6px;
  line-height: 1.4;
}

.page-home .timeline__brief {
  font-size: 0.92rem;
  color: rgba(248,249,250,0.68);
  margin: 0;
}

.page-home .timeline__thumb {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 4px;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.page-home .timeline__group {
  margin-bottom: 26px;
}

.page-home .timeline__group-title {
  font-family: "Roboto Mono", "Courier New", monospace;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #FCA311;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-home .timeline__group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #E58E00, transparent);
}

.page-home .rank-meta {
  font-family: "Roboto Mono", "Courier New", monospace;
  font-size: 12px;
  color: rgba(168,218,220,0.85);
  margin: 10px 0 0;
}

.page-home .table-wrap {
  border: 1px solid rgba(168,218,220,0.12);
  border-radius: 12px;
  overflow: hidden;
  background: #14213D;
}

.page-home .rank-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-family: "Roboto Mono", "Courier New", monospace;
  font-size: 14px;
}

.page-home .rank-table th,
.page-home .rank-table td {
  padding: 11px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(168,218,220,0.08);
}

.page-home .rank-table th:first-child,
.page-home .rank-table td:first-child {
  text-align: left;
}

.page-home .rank-table thead th {
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FCA311;
  background: rgba(10,17,40,0.6);
}

.page-home .rank-table tbody tr:last-child td {
  border-bottom: none;
}

.page-home .rank-table tbody tr:hover {
  background: rgba(252,163,17,0.08);
}

.page-home .rank-table td:first-child {
  font-weight: 700;
  color: #FCA311;
}

.page-home .pinyin-grid {
  display: grid;
  gap: 32px;
}

.page-home .pinyin-body {
  max-width: 58ch;
}

.page-home .pinyin-body .section-intro {
  margin-top: 14px;
}

.page-home .pinyin-demo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 24px 0 12px;
}

.page-home .pinyin-demo__key {
  background: linear-gradient(135deg, #FCA311 0%, #E58E00 100%);
  color: #0A1128;
  font-family: "Roboto Mono", "Courier New", monospace;
  font-weight: 700;
  font-size: clamp(1.4rem, 5vw, 2rem);
  letter-spacing: 0.06em;
  padding: 10px 26px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(252,163,17,0.35);
}

.page-home .pinyin-demo__arrow {
  font-family: "Montserrat Black", "Impact", "Arial Black", sans-serif;
  font-style: italic;
  font-size: 1.6rem;
  color: #FCA311;
}

.page-home .pinyin-demo__result {
  background: rgba(10,17,40,0.6);
  border: 1px dashed rgba(252,163,17,0.55);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  color: #F8F9FA;
}

.page-home .pinyin-tip {
  font-size: 0.9rem;
  color: rgba(248,249,250,0.6);
  margin: 10px 0 22px;
}

.page-home kbd {
  background: #0A1128;
  border: 1px solid rgba(252,163,17,0.45);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 2px 7px;
  font-family: "Roboto Mono", "Courier New", monospace;
  font-size: 0.85em;
  color: #FCA311;
}

.page-home .pinyin-flow {
  display: grid;
  gap: 12px;
  align-content: center;
}

.page-home .pinyin-flow__item {
  background: rgba(10,17,40,0.6);
  border: 1px solid rgba(252,163,17,0.22);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: "Roboto Mono", "Courier New", monospace;
  font-size: 1rem;
  color: #FCA311;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.page-home .pinyin-flow__item span {
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  color: #F8F9FA;
  font-size: 0.92rem;
}

.page-home .calendar-card {
  display: grid;
  grid-template-columns: 1fr;
  background: #14213D;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(168,218,220,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  margin-top: 26px;
}

.page-home .calendar-card__media img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}

.page-home .calendar-card__content {
  padding: 24px;
}

.page-home .calendar-card h3 {
  font-family: "Montserrat Black", "Impact", "Arial Black", sans-serif;
  font-size: 1.35rem;
  font-style: italic;
  margin: 0 0 10px;
}

.page-home .calendar-card p {
  font-size: 0.96rem;
  color: rgba(248,249,250,0.72);
  margin: 0 0 16px;
}

.page-home .calendar-info {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
}

.page-home .calendar-info li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.page-home .calendar-info__icon {
  font-family: "Roboto Mono", "Courier New", monospace;
  font-weight: 700;
  color: #FCA311;
  min-width: 46px;
}

.page-home .calendar-line {
  font-family: "Roboto Mono", "Courier New", monospace;
  font-size: 13px;
  color: #A8DADC;
  margin-bottom: 16px;
}

.page-home .upgrade-section {
  background: linear-gradient(180deg, #0A1128 0%, #14213D 100%);
}

.page-home .stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 36px 0 22px;
}

.page-home .stat-item {
  background: rgba(10,17,40,0.55);
  border: 1px solid rgba(252,163,17,0.2);
  border-radius: 14px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .stat-item__num {
  font-family: "Roboto Mono", "Courier New", monospace;
  font-weight: 700;
  font-size: clamp(1.5rem, 4.6vw, 2.6rem);
  line-height: 1;
  color: #FCA311;
}

.page-home .stat-item__label {
  font-size: 0.8rem;
  color: rgba(248,249,250,0.66);
  font-family: "Roboto Mono", "Courier New", monospace;
}

.page-home .upgrade-note {
  border-left: 3px solid #FCA311;
  padding: 14px 18px;
  font-size: 0.97rem;
  color: rgba(248,249,250,0.78);
  background: rgba(10,17,40,0.35);
  border-radius: 0 10px 10px 0;
  margin: 0 0 24px;
}

.page-home .upgrade-section__banner {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  margin: 8px 0 26px;
  max-height: 420px;
  display: block;
}

.page-home .upgrade-extra {
  font-size: 0.95rem;
  color: rgba(248,249,250,0.68);
  max-width: 66ch;
  margin: 0 0 24px;
}

.page-home .upgrade-section__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (min-width: 768px) {
  .page-home .hero-split__visual {
    min-height: 540px;
    margin-inline: 24px;
    border-radius: 24px;
  }

  .page-home .hero-ring {
    width: 240px;
    height: 240px;
  }

  .page-home .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .calendar-card__content {
    padding: 32px;
  }

  .page-home .calendar-info {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .timeline__item {
    grid-template-columns: 96px 1fr auto;
  }

  .page-home .timeline__head {
    grid-column: 1;
  }

  .page-home .timeline__body {
    grid-column: 2;
  }

  .page-home .timeline__thumb {
    grid-column: 3;
    grid-row: 1;
    width: 180px;
    height: 110px;
    align-self: center;
    margin-top: 0;
  }

  .page-home .pinyin-flow {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .section-head {
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .page-home .hero-split {
    grid-template-columns: 1fr 1fr;
    min-height: 88vh;
  }

  .page-home .hero-split__content {
    padding: 80px clamp(24px, 4vw, 72px);
  }

  .page-home .hero-split__visual {
    margin: 40px 40px 48px 0;
    min-height: 620px;
  }

  .page-home .pinyin-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
  }

  .page-home .pinyin-flow {
    grid-template-columns: 1fr;
  }

  .page-home .calendar-card {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .stats-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .page-home .upgrade-section__banner {
    max-height: 460px;
  }
}
