:root {
  --brand: #1463ff;
  --brand-dark: #0f3f9f;
  --orange: #ff7a1a;
  --green: #1f9d6a;
  --ink: #162033;
  --muted: #637083;
  --line: #e6ebf2;
  --bg: #f6f8fb;
  --card: #ffffff;
  --soft-blue: #edf4ff;
  --soft-orange: #fff3e8;
  --soft-green: #ecfdf5;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

body {
  padding-bottom: 78px;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 72vh;
  padding: 70px 18px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(160deg, #eaf2ff 0%, #ffffff 62%, #fff4e8 100%);
  overflow: hidden;
}

.topbar {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  color: var(--brand-dark);
}

.tagline {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(20, 99, 255, .1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 14px;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 10vw, 58px);
  line-height: 1.12;
  letter-spacing: 0;
}

.lead {
  margin: 0 0 22px;
  color: #38465a;
  font-size: 17px;
}

.lead strong {
  color: var(--brand-dark);
}

.hero-actions,
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: 850;
  font-size: 14px;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--orange);
  color: #fff;
}

.btn.secondary {
  background: #fff;
  color: var(--brand);
  border-color: rgba(20, 99, 255, .28);
}

.btn.ghost {
  background: transparent;
  color: var(--brand);
  border-color: rgba(20, 99, 255, .24);
}

.section {
  padding: 26px 16px;
}

.section.white {
  background: #fff;
}

.section h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
}

.section-desc {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
}

.grid {
  display: grid;
  gap: 10px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
}

.card.blue {
  background: var(--soft-blue);
  border-color: #cfe0ff;
}

.card.orange {
  background: var(--soft-orange);
  border-color: #ffd9b5;
}

.card.green {
  background: var(--soft-green);
  border-color: #c7f2df;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.35;
}

.card p {
  margin: 0;
  color: #48566b;
  font-size: 14px;
}

.card .meta {
  margin-top: 8px;
  color: var(--brand);
  font-weight: 850;
}

.menu-list {
  display: grid;
  gap: 10px;
}

.menu-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft-blue);
  color: var(--brand);
  font-weight: 900;
}

.menu-item h3 {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.35;
}

.menu-item p {
  margin: 0;
  color: #48566b;
  font-size: 14px;
}

.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-links .card {
  min-height: 86px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef3f9;
  color: #48566b;
  font-size: 12px;
  font-weight: 700;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 10px;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 14px 14px 46px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.step strong {
  display: block;
  margin-bottom: 4px;
}

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
}

details + details {
  margin-top: 8px;
}

summary {
  cursor: pointer;
  padding: 13px 0;
  font-weight: 850;
}

details p,
details ul {
  margin-top: 0;
  color: #48566b;
  font-size: 14px;
}

ul.clean {
  margin: 0;
  padding-left: 18px;
  color: #48566b;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-size: 13px;
}

.price-table th,
.price-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.price-table th {
  background: #f0f5fb;
  color: #42526a;
}

.notice {
  border-left: 4px solid var(--orange);
  background: #fff8f0;
  padding: 12px;
  border-radius: 8px;
  color: #5a3b18;
  font-size: 14px;
}

.apply-hero {
  min-height: 42vh;
}

.apply-form {
  display: grid;
  gap: 14px;
}

.apply-form label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 14px;
  font-weight: 850;
}

.apply-form .checkbox-line {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.apply-form .checkbox-line input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  padding: 0;
}

.apply-form .checkbox-line span {
  color: #48566b;
  font-size: 14px;
  font-weight: 700;
}

.apply-form input,
.apply-form select,
.apply-form textarea {
  width: 100%;
  border: 1px solid #cfd8e5;
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 500;
  outline: none;
}

