/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: hidden;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #060927;
  color: #dedede;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

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

.wrap {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 99px;
  background-color: #060927;
  background-image: url("../assets/bg-header.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: min(1320px, 100%) auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 99px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  transition: opacity 0.2s;
}

.brand:hover {
  opacity: 0.9;
}

.brand img {
  width: 50px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}

.brand-text strong {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1;
}

.brand-text .sep {
  margin: 0 10px;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1;
}

.brand-text > span:last-child {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
  white-space: nowrap;
}

.btn-outline {
  color: #dedede;
  border-color: rgba(137,137,137,.65);
  background: transparent;
}
.btn-outline:hover { color: #1f87e8; }

.btn-outline-light {
  color: #fff;
  border-color: #fff;
  background: transparent;
}
.btn-outline-light:hover { color: #1f87e8; }

.btn-outline-muted {
  color: #dedede;
  border-color: rgba(75,75,75,1);
  background: transparent;
}
.btn-outline-muted:hover { color: #cf93d9; }

.btn-primary {
  color: #0051fe;
  background: #fff;
  font-size: 20px;
  height: 46px;
  padding: 0 36px;
  border-radius: 10px;
  border: none;
}
.btn-primary:hover { background: #dedede; }

/* ===== Hero ===== */
.hero {
  padding: 40px 0 32px;
  text-align: center;
}

.hero-tag {
  font-size: 20px;
  color: #dedede;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: #e2e2e2;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 16px;
  color: #a9a9a9;
  max-width: 820px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.hero .btn-outline {
  height: 46px;
  min-width: 240px;
  padding: 0 48px;
  margin-top: 24px;
  margin-bottom: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 10px;
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #076ce0 0%, #1a9bff 50%, #076ce0 100%);
  background-size: 200% 100%;
  box-shadow: 0 6px 28px rgba(7, 108, 224, 0.45), 0 0 0 1px rgba(144, 202, 248, 0.3);
  transition: transform 0.2s, box-shadow 0.2s, background-position 0.3s;
}

.hero .btn-outline:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(7, 108, 224, 0.55), 0 0 0 1px rgba(144, 202, 248, 0.5);
  background-position: 100% 0;
}

.hero-qrcode {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-qrcode img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
}

.hero-qrcode p,
.hero-qrcode-tip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 420px;
  margin: 0;
  padding: 12px 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(7, 108, 224, 0.15) 0%, rgba(144, 202, 248, 0.08) 100%);
  border: 1px solid rgba(144, 202, 248, 0.35);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(7, 108, 224, 0.12);
}

.hero-qrcode-tip-main {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.hero-qrcode-tip-highlight {
  font-size: 20px;
  font-weight: 700;
  color: #90caf8;
  letter-spacing: 0.5px;
  text-shadow: 0 0 20px rgba(144, 202, 248, 0.4);
}

/* ===== 平台展示图 ===== */
.showcase {
  padding: 16px 24px 32px;
}

.showcase img {
  width: min(1200px, 100%);
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}

/* ===== Features ===== */
.features {
  padding: 48px 0 64px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 28px 24px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #dedede;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: #bbb;
  line-height: 1.6;
}

/* ===== API ===== */
.api-section {
  padding: 64px 0;
}

.api-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.api-text .btn { margin-bottom: 24px; }

.api-text h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
  color: #dedede;
  line-height: 1.2;
  margin-bottom: 20px;
}

.api-text > p {
  font-size: 16px;
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 28px;
}

.api-text > .btn-outline-light { margin-bottom: 36px; }

.api-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.api-points li strong {
  display: block;
  font-size: 18px;
  color: #dedede;
  margin-bottom: 4px;
}

.api-points li span {
  font-size: 14px;
  color: #a9a9a9;
  line-height: 1.6;
}

.api-visual img {
  border-radius: 12px;
  width: 100%;
}

/* ===== Digital Human ===== */
.digital-section {
  padding: 64px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

.digital-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
}

.digital-text .btn { margin-bottom: 20px; }

.digital-text h2 {
  font-size: clamp(28px, 3vw, 40px);
  color: #dedede;
  line-height: 1.2;
  margin-bottom: 20px;
}

.digital-text h2 strong { font-size: .92em; }

.digital-text > p {
  font-size: 15px;
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 28px;
}

.digital-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.digital-points article:last-child {
  grid-column: 1 / -1;
}

.digital-points h3 {
  font-size: 18px;
  font-weight: 700;
  color: #dedede;
  margin-bottom: 8px;
}

.digital-points p {
  font-size: 14px;
  color: #a9a9a9;
  line-height: 1.6;
}

/* ===== Courses ===== */
.courses-section {
  padding: 64px 0;
}

.courses-head {
  text-align: center;
  margin-bottom: 40px;
}

.courses-head .btn { margin-bottom: 20px; }

.courses-head h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: #dedede;
  margin-bottom: 12px;
  line-height: 1.35;
}

.courses-head p {
  font-size: 16px;
  color: #a9a9a9;
}

.courses-banner {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.course-card {
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
}

.course-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #dedede;
  margin-bottom: 12px;
}

.course-card p {
  font-size: 14px;
  color: #a9a9a9;
  line-height: 1.65;
}

/* ===== CTA ===== */
.section-courses {
  padding: 48px 0 56px;
  text-align: center;
  background: linear-gradient(180deg, #060927 0%, #0a1035 100%);
  border-top: 1px solid rgba(255,255,255,.06);
}

.section-courses .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-title {
  font-size: clamp(24px, 3.5vw, 39px);
  font-weight: 700;
  color: #dedede;
  letter-spacing: 3px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.cta-desc {
  font-size: 17px;
  color: #dedede;
  max-width: 780px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.cta-btn {
  min-width: 186px;
}

/* ===== Footer ===== */
.site-footer {
  padding: 20px 0 16px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: .55;
}

.footer-brand img { width: 40px; }
.footer-brand span { font-size: 15px; color: #a9a9a9; }
.footer-brand strong { font-size: 17px; }
.footer-brand em { font-style: italic; }

.footer-copy {
  font-size: 13px;
  color: #a9a9a9;
  text-align: right;
}

.footer-copy a { color: #a9a9a9; }
.footer-copy a:hover { text-decoration: underline; }
.footer-copy .sep,
.footer-brand .sep { margin: 0 8px; opacity: .5; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .features-grid,
  .courses-grid { grid-template-columns: 1fr; }

  .api-layout,
  .digital-layout { grid-template-columns: 1fr; }

  .digital-points { grid-template-columns: 1fr; }
  .digital-points article:last-child { grid-column: auto; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-copy { text-align: center; }
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 16px;
  }

  .site-header {
    height: auto;
    min-height: 64px;
    padding-top: env(safe-area-inset-top, 0);
    background-size: cover;
    background-position: center center;
  }

  .header-inner {
    height: auto;
    min-height: 64px;
    padding: 12px 0;
  }

  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand-text {
    white-space: normal;
    flex-wrap: wrap;
    min-width: 0;
  }

  .brand-text .sep,
  .brand-text > span:last-child {
    display: none;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand img {
    width: 38px;
    height: 34px;
  }

  .hero {
    padding: 28px 0 24px;
  }

  .hero h1 {
    font-size: clamp(20px, 5.5vw, 28px);
    margin-bottom: 10px;
  }

  .hero-desc {
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.65;
  }

  .hero-qrcode {
    margin-top: 20px;
    gap: 12px;
    width: 100%;
  }

  .hero-qrcode p,
  .hero-qrcode-tip {
    width: 100%;
    max-width: none;
    padding: 10px 14px;
  }

  .hero-qrcode-tip-main {
    font-size: 15px;
    letter-spacing: 0;
  }

  .hero-qrcode-tip-highlight {
    font-size: 16px;
    letter-spacing: 0;
  }

  .hero-qrcode img {
    width: min(200px, 62vw);
    height: auto;
    aspect-ratio: 1;
  }

  .hero .btn-outline {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 20px;
    margin-top: 20px;
    font-size: 17px;
    letter-spacing: 0;
  }

  .showcase {
    padding: 12px 16px 24px;
  }

  .showcase img {
    width: 100%;
    border-radius: 8px;
  }

  .section-courses {
    padding: 36px 0 40px;
  }

  .cta-title {
    font-size: clamp(20px, 5.5vw, 28px);
    letter-spacing: 1px;
  }

  .cta-desc {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .btn-primary {
    width: 100%;
    max-width: 280px;
    font-size: 17px;
    height: 44px;
    padding: 0 24px;
  }

  .site-footer {
    padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0));
  }

  .footer-brand {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }

  .footer-brand span {
    font-size: 13px;
  }

  .footer-copy {
    font-size: 12px;
    line-height: 1.75;
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 14px;
  }

  .header-inner {
    min-height: 56px;
    padding: 10px 0;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .brand img {
    width: 34px;
    height: 30px;
  }

  .hero h1 {
    font-size: 19px;
  }

  .hero-desc {
    font-size: 13px;
  }

  .hero-qrcode img {
    width: min(180px, 58vw);
  }

  .hero .btn-outline {
    font-size: 16px;
  }

  .cta-title {
    letter-spacing: 0;
  }

  .footer-brand em {
    display: block;
    margin-top: 2px;
  }
}
