:root {
  --brand: #ff6a12;
  --brand-2: #ff8a2b;
  --brand-dark: #e85a00;
  --navy: #163a8a;
  --blue: #2f6bff;
  --blue-deep: #1d4ed8;
  --ink: #222833;
  --muted: #5b6573;
  --line: #e6ecf5;
  --sky: #eef4ff;
  --sky-2: #f6f9ff;
  --white: #fff;
  --green: #22c55e;
  --shadow: 0 10px 30px rgba(22, 58, 138, 0.08);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 88px; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
ul { list-style: none; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff;
  box-shadow: 0 10px 20px rgba(255, 106, 18, .28);
}
.btn-primary:hover { box-shadow: 0 14px 24px rgba(255, 106, 18, .38); }
.btn-ghost {
  background: rgba(255,255,255,.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}
.btn-lg { height: 56px; padding: 0 36px; font-size: 18px; }
.btn-md { height: 44px; padding: 0 22px; font-size: 15px; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn-blue {
  background: linear-gradient(180deg, #4d88ff, var(--blue));
  color: #fff;
}

.section { padding: 72px 0 80px; }
.section-sky { background: linear-gradient(180deg, #f4f8ff 0%, #fff 100%); }
.section-title {
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 1px;
  margin-bottom: 42px;
  position: relative;
}
.section-title::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #86efac, var(--green));
  display: inline-block;
  margin-right: 12px;
  transform: translateY(-2px);
  box-shadow: 0 0 0 6px rgba(34,197,94,.15);
}

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 72px;
  display: flex; align-items: center;
  background: transparent;
  transition: background .25s, box-shadow .25s;
}
.header.scrolled {
  background: rgba(22, 40, 90, .94);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  backdrop-filter: blur(10px);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  display: grid; place-items: center; font-weight: 900; color: #fff; font-size: 18px;
}
.logo-name { font-size: 20px; font-weight: 800; line-height: 1.1; }
.logo-sub { font-size: 12px; opacity: .8; font-weight: 400; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: #fff; font-size: 15px; font-weight: 600; opacity: .92; }
.nav a:hover { color: #ffe1c2; }
.menu-btn {
  display: none; width: 42px; height: 42px; border: 0; background: transparent; color: #fff; font-size: 24px; cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 600px;
  padding: 96px 0 80px;
  background:
    radial-gradient(circle at 78% 40%, rgba(255,180,80,.35), transparent 28%),
    linear-gradient(120deg, #163a8a 0%, #1f5ad6 42%, #2b7dff 100%);
  overflow: hidden; color: #fff;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90'%3E%3Cpath fill='%23f4f8ff' d='M0,50 C240,90 480,10 720,40 C960,70 1200,20 1440,50 L1440,90 L0,90Z'/%3E%3C/svg%3E") no-repeat bottom / 100% 90px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 250px 1fr 340px;
  gap: 28px;
  align-items: center;
  position: relative; z-index: 1;
}
.course-side {
  background: rgba(255,255,255,.94);
  color: var(--ink);
  border-radius: 20px;
  padding: 16px 12px 12px;
  box-shadow: var(--shadow);
}
.course-side h3 {
  font-size: 16px; text-align: center; margin-bottom: 10px; color: var(--navy);
}
.course-side a {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 700;
  color: #334155;
}
.course-side a:hover, .course-side a.active {
  background: #eef4ff; color: var(--blue);
}
.course-side .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
}
.hero-copy { text-align: center; padding: 0 12px; }
.eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; margin-bottom: 16px;
}
.hero h1 { font-size: 40px; line-height: 1.25; font-weight: 800; margin-bottom: 14px; }
.hero h1 em { color: #ffe082; font-style: normal; }
.hero-desc { font-size: 16px; opacity: .92; margin-bottom: 18px; }
.hero-tags { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-tags span {
  background: #1f4db8; border-radius: 999px; padding: 6px 12px; font-size: 13px;
}
.hero-art {
  position: relative; height: 360px;
}
.blob {
  position: absolute; inset: 30px 20px;
  background: radial-gradient(circle at 40% 40%, rgba(255,255,255,.18), transparent 60%);
  border-radius: 50%;
}
.hero-card {
  position: absolute; right: 10px; top: 40px; width: 280px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 22px;
}
.hero-card .ai {
  width: 72px; height: 72px; border-radius: 20px;
  background: linear-gradient(135deg, #ffe082, #ffb300);
  color: #7a3e00; font-weight: 900; font-size: 24px;
  display: grid; place-items: center; margin-bottom: 12px;
}
.hero-card strong { font-size: 22px; display: block; }
.hero-card p { font-size: 13px; opacity: .85; margin-top: 6px; }
.hero-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer;
}
.hero-dots button.on { background: #fff; width: 22px; border-radius: 8px; }

/* Promo */
.promo { margin-top: -42px; position: relative; z-index: 2; }
.promo-bar {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
}
.promo-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; gap: 16px;
}
.promo-item + .promo-item { border-left: 1px solid var(--line); }
.promo-item b { color: var(--navy); font-size: 18px; }
.promo-item span { color: var(--muted); font-size: 14px; }

/* Value */
.value-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.value-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 22px; text-align: center;
}
.value-card .ico {
  width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 16px;
  display: grid; place-items: center; font-size: 24px; font-weight: 800; color: #fff;
}
.value-card h3 { color: var(--blue); font-size: 22px; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 14px; }
.center-cta { text-align: center; margin-top: 36px; }

/* Courses */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.course-card {
  background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.course-head {
  height: 120px; padding: 22px;
  color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
}
.course-head.c1 { background: linear-gradient(135deg, #7c3aed, #c084fc); }
.course-head.c2 { background: linear-gradient(135deg, #1d4ed8, #60a5fa); }
.course-head.c3 { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.course-head small { opacity: .9; }
.course-head h3 { font-size: 24px; }
.course-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.course-body .goal { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tags span {
  background: var(--sky); color: var(--navy); font-size: 12px; padding: 4px 8px; border-radius: 6px;
}
.jobs { font-size: 13px; color: #334155; margin-bottom: 16px; }
.jobs b { color: var(--brand); }
.course-body .btn { width: 100%; margin-top: auto; }

/* Strength */
.strength-line {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative;
}
.strength-line::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 36px;
  border-top: 2px dashed #bfd3ff;
}
.stat {
  text-align: center; position: relative; z-index: 1;
}
.stat .ring {
  width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%;
  background: #fff; border: 4px solid #c7dbff; display: grid; place-items: center;
  font-size: 22px; font-weight: 800; color: var(--blue);
}
.stat h3 { color: var(--navy); font-size: 22px; margin-bottom: 6px; }
.stat h3 em { color: var(--brand); font-style: normal; font-size: 28px; }
.stat p { color: var(--muted); font-size: 13px; padding: 0 8px; }

/* Audience */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.person {
  text-align: center; background: #fff; border-radius: 22px; padding: 28px 18px; box-shadow: var(--shadow);
}
.avatar {
  width: 110px; height: 110px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 36px; font-weight: 800;
}
.a1 { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.a2 { background: linear-gradient(135deg, #34d399, #059669); }
.a3 { background: linear-gradient(135deg, #fb923c, #ea580c); }
.person h3 { font-size: 22px; color: var(--navy); }
.person p { color: var(--muted); font-size: 14px; }

/* Resources */
.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.res-card {
  background: #fff; border-radius: 18px; padding: 26px 20px; box-shadow: var(--shadow);
  min-height: 180px; display: flex; flex-direction: column;
}
.res-card h3 { color: var(--navy); font-size: 20px; margin: 8px 0; }
.res-card p { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.res-card .btn { margin-top: auto; align-self: flex-start; }

/* Projects */
.proj-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.proj-main {
  background: #0f1f4a; color: #fff; border-radius: 22px; min-height: 280px; padding: 28px;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
}
.proj-main::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(8,16,40,.75));
}
.proj-main > * { position: relative; z-index: 1; }
.proj-side { display: grid; gap: 12px; }
.proj-mini {
  background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow);
}
.proj-mini h4 { color: var(--navy); }
.proj-mini p { color: var(--muted); font-size: 13px; }
.blue-band {
  margin-top: 28px;
  background: linear-gradient(90deg, #1d4ed8, #2563eb);
  border-radius: 22px; padding: 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; color: #fff;
}
.blue-band h3 { font-size: 22px; margin-bottom: 10px; }
.blue-band p { opacity: .88; font-size: 14px; margin-bottom: 16px; }
.btn-light { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.28); }

/* Service */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  background: #fff; border-radius: 20px; padding: 28px 24px; box-shadow: var(--shadow);
}
.num {
  width: 36px; height: 36px; border-radius: 10px; background: var(--sky);
  color: var(--blue); display: grid; place-items: center; font-weight: 800; margin-bottom: 12px;
}
.service-card h3 { color: var(--navy); font-size: 20px; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 14px; }
.matrix {
  margin-top: 22px; background: #fff; border-radius: 20px; padding: 22px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; box-shadow: var(--shadow);
}
.matrix div { text-align: center; padding: 12px; }
.matrix b { display: block; color: var(--navy); margin-bottom: 4px; }
.matrix span { color: var(--muted); font-size: 13px; }

/* FAQ */
.faq-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.faq-col { background: #fff; border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.faq-col h3 { color: var(--navy); margin-bottom: 12px; }
.faq-item {
  width: 100%; text-align: left; background: var(--sky-2); border: 0; border-radius: 12px;
  padding: 12px 14px; margin-bottom: 8px; cursor: pointer; color: #334155; font-weight: 700;
}
.faq-item:hover { background: #e8f0ff; color: var(--blue); }
.faq-answer {
  display: none; font-size: 13px; color: var(--muted); padding: 0 8px 10px; font-weight: 400;
}
.faq-item.open + .faq-answer { display: block; }
.faq-ask { text-align: center; margin-top: 28px; }

/* Campus */
.campus-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.campus-card {
  background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); text-align: center;
}
.campus-photo {
  height: 110px; display: grid; place-items: center; color: #fff; font-size: 28px; font-weight: 800;
}
.campus-card h3 { padding: 12px 8px 4px; color: var(--navy); }
.campus-card p { padding: 0 8px 14px; color: var(--muted); font-size: 12px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: #fff; border-radius: 20px; padding: 28px 22px; text-align: center; box-shadow: var(--shadow);
}
.step .n {
  width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 800;
}
.step h3 { color: var(--navy); margin-bottom: 8px; }

/* Lead */
.lead {
  background: linear-gradient(120deg, #12285f, #1d4ed8);
  color: #fff; border-radius: 24px; padding: 36px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center;
}
.lead h2 { font-size: 30px; margin-bottom: 10px; }
.form { display: grid; gap: 10px; }
.form input, .form select {
  height: 46px; border-radius: 12px; border: 0; padding: 0 14px; font-size: 14px;
}
.form .btn { height: 48px; }

/* Footer */
.footer { background: #0f1a33; color: #c9d4ea; padding: 42px 0 24px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.footer h4 { color: #fff; margin-bottom: 10px; }
.footer a { display: block; margin: 6px 0; font-size: 14px; }
.footer a:hover { color: #fff; }
.copy { border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; font-size: 12px; opacity: .75; }

/* Float */
.float-bar {
  position: fixed; right: 0; top: 42%; z-index: 60;
  display: flex; flex-direction: column; gap: 2px;
}
.float-bar button {
  width: 64px; min-height: 64px; border: 0; background: var(--brand); color: #fff;
  cursor: pointer; font-size: 12px; font-weight: 700; padding: 8px 6px;
}
.float-bar button:hover { background: var(--brand-dark); }

.chat {
  position: fixed; right: 78px; bottom: 24px; z-index: 70;
  width: 320px; background: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.18);
  overflow: hidden; display: none;
}
.chat.show { display: block; }
.chat-hd {
  background: var(--brand); color: #fff; padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: center; font-weight: 700;
}
.chat-hd button { border: 0; background: transparent; color: #fff; font-size: 18px; cursor: pointer; }
.chat-bd { padding: 14px; height: 220px; overflow: auto; background: #f7f8fb; font-size: 13px; }
.bubble { background: #fff; padding: 10px 12px; border-radius: 10px; margin-bottom: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.chat-ft { display: flex; gap: 8px; padding: 10px; }
.chat-ft input { flex: 1; height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; }

/* Modal */
.modal {
  position: fixed; inset: 0; background: rgba(10, 18, 40, .55);
  z-index: 80; display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal.show { display: flex; }
.modal-box {
  width: min(560px, 100%); background: #fff; border-radius: 20px; padding: 28px; position: relative;
  max-height: 86vh; overflow: auto;
}
.modal-box h3 { color: var(--navy); font-size: 22px; margin-bottom: 8px; }
.modal-box .close {
  position: absolute; right: 14px; top: 12px; border: 0; background: transparent; font-size: 24px; cursor: pointer;
}
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: #163a8a; color: #fff; padding: 12px 18px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 90;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 1024px) {
  .hero-grid, .course-grid, .value-grid, .strength-line, .res-grid, .faq-cols, .campus-grid, .service-grid, .steps, .audience, .proj-wrap, .blue-band, .lead, .footer-grid, .matrix {
    grid-template-columns: 1fr 1fr;
  }
  .hero-art { display: none; }
  .hero-grid { grid-template-columns: 220px 1fr; }
  .hero h1 { font-size: 32px; }
}
@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #12285f; flex-direction: column; padding: 16px; }
  .nav.open { display: flex; }
  .menu-btn { display: block; }
  .hero-grid, .promo-bar, .course-grid, .value-grid, .strength-line, .res-grid, .faq-cols, .campus-grid, .service-grid, .steps, .audience, .proj-wrap, .blue-band, .lead, .footer-grid, .matrix {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 88px; }
  .hero-grid { grid-template-columns: 1fr; }
  .course-side { display: none; }
  .section-title { font-size: 26px; }
  .float-bar { display: none; }
  .chat { right: 12px; width: calc(100% - 24px); }
  .promo-item + .promo-item { border-left: 0; border-top: 1px solid var(--line); }
}
