.page-home {
  --home-gap: clamp(4rem, 8vw, 7rem);
  --home-num-size: clamp(2.8rem, 6vw, 4.5rem);
  --home-card-radius: var(--radius-lg);

  position: relative;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    radial-gradient(1100px 700px at 88% -5%, rgba(108, 59, 191, 0.38), transparent 58%),
    radial-gradient(800px 600px at -8% 45%, rgba(217, 70, 239, 0.18), transparent 55%),
    radial-gradient(900px 500px at 50% 110%, rgba(0, 229, 255, 0.12), transparent 60%);
  background-size: 64px 64px, 64px 64px, auto, auto, auto;
}

.page-home .home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(5.5rem + 24px) 0 4.5rem;
  overflow: hidden;
  isolation: isolate;
}

.page-home .home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.page-home .home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 27, 42, 0.94) 0%, rgba(13, 27, 42, 0.78) 50%, rgba(13, 27, 42, 0.35) 100%),
    linear-gradient(0deg, #0d1b2a 0%, transparent 100%);
}

.page-home .home-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.page-home .home-hero-copy {
  max-width: 720px;
}

.page-home .home-hero-copy > * {
  animation: qiusu-home-rise 0.6s var(--ease-out) both;
}

.page-home .home-hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.page-home .home-hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
.page-home .home-hero-copy > *:nth-child(3) { animation-delay: 0.2s; }
.page-home .home-hero-copy > *:nth-child(4) { animation-delay: 0.28s; }

@keyframes qiusu-home-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.page-home .home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--color-electric-blue);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 1.8rem;
}

.page-home .home-hero-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-electric-blue);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.8);
  animation: qiusu-home-pulse 2.4s ease-in-out infinite;
}

@keyframes qiusu-home-pulse {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.page-home .home-hero-title {
  font-family: var(--font-display);
  font-size: var(--font-size-hero);
  line-height: 1.04;
  color: var(--color-astronaut-white);
  margin: 0 0 1.5rem;
  letter-spacing: 0.01em;
  text-shadow: 0 0 42px rgba(108, 59, 191, 0.4);
}

.page-home .home-hero-title span {
  display: block;
  background: linear-gradient(135deg, var(--color-astronaut-white) 0%, var(--color-electric-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.page-home .home-hero-desc {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--color-stardust);
  max-width: 640px;
  margin-bottom: 2rem;
}

.page-home .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-home .home-hero-cta {
  padding: 0.9rem 2rem;
}

.page-home .home-hero-link {
  padding: 0.9rem 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-astronaut-white);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
}

.page-home .home-hero-link:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.5);
  background: rgba(0, 229, 255, 0.08);
}

.page-home .home-hero-ring {
  display: none;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.4);
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.page-home .home-hero-ring::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px dashed rgba(217, 70, 239, 0.4);
  animation: qiusu-home-spin 22s linear infinite;
}

.page-home .home-hero-ring::after {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 107, 43, 0.5);
}

@keyframes qiusu-home-spin {
  to { transform: rotate(360deg); }
}

.page-home .home-hero-ring-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--font-display);
  color: var(--color-astronaut-white);
  text-align: center;
}

.page-home .home-hero-ring-core span {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--color-stardust);
}

.page-home .home-hero-ring-core strong {
  font-size: 1.8rem;
  color: var(--color-neon-orange);
  line-height: 1.2;
}

.page-home .home-update {
  padding: var(--home-gap) 0 0;
}

.page-home .home-update-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.page-home .home-update-media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 28px 64px rgba(2, 8, 20, 0.5);
}

.page-home .home-update-media img,
.page-home .home-apple-media img,
.page-home .home-stats-media img {
  width: 100%;
  height: auto;
  display: block;
}

.page-home .home-update-copy {
  padding: 1.5rem 0;
}

.page-home .home-section-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--home-num-size);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 229, 255, 0.55);
  margin-bottom: 1rem;
}

.page-home .home-eyebrow {
  color: var(--color-neon-orange);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.page-home .home-section-title {
  font-family: var(--font-display);
  font-size: var(--font-size-section-title);
  color: var(--color-astronaut-white);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.page-home .home-text-link {
  color: var(--color-electric-blue);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.page-home .home-text-link:hover {
  text-decoration: underline;
}

.page-home .home-entrance {
  padding: var(--home-gap) 0 0;
}

.page-home .home-section-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.page-home .home-section-lead {
  color: var(--color-stardust);
  line-height: 1.7;
}

.page-home .home-entrance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.page-home .home-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.8rem 1.6rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  color: var(--color-astronaut-white);
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, background 0.35s, box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}

.page-home .home-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.page-home .home-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.45);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 22px 50px rgba(3, 8, 20, 0.6);
}

.page-home .home-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0;
  color: var(--color-astronaut-white);
  line-height: 1.3;
}

