/* ==========================================================
   上海元元AI智能科技有限公司 · 站点首页
   设计：白底 + 品牌蓝 + 暖色点缀（学习 × 快乐）
   ========================================================== */

:root {
  --navy: #0b2a6b;
  --ink: #14233f;
  --text: #40516f;
  --muted: #6c7c9b;
  --line: #e4ecfb;
  --bg: #ffffff;
  --bg-soft: #f4f8ff;
  --blue: #1e63e9;
  --blue-2: #3e7bfa;
  --orange: #ff8a3d;
  --yellow: #ffc64d;
  --green: #4fbf8b;
  --pink: #ff6b8a;
  --purple: #8a6bff;
  --radius: 22px;
  --shadow: 0 18px 40px rgba(20, 60, 140, 0.10);
  --shadow-soft: 0 8px 24px rgba(20, 60, 140, 0.07);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 17px; color: var(--navy); letter-spacing: .04em; }
.brand-text small { font-size: 11px; color: var(--muted); letter-spacing: .02em; white-space: nowrap; }

.nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: 15px;
  color: #4a5b7a;
}

.nav a { position: relative; padding: 4px 0; transition: color .2s ease; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 92px) 0 clamp(40px, 5vw, 72px);
  background:
    radial-gradient(900px 520px at 78% -6%, rgba(62, 123, 250, 0.10), transparent 62%),
    radial-gradient(700px 420px at 6% 8%, rgba(255, 138, 61, 0.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  overflow: hidden;
}

.hero-inner {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--blue);
  background: #eef4ff;
  border-radius: 999px;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(79, 191, 139, .2);
}

.hero-title {
  margin: 0 0 22px;
  font-size: clamp(46px, 6.6vw, 90px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.hero-title .line { display: block; }

.line-accent {
  color: transparent;
  background: linear-gradient(96deg, #ff9a3d 0%, #ff7a4d 42%, #ff6b8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
  width: max-content;
  max-width: 100%;
}

.title-underline {
  display: block;
  width: 96%;
  height: 24px;
  margin-top: 2px;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 33em;
  font-size: clamp(15px, 1.35vw, 17px);
  color: var(--text);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, #2f6cf0, #1b4ed8);
  box-shadow: 0 12px 26px rgba(30, 99, 233, .26);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(30, 99, 233, .32); }
.btn-ghost {
  color: var(--navy);
  background: #fff;
  border-color: #d9e5fb;
  box-shadow: var(--shadow-soft);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: #b9cffa; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: #556a90;
}
.hero-tags li {
  padding: 5px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(6px, 1vw, 16px);
}

.hero-stage {
  position: absolute;
  width: 92%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f2f7ff 62%, #e7efff 100%);
  border: 1px solid #e3ebfb;
  box-shadow: inset 0 0 0 18px rgba(255, 255, 255, .35);
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: -7%;
  border-radius: 50%;
  border: 2px dashed #c3d5fa;
  animation: spin 46s linear infinite;
}

.hero-picture {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: auto;
  filter: drop-shadow(0 22px 34px rgba(20, 60, 140, .12));
  animation: floatY 7s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 通用区块 ---------- */
section { position: relative; }

.section-head { max-width: 780px; margin: 0 0 clamp(28px, 3.4vw, 46px); }

.kicker {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--blue);
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--navy);
  font-weight: 800;
}

.section-lead { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- 理念 ---------- */
.idea { padding: clamp(52px, 6vw, 82px) 0 clamp(48px, 5.4vw, 72px); }

.duo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: clamp(16px, 2vw, 28px);
}

.duo-card {
  position: relative;
  padding: clamp(24px, 2.6vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.duo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.duo-learn { border-top: 4px solid var(--blue-2); }
.duo-play { border-top: 4px solid var(--orange); }

.duo-icon {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--bg-soft);
  margin-bottom: 18px;
}
.duo-icon svg { width: 72px; height: 72px; }

.duo-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: .02em;
}

.duo-desc { margin: 0 0 18px; color: var(--text); font-size: 15px; }

.duo-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.duo-list li { display: flex; align-items: center; gap: 9px; }
.duo-list li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--blue-2);
  transform: rotate(45deg);
  flex: none;
}
.duo-play .duo-list li::before { background: var(--orange); }

.duo-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
}
.bridge-line { width: 2px; height: 54px; background: repeating-linear-gradient(180deg, #c6d8f8 0 6px, transparent 6px 12px); }
.bridge-x {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--orange);
  font-weight: 800;
  font-size: 20px;
  box-shadow: var(--shadow-soft);
}

/* ---------- 我们怎么做 ---------- */
.how {
  padding: clamp(52px, 6vw, 82px) 0 clamp(44px, 4.6vw, 62px);
  background: linear-gradient(180deg, #f7faff, #ffffff);
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.flow-step {
  position: relative;
  padding: 26px 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.flow-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.flow-step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -14px;
  width: 10px; height: 10px;
  border-top: 2px solid #cfdcf6;
  border-right: 2px solid #cfdcf6;
  transform: rotate(45deg) translateY(-50%);
}
.flow-step:last-child::after { display: none; }

.flow-no {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 12px;
  letter-spacing: .1em;
  color: #b9c9e8;
  font-weight: 700;
}

.flow-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #f1f6ff;
  margin-bottom: 14px;
}
.flow-icon svg { width: 38px; height: 38px; }

.flow-step h3 { margin: 0 0 8px; font-size: 18px; color: var(--navy); }
.flow-step p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- 课程覆盖 ---------- */
.subjects { padding: clamp(52px, 6vw, 82px) 0 clamp(48px, 5.4vw, 72px); }

.subject-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}

.subject-card {
  position: relative;
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.subject-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 120px; height: 120px;
  background: var(--c);
  opacity: .07;
  border-radius: 50%;
  transform: translate(38%, -42%);
}
.subject-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.subject-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, #ffffff);
  border-radius: 999px;
}

