/* SWUFE MidHub theme — full site */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=Noto+Serif+SC:wght@600;700&display=swap");

:root {
  --sw-navy: #0b2e5b;
  --sw-navy-deep: #071e3d;
  --sw-blue: #1a4f8c;
  --sw-gold: #b8954a;
  --sw-ink: #1c2430;
  --sw-muted: #5b6775;
  --sw-line: #e6ebf1;
  --sw-paper: #f5f7fa;
  --sw-white: #ffffff;
  --sw-max: 1200px;
  --sw-radius: 2px;
  /* Banner：全宽平铺，固定合理高度，不再留两侧蓝边 */
  --sw-hero-ratio: 2045 / 680;
  --sw-hero-h: clamp(220px, 28vw, 400px);
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* SSR 正文仅给源代码/爬虫；视觉隐藏，避免 JS 水合前闪一下 */
#mh-ssr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body.sw-body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--sw-ink);
  background: var(--sw-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

.sw-wrap { width: min(100% - 32px, var(--sw-max)); margin-inline: auto; }

.sw-topbar {
  background: var(--sw-navy-deep);
  color: rgba(255,255,255,.86);
  font-size: 13px;
}
.sw-topbar-inner {
  display: flex; justify-content: flex-end; align-items: center;
  min-height: 36px;
}
.sw-topbar-consult {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.9);
}
.sw-topbar-consult .sw-ico {
  color: var(--sw-gold); flex-shrink: 0; margin-top: 0;
}

.sw-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sw-line);
}
.sw-header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 84px;
}
.sw-brand { display: flex; align-items: center; min-width: 0; flex-shrink: 0; }
.sw-logo {
  width: auto !important;
  height: 56px !important;
  max-width: min(52vw, 320px);
  object-fit: contain;
  object-position: left center;
}

.sw-nav { display: flex; align-items: center; gap: 0; flex-wrap: wrap; justify-content: flex-end; }
.sw-nav-item { position: relative; }
.sw-nav-item > a {
  display: block; padding: 12px 14px; font-size: 16px; font-weight: 600;
  color: var(--sw-ink); border-radius: var(--sw-radius);
  letter-spacing: 0.01em;
}
.sw-nav-item > a:hover,
.sw-nav-item:hover > a { color: var(--sw-navy); background: var(--sw-paper); }
.sw-nav-item.is-active > a {
  color: var(--sw-navy); font-weight: 700;
  position: relative;
}
.sw-nav-item.is-active > a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 6px;
  height: 2px; background: var(--sw-gold);
}
.sw-sub a.is-active {
  color: var(--sw-navy); font-weight: 700; background: var(--sw-paper);
}
.sw-mobile-nav a.is-active {
  color: var(--sw-navy); font-weight: 700;
}
.sw-sub {
  display: none; position: absolute; top: 100%; left: 0; min-width: 180px;
  background: #fff; border: 1px solid var(--sw-line);
  box-shadow: 0 12px 28px rgba(11,46,91,.12); padding: 8px 0; z-index: 20;
}
.sw-nav-item:hover .sw-sub { display: block; }
.sw-sub a {
  display: block; padding: 9px 16px; font-size: 14px; color: var(--sw-muted);
}
.sw-sub a:hover { color: var(--sw-navy); background: var(--sw-paper); }

.sw-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; background: var(--sw-navy); color: #fff !important;
  font-size: 13px; font-weight: 600; border: 0; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.sw-cta:hover { background: var(--sw-blue); }
.sw-cta-ghost {
  background: transparent; color: var(--sw-navy) !important;
  border: 1px solid var(--sw-navy);
}
.sw-cta-ghost:hover { background: var(--sw-navy); color: #fff !important; }

.sw-burger {
  display: none; width: 42px; height: 42px; border: 1px solid var(--sw-line);
  background: #fff; align-items: center; justify-content: center; cursor: pointer;
}
.sw-burger span {
  width: 18px; height: 2px; background: var(--sw-navy); position: relative; display: block;
}
.sw-burger span::before, .sw-burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--sw-navy);
}
.sw-burger span::before { top: -6px; }
.sw-burger span::after { top: 6px; }