.page-home .home-card p {
  color: var(--color-stardust);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

.page-home .home-card-index,
.page-home .home-card-arrow {
  font-family: var(--font-display);
  color: var(--color-electric-blue);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

.page-home .home-card-index {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-neon-orange);
}

.page-home .home-card-arrow {
  margin-top: 0.4rem;
}

.page-home .home-apple {
  padding: var(--home-gap) 0 0;
}

.page-home .home-apple-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.page-home .home-apple-visual .home-section-title {
  margin-top: 0.6rem;
}

.page-home .home-apple-visual > p {
  color: var(--color-stardust);
  line-height: 1.7;
  margin-bottom: 0;
}

.page-home .home-apple-media {
  margin-top: 1.8rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.page-home .home-apple-list {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.page-home .home-apple-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.5rem;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}

.page-home .home-apple-item:hover {
  transform: translateY(-3px);
  border-color: rgba(108, 59, 191, 0.55);
}

.page-home .home-apple-item h3 {
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
  color: var(--color-astronaut-white);
}

.page-home .home-apple-item > p {
  color: var(--color-stardust);
  line-height: 1.7;
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
}

.page-home .home-apple-item > a {
  color: var(--color-electric-blue);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.page-home .home-apple-item > a:hover {
  text-decoration: underline;
}

.page-home .home-apple-more {
  margin-top: 0.6rem;
  border-top: 1px solid var(--color-border);
  padding-top: 0.6rem;
}

.page-home .home-apple-more summary {
  cursor: pointer;
  color: var(--color-electric-blue);
  font-size: 0.88rem;
  font-weight: 600;
  list-style: none;
}

.page-home .home-apple-more summary::-webkit-details-marker {
  display: none;
}

.page-home .home-apple-more summary::before {
  content: '+ ';
}

.page-home .home-apple-more[open] summary::before {
  content: '− ';
}

.page-home .home-apple-more p {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--color-stardust);
  line-height: 1.7;
}

.page-home .home-record {
  padding: var(--home-gap) 0 0;
}

.page-home .home-record-card {
  position: relative;
  background: linear-gradient(135deg, rgba(27, 36, 88, 0.9), rgba(108, 59, 191, 0.45), rgba(13, 27, 42, 0.95));
  border: 1px solid rgba(0, 229, 255, 0.24);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 2.2rem 1.8rem;
}

.page-home .home-record-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.18), transparent 65%);
  pointer-events: none;
}

.page-home .home-record-head {
  max-width: 560px;
  margin-bottom: 1.8rem;
}

.page-home .home-record-head .home-section-title {
  margin-bottom: 0;
}

.page-home .home-record-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.page-home .home-record-col {
  padding: 1.2rem;
  border-left: 2px solid rgba(0, 229, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.page-home .home-record-col h3 {
  color: var(--color-astronaut-white);
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.page-home .home-record-col p {
  color: var(--color-stardust);
  line-height: 1.7;
  font-size: 0.9rem;
  margin: 0 0 0.6rem;
}

.page-home .home-record-col a {
  color: var(--color-electric-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.page-home .home-record-col a:hover {
  text-decoration: underline;
}

.page-home .home-guide {
  padding: var(--home-gap) 0 0;
}

.page-home .home-guide-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.page-home .home-guide-step {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}

.page-home .home-guide-step:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 70, 239, 0.5);
}

.page-home .home-guide-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-laser-purple), var(--color-electric-blue));
  color: var(--color-astronaut-white);
  margin-bottom: 1.2rem;
  box-shadow: 0 0 30px rgba(108, 59, 191, 0.4);
}

.page-home .home-guide-step h3 {
  color: var(--color-astronaut-white);
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.page-home .home-guide-step p {
  color: var(--color-stardust);
  line-height: 1.7;
  font-size: 0.9rem;
  margin: 0;
}

.page-home .home-stats {
  padding: var(--home-gap) 0 4.5rem;
}

.page-home .home-stats-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.page-home .home-stats-copy {
  max-width: 520px;
}

.page-home .home-stats-copy .home-section-title {
  margin-bottom: 0.6rem;
}

.page-home .home-stats-copy > p {
  color: var(--color-stardust);
  line-height: 1.7;
}

.page-home .home-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.page-home .home-stat-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}

.page-home .home-stat-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 43, 0.55);
}

.page-home .home-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--color-neon-orange);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.page-home .home-stat-label {
  color: var(--color-stardust);
  font-size: 0.9rem;
}

.page-home .home-stats-media {
  margin-top: 0.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

@media (min-width: 760px) {
  .page-home .home-update-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3.5rem;
  }

  .page-home .home-update-media {
    order: 1;
  }

  .page-home .home-update-copy {
    order: 2;
  }

  .page-home .home-section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .page-home .home-section-head .home-section-num {
    margin-right: 1rem;
  }

  .page-home .home-entrance-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
      "A A B B"
      "C D B B";
  }

  .page-home .home-card-library { grid-area: A; }
  .page-home .home-card-panel { grid-area: B; }
  .page-home .home-card-record { grid-area: C; }
  .page-home .home-card-rule { grid-area: D; }

  .page-home .home-card-panel {
    background: linear-gradient(135deg, rgba(108, 59, 191, 0.5), rgba(27, 36, 88, 0.8), rgba(0, 229, 255, 0.24));
    border-color: rgba(0, 229, 255, 0.4);
  }

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

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

@media (min-width: 900px) {
  .page-home .home-hero-ring {
    display: flex;
  }

  .page-home .home-apple-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4rem;
  }

  .page-home .home-stats-inner {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 3rem;
    align-items: start;
  }

  .page-home .home-stats-media {
    grid-column: 1 / -1;
  }
}
