/* ========== 变量 ========== */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #3B82F6;
  --accent: #06B6D4;
  --accent-dark: #0891B2;
  --dark: #0F172A;
  --dark-2: #1E293B;
  --light: #F8FAFC;
  --gray: #64748B;
  --card-bg: #F8FAFC;
  --text-dark: #0F172A;
  --text-light: #64748B;
  --gradient: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  --gradient-2: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
}

/* ========== 全局 ========== */
html {
  scroll-behavior: smooth;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  background: #FFFFFF;
}
.section-padding {
  padding: 100px 0;
}
@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

/* ========== 导航栏 ========== */
.navbar {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  padding: 18px 0;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}
.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: var(--dark) !important;
}
.brand-icon {
  display: inline-block;
  font-size: 1.6rem;
  margin-right: 2px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
  display: block;
}
.navbar-brand-text {
  color: var(--dark);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.navbar-nav .nav-link {
  color: var(--gray) !important;
  font-weight: 500;
  margin: 0 4px;
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary) !important;
  background: rgba(37, 99, 235, 0.06);
}
.navbar-nav .btn-consult {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 25px !important;
  padding: 8px 22px !important;
  font-weight: 600 !important;
}
.navbar-nav .btn-consult:hover,
.navbar-nav .btn-consult.active {
  background: var(--primary-dark) !important;
  color: #fff !important;
}

/* ========== 移动端折叠菜单 ========== */
@media (max-width: 991.98px) {
  .navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .navbar-collapse {
    background: #fff;
    border-radius: 16px;
    margin-top: 14px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    border: 1px solid #e2e8f0;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }
  .navbar-collapse .navbar-nav {
    margin-left: 0 !important;
  }
  .navbar-collapse .nav-item {
    margin: 2px 0;
  }
  .navbar-collapse .nav-link {
    color: var(--dark) !important;
    padding: 12px 16px !important;
    border-radius: 10px;
    font-weight: 600;
  }
  .navbar-collapse .nav-link:hover,
  .navbar-collapse .nav-link.active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary) !important;
  }
  .navbar-collapse .btn-consult {
    display: inline-block;
    text-align: center;
    margin: 8px 0 0 !important;
    color: #fff !important;
  }
  .navbar-collapse .btn-consult:hover {
    color: #fff !important;
    background: var(--primary-dark) !important;
  }
  /* 汉堡按钮在白色背景上改为深色 */
  .navbar-dark .navbar-toggler {
    border-color: rgba(15, 23, 42, 0.25);
  }
  .navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2815,23,42,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
}

/* ========== Hero 区域 ========== */
.hero-section {
  background: linear-gradient(180deg, #F0F5FF 0%, #FFFFFF 50%, #F8FAFC 100%);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06), transparent 70%);
  border-radius: 50%;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.04), transparent 70%);
  border-radius: 50%;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
}
.badge-tag {
  display: inline-block;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero-title {
  color: var(--dark);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
}
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-btns .btn-primary {
  background: var(--gradient);
  border: none;
  padding: 14px 36px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  transition: all 0.3s ease;
}
.hero-btns .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.35);
  background: var(--primary-dark);
}
.hero-btns .btn-outline-light {
  border: 1px solid #cbd5e1;
  color: var(--gray);
  padding: 14px 36px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
}
.hero-btns .btn-outline-light:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.hero-stats {
  display: flex;
  gap: 48px;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}
.stat-label {
  color: var(--gray);
  font-size: 0.875rem;
}

/* 右侧视觉 */
.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-illustration {
  position: relative;
  width: 400px;
  height: 400px;
}
.hero-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  border: 2px solid rgba(37, 99, 235, 0.12);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}
.hero-circle-small {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border: 2px dashed rgba(6, 182, 212, 0.1);
  border-radius: 50%;
  animation: rotate 15s linear infinite reverse;
}
.float-card {
  position: absolute;
  background: #fff;
  backdrop-filter: blur(10px);
  border: 1px solid #e2e8f0;
  color: var(--dark);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-lg);
}
.card-1 { top: 10%; left: 10%; animation: float 4s ease-in-out infinite; }
.card-2 { top: 15%; right: 5%; animation: float 5s ease-in-out infinite 0.5s; }
.card-3 { bottom: 20%; left: 5%; animation: float 4.5s ease-in-out infinite 1s; }
.card-4 { bottom: 15%; right: 10%; animation: float 5.5s ease-in-out infinite 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
@keyframes rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 991px) {
  .hero-title { font-size: 2.2rem; }
  .hero-visual { height: 350px; }
  .hero-illustration { transform: scale(0.7); }
  .hero-stats { gap: 24px; }
}