/* Hero — 回「不错」那版：完整图 + 同图模糊铺底（不做纯色边） */
.sw-hero { background: var(--sw-navy-deep); }
.sw-hero-frame {
  position: relative;
  width: 100%;
  height: var(--sw-hero-h);
  overflow: hidden;
  background: #0a2347;
}
.sw-hero-slides { position: absolute; inset: 0; }
.sw-hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
.sw-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.sw-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(18px) saturate(1.05) brightness(.88);
  transform: scale(1.12);
  display: block;
}
.sw-hero-fg,
.sw-hero-fallback {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}
.sw-hero-fallback {
  background: linear-gradient(135deg, var(--sw-navy-deep), var(--sw-blue));
}
.sw-hero-nav {
  position: absolute; z-index: 4; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(11, 46, 91, .42); color: #fff; font-size: 28px; line-height: 1;
  cursor: pointer; backdrop-filter: blur(6px);
  transition: background .2s, transform .2s;
}
.sw-hero-nav:hover { background: rgba(11, 46, 91, .72); transform: translateY(-50%) scale(1.04); }
.sw-hero-prev { left: 20px; }
.sw-hero-next { right: 20px; }
.sw-hero-progress {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 2px;
  background: rgba(255,255,255,.2);
}
.sw-hero-progress i {
  display: block; height: 100%; width: 0; background: var(--sw-gold);
}
.sw-hero-dots {
  position: absolute; z-index: 4; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.sw-hero-dots button {
  width: 10px; height: 10px; border: 0; padding: 0; border-radius: 50%;
  background: rgba(255,255,255,.45); cursor: pointer;
  transition: transform .2s, background .2s;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
}
.sw-hero-dots button.is-active {
  background: #fff; transform: scale(1.15);
}

.sw-video-section { background: #fff; }
.sw-video-section .sw-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sw-video-section .sw-section-head {
  width: 100%;
  text-align: center;
}
.sw-video-frame {
  width: min(100%, 960px);
  margin: 0 auto;
  background: #0a2347;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 16px 40px rgba(11,46,91,.1);
}
.sw-video {
  width: 100%; height: 100%; display: block; object-fit: contain; background: #000;
}

.sw-section { padding: 64px 0 72px; }
.sw-section.alt { background: var(--sw-paper); }
.sw-section-head { margin-bottom: 32px; max-width: 640px; }
.sw-section-head.is-center {
  margin-left: auto; margin-right: auto; text-align: center; max-width: none;
}
.sw-section-head .label {
  color: var(--sw-gold); font-size: 12px; letter-spacing: .16em; font-weight: 700;
  margin-bottom: 8px;
}
.sw-section-head h2 {
  font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px);
  color: var(--sw-navy); margin: 0; line-height: 1.3; font-weight: 700;
}
.sw-section-head p { margin: 8px 0 0; color: var(--sw-muted); }
.sw-muted-note { color: var(--sw-muted); font-size: 14px; }

.sw-entries { background: var(--sw-paper); }
.sw-entry-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.sw-entry {
  position: relative; min-height: 240px; overflow: hidden;
  background: var(--sw-navy); color: #fff;
  box-shadow: 0 10px 28px rgba(11,46,91,.12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.sw-entry img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .5; transition: transform .45s ease, opacity .3s;
}
.sw-entry:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(11,46,91,.16); }
.sw-entry:hover img { transform: scale(1.05); opacity: .38; }
.sw-entry-body {
  position: relative; z-index: 1; padding: 28px 24px; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, transparent 18%, rgba(7,30,61,.78) 100%);
}
.sw-entry h3 { font-family: var(--font-display); font-size: 26px; margin: 0 0 10px; }
.sw-entry .more {
  font-size: 13px; font-weight: 600; color: #f0d9a0; letter-spacing: .04em;
}

