/* =====================================================
   SXTALENT 官网原型 · 设计系统
   品牌色取自公司 Logo：蓝 #2E5BFF → 紫 #7B5CFF，点缀橙 #FF8A4C
   节奏：深色首屏 → 浅色内容区 → 深色页脚（深浅交替）
   ===================================================== */

:root {
  --blue: #2E5BFF;
  --purple: #7B5CFF;
  --accent: #FF8A4C;
  --ink: #0B1026;          /* 深底主色 */
  --ink-2: #141A38;
  --text: #1C2340;         /* 浅底正文 */
  --text-2: #5A6284;       /* 浅底次级 */
  --text-inv: #EEF1FF;     /* 深底正文 */
  --text-inv-2: #A7AFCF;   /* 深底次级 */
  --bg: #F6F7FB;           /* 浅色区块底 */
  --card: #FFFFFF;
  --line: #E4E7F2;
  --grad: linear-gradient(120deg, var(--blue) 0%, var(--purple) 60%, var(--accent) 130%);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 12px 40px rgba(23, 32, 90, 0.10);
  --shadow-lg: 0 24px 70px rgba(23, 32, 90, 0.16);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, "Segoe UI", sans-serif;
  --container: 1160px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }  /* 「点击滑动到产品部分」的核心实现 */