.subject-card h3 { margin: 0 0 8px; font-size: 19px; color: var(--navy); }
.subject-card p { margin: 0 0 16px; font-size: 14px; color: var(--muted); }

.subject-grade {
  font-size: 12px;
  letter-spacing: .04em;
  color: #93a4c4;
}

/* ---------- slogan 展示带 ---------- */
.slogan-band {
  position: relative;
  margin: clamp(24px, 4vw, 48px) 0 0;
  padding: clamp(56px, 8vw, 104px) 0;
  background: radial-gradient(900px 420px at 20% 10%, rgba(62, 123, 250, .35), transparent 60%),
              radial-gradient(700px 380px at 88% 90%, rgba(255, 138, 61, .28), transparent 62%),
              linear-gradient(135deg, #0b2a6b 0%, #123c96 55%, #0b2a6b 100%);
  color: #fff;
  overflow: hidden;
}

.band-shapes { position: absolute; inset: 0; opacity: .9; pointer-events: none; }
.band-shapes svg { width: 100%; height: 100%; }

.band-inner { position: relative; text-align: center; }

.band-eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .66);
}

.band-slogan {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: .06em;
  background: linear-gradient(100deg, #ffffff 12%, #ffd9a3 58%, #ffb0c3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.band-sub {
  margin: 0;
  font-size: clamp(14px, 1.3vw, 16px);
  color: rgba(255, 255, 255, .78);
}

/* ---------- 加入 ---------- */
.join { padding: clamp(48px, 6vw, 88px) 0 clamp(44px, 5vw, 64px); }

.join-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px);
  border-radius: 28px;
  background:
    radial-gradient(560px 300px at 92% -10%, rgba(62, 123, 250, .14), transparent 62%),
    linear-gradient(120deg, #f8fbff 0%, #eef4ff 100%);
  border: 1px solid #e2ecff;
  overflow: hidden;
}

.join-shape { position: absolute; pointer-events: none; }
.s-a {
  top: -40px; left: -36px;
  width: 124px; height: 124px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  opacity: .13;
}
.s-b {
  bottom: -52px; right: 22%;
  width: 132px; height: 132px;
  background: var(--green);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
  opacity: .13;
}
.s-c {
  top: 26%; right: -28px;
  width: 104px; height: 104px;
  background: var(--blue);
  opacity: .10;
  transform: rotate(18deg);
}

.join-copy { position: relative; }

.join-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.9vw, 38px);
  line-height: 1.3;
  color: var(--navy);
  font-weight: 800;
}

.join-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.join-badge {
  position: relative;
  justify-self: center;
  min-width: 190px;
  padding: 26px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid #e6eeff;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}
.badge-star svg { width: 46px; height: 46px; margin: 0 auto 10px; animation: floatY 6s ease-in-out infinite; }
.badge-title { margin: 0; font-size: 15px; font-weight: 700; color: var(--navy); }
.badge-sub { margin: 6px 0 0; font-size: 12px; letter-spacing: .12em; color: var(--muted); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #081f4f;
  color: rgba(255, 255, 255, .72);
  padding: 34px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img {
  width: 46px; height: 46px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 3px;
}
.footer-name { margin: 0; color: #fff; font-size: 15px; letter-spacing: .02em; }
.footer-slogan { margin: 2px 0 0; font-size: 12px; color: rgba(255, 255, 255, .58); letter-spacing: .12em; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
}
.footer-links a { color: rgba(255, 255, 255, .74); transition: color .2s ease; }
.footer-links a:hover { color: #fff; }

.footer-copy {
  width: 100%;
  margin: 6px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px;
  color: rgba(255, 255, 255, .48);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .flow, .subject-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-step:nth-child(2n)::after { display: none; }
  .duo { grid-template-columns: 1fr; }
  .duo-bridge { flex-direction: row; }
  .bridge-line { width: 54px; height: 2px; background: repeating-linear-gradient(90deg, #c6d8f8 0 6px, transparent 6px 12px); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 560px; margin: 0 auto; }
  .hero-lead { max-width: none; }
  .join-panel { grid-template-columns: 1fr; }
  .join-badge { order: -1; justify-self: start; }
  .nav { gap: 20px; }
}

@media (max-width: 820px) {
  .site-header { padding-inline: 20px; }
  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 6px 20px 14px;
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(20, 60, 140, .08);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid #f1f5fd; }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .nav-toggle { display: block; }
  .brand-text small { font-size: 10px; }
  .footer-links { margin-left: 0; width: 100%; gap: 16px; }
}

@media (max-width: 620px) {
  .container, .hero-inner { width: calc(100% - 32px); }
  .hero { padding-top: 28px; }
  .hero-title { font-size: clamp(40px, 12vw, 58px); }
  .title-underline { height: 18px; }
  .flow, .subject-grid { grid-template-columns: 1fr; }
  .flow-step::after { display: none; }
  .hero-tags { font-size: 12px; }
  .btn { width: 100%; height: 50px; }
  .hero-actions, .join-actions { flex-direction: column; }
  .duo-bridge { display: none; }
  .slogan-band { padding-block: 48px; }
  .footer-inner { gap: 18px; }
}

@media (max-width: 440px) {
  .section-head h2 { font-size: 22px; line-height: 1.4; }
  .section-lead { font-size: 14px; }
  .kicker { margin-bottom: 10px; }
  .join-copy h2 { font-size: 21px; }
  .s-a, .s-c { display: none; }
  .join-panel { padding: 26px 22px 30px; border-radius: 22px; }
  .join-badge { min-width: 0; padding: 20px 18px; }
}

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