/* ============================================================
   圣立科技官网 - 全局样式
   ============================================================ */
:root {
  --primary: #7c5cff;
  --primary-dark: #5b3df0;
  --primary-light: #9d85ff;
  --accent: #00d4ff;
  --dark: #0f1023;
  --dark-2: #171933;
  --text: #2d2f45;
  --text-light: #6b6d85;
  --bg: #ffffff;
  --bg-soft: #f6f7ff;
  --border: #eceef8;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(30, 20, 90, 0.08);
  --shadow-lg: 0 30px 80px rgba(30, 20, 90, 0.14);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(124, 92, 255, 0.45);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

/* ---------- 页头 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.35s ease;
  background: transparent;
}

.site-header.scrolled {
  background: rgba(15, 16, 35, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.logo-icon {
  font-size: 26px;
}

.logo-text em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: flex;
  gap: 34px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 6px 2px;
  transition: color 0.25s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ---------- 汉堡菜单 ---------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #0f1023 0%, #171933 45%, #241a4d 100%);
  color: #fff;
  overflow: hidden;
  padding: 140px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.hero-orb-1 {
  width: 480px;
  height: 480px;
  background: #7c5cff;
  top: -120px;
  right: -100px;
  animation: float 9s ease-in-out infinite;
}

.hero-orb-2 {
  width: 380px;
  height: 380px;
  background: #00d4ff;
  bottom: -140px;
  left: -80px;
  opacity: 0.35;
  animation: float 11s ease-in-out infinite reverse;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-34px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
}

.hero-title {
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #9d85ff, #00d4ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-subtitle strong {
  color: #fff;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* 数据卡片 */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.stat-num {
  font-size: 44px;
  font-weight: 800;
  background: linear-gradient(135deg, #9d85ff, #00d4ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-plus {
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(135deg, #9d85ff, #00d4ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- 通用区块标题 ---------- */
.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-light);
  font-size: 16px;
}

/* ---------- 服务 ---------- */
.services {
  background: var(--bg);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 30px;
  transition: all 0.35s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  background: linear-gradient(160deg, #fff 0%, #f6f4ff 100%);
}

.card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.14), rgba(0, 212, 255, 0.14));
  margin-bottom: 22px;
}

.service-card h3 {
  font-size: 21px;
  color: var(--dark);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 14.5px;
  margin-bottom: 18px;
}

.card-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-points li {
  font-size: 13.5px;
  color: var(--text);
  padding-left: 22px;
  position: relative;
}

.card-points li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 13px;
}

/* ---------- 流程 ---------- */
.process {
  background: var(--bg-soft);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 22px;
  position: relative;
  transition: all 0.3s;
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.step-num {
  display: inline-block;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}

.step h4 {
  font-size: 17px;
  color: var(--dark);
  margin-bottom: 8px;
}

.step p {
  font-size: 13.5px;
  color: var(--text-light);
}

/* ---------- 案例 ---------- */
.cases {
  background: var(--bg);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.case-card {
  display: flex;
  gap: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: all 0.35s;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.case-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--c), rgba(0, 212, 255, 0.35));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  color: #fff;
}

.case-info h3 {
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 8px;
}

.case-info p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.case-tag {
  display: inline-block;
  font-size: 12.5px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.12);
  color: var(--primary);
  font-weight: 600;
}

/* ---------- 关于我们 ---------- */
.about {
  background: linear-gradient(160deg, #f6f7ff 0%, #eef0ff 100%);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.about-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
}

.about-card-main {
  grid-column: 1 / -1;
  background: linear-gradient(140deg, var(--primary), #4a2fd6);
  color: #fff;
  border: none;
}

.about-card-main .about-emoji {
  background: rgba(255, 255, 255, 0.18);
}

.about-card h3 {
  font-size: 17px;
  margin: 14px 0 6px;
}

.about-card p {
  font-size: 13.5px;
  color: var(--text-light);
}

.about-card-main p {
  color: rgba(255, 255, 255, 0.85);
}

.about-emoji {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border-radius: 14px;
  background: rgba(124, 92, 255, 0.12);
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 14px;
}

.about-text .section-title {
  margin-bottom: 20px;
}

.about-list {
  list-style: none;
  margin: 22px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-list li {
  font-size: 14.5px;
  color: var(--text);
}

/* ---------- 联系 ---------- */
.contact {
  background: var(--bg);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.14), rgba(0, 212, 255, 0.14));
}

.contact-label {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 2px;
}

.contact-list a {
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  transition: color 0.25s;
}

.contact-list a:hover {
  color: var(--primary);
}

.contact-list li > div > span:last-child {
  font-size: 16px;
  color: var(--dark);
}

.contact-note {
  margin-top: 28px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 159, 67, 0.1);
  border: 1px dashed rgba(255, 159, 67, 0.55);
  color: #b26a13;
  font-size: 13.5px;
}

/* 表单 */
.contact-form {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: all 0.25s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.12);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.form-tip {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
}

.form-tip.success {
  color: #27ae60;
  font-weight: 600;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  padding: 60px 0 40px;
  flex-wrap: wrap;
}

.logo-light .logo-text em {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  max-width: 260px;
}

.footer-links {
  display: flex;
  gap: 70px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 8px;
}

.footer-col a,
.footer-col span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.25s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-icp {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-icp a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s;
}

.footer-icp a:hover {
  color: var(--accent);
}

.footer-beian {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 26px;
  bottom: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.3s;
  box-shadow: 0 10px 26px rgba(124, 92, 255, 0.4);
  z-index: 90;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  transform: translateY(-4px);
}

/* ---------- 滚动入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .hero-content,
  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-stats {
    max-width: 480px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .cases-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(15, 16, 35, 0.98);
    padding: 12px 0 20px;
    transform: translateY(-130%);
    transition: transform 0.35s ease;
    text-align: center;
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .main-nav .nav-link {
    padding: 14px 0;
    font-size: 16px;
    display: block;
  }

  .nav-link::after {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header-actions .btn-sm {
    display: none;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links {
    gap: 40px;
    flex-wrap: wrap;
  }

  .footer-bottom-inner {
    justify-content: center;
    text-align: center;
  }

  .footer-icp {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-stats,
  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-num {
    font-size: 34px;
  }

  .case-card {
    flex-direction: column;
  }

  .case-thumb {
    width: 100%;
    height: 130px;
  }
}