body {
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-header.scrolled {
  background: rgba(11, 16, 38, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand-logo { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav-link {
  color: var(--text-inv-2);
  font-size: 15px;
  letter-spacing: .02em;
  position: relative;
  transition: color .25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width .3s var(--ease);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }
.nav-cta {
  font-size: 14px;
  color: #fff;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 6px 18px rgba(46, 91, 255, .35);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(46, 91, 255, .45); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- 首屏 ---------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 90px;
  background: radial-gradient(120% 90% at 20% 0%, #1B2452 0%, var(--ink) 55%, #070B1E 100%);
  color: var(--text-inv);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  animation: drift 14s ease-in-out infinite alternate;
}
.orb-a { width: 480px; height: 480px; left: -140px; top: -120px; background: var(--blue); }
.orb-b { width: 420px; height: 420px; right: -120px; bottom: -140px; background: var(--purple); animation-delay: -7s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.15); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 100%);
}
.hero-inner { position: relative; text-align: center; }
.hero-kicker {
  font-size: 14px;
  letter-spacing: .22em;
  color: var(--text-inv-2);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: .01em;
}
.grad-text {
  background: linear-gradient(100deg, #6E9BFF 0%, #A88BFF 45%, var(--accent) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--text-inv-2);
  font-size: clamp(15px, 1.6vw, 18px);
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 38px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(46, 91, 255, .4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(46, 91, 255, .5); }
.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .04);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255,255,255,.5); }
/* 浅色底上的次级按钮（原 btn-ghost 为白字，仅适用于深色底） */
.btn-outline {
  color: var(--text);
  border: 1px solid rgba(28, 35, 64, .18);
  background: rgba(28, 35, 64, .02);
}
.btn-outline:hover { background: rgba(46, 91, 255, .06); border-color: rgba(46, 91, 255, .45); color: var(--blue); }

/* 宣传片视频位 */
.hero-video { margin: 64px auto 0; max-width: 860px; }
.video-shell {
  aspect-ratio: 16 / 9;          /* 锁定 16:9 */
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: var(--shadow-lg);
  background: #10173A;
}
.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.scroll-hint {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-hint span {
  width: 4px; height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .7);
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------------- 通用区块 ---------------- */
.section { padding: 96px 0; scroll-margin-top: 84px; }
.section-light { background: var(--bg); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.3;
  font-weight: 700;
}
.section-desc { margin-top: 16px; color: var(--text-2); }

/* 关于我们 · 数据条 */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat strong {
  display: block;
  font-size: 30px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 14px; color: var(--text-2); }
.stat-note {
  margin-top: 14px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-2);
  opacity: .85;
}

.about-detail {
  max-width: 880px;
  margin: 28px auto 0;
  padding: 28px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
}
.about-detail p { font-size: 15px; color: var(--text-2); }

/* ---------------- 产品三卡 ---------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.product-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s;
}
.product-card:hover::before { opacity: 1; }
.product-ico {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 22px;
}
.ico-a { background: linear-gradient(135deg, #2E5BFF, #4F7CFF); box-shadow: 0 8px 20px rgba(46,91,255,.3); }
.ico-b { background: linear-gradient(135deg, #7B5CFF, #A88BFF); box-shadow: 0 8px 20px rgba(123,92,255,.3); }
.ico-c { background: linear-gradient(135deg, #FF8A4C, #FFB27C); box-shadow: 0 8px 20px rgba(255,138,76,.3); }
.ico-d { background: linear-gradient(135deg, #0FA3A3, #4FD1C5); box-shadow: 0 8px 20px rgba(15,163,163,.28); }
.product-card h3 { font-size: 20px; margin-bottom: 12px; }
.product-card p { font-size: 14.5px; color: var(--text-2); margin-bottom: 18px; }
.product-grid.four { grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.product-grid.four .product-card { padding: 30px 24px; display: flex; flex-direction: column; }
.product-grid.four .product-card h3 { font-size: 17px; }
.product-grid.four .product-card p { font-size: 13.8px; margin-bottom: 0; }
.product-grid.four .product-ico { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px; }

/* 服务板块 · 服务内容清单（对应公司介绍中的「服务内容」列） */
.svc-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.svc-list li {
  font-size: 12.2px;
  line-height: 1;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
}

/* ---------------- 四项服务 ---------------- */
.service-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 34px;
}
.service-num {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--blue);
  margin-bottom: 10px;
}
.service-block h3 { font-size: 22px; margin-bottom: 10px; }
.service-block > p { font-size: 15px; color: var(--text-2); max-width: 760px; }
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(188px, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.module {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
}
.module h4 { font-size: 15px; margin-bottom: 6px; }
.module p { font-size: 13.4px; line-height: 1.62; color: var(--text-2); }

.service-triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.service-mini {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.service-mini:nth-child(2) { border-left-color: var(--purple); }
.service-mini:nth-child(3) { border-left-color: var(--accent); }
.service-mini .service-num { margin-bottom: 8px; }
.service-mini h3 { font-size: 17px; margin-bottom: 8px; }
.service-mini p { font-size: 14px; color: var(--text-2); }
.service-mini .text-link { margin-top: 12px; }

/* ---------------- AI 人才家 ---------------- */
.talent-band {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.talent-copy .section-kicker { text-align: left; }
.talent-copy .section-title { margin-bottom: 18px; }
.talent-copy p { font-size: 15px; color: var(--text-2); margin-bottom: 16px; }
.talent-copy .hero-actions { margin-top: 8px; }
.qr-stack {
  display: flex;
  gap: 24px;
  justify-content: center;
  padding: 32px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.qr-stack .qr-item img { width: 130px; height: 130px; border-radius: 10px; }
.qr-stack .qr-item span { font-size: 13px; }
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qr-cap {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--text-2);
  text-align: center;
}

.text-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  transition: transform .25s var(--ease);
}
.text-link:hover { transform: translateX(3px); }
.as-btn {
  background: none;
  border: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}
.chev { display: inline-block; transition: transform .3s var(--ease); font-size: 12px; }
.as-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* AI 人才家 · 二维码下拉面板 */
.qr-panel {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  overflow: hidden;
  animation: dropIn .4s var(--ease);
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.qr-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr-item img {
  width: 110px; height: 110px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.qr-item span { font-size: 12px; color: var(--text-2); }
.qr-ph {
  width: 110px; height: 110px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, #D9DEF0 0 6px, transparent 6px 12px),
    repeating-linear-gradient(90deg, #D9DEF0 0 6px, transparent 6px 12px);
  background-color: #F1F3FA;
}

/* ---------------- 课程三卡 ---------------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.course-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--blue);
  background: rgba(46, 91, 255, .1);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}
.course-card:nth-child(2) .course-tag { color: #6A48F0; background: rgba(123, 92, 255, .12); }
.course-card:nth-child(3) .course-tag { color: #E86A2B; background: rgba(255, 138, 76, .14); }
.course-card h3 { font-size: 18px; line-height: 1.45; margin-bottom: 10px; }
.course-card p { font-size: 14px; color: var(--text-2); flex: 1; }

/* ---------------- 联系我们 ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: stretch;
}
.contact-info h3 { font-size: 20px; margin-bottom: 24px; }
.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-list .k {
  display: inline-block;
  width: 3.2em;
  font-weight: 600;
  color: var(--blue);
  font-size: 14px;
}
.contact-list .v { font-size: 14.5px; color: var(--text-2); }
.map-jump { font-size: 13.5px; margin-top: 6px; display: inline-block; }
.map-shell {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 320px;
  z-index: 0;              /* 隔离 Leaflet 内部 z-index，避免盖住吸顶导航 */
}
.map-tip {
  position: absolute;
  left: 12px; bottom: 12px;
  z-index: 500;
  background: rgba(11, 16, 38, .72);
  color: #fff;
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 6px;
  pointer-events: none;
}
.map-ph {
  height: 100%;
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text-2);
  background:
    radial-gradient(60% 70% at 30% 30%, rgba(46, 91, 255, .08), transparent 70%),
    radial-gradient(60% 70% at 75% 75%, rgba(123, 92, 255, .08), transparent 70%),
    var(--bg);
  font-size: 14px;
  line-height: 2;
}
.map-ph small { color: var(--text-2); opacity: .75; }

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: var(--ink);
  color: var(--text-inv-2);
  padding: 64px 0 40px;
  text-align: center;
}
.footer-logo { height: 64px; margin: 0 auto 20px; }
.footer-slogan { font-size: 13px; letter-spacing: .1em; margin-bottom: 26px; }
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.footer-nav a { font-size: 13.5px; transition: color .25s; }
.footer-nav a:hover { color: #fff; }
.footer-meta { font-size: 12.5px; opacity: .7; }
.icp-link { border-bottom: 1px solid rgba(255, 255, 255, .28); padding-bottom: 1px; transition: border-color .25s; }
.icp-link:hover { border-color: rgba(255, 255, 255, .8); }

/* ---------------- 滚动显现动效 ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .scroll-hint span { animation: none; }
}

/* ---------------- 响应式断点 ---------------- */
@media (max-width: 1024px) {
  .product-grid, .course-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid.four { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .talent-band { grid-template-columns: 1fr; gap: 32px; }
  .qr-stack { justify-content: flex-start; }
}

@media (max-width: 860px) {
  .service-triple { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(11, 16, 38, .97);
    backdrop-filter: blur(16px);
    padding: 12px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-link { width: 100%; padding: 14px 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-link::after { display: none; }
  .nav-cta { margin-top: 18px; }
  .nav-toggle { display: flex; }
  .brand-logo { height: 42px; }
  .section { padding: 72px 0; }
  .hero { padding-top: 120px; }
}

@media (max-width: 560px) {
  .product-grid, .course-grid, .stat-row { grid-template-columns: 1fr; }
  .product-grid.four { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .qr-panel { justify-content: center; }
  .qr-stack { flex-direction: column; align-items: center; }
  .service-block { padding: 26px 20px; }
  .module-grid { grid-template-columns: 1fr; }
}