.sw-uni-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sw-uni {
  background: #fff; border: 1px solid var(--sw-line); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.sw-uni:hover { box-shadow: 0 10px 28px rgba(11,46,91,.1); transform: translateY(-2px); }
.sw-uni img { width: 100%; height: 160px; object-fit: cover; background: #ddd; }
.sw-uni-body { padding: 16px 18px 20px; }
.sw-uni h3 {
  font-family: var(--font-display); font-size: 18px; margin: 0 0 8px; color: var(--sw-navy);
}
.sw-uni p {
  margin: 0; font-size: 13px; color: var(--sw-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* 国外对接大学 — 对齐原站 team / mySwiper 左右滑动 */
.sw-team {
  background:
    linear-gradient(180deg, rgba(248,250,252,.94), rgba(245,247,250,.97)),
    url("https://oss.51liuxue.com/midhub/sites/swufe-edu/image/team-bg.png") center / cover;
  padding: 68px 0 76px;
}
.sw-team-head {
  margin-bottom: 32px; max-width: none; text-align: center;
}
.sw-team-head h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  color: var(--sw-navy); margin: 0; font-weight: 700;
}
.sw-team-swiper { position: relative; padding: 0 48px; }
.sw-team-viewport { overflow: hidden; width: 100%; }
.sw-team-track {
  display: flex; gap: 18px; align-items: stretch;
  transition: transform .45s ease;
  will-change: transform;
}
.sw-team-slide {
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 0; background: #fff; overflow: hidden;
  display: flex; flex-direction: column;
}
.sw-team-img { width: 100%; height: 220px; overflow: hidden; background: #dde3ea; flex-shrink: 0; }
.sw-team-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease;
}
.sw-team-slide:hover .sw-team-img img { transform: scale(1.06); }
.sw-team-mask {
  flex: 1 1 auto;
  display: flex; flex-direction: column;
  min-height: 168px; padding: 14px 16px 18px;
  background: rgba(120, 128, 118, .78); color: #fff;
  box-sizing: border-box;
}
.sw-team-mask h3 {
  margin: 0; text-align: center; font-size: 18px; font-weight: 700;
  position: relative; padding: 6px 0 12px;
}
.sw-team-mask h3::after {
  content: ""; display: block; position: absolute; left: 50%; bottom: 0;
  width: 72px; margin-left: -36px; height: 2px; background: #fff;
}
.sw-team-desc {
  margin: 10px 0 0; font-size: 13px; line-height: 1.65; text-align: center;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical;
  overflow: hidden; opacity: .95;
}
.sw-team-nav {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff; font-size: 28px; line-height: 1;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.sw-team-nav:hover { background: rgba(0,0,0,.62); }
.sw-team-nav:disabled { opacity: .35; cursor: default; }
.sw-team-prev { left: 0; }
.sw-team-next { right: 0; }

.sw-news-list { display: grid; gap: 0; border-top: 1px solid var(--sw-line); }
.sw-news-home {
  background: linear-gradient(180deg, #fff 0%, var(--sw-paper) 100%);
}
.sw-news-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--sw-line);
  color: inherit; text-decoration: none;
}
a.sw-news-item { cursor: pointer; transition: background .2s ease; }
a.sw-news-item:hover { background: rgba(11, 46, 91, .04); }
.sw-news-item img {
  width: 120px; height: 80px; object-fit: cover; object-position: center;
  background: #fff; border: 1px solid var(--sw-line);
}
.sw-news-item.is-text-only { grid-template-columns: 1fr; }
.sw-news-item h3 { margin: 0; font-size: 17px; color: var(--sw-navy); line-height: 1.45; }
a.sw-news-item:hover h3 { color: var(--sw-blue); }
.sw-news-item .meta { font-size: 13px; color: #8a94a1; margin-bottom: 6px; }
.sw-news-item p { margin: 6px 0 0; font-size: 14px; color: var(--sw-muted); line-height: 1.55; }
.sw-news-more {
  margin-top: 20px; text-align: center;
}
.sw-news-more a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border: 1px solid var(--sw-navy); color: var(--sw-navy);
  font-weight: 600; font-size: 14px;
}
.sw-news-more a:hover { background: var(--sw-navy); color: #fff; }

.sw-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 28px 0 8px;
  padding-top: 18px;
  border-top: 1px solid var(--sw-line);
}
.sw-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--sw-line);
  background: #fff;
  color: var(--sw-ink);
  border-radius: var(--sw-radius);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.sw-page-btn:hover:not(:disabled) {
  border-color: var(--sw-navy);
  color: var(--sw-navy);
}
.sw-page-btn.is-active {
  border-color: var(--sw-navy);
  background: var(--sw-navy);
  color: #fff;
  font-weight: 600;
}
.sw-page-btn:disabled { opacity: .4; cursor: not-allowed; }
.sw-pager-meta { margin-left: 8px; color: var(--sw-muted); font-size: 13px; }

.sw-curriculum {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center;
}
.sw-curriculum-panel {
  background: var(--sw-navy); color: #fff; padding: 36px 32px; min-height: 280px;
}
.sw-curriculum-panel h3 {
  font-family: var(--font-display); font-size: 28px; margin: 0 0 14px;
}
.sw-curriculum-panel p { margin: 0 0 22px; color: rgba(255,255,255,.86); }
.sw-curriculum-figure {
  min-height: 280px; background:
    linear-gradient(160deg, rgba(11,46,91,.15), rgba(184,149,74,.2)),
    url("https://oss.51liuxue.com/midhub/sites/swufe-edu/image/banner1.jpg") center/cover;
}

/* 内页 Banner — 与首页同：全宽平铺 + 限高 */
.sw-page-hero {
  position: relative;
  width: 100%;
  height: var(--sw-hero-h);
  overflow: hidden;
  background: var(--sw-navy-deep);
  color: #fff;
}
.sw-page-hero-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.sw-page-hero-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  background: linear-gradient(180deg, transparent 35%, rgba(7, 30, 61, .72) 100%);
  padding: 28px 0 32px;
}
.sw-page-hero h1 {
  font-family: var(--font-display); font-size: clamp(26px, 4vw, 36px); margin: 0 0 8px;
}
.sw-page-hero .crumb { font-size: 13px; opacity: .88; margin-bottom: 6px; }
.sw-page-hero .crumb a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sw-page-body { padding: 36px 0 72px; }
.sw-page-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.sw-side-nav {
  background: #fff;
  border: 1px solid var(--sw-line);
  position: sticky;
  top: 100px;
}
.sw-side-title {
  margin: 0;
  padding: 16px 18px;
  background: var(--sw-navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}
.sw-side-nav ul { list-style: none; margin: 0; padding: 0; }
.sw-side-nav li { border-bottom: 1px solid var(--sw-line); }
.sw-side-nav li:last-child { border-bottom: 0; }
.sw-side-nav a {
  display: block;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--sw-ink);
  transition: background .2s, color .2s, padding .2s;
}
.sw-side-nav a:hover {
  background: rgba(24, 144, 255, .08);
  color: var(--sw-navy);
}
.sw-side-nav li.is-active a,
.sw-side-nav a.is-active {
  background: #1890ff;
  color: #fff !important;
  font-weight: 700;
}
.sw-page-main { min-width: 0; }
.sw-breadcrumb {
  margin: 0 0 14px;
  padding: 10px 14px;
  font-size: 13px;
  color: #5a6a7a;
  line-height: 1.6;
  background: #f5f8fb;
  border: 1px solid var(--sw-line);
  border-radius: 6px;
}
.sw-breadcrumb a { color: var(--sw-navy, #1a5fb4); text-decoration: none; font-weight: 600; }
.sw-breadcrumb a:hover { text-decoration: underline; }
.sw-page-hero .crumb {
  font-size: 13px;
  opacity: .92;
  margin-bottom: 8px;
  letter-spacing: .02em;
}
.sw-article {
  background: #fff;
  border: 1px solid var(--sw-line);
  border-radius: 8px;
  padding: 28px 28px 36px;
  color: #243447;
  line-height: 1.85;
  font-size: 16px;
  box-shadow: 0 1px 0 rgba(16, 42, 67, .04);
}
.sw-article-head {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sw-line);
}
.sw-article-head h1 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.35;
  color: var(--sw-navy);
  font-weight: 700;
}
.sw-article-meta {
  margin: 0;
  font-size: 13px;
  color: #8a94a1;
}
.sw-article-meta::before {
  content: "发布时间：";
  color: #a0aab4;
}
.sw-article-body { word-break: break-word; color: #2c3a4a; }
.sw-article-body p { margin: 0 0 1em; text-align: justify; }
.sw-article img { margin: 12px auto; max-width: 100%; height: auto; display: block; }
.sw-article h2, .sw-article h3 { color: var(--sw-navy); margin: 1.4em 0 .6em; }
.sw-article-back {
  margin: 36px 0 8px;
  padding-top: 18px;
  border-top: 1px solid var(--sw-line);
}
.sw-article-back a {
  color: var(--sw-blue);
  text-decoration: none;
  font-size: 14px;
}
.sw-article-back a:hover { text-decoration: underline; }

/* 报名表：对齐原站嵌入宽度与选项样式 */
.sw-apply-panel { width: 100%; max-width: none; margin: 0; }
.sw-form-card {
  max-width: none; width: 100%; margin: 0;
  background: #fff; border: 1px solid #e8edf3;
  box-shadow: 0 10px 36px rgba(11, 46, 91, .06);
  padding: 28px 28px 32px;
  border-radius: 10px;
}
.sw-form-embed-head {
  margin-bottom: 22px; padding-bottom: 16px;
  border-bottom: 1px solid #eef2f6;
}
.sw-form-card h2 {
  font-family: var(--font-display); color: var(--sw-navy);
  margin: 0 0 8px; font-size: 26px; text-align: center;
}
.sw-form-lead {
  margin: 0; color: var(--sw-muted); font-size: 13px; text-align: center; line-height: 1.7;
}
.sw-lead-form .sw-field {
  display: block; margin: 0 0 16px; font-size: 13px; font-weight: 600; color: #334155;
}
.sw-lead-form .sw-field > span { color: #e11d48; }
.sw-lead-form input:not([type="radio"]):not([type="checkbox"]),
.sw-lead-form textarea {
  display: block; width: 100%; margin-top: 8px;
  border: 1px solid #dbe3ee; border-radius: 8px;
  padding: 12px 14px; font: inherit; background: #f8fafc;
  transition: border-color .15s, box-shadow .15s, background .15s;
  box-sizing: border-box;
}
.sw-lead-form input:not([type="radio"]):not([type="checkbox"]):focus,
.sw-lead-form textarea:focus {
  outline: 0; border-color: #3b82f6; background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}
.sw-program { margin: 4px 0 20px; }
.sw-program-title {
  margin: 0 0 12px; font-size: 14px; font-weight: 700; color: #334155;
}
.sw-program-title small {
  margin-left: 8px; font-weight: 400; color: var(--sw-muted); font-size: 12px;
}
.sw-program-opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%; margin: 0 0 10px; padding: 14px 16px;
  border: 1px solid #dbe3ee; border-radius: 10px;
  background: #fff; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--sw-ink);
  box-sizing: border-box; transition: border-color .15s, background .15s, box-shadow .15s;
}
.sw-program-opt:last-child { margin-bottom: 0; }
.sw-program-opt input[type="radio"] {
  width: 18px !important; height: 18px; margin: 0 !important;
  flex: 0 0 auto; accent-color: #2563eb;
  display: inline-block !important;
}
.sw-program-opt span { flex: 1; line-height: 1.4; }
.sw-program-opt:hover { border-color: #93c5fd; }
.sw-program-opt:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, .15);
}
.sw-submit {
  width: 100%; margin-top: 8px; padding: 14px;
  border-radius: 8px; font-size: 16px;
}
.sw-form-msg { margin-top: 12px; font-size: 14px; min-height: 1.4em; text-align: center; }
.sw-form-msg.is-ok { color: #0a7a4b; }
.sw-form-msg.is-err {
  color: #c0392b; padding: 10px 12px; background: #fff5f5;
  border: 1px solid #f5c2c7; border-radius: 6px;
}
@media (max-width: 640px) {
  .sw-form-card { padding: 24px 18px 28px; }
}

.sw-footer {
  background: var(--sw-navy-deep); color: rgba(255,255,255,.82); padding: 48px 0 28px;
}
.sw-footer-grid {
  display: grid; grid-template-columns: 1.2fr 1.4fr; gap: 36px; margin-bottom: 28px;
}
.sw-footer-logo {
  height: 46px; width: auto; max-width: 260px; object-fit: contain;
  margin-bottom: 14px; padding: 0; background: transparent;
}
.sw-footer-desc { margin: 0; font-size: 13px; line-height: 1.8; }
.sw-footer h4 {
  font-family: var(--font-display); color: #fff; margin: 0 0 14px; font-size: 16px;
}
.sw-footer a { color: rgba(255,255,255,.75); }
.sw-footer a:hover { color: #fff; }
.sw-footer ul { list-style: none; margin: 0; padding: 0; }
.sw-footer li { margin: 0 0 8px; font-size: 13px; }
.sw-contact-list { display: grid; gap: 12px; }
.sw-contact-item {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start;
  margin: 0 !important;
}
.sw-ico { color: var(--sw-gold); margin-top: 2px; flex-shrink: 0; }
.sw-copy {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px;
  font-size: 12px; color: rgba(255,255,255,.55);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

.sw-mobile-nav {
  display: none; position: fixed; inset: 78px 0 0 0; z-index: 60;
  background: #fff; padding: 16px; overflow: auto;
}
.sw-mobile-nav.is-open { display: block; }
.sw-mobile-nav a {
  display: block; padding: 14px 10px; border-bottom: 1px solid var(--sw-line);
  color: var(--sw-ink); font-size: 16px; font-weight: 600;
}
.sw-mobile-nav .sub a { padding-left: 18px; color: var(--sw-muted); font-weight: 500; font-size: 15px; }

.sw-luqu-card {
  max-width: 720px; margin: 0 auto;
  background: #fff; border: 1px solid var(--sw-line);
  box-shadow: 0 8px 28px rgba(11, 46, 91, .06);
  padding: 32px 28px 28px;
}
.sw-luqu-head {
  text-align: center; margin-bottom: 22px;
  padding-bottom: 16px; border-bottom: 1px solid var(--sw-line);
}
.sw-luqu-head h2 {
  margin: 0 0 8px; font-family: var(--font-display); color: var(--sw-navy); font-size: 24px;
}
.sw-luqu-head p { margin: 0; color: var(--sw-muted); font-size: 14px; }
.sw-luqu-field {
  display: block; margin: 0 0 16px; font-size: 13px; font-weight: 600; color: var(--sw-ink);
}
.sw-luqu-field span { color: #c0392b; }
.sw-luqu-form input {
  display: block; width: 100%; margin-top: 8px;
  border: 1px solid var(--sw-line); padding: 12px 14px; font: inherit; background: #fbfcfe;
  transition: border-color .15s, box-shadow .15s;
}
.sw-luqu-form input:focus {
  outline: 0; border-color: var(--sw-blue);
  box-shadow: 0 0 0 3px rgba(26, 79, 140, .12);
}
.sw-luqu-help {
  margin: 20px 0 0; padding: 14px 16px; background: var(--sw-paper);
  font-size: 13px; color: var(--sw-muted); line-height: 1.75;
}
.sw-luqu-help p { margin: 0 0 8px; }
.sw-luqu-help p:last-child { margin: 0; }
.sw-luqu-help strong { color: var(--sw-navy); font-weight: 600; }
.sw-luqu-loading {
  margin-top: 16px; padding: 14px; text-align: center;
  background: #eef4fb; color: var(--sw-navy); font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.sw-luqu-loading[hidden] { display: none !important; }
.sw-luqu-spinner {
  width: 16px; height: 16px; border: 2px solid rgba(11,46,91,.2);
  border-top-color: var(--sw-navy); border-radius: 50%;
  animation: sw-spin .7s linear infinite;
}
@keyframes sw-spin { to { transform: rotate(360deg); } }
.sw-luqu-result-head {
  text-align: center; margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--sw-line);
}
.sw-luqu-result-head h2 {
  margin: 0; font-size: 22px; color: var(--sw-navy); font-family: var(--font-display);
}
.sw-luqu-info { display: grid; gap: 12px; margin-bottom: 8px; }
.sw-luqu-info > div {
  display: flex; gap: 12px; flex-wrap: wrap; font-size: 15px;
}
.sw-luqu-info span { min-width: 88px; color: var(--sw-muted); font-weight: 600; }
.sw-luqu-info b { font-weight: 600; color: var(--sw-ink); word-break: break-all; }
.sw-luqu-score {
  width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px;
}
.sw-luqu-score th, .sw-luqu-score td {
  border: 1px solid var(--sw-line); padding: 12px 10px; text-align: center;
}
.sw-luqu-score th { background: #f5f8fc; color: var(--sw-navy); font-weight: 700; }
.sw-luqu-score td { font-weight: 600; }
.sw-luqu-status-box {
  text-align: center; padding: 16px 14px; margin: 8px 0 18px;
  border-radius: 8px; background: #e8f6ec; border: 1px solid #2e7d32; color: #1b5e20;
  font-size: 17px; font-weight: 700;
}
.sw-luqu-status-box strong { font-size: 20px; }
.sw-luqu-mail {
  margin: 10px 0 0; font-size: 13px; font-weight: 600; color: #c62828; line-height: 1.6;
}
.sw-luqu-paytip {
  margin: 10px 0 0; font-size: 14px; font-weight: 700; color: #c62828; line-height: 1.65;
}
.sw-luqu-actions { text-align: center; margin: 8px 0 12px; }
.sw-luqu-footer {
  text-align: center; font-size: 12px; color: #999; margin: 16px 0 0; line-height: 1.7;
}
.sw-luqu-result.is-empty { text-align: center; }
.sw-luqu-empty-ico {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  background: #fff3e0; color: #ef6c00; font-size: 28px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.sw-luqu-empty-title {
  margin: 0 0 10px; font-size: 20px; color: #c62828; font-family: var(--font-display);
}
.sw-luqu-empty-msg { margin: 0 0 18px; color: var(--sw-muted); font-size: 15px; }
.sw-luqu-tips {
  text-align: left; background: #fff8e1; border-left: 4px solid #ffc107;
  padding: 14px 16px; margin: 0 0 20px; border-radius: 0 6px 6px 0; font-size: 14px;
}
.sw-luqu-tips-title { font-weight: 700; color: #e65100; margin-bottom: 8px; }
.sw-luqu-tips ul { margin: 0; padding-left: 18px; color: #555; line-height: 1.8; }
.sw-luqu-contact {
  padding-top: 14px; border-top: 1px dashed var(--sw-line); margin-bottom: 8px;
}
.sw-luqu-contact p { margin: 0 0 8px; font-size: 14px; color: var(--sw-ink); }
.sw-luqu-contact span {
  display: inline-block; min-width: 72px; font-weight: 700; color: var(--sw-blue);
}
.sw-cta-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border: 1px solid var(--sw-navy); color: var(--sw-navy) !important;
  background: #fff; font-weight: 600; font-size: 14px;
}
.sw-cta-ghost:hover { background: var(--sw-navy); color: #fff !important; }
.sw-form-msg.is-err {
  margin-top: 12px; padding: 10px 12px; background: #fff5f5; border: 1px solid #f5c2c7;
  color: #c0392b; border-radius: 4px; line-height: 1.55;
}

@media (max-width: 980px) {
  .sw-nav, .sw-header-row .sw-cta { display: none; }
  .sw-burger { display: inline-flex; }
  .sw-logo { height: 44px !important; max-width: 240px; }
  .sw-entry-grid, .sw-uni-grid { grid-template-columns: 1fr; }
  .sw-team-slide { flex-basis: calc((100% - 18px) / 2); }
  .sw-team-img { height: 180px; }
  .sw-team-mask { min-height: 150px; }
  .sw-curriculum { grid-template-columns: 1fr; }
  .sw-footer-grid { grid-template-columns: 1fr; }
  .sw-news-item { grid-template-columns: 96px 1fr; }
  .sw-hero-nav { width: 36px; height: 36px; font-size: 22px; }
  .sw-page-layout { grid-template-columns: 1fr; gap: 18px; }
  .sw-side-nav { position: static; }
  .sw-side-nav ul {
    display: flex; flex-wrap: wrap; gap: 0;
  }
  .sw-side-nav li {
    border-bottom: 0; border-right: 1px solid var(--sw-line);
    flex: 1 1 auto;
  }
  .sw-side-nav a { padding: 12px 14px; white-space: nowrap; text-align: center; }
}
.sw-dock { display: none; }

@media (max-width: 767px) {
  :root {
    --sw-hero-h: clamp(168px, 48vw, 240px);
  }
  /* 手机端不用桌面 blur+contain，cover 铺满避免上下大块虚边 */
  .sw-hero-bg { display: none !important; }
  .sw-hero-fg,
  .sw-hero-fallback {
    object-fit: cover;
    object-position: center center;
  }
  .sw-hero-dots { bottom: 14px; }
  .sw-page-hero {
    height: clamp(140px, 38vw, 200px);
  }
  .sw-page-hero-overlay { padding: 18px 0 20px; }
  .sw-page-hero h1 { font-size: clamp(22px, 6vw, 28px); }

  .sw-team-swiper { padding: 0 36px; }
  .sw-team-slide { flex-basis: 100%; }
  .sw-team-img { height: 200px; }
  .sw-team-nav { width: 36px; height: 36px; font-size: 22px; }

  body.sw-body { padding-bottom: 0; }
  .sw-footer-desc { display: none; }
  /* 底栏留白并进页脚蓝底，避免页尾多出一块白边 */
  .sw-footer {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 16px);
  }
  .sw-dock {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
    background: linear-gradient(90deg, #0b2e5b 0%, #184a86 100%);
    box-shadow: 0 -4px 18px rgba(7, 30, 61, .28);
  }
  .sw-dock-item {
    appearance: none; border: 0; background: transparent; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1px; color: #fff; text-decoration: none; font-size: 10px; font-weight: 600;
    padding: 0; font-family: inherit; line-height: 1.2;
  }
  .sw-dock-ico { display: flex; line-height: 0; opacity: .95; }

  /* 咨询：中间醒目圆标 */
  .sw-dock-chat {
    position: relative;
    z-index: 1;
    color: #fff;
    font-weight: 700;
  }
  .sw-dock-chat-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: -18px;
    border-radius: 50%;
    color: #0b2e5b;
    background: linear-gradient(160deg, #ffe08a 0%, #f5c542 55%, #e8a820 100%);
    box-shadow: 0 4px 12px rgba(232, 168, 32, .55), 0 0 0 3px rgba(255, 255, 255, .22);
    animation: sw-dock-chat-pulse 2.4s ease-in-out infinite;
  }
  .sw-dock-chat span:last-child {
    margin-top: 2px;
    color: #ffe08a;
    font-size: 11px;
  }
  @keyframes sw-dock-chat-pulse {
    0%, 100% { transform: translateY(0); box-shadow: 0 4px 12px rgba(232, 168, 32, .55), 0 0 0 3px rgba(255, 255, 255, .22); }
    50% { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(232, 168, 32, .7), 0 0 0 4px rgba(255, 230, 140, .35); }
  }

  /* 手机：隐藏美洽自带悬浮球，统一走底栏「咨询」；桌面不隐藏 */
  #meiqia-container > .btn,
  #meiqia-container [class*="btn-wrapper"],
  #MEIQIA-BTN-HOLDER {
    display: none !important;
  }
}

/* 桌面：确保美洽官方按钮可见、可点 */
@media (min-width: 768px) {
  #MEIQIA-BTN-HOLDER,
  #meiqia-container > .btn,
  #meiqia-container [class*="btn-wrapper"] {
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 2147483000 !important;
  }
}
