:root {
  --bg-top: #fff8e9;
  --bg-bottom: #eff8ff;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: #ffffff;
  --line: rgba(36, 53, 74, 0.08);
  --text: #21324a;
  --muted: #63748a;
  --blue: #1778dc;
  --orange: #ff6b12;
  --yellow: #ffd35c;
  --mint: #43c28d;
  --shadow: 0 26px 52px rgba(43, 76, 109, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Trebuchet MS", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 211, 92, 0.38), transparent 28%),
    radial-gradient(circle at right 10%, rgba(23, 120, 220, 0.2), transparent 30%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  overflow-x: hidden;
}

.portal-page,
.coming-page {
  position: relative;
}

.portal-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.portal-glow-one {
  top: 70px;
  left: -70px;
  width: 240px;
  height: 240px;
  background: rgba(255, 190, 71, 0.22);
}

.portal-glow-two {
  top: 340px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: rgba(23, 120, 220, 0.16);
}

.portal-glow-three {
  bottom: 80px;
  left: 16%;
  width: 180px;
  height: 180px;
  background: rgba(67, 194, 141, 0.16);
}

.portal-shell,
.coming-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 28px));
  margin: 18px auto 48px;
}

.portal-topbar,
.hero-panel,
.apps-panel,
.highlights-panel,
.coming-card {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.portal-topbar {
  overflow: hidden;
  padding: 16px 20px;
  border-radius: 30px;
}

.portal-topbar-track {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 100%;
  transform-origin: left center;
  will-change: transform;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  flex: 0 0 auto;
}

.portal-brand-logo {
  display: block;
  width: auto;
  height: clamp(40px, 4.8vw, 54px);
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(23, 120, 220, 0.14));
}

.portal-nav {
  display: flex;
  gap: clamp(6px, 1vw, 12px);
  flex-wrap: nowrap;
  min-width: 0;
  white-space: nowrap;
  flex: 0 0 auto;
}

.portal-nav a,
.hero-button,
.app-link {
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.portal-nav a {
  padding: clamp(7px, 1vw, 10px) clamp(8px, 1.2vw, 14px);
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
  font-size: clamp(11px, 1.35vw, 14px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(36, 53, 74, 0.08);
}

.portal-nav a:hover,
.hero-button:hover,
.app-link:hover {
  transform: translateY(-2px);
}

.portal-main {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.98fr);
  gap: 26px;
  padding: 34px;
  border-radius: var(--radius-xl);
}

.hero-copy {
  display: grid;
  align-content: center;
}

.hero-kicker,
.section-kicker,
.hero-stage-badge,
.app-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-kicker,
.section-kicker {
  width: fit-content;
  background: rgba(255, 211, 92, 0.26);
  color: #996300;
}

.section-head h2,
.coming-card h1 {
  margin: 14px 0 12px;
  line-height: 1.06;
  font-family: "Marker Felt", "Avenir Next Condensed", "Avenir Next", sans-serif;
}

.hero-kicker {
  letter-spacing: 0.02em;
}

.hero-logo-wrap {
  width: fit-content;
  margin-bottom: 18px;
}

.hero-logo-image {
  display: block;
  width: min(100%, 520px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 36px rgba(23, 120, 220, 0.16));
}

.hero-copy p,
.section-head p,
.app-card p,
.highlight-card p,
.coming-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
}

.hero-button-primary,
.app-link-live {
  color: white;
  background: linear-gradient(135deg, #1778dc 0%, #0d64bf 100%);
  box-shadow: 0 16px 26px rgba(23, 120, 220, 0.22);
}

.hero-button-secondary,
.app-link {
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(36, 53, 74, 0.08);
  box-shadow: 0 12px 22px rgba(36, 53, 74, 0.08);
}

.hero-stage {
  display: grid;
  align-items: center;
}

.hero-stage-card {
  padding: 24px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(255, 107, 18, 0.18), transparent 28%),
    radial-gradient(circle at left center, rgba(23, 120, 220, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.95));
  border: 1px solid rgba(36, 53, 74, 0.08);
}

