﻿:root {
  --blue: #0a3d78;
  --blue-deep: #05254d;
  --blue-soft: #eaf3ff;
  --yellow: #f0bd19;
  --yellow-soft: #fff7da;
  --ink: #172033;
  --muted: #5d6678;
  --line: #d9e2ef;
  --soft: #f6f8fc;
  --white: #ffffff;
  --green: #15803d;
  --red: #b42318;
  --shadow: 0 18px 44px rgba(10, 61, 120, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100vw - 40px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.topbar .container {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--blue);
}
.brand-name { font-weight: 900; color: var(--blue); }
.brand-sub { font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 18px; color: #25344e; font-size: 14px; white-space: nowrap; }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}
.badge.yellow { background: var(--yellow-soft); color: #7a5600; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
}
.btn.primary { background: var(--yellow); color: #0c2350; }
.btn.secondary { background: transparent; border-color: rgba(255,255,255,0.72); color: #fff; }
.btn.blue { background: var(--blue); color: #fff; }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--blue); }
.hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5,37,77,0.94) 0%, rgba(10,61,120,0.88) 58%, rgba(10,61,120,0.72) 100%),
    url("/assets/hkust-gz-campus-hero.png") center/cover no-repeat;
  padding: 66px 0 52px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 34px;
  align-items: start;
}
.hero-kicker {
  display: inline-flex;
  padding: 7px 12px;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.1);
  color: var(--yellow);
  font-weight: 900;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.06;
}
.hero-sub { max-width: 820px; margin: 0 0 24px; font-size: 18px; }
.hero-points { margin: 0 0 26px; padding: 0; list-style: none; display: grid; gap: 11px; font-size: 17px; font-weight: 800; }
.hero-points li { position: relative; padding-left: 24px; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-card {
  padding: 22px;
  border-radius: 12px;
  background: rgba(255,255,255,0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.hero-card h3 { margin: 0 0 12px; color: var(--blue); font-size: 21px; }
.section { padding: 70px 0; }
.soft { background: var(--soft); }
.eyebrow { margin: 0 0 12px; color: var(--yellow); font-size: 12px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.section-title { margin: 0 0 14px; font-size: clamp(28px, 3vw, 42px); line-height: 1.15; }
.section-lead { max-width: 860px; margin: 0 0 26px; color: var(--muted); font-size: 17px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(10,61,120,0.06);
}
.card h3 { margin: 0 0 10px; color: var(--blue); font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.list { margin: 0; padding-left: 18px; color: var(--muted); }
.list li { margin: 5px 0; }
.payment-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}
.payment-panel h4 { margin: 0 0 10px; color: var(--blue); font-size: 16px; }
.payment-grid { display: grid; grid-template-columns: minmax(0, 1fr) 156px; gap: 16px; align-items: start; }
.payment-info { margin: 0; padding-left: 18px; color: var(--muted); }
.payment-info li { margin: 5px 0; }
.payment-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 7px;
  background: var(--yellow-soft);
  color: #7a5600;
  font-weight: 900;
}
.payment-qr {
  width: 156px;
  min-height: 184px;
  display: grid;
  gap: 8px;
  justify-items: center;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.payment-qr img {
  width: 156px;
  height: 156px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.task-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.upload-control input { display: none; }
.upload-name { margin-top: 6px; color: var(--muted); font-size: 13px; }
.program-list { display: grid; gap: 14px; }
.program-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 240px;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.day { display: inline-flex; align-items: center; justify-content: center; height: 42px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); font-weight: 900; }
.side-box { padding: 16px; border-left: 1px solid var(--line); background: #fafcff; border-radius: 8px; }
.form-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(10,61,120,0.08);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #33415c; font-size: 14px; font-weight: 800; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd8e6;
  border-radius: 6px;
  font: inherit;
}
.field textarea { min-height: 100px; resize: vertical; }
.certificate-frame {
  width: 100%;
  aspect-ratio: 1120 / 790;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.certificate-frame iframe { width: 100%; height: 100%; border: 0; }
.price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-now { color: #b07a00; font-size: 34px; font-weight: 900; }
.price-old { color: #7d8697; text-decoration: line-through; font-weight: 800; }
.portal-shell { background: var(--soft); min-height: calc(100vh - 72px); padding: 38px 0 70px; }
.portal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.portal-title h1 { margin: 0 0 8px; color: var(--blue); font-size: clamp(30px, 4vw, 48px); line-height: 1.12; }
.portal-title p { margin: 0; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.stat-label { color: var(--muted); font-size: 13px; font-weight: 800; }
.stat-value { margin-top: 8px; color: var(--blue); font-size: 28px; font-weight: 900; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f4f8ff; color: var(--blue); font-size: 13px; }
tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.status.done { background: #dcfce7; color: var(--green); }
.status.wait { background: var(--yellow-soft); color: #8a6500; }
.status.risk { background: #fee4e2; color: var(--red); }
.status-select {
  min-width: 128px;
  padding: 9px 10px;
  border: 1px solid #cfd8e6;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}
.timeline { display: grid; gap: 12px; }
.task-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 120px; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.task-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 900; }
.gate {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 48px 20px;
  background: linear-gradient(135deg, #f8fbff, #edf4ff);
}
.gate-card {
  width: min(760px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}
.gate-card h1 { margin: 0 0 12px; color: var(--blue); }
.gate-card p { color: var(--muted); }
.code-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
code { padding: 3px 6px; border-radius: 5px; background: #eef4ff; color: var(--blue); }
.mobile-preview {
  width: min(430px, 100vw);
  margin: 0 auto;
  overflow-x: hidden;
  background: #fff;
  font-size: 15px;
  line-height: 1.58;
}
.mobile-preview .container {
  width: min(100vw - 20px, 100%);
}
.mobile-preview .topbar .container {
  min-height: 60px;
  gap: 10px;
}
.mobile-preview .brand-logo {
  width: 42px;
  height: 42px;
}
.mobile-preview .nav {
  display: none;
}
.mobile-preview .hero,
.mobile-preview .section,
.mobile-preview .portal-shell,
.mobile-preview .auth-shell,
.mobile-preview .doc-shell {
  padding-left: 0;
  padding-right: 0;
}
.mobile-preview .hero-grid,
.mobile-preview .grid-2,
.mobile-preview .grid-3,
.mobile-preview .grid-4,
.mobile-preview .form-grid,
.mobile-preview .stat-grid,
.mobile-preview .portal-header,
.mobile-preview .payment-grid,
.mobile-preview .program-item,
.mobile-preview .auth-grid {
  grid-template-columns: 1fr;
}
.mobile-preview .hero-grid,
.mobile-preview .portal-header,
.mobile-preview .payment-grid,
.mobile-preview .program-item,
.mobile-preview .auth-grid {
  gap: 14px;
}
.mobile-preview .hero {
  padding: 22px 0 18px;
}
.mobile-preview .hero h1 {
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 10px;
}
.mobile-preview .section {
  padding: 24px 0;
}
.mobile-preview .section-title {
  font-size: 21px;
  line-height: 1.3;
  margin-bottom: 10px;
}
.mobile-preview .section-lead,
.mobile-preview .hero-sub,
.mobile-preview .hero-note,
.mobile-preview .doc-card p,
.mobile-preview .card p,
.mobile-preview .program-item p,
.mobile-preview .form-card p {
  font-size: 14px;
  line-height: 1.62;
}
.mobile-preview .card,
.mobile-preview .hero-card,
.mobile-preview .form-card,
.mobile-preview .gate-card,
.mobile-preview .auth-panel,
.mobile-preview .doc-card {
  padding: 16px;
  border-radius: 8px;
}
.mobile-preview table {
  min-width: 620px;
  font-size: 13px;
}
.mobile-preview .payment-qr {
  width: 100%;
}
.mobile-preview .payment-qr img {
  width: 100%;
  max-width: 240px;
  height: auto;
}
.mobile-preview .task-row {
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
}
.mobile-preview .task-row strong {
  font-size: 14px;
  line-height: 1.4;
}
.mobile-preview .task-row .status {
  grid-column: 2;
}
.mobile-preview .task-actions,
.mobile-preview .hero-actions,
.mobile-preview .review-actions,
.mobile-preview .confirm-actions {
  flex-direction: column;
  align-items: stretch;
}
.mobile-preview .grid-2,
.mobile-preview .grid-3,
.mobile-preview .grid-4,
.mobile-preview .stat-grid,
.mobile-preview .form-grid,
.mobile-preview .certificate-grid {
  grid-template-columns: 1fr;
}
.mobile-preview .program-item {
  gap: 10px;
  padding: 14px;
}
.mobile-preview .program-item h3 {
  font-size: 18px;
  line-height: 1.3;
}
.mobile-preview .side-box {
  border-left: 0;
  border-top: 1px solid var(--line);
  padding-left: 0;
  padding-top: 12px;
}
.mobile-preview .certificate-frame {
  padding-top: 125%;
}
.mobile-preview .certificate-frame iframe {
  font-size: 0;
}
.mobile-preview .form-card h3,
.mobile-preview .auth-panel h1,
.mobile-preview .auth-panel h2 {
  font-size: 18px;
  line-height: 1.3;
}
.mobile-preview .form-card,
.mobile-preview .hero-card,
.mobile-preview .card,
.mobile-preview .auth-panel {
  box-shadow: none;
}
.mobile-preview .hero-points,
.mobile-preview .list,
.mobile-preview .tags {
  gap: 8px;
}
.auth-shell { min-height: calc(100vh - 72px); padding: 46px 0 72px; background: linear-gradient(135deg, #f8fbff, #edf4ff); }
.auth-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr); gap: 22px; align-items: start; }
.auth-panel { padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.auth-panel h1, .auth-panel h2 { margin: 0 0 10px; color: var(--blue); }
.auth-panel p { margin: 0 0 16px; color: var(--muted); }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.auth-tab { flex: 1; min-height: 42px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--blue); font: inherit; font-weight: 900; cursor: pointer; }
.auth-tab.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.auth-form { display: none; }
.auth-form.active { display: grid; gap: 14px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.approval-note { margin-top: 10px; color: var(--muted); font-size: 13px; }
.approval-message { margin-top: 12px; color: var(--green); font-weight: 900; }
.footer { padding: 18px 0 34px; color: var(--muted); font-size: 13px; background: #fff; }

@media (max-width: 1040px) {
  .hero-grid, .program-item, .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-box { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .container { width: min(100vw - 24px, 100%); }
  .nav { display: none; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 52px 0; }
  .grid-3, .grid-4, .stat-grid, .form-grid { grid-template-columns: 1fr; }
  .portal-header { display: grid; }
}

