/* Registration page — Chongqing 2570
   Palette taken from the posters: midnight blue, lacquer red, lantern gold, warm paper. */
:root {
  --navy: #0e2340;
  --navy-2: #163457;
  --red: #b3121f;
  --red-dark: #8a0d18;
  --gold: #e3b95f;
  --gold-soft: #fff4d8;
  --paper: #f6f2ea;
  --card: #ffffff;
  --ink: #15233a;
  --muted: #667286;
  --line: #e6e0d4;
  --danger-bg: #fff1f2;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(14, 35, 64, .08);
  --font: "Noto Sans Thai", "Sarabun", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Prompt", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); }
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand .crest {
  flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 2px var(--gold), 0 6px 16px rgba(0, 0, 0, .25);
}
.brand .crest img { display: block; height: 42px; width: auto; }
.brand-text { display: grid; line-height: 1.25; min-width: 0; }
.brand-text b { color: #fff; font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: .01em; }
.brand-text small { color: var(--gold); font-size: 12.5px; font-weight: 500; }
.topnav { display: flex; gap: 4px; }
.topnav a {
  padding: 8px 16px; border-radius: 999px; color: #e9dfc8; font-size: 14px; font-weight: 500;
  transition: background .15s;
}
.topnav a:hover { background: rgba(255, 255, 255, .1); }
.topnav a[aria-current="page"] { background: var(--red); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(ellipse 60% 80% at 85% 10%, rgba(179, 18, 31, .55), transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 100%, rgba(227, 185, 95, .16), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  border-bottom: 4px solid var(--gold);
}
.hero::before {
  content: "重庆大学"; position: absolute; right: -2%; bottom: -12%;
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-weight: 900;
  font-size: clamp(120px, 22vw, 300px); line-height: 1; letter-spacing: .04em;
  color: rgba(255, 255, 255, .035); pointer-events: none; white-space: nowrap;
}
.hero .wrap {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 48px; align-items: center; padding: 56px 0 60px;
}
.eyebrow {
  display: inline-block; margin-bottom: 14px; color: var(--gold);
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.hero h1 {
  margin-bottom: 14px; font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 54px); line-height: 1.25; font-weight: 700;
}
.hero h1 em { display: block; font-style: normal; color: #ffe2a0; }
.hero .lead { max-width: 520px; margin-bottom: 26px; color: #d7dde8; font-size: 17px; }

.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; }
.facts li {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px;
  background: rgba(255, 255, 255, .07); font-size: 14px;
}
.facts b { color: #ffe2a0; font-weight: 600; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 26px; border: 0; border-radius: 12px;
  font-weight: 600; font-size: 16px; cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn-gold { background: var(--gold); color: #3b2a05; box-shadow: 0 8px 22px rgba(227, 185, 95, .3); }
.btn-gold:hover { background: #f0c773; transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(179, 18, 31, .25); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn[disabled] { opacity: .7; cursor: wait; transform: none; }
.link-quiet { color: #cfd6e3; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }

.hero-poster { justify-self: center; width: min(340px, 100%); }
.hero-poster a {
  display: block; padding: 8px; border-radius: 22px; background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25); transform: rotate(2deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35); transition: transform .25s;
}
.hero-poster a:hover { transform: rotate(0) scale(1.02); }
.hero-poster img { display: block; width: 100%; height: auto; border-radius: 16px; }

/* ---------- Steps ---------- */
.steps {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: -28px auto 0; padding: 0; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.steps li { min-width: 0; }
.steps a {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px 22px;
  border-right: 1px solid var(--line);
}
.steps li:last-child a { border-right: 0; }
.steps .n {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: #eef0f3; color: var(--muted); font-weight: 600; font-size: 15px;
}
.steps [aria-current="step"] .n { background: var(--red); color: #fff; }
.steps b, .steps small { display: block; }
.steps b { font-size: 15px; line-height: 1.3; }
.steps small { color: var(--muted); font-size: 12px; }

/* ---------- Highlights ---------- */
.highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 40px auto 0; }
.highlight {
  padding: 22px; background: var(--card); border: 1px solid var(--line);
  border-top: 3px solid var(--gold); border-radius: var(--radius);
}
.highlight .ico {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px;
  border-radius: 12px; background: var(--gold-soft); font-size: 22px;
}
.highlight h3 { margin-bottom: 6px; font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.highlight p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Main layout ---------- */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start;
  margin: 44px auto 64px;
}
.layout > * { min-width: 0; }

.section-head { margin-bottom: 18px; scroll-margin-top: 20px; }
.section-head h2 { margin-bottom: 4px; font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.section-head p { margin: 0; color: var(--muted); }

.alert {
  margin-bottom: 18px; padding: 14px 16px; border: 1px solid #bfe3cf; border-radius: 12px;
  background: #ecf9f2; color: #0d5e3a; font-weight: 500;
}
.alert.danger { border-color: #f1c4c8; background: var(--danger-bg); color: var(--red-dark); }
.alert ul { margin: 8px 0 0; padding-left: 20px; }

.card {
  padding: 32px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}

fieldset { min-width: 0; margin: 0 0 30px; padding: 0; border: 0; }
legend {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 0 0 18px;
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
}
legend .badge {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--navy); color: var(--gold); font-size: 13px; font-weight: 600;
}
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 16px; }
.col-6 { grid-column: span 6; }
.col-3 { grid-column: span 3; }
.col-2 { grid-column: span 2; }

.field { display: grid; gap: 6px; align-content: start; }
.field > span { font-size: 14px; font-weight: 600; }
.field > span i { color: var(--red); font-style: normal; }
.field small { color: var(--muted); font-size: 12px; }

input, select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; color: var(--ink);
  background: #fcfbf8; border: 1.5px solid #ddd6c8; border-radius: 10px; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #9aa3b0; }
input:hover, select:hover, textarea:hover { border-color: #c4bba8; }
input:focus, select:focus, textarea:focus {
  background: #fff; border-color: var(--red); box-shadow: 0 0 0 4px rgba(179, 18, 31, .1);
}
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: var(--red); background: var(--danger-bg); }

.submit-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.submit-bar p { margin: 0; color: var(--muted); font-size: 13px; max-width: 320px; }
.submit-bar .btn { min-width: 280px; }

/* ---------- Sidebar ---------- */
.sidebar { display: grid; gap: 16px; }
@media (min-width: 981px) { .sidebar { position: sticky; top: 20px; } }

.price-card {
  position: relative; overflow: hidden; padding: 28px; color: #fff; border-radius: var(--radius);
  background: radial-gradient(circle at 100% 0, rgba(227, 185, 95, .3), transparent 50%),
              linear-gradient(145deg, #a40f1c, #6f0a15);
  box-shadow: 0 16px 36px rgba(138, 13, 24, .28);
}
.price-card .label { color: #ffe2a0; font-size: 13px; }
.price-card .amount { margin: 2px 0 4px; font-family: var(--font-display); font-size: 44px; font-weight: 700; line-height: 1.2; }
.price-card .amount small { font-size: 16px; font-weight: 400; color: #ffe9bf; }
.price-card .note { margin: 0; font-size: 13px; color: #ffe9bf; }

.side-card { padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.side-card h3 { margin-bottom: 12px; font-family: var(--font-display); font-size: 16px; font-weight: 600; }

.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.timeline li:last-child { border-bottom: 0; padding-bottom: 0; }
.timeline .dot {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold-soft); color: var(--red-dark); font-size: 13px; font-weight: 700;
}
.timeline div { flex: 1; min-width: 0; line-height: 1.4; }
.timeline b { display: block; font-size: 14px; font-weight: 600; }
.timeline small { color: var(--muted); font-size: 12px; }
.timeline strong { font-size: 15px; white-space: nowrap; }

.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.checks li { display: flex; gap: 10px; align-items: baseline; }
.checks li::before { content: "✓"; flex: none; color: #16734a; font-weight: 700; }
.checks li.no { color: var(--red-dark); font-weight: 600; }
.checks li.no::before { content: "✕"; color: var(--red); }

.contact-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.contact-list li::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--gold); }

.paid-link {
  display: block; padding: 14px 18px; text-align: center; border: 1.5px dashed #cdbf9f; border-radius: 12px;
  color: var(--red-dark); font-size: 14px; font-weight: 600; transition: background .15s;
}
.paid-link:hover { background: var(--gold-soft); }

/* ---------- Footer ---------- */
.footer { padding: 28px 16px; text-align: center; color: #d9cfb8; background: var(--navy); border-top: 3px solid var(--gold); font-size: 14px; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 40px 0 52px; gap: 32px; }
  .hero-poster { display: none; }
  .layout { grid-template-columns: 1fr; margin-top: 32px; }
  .sidebar { order: -1; grid-template-columns: 1fr 1fr; }
  .price-card { grid-column: 1 / -1; }
  .highlights { grid-template-columns: 1fr; margin-top: 28px; }
  .highlight { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
  .highlight .ico { grid-row: span 2; margin: 0; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 24px); }
  .topbar .wrap { padding: 10px 0; }
  .topbar .wrap { flex-direction: column; align-items: stretch; gap: 10px; }
  .topnav { justify-content: space-between; padding: 3px; background: rgba(255, 255, 255, .07); border-radius: 999px; }
  .topnav a { flex: 1; text-align: center; }
  .brand { gap: 9px; }
  .brand .crest { width: 44px; height: 44px; }
  .brand .crest img { height: 34px; }
  .brand-text b { font-size: 14px; }
  .brand-text small { font-size: 11px; }
  .topnav { gap: 0; }
  .topnav a { padding: 7px 9px; font-size: 12.5px; white-space: nowrap; }
  .hero .lead { font-size: 15px; }
  .cta-row .btn { width: 100%; }
  .steps { margin-top: -22px; }
  .steps a { flex-direction: column; text-align: center; gap: 6px; padding: 14px 4px; }
  .steps small { display: none; }
  .steps b { font-size: 12px; }
  .steps .n { width: 30px; height: 30px; font-size: 13px; }
  .card { padding: 22px 16px; }
  .section-head h2 { font-size: 24px; }
  .grid { gap: 16px 12px; }
  .col-3 { grid-column: span 6; }
  .col-2 { grid-column: span 3; }
  .sidebar { grid-template-columns: 1fr; }
  .price-card .amount { font-size: 38px; }
  .submit-bar { flex-direction: column; align-items: stretch; }
  .submit-bar p { max-width: none; text-align: center; }
  .submit-bar .btn { min-width: 0; width: 100%; }
  input, select, textarea { font-size: 16px; }
  .mobile-cta {
    position: fixed; inset: auto 0 0 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--line); backdrop-filter: blur(8px); transform: translateY(110%); transition: transform .25s;
  }
  .mobile-cta.show { transform: none; }
  .mobile-cta span { font-size: 12px; color: var(--muted); line-height: 1.3; }
  .mobile-cta b { display: block; font-size: 17px; color: var(--red-dark); }
  .mobile-cta .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; }
  .footer { padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
