:root {
  --primary: #0ea5e9;
  --primary-dark: #0369a1;
  --secondary: #6366f1;
  --accent: #a855f7;
  --bg-dark: #0a2a6b;
  --bg-card: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --gradient: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #a855f7 100%);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background: #f8fafc;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(180deg, #081642 0%, #0a2a6b 100%);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.logo-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(-8px) scale(0.92);
}

.logo-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, #020617 0%, #06245c 45%, #0a2a6b 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 30%, rgba(14, 165, 233, 0.4), transparent 45%),
    radial-gradient(circle at 82% 72%, rgba(99, 102, 241, 0.35), transparent 45%),
    linear-gradient(135deg, #03205c 0%, #0a3d8f 50%, #0ea5e9 100%);
  opacity: 0.9;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.18) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(56deg) scale(1.7);
  transform-origin: center bottom;
  opacity: 0.5;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 82%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 82%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-orb.orb-1 {
  width: 420px;
  height: 420px;
  background: rgba(14, 165, 233, 0.55);
  top: -80px;
  left: -80px;
  animation: orbMove 14s ease-in-out infinite;
}

.hero-orb.orb-2 {
  width: 520px;
  height: 520px;
  background: rgba(99, 102, 241, 0.5);
  bottom: -140px;
  right: -120px;
  animation: orbMove 18s ease-in-out infinite reverse;
}

@keyframes orbMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -24px) scale(1.08); }
}

.hero-particles {
  position: absolute;
  inset: 0;
}

.hero-logo {
  width: clamp(120px, 18vw, 200px);
  height: clamp(120px, 18vw, 200px);
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 28px;
  animation: logoFloat 4s ease-in-out infinite;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

a.hero-logo:hover {
  box-shadow: 0 12px 40px rgba(56, 189, 248, 0.6);
  transform: scale(1.05);
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(-12px) scale(1.00);
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 120px 24px 80px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.1);
}

.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 20px;
}

.hero p {
  font-size: clamp(15px, 2.2vw, 20px);
  color: rgba(255, 255, 255, 0.92);
  max-width: 700px;
  margin: 0 auto 40px;
}

.btn {
  display: inline-block;
  padding: 14px 38px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.btn-primary {
  background: #fff;
  color: var(--primary-dark);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.25);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.btn-gradient {
  background: var(--gradient);
  color: #fff;
}

.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 区块通用 ---------- */
.section {
  padding: 64px 0;
}

.section-alt {
  background: #fff;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 37px;
}

.section-head .tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 16px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- 简介 ---------- */
.intro-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.intro-card h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.intro-card p {
  color: var(--text-muted);
  font-size: 16px;
}

/* ---------- 业务卡片 ---------- */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.biz-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.biz-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}

.biz-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.biz-card:hover::before {
  transform: scaleX(1);
}

.biz-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
}

.biz-icon svg {
  width: 30px;
  height: 30px;
}

.biz-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
}

.biz-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 16px;
}

.biz-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.biz-link:hover {
  color: var(--primary-dark);
}

/* ---------- 业务页详情 ---------- */
.biz-detail {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

.biz-detail:not(:last-child) {
  margin-bottom: 37px;
}

.biz-detail-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 10px;
}

.biz-detail h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.4;
}

.biz-detail p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.service-list {
  list-style: none;
  margin-top: 16px;
}

.service-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 15px;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient);
}

/* ---------- 页头横幅 ---------- */
.page-hero {
  padding: 107px 0 60px;
  text-align: center;
  color: #fff;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.9;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- CTA ---------- */
.cta {
  padding: 53px 0;
}

.cta-card {
  background: var(--bg-dark);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.85;
}

.cta-card h2 {
  position: relative;
  z-index: 2;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-card p {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 30px;
}

.cta-card .btn {
  position: relative;
  z-index: 2;
}

/* ---------- 联系页 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.info-item {
  display: flex;
  gap: 18px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  align-items: flex-start;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.info-icon svg {
  width: 24px;
  height: 24px;
}

.info-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.info-item p,
.info-item a {
  color: var(--text-muted);
  font-size: 15px;
  word-break: break-all;
}

.info-item a:hover {
  color: var(--primary);
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.contact-line .mini-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--primary);
}

/* ---------- 表单 ---------- */
.contact-form {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.contact-form .sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group label .req {
  color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-dark);
  background: #f8fafc;
  transition: all 0.25s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
}

.form-success .icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-success h4 {
  font-size: 20px;
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-muted);
  font-size: 14px;
}

.form-error {
  color: #ef4444;
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

.form-error.show {
  display: block;
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 27px;
}

.footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-about .logo-text {
  display: inline-flex;
  margin-bottom: 16px;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.9;
}

.footer-links a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  transition: color 0.25s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact p {
  font-size: 14px;
  padding: 4px 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- 滚动动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .biz-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .biz-detail {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-inner {
    height: 72px;
  }

  .logo-icon {
    width: 56px;
    height: 56px;
  }

  .logo-text {
    font-size: 14px;
    max-width: 46vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--bg-dark);
    padding: 16px 24px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform 0.35s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    display: block;
    padding: 14px 12px;
  }

  .section {
    padding: 43px 0;
  }

  .biz-grid {
    grid-template-columns: 1fr;
  }

  .intro-card {
    padding: 32px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cta-card {
    padding: 48px 24px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 90px 20px 60px;
  }

  .hero h1 {
    font-size: 26px;
    line-height: 1.4;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .intro-card {
    padding: 28px 20px;
  }

  .intro-card h3 {
    font-size: 20px;
  }

  .biz-card {
    padding: 30px 22px;
  }

  .cta-card {
    padding: 40px 20px;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .contact-form h3 {
    font-size: 20px;
  }

  .contact-item {
    padding: 16px;
  }

  .page-hero {
    padding: 72px 0 44px;
  }

  .page-hero h1 {
    font-size: 26px;
  }

  .page-hero p {
    font-size: 15px;
  }
}