.apply-form textarea {
  resize: vertical;
  min-height: 94px;
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(20, 99, 255, .12);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sms-line {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 8px;
}

.sms-line .btn {
  min-height: 46px;
  padding-left: 8px;
  padding-right: 8px;
}

.submit-btn {
  width: 100%;
  min-height: 48px;
}

.form-message {
  min-height: 22px;
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.form-message.success {
  color: var(--green);
}

.form-message.error {
  color: #d64545;
}

.hidden {
  display: none !important;
}

.search-box {
  background: #fff;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  padding: 14px;
  color: var(--brand-dark);
  font-weight: 850;
}

.search-box span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.contact-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.anchor-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 8px;
  margin: 12px 0 0;
}

.anchor-row a {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.metric {
  padding: 12px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}

.metric strong {
  display: block;
  color: var(--brand-dark);
  font-size: 18px;
  line-height: 1.2;
}

.metric span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.story-panel {
  background: linear-gradient(160deg, #ffffff 0%, #edf4ff 100%);
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  padding: 16px;
}

.story-panel h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.story-panel p {
  margin: 0;
  color: #48566b;
  font-size: 14px;
}

.quote {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
  border-left: 4px solid var(--brand);
  color: #334155;
  font-size: 14px;
}

.qr-box {
  min-height: 150px;
  border: 1px dashed #b8c6d8;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 18px;
}

.mini-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 20;
}

.bottom-bar .btn {
  flex: 1;
  max-width: 260px;
}

.footer {
  padding: 24px 16px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (min-width: 640px) {
  .grid.two {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 360px) {
  .topbar {
    align-items: flex-start;
  }

  .tagline {
    max-width: 120px;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }
}

.immersive-body {
  padding-bottom: 0;
  overflow: hidden;
}

.snap-page {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  background: #f6f8fb;
}

.snap-slide {
  position: relative;
  min-height: 100vh;
  padding: 76px 18px 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: linear-gradient(160deg, #eaf2ff 0%, #ffffff 62%, #fff4e8 100%);
  overflow: hidden;
}

.snap-slide.blue {
  background: linear-gradient(160deg, #eaf2ff 0%, #ffffff 62%, #eef7ff 100%);
}

.snap-slide.orange {
  background: linear-gradient(160deg, #fff4e8 0%, #ffffff 60%, #edf4ff 100%);
}

.snap-slide.green {
  background: linear-gradient(160deg, #ecfdf5 0%, #ffffff 62%, #edf4ff 100%);
}

.slide-top {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 2;
}

.slide-inner {
  width: 100%;
  max-width: 680px;
}

.slide-inner h1 {
  font-size: clamp(36px, 11vw, 60px);
}

.slide-inner .lead {
  white-space: pre-line;
}

.slide-hint {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 74px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.page-dots {
  position: fixed;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 7px;
  z-index: 30;
}

.page-dots span {
  width: 6px;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  text-indent: -999px;
  background: rgba(20, 99, 255, .22);
}

.snap-slide .grid,
.snap-slide .menu-list,
.snap-slide .quick-links,
.snap-slide .steps,
.snap-slide .feature-strip,
.snap-slide .qr-box {
  margin-top: 16px;
}

.snap-slide .card,
.snap-slide .menu-item,
.snap-slide .step,
.snap-slide .metric,
.snap-slide .qr-box {
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.menu-list.compact {
  gap: 9px;
}

.menu-list.compact .menu-item {
  color: inherit;
}

.institution-snap .slide-inner h1 {
  font-size: clamp(30px, 9vw, 54px);
}

.institution-snap .lead {
  font-size: 16px;
}

.institution-snap .slide-photo {
  display: block;
  width: 168px;
  height: 168px;
  margin: 0 0 18px;
  border-radius: 42px;
  object-fit: cover;
  border: 1px solid rgba(20, 99, 255, .14);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
}

.institution-slide .steps {
  margin-top: 14px;
}

.institution-slide .step {
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.compact-slide .step {
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.42;
}

.institution-slide .quick-links .card {
  min-height: 0;
  padding: 12px;
}

.institution-slide .quick-links h3 {
  font-size: 15px;
}

.compact-slide .slide-inner h1 {
  font-size: clamp(27px, 8vw, 46px);
}

.compact-slide .lead {
  margin-bottom: 14px;
}

.nudge-snap .slide-inner h1 {
  font-size: clamp(30px, 9vw, 54px);
}

.nudge-snap .lead {
  font-size: 16px;
}

.nudge-compare,
.nudge-value-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.nudge-compare div,
.nudge-value-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.nudge-compare strong,
.nudge-compare span {
  display: block;
}

.nudge-compare strong {
  color: var(--brand-dark);
  font-size: 17px;
}

.nudge-compare span,
.nudge-value-item {
  color: #48566b;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 420px) {
  .snap-slide {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-dots {
    display: none;
  }

  .snap-slide .quick-links {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid,
  .sms-line {
    grid-template-columns: 1fr;
  }
}
