/* ========================================
   博创科技 - 前台官网样式
   现代化科技感设计
   ======================================== */

:root {
  /* 主色调 - 科技蓝紫渐变 */
  --primary: #0066FF;
  --primary-dark: #0052CC;
  --primary-light: #3385FF;
  --secondary: #6C5CE7;
  --secondary-dark: #5849C4;
  --accent: #00D4AA;
  --accent-alt: #00B894;

  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #0066FF 0%, #6C5CE7 100%);
  --gradient-secondary: linear-gradient(135deg, #6C5CE7 0%, #A855F7 100%);
  --gradient-accent: linear-gradient(135deg, #00D4AA 0%, #00B894 100%);
  --gradient-dark: linear-gradient(135deg, #0A0A1A 0%, #1A1A2E 100%);
  --gradient-glow: linear-gradient(135deg, rgba(0, 102, 255, 0.15) 0%, rgba(108, 92, 231, 0.15) 100%);

  /* 深色背景 */
  --dark-bg: #0A0A1A;
  --dark-surface: #12121F;
  --dark-card: #1A1A2E;
  --dark-border: rgba(255, 255, 255, 0.1);

  /* 文字颜色 */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-dark: #1F2937;

  /* 其他 */
  --border-radius: 1rem;
  --transition: all 0.3s ease;
  --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.3);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== 导航栏 ========== */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  padding: 0.75rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary) !important;
}

.navbar-brand i {
  font-size: 1.75rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--text-primary) !important;
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
}

.navbar-toggler {
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
}

.btn-primary-glow {
  background: var(--gradient-primary);
  color: #fff !important;
  border: none;
  padding: 0.625rem 1.5rem;
  border-radius: 2rem;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 102, 255, 0.5);
}

/* ========== Banner区域 ========== */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Swiper 轮播样式 */
.hero-swiper {
  width: 100%;
  height: 100vh;
}

.hero-swiper .swiper-slide {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: var(--primary);
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  color: rgba(255, 255, 255, 0.7);
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-dark);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(108, 92, 231, 0.15) 0%, transparent 50%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: float 15s infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--gradient-glow);
  border: 1px solid var(--dark-border);
  border-radius: 2rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline-light {
  border: 1px solid var(--dark-border);
  color: var(--text-primary);
  padding: 0.625rem 1.5rem;
  border-radius: 2rem;
  transition: var(--transition);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator i {
  font-size: 2rem;
  color: var(--text-muted);
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* ========== 通用区块 ========== */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-dark {
  background: var(--dark-surface);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gradient-glow);
  border: 1px solid var(--dark-border);
  border-radius: 2rem;
  font-size: 0.875rem;
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ========== 解决方案卡片 ========== */
.solution-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.solution-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 102, 255, 0.3);
  box-shadow: var(--shadow-glow);
}

.solution-card:hover::before {
  opacity: 1;
}

.solution-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-glow);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.solution-card:hover .solution-icon {
  background: var(--gradient-primary);
  color: #fff;
}

.solution-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.solution-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.solution-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.solution-link:hover {
  color: var(--primary-light);
  gap: 0.75rem;
}

/* ========== 统计数据 ========== */
.stats-section {
  background: var(--gradient-primary);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stat-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* ========== 案例卡片 ========== */
.case-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.case-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.case-card:hover .case-image img {
  transform: scale(1.1);
}

.case-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: var(--transition);
}

.case-card:hover .case-overlay {
  opacity: 1;
}

.case-content {
  padding: 1.5rem;
}

.case-category {
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.case-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.case-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ========== 合作伙伴 ========== */
.partners-section {
  background: var(--dark-surface);
  padding: 4rem 0;
  overflow: hidden;
}

.partners-track {
  display: flex;
  animation: scroll 30s linear infinite;
}

.partner-logo {
  flex: 0 0 200px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  filter: grayscale(1) brightness(0.6);
  opacity: 0.6;
  transition: var(--transition);
}

.partner-logo:hover {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ========== 新闻卡片 ========== */
.news-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.news-image {
  height: 180px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.news-card:hover .news-image img {
  transform: scale(1.1);
}

.news-content {
  padding: 1.5rem;
}

.news-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.news-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.news-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ========== 页脚 ========== */
.site-footer {
  background: var(--dark-surface);
  border-top: 1px solid var(--dark-border);
}

.footer-main {
  padding: 5rem 0 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-brand i {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 0.5rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
}

.footer-main h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.footer-contact i {
  color: var(--primary);
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid var(--dark-border);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

.footer-bottom a {
  color: var(--text-secondary);
  text-decoration: none;
}

/* ========== 页面Banner ========== */
.page-banner {
  padding: 10rem 0 4rem;
  position: relative;
  background: var(--gradient-dark);
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(108, 92, 231, 0.1) 0%, transparent 50%);
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  font-size: 0.875rem;
}

.breadcrumb-item a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--text-muted);
}

.breadcrumb-item+.breadcrumb-item::before {
  color: var(--text-muted);
}

/* ========== 优势区块 ========== */
.advantage-card {
  text-align: center;
  padding: 2rem;
}

.advantage-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-glow);
  border: 1px solid var(--dark-border);
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.advantage-card:hover .advantage-icon {
  background: var(--gradient-primary);
  color: #fff;
  transform: scale(1.1);
}

.advantage-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.advantage-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ========== CTA区块 ========== */
.cta-section {
  padding: 5rem 0;
  background: var(--gradient-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.cta-desc {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  position: relative;
}

.btn-white {
  background: #fff;
  color: var(--primary);
  padding: 0.75rem 2rem;
  border-radius: 2rem;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  position: relative;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: var(--primary);
}

/* ========== 响应式 ========== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--dark-surface);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }
}

/* ========== 动画 ========== */
[data-aos] {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-float {
  animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* 数字滚动动画 */
.counter {
  display: inline-block;
}

/* ========== 详情页内容区域图片样式 ========== */
.content-body img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  margin: 1rem 0;
  display: block;
}

/* 详情页正文中通过富文本编辑器插入的图片 */
.text-secondary img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  margin: 1rem 0;
  display: block;
}