/* ========== 区块标题 ========== */
.section-tag {
  display: inline-block;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}
.section-desc {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto;
}

/* ========== 服务卡片 ========== */
.service-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  height: 100%;
  transition: all 0.3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.service-icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
}
.service-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}
.service-card p {
  color: var(--gray);
  font-size: 0.925rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.service-tags span {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}
.service-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.service-link:hover {
  color: var(--primary-dark);
}

/* ========== 开发流程 ========== */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
}
.process-timeline::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, #e2e8f0, var(--primary-light), var(--accent), var(--primary-light), #e2e8f0);
}
.process-step {
  text-align: center;
  position: relative;
  padding: 0 12px;
}
.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}
.process-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.process-step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.process-step p {
  color: var(--gray);
  font-size: 0.82rem;
  line-height: 1.6;
}

@media (max-width: 991px) {
  .process-timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 0;
  }
  .process-timeline::before {
    display: none;
  }
}
@media (max-width: 576px) {
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== 服务优势卡片 ========== */
.advantage-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  height: 100%;
  text-align: center;
  transition: all 0.3s ease;
}
.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}
.advantage-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.advantage-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.advantage-card p {
  color: var(--gray);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* ========== 行业网格 ========== */
.bg-light {
  background: var(--card-bg) !important;
}
.industry-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.industry-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: var(--gray);
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
}
.industry-item:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ========== 新闻动态 ========== */
.news-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 28px;
  height: 100%;
  transition: all 0.3s ease;
}
.news-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}
.news-date {
  display: inline-block;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  padding: 3px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.news-card h5 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
}
.news-card h5 a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.3s;
}
.news-card h5 a:hover {
  color: var(--primary);
}
.news-card p {
  color: var(--gray);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* ========== 查看更多按钮 ========== */
.btn-outline-primary {
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 12px 36px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

/* ========== 侧边悬浮咨询 ========== */
.side-consult {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.side-consult-item {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 12px 10px;
  writing-mode: vertical-rl;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 10px 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}
.side-consult-item:hover {
  padding-right: 16px;
  color: #fff;
}
.side-consult-item .side-icon {
  writing-mode: horizontal-tb;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .side-consult {
    display: none;
  }
}

/* ========== 客户案例 ========== */
.case-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.case-link:hover .case-card {
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}
.case-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.case-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}
.case-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #f8fafc;
}
.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.case-card:hover .case-image img {
  transform: scale(1.06);
}
.case-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.case-tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.case-card h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}
.case-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.7;
}
.case-meta {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.85rem;
  color: var(--gray);
}

/* ========== 关于我们 / 技术优势 ========== */
.bg-dark {
  background: var(--dark) !important;
}
.bg-dark .text-white {
  color: #fff !important;
}
.bg-dark .text-white-50 {
  color: #94a3b8 !important;
}
.bg-dark .section-tag {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary-light);
}
.bg-dark .section-title {
  color: #fff;
}
.bg-dark .section-desc {
  color: #94a3b8;
}
.advantage-item {
  padding: 16px 0;
}
.advantage-item h4 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--primary-light);
}
.advantage-item p {
  color: #94a3b8;
}
.bg-dark .section-title {
  color: #fff;
}
.bg-dark .section-desc {
  color: #94a3b8;
}
.tech-stack {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tech-tag {
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary-light);
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(37, 99, 235, 0.25);
  transition: all 0.3s;
}
.tech-tag:hover {
  background: rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
}

/* ========== CTA 咨询 ========== */
.cta-section {
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}
.cta-title {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
}
.contact-form-wrapper {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.contact-form-wrapper .form-label {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.875rem;
}
.contact-form-wrapper .form-control {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: all 0.3s;
}
.contact-form-wrapper .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}
.contact-form-wrapper .btn-primary {
  background: var(--gradient);
  border: none;
  padding: 14px 48px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  transition: all 0.3s;
}
.contact-form-wrapper .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.35);
}

/* ========== 页脚 ========== */
.footer {
  background: var(--dark);
  padding: 60px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-brand {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.footer-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--primary-light);
}
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact li {
  color: #94a3b8;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
}
.footer-bottom p {
  color: #94a3b8;
  font-size: 0.85rem;
}

/* ========== 滚动动画 ========== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