.hero-stage-top {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-stage-badge {
  background: rgba(23, 120, 220, 0.12);
  color: var(--blue);
}

.hero-stage-badge-soft {
  background: rgba(255, 107, 18, 0.14);
  color: var(--orange);
}

.hero-stage-stack {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.mini-app-card {
  padding: 18px;
  border-radius: 24px;
  color: white;
  box-shadow: 0 16px 28px rgba(36, 53, 74, 0.12);
}

.mini-app-card span {
  display: block;
  opacity: 0.88;
  font-size: 13px;
}

.mini-app-card strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.12;
}

.mini-app-card-word {
  background: linear-gradient(135deg, #1778dc 0%, #45a4ff 100%);
}

.mini-app-card-write {
  background: linear-gradient(135deg, #ff8a1c 0%, #ff6100 100%);
}

.mini-app-card-math {
  background: linear-gradient(135deg, #44b47d 0%, #6fdaab 100%);
}

.apps-panel,
.highlights-panel {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
}

.apps-grid,
.highlights-grid {
  display: grid;
  gap: 18px;
}

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

.app-card,
.highlight-card {
  min-width: 0;
  padding: 20px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.96));
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(36, 53, 74, 0.06);
}

.app-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-card-live {
  background:
    radial-gradient(circle at top right, rgba(23, 120, 220, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 255, 0.96));
}

.app-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.app-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  font-size: 22px;
  font-weight: 800;
  color: white;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-icon-word {
  padding: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(36, 53, 74, 0.08);
}

.app-icon-write {
  background: linear-gradient(135deg, #ff8a1c 0%, #ff6100 100%);
}

.app-icon-math {
  background: linear-gradient(135deg, #44b47d 0%, #6fdaab 100%);
}

.app-icon-read {
  background: linear-gradient(135deg, #1778dc 0%, #6fbaff 100%);
}

.app-status {
  background: rgba(36, 53, 74, 0.08);
  color: var(--muted);
}

.app-status-live {
  background: rgba(67, 194, 141, 0.14);
  color: #217950;
}

.app-card h3 {
  margin: 18px 0 10px;
  font-size: 26px;
}

.app-copy-title,
.app-copy-body {
  display: block;
}

.app-copy-body {
  margin-top: 8px;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 16px;
}

.app-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(36, 53, 74, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.app-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  width: 100%;
  margin-top: auto;
  border-radius: 16px;
  font-weight: 800;
}

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

.highlight-card strong {
  display: block;
  font-size: 20px;
  margin-bottom: 10px;
}

.portal-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 20px 8px 0;
}

.portal-footer p,
.portal-footer a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.coming-shell {
  display: grid;
  min-height: calc(100vh - 36px);
  place-items: center;
}

.coming-card {
  width: min(720px, 100%);
  padding: 34px;
  border-radius: 34px;
  text-align: center;
}

.coming-card h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.coming-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

@media (max-width: 980px) {
  .hero-panel,
  .section-head {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .apps-grid,
  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .portal-shell,
  .coming-shell {
    width: min(100vw - 16px, 100%);
    margin: 12px auto 26px;
  }

  .portal-topbar,
  .hero-panel,
  .apps-panel,
  .highlights-panel,
  .coming-card {
    padding: 18px;
    border-radius: 24px;
  }

  .portal-topbar {
    padding: 14px 16px;
  }

  .portal-topbar-track {
    gap: 12px;
  }

  .hero-actions,
  .coming-actions,
  .portal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-brand {
    flex: 0 1 auto;
  }

  .portal-brand-logo {
    height: 34px;
  }

  .portal-nav {
    gap: 5px;
    flex: 0 0 auto;
  }

  .portal-nav a {
    padding: 6px 7px;
    font-size: 9px;
  }

  .hero-logo-image {
    width: min(100%, 420px);
  }

  .hero-button,
  .app-link {
    width: 100%;
  }

  .portal-footer {
    padding: 16px 2px 0;
  }
}

@media (max-width: 420px) {
  .portal-topbar {
    padding: 12px 14px;
  }

  .portal-topbar-track {
    gap: 10px;
  }

  .portal-brand-logo {
    height: 30px;
  }

  .portal-nav {
    gap: 4px;
  }

  .portal-nav a {
    padding: 5px 6px;
    font-size: 8px;
  }
}
