/* ==================== 基础重置 ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== 导航栏 ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #1a5fb4;
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #1a5fb4 0%, #2ec4b6 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  gap: 40px;
}

.nav-menu a {
  font-size: 15px;
  color: #555;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1a5fb4, #2ec4b6);
  transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #1a5fb4;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: #333;
  transition: all 0.3s ease;
}

/* ==================== Hero 轮播 ==================== */
.hero {
  position: relative;
  height: 720px;
  margin-top: 70px;
  overflow: hidden;
  background: #f8fafc;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s ease;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 48px;
  line-height: 1.3;
  color: #1a2a4a;
  margin-bottom: 30px;
  font-weight: 700;
}

.hero-content p {
  font-size: 20px;
  color: #4a5568;
  margin-bottom: 40px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #1a5fb4 0%, #2ec4b6 100%);
  color: #fff;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(26, 95, 180, 0.3);
}

.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 12px;
}

.hero-dot {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(26, 95, 180, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: #1a5fb4;
  width: 60px;
}

/* ==================== 通用标题 ==================== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 32px;
  color: #1a2a4a;
  margin-bottom: 10px;
  font-weight: 700;
}

.section-header p {
  font-size: 14px;
  color: #888;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ==================== 产品及解决方案 ==================== */
.products-section {
  padding: 100px 0;
  background: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.product-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(26, 95, 180, 0.1);
  border-color: #1a5fb4;
}

.product-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a5fb4 0%, #2ec4b6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
}

.product-card h3 {
  font-size: 15px;
  color: #1a2a4a;
  font-weight: 600;
  line-height: 1.5;
}

/* ==================== 新闻动态 ==================== */
.news-section {
  padding: 100px 0;
  background: #f8fafc;
}

.news-wrapper {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}

.news-title {
  font-size: 28px;
  color: #1a2a4a;
  font-weight: 700;
  padding-top: 10px;
  position: relative;
}

.news-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #1a5fb4, #2ec4b6);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: #e2e8f0;
}

.news-card time {
  display: inline-block;
  font-size: 13px;
  color: #1a5fb4;
  margin-bottom: 10px;
  font-weight: 500;
}

.news-card h4 {
  font-size: 16px;
  color: #1a2a4a;
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.news-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==================== 内页 Hero ==================== */
.page-hero {
  height: 480px;
  margin-top: 70px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f7f5 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -100px;
  top: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26, 95, 180, 0.08) 0%, transparent 70%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: 36px;
  color: #1a2a4a;
  line-height: 1.5;
  font-weight: 700;
  max-width: 700px;
}

.page-hero p {
  font-size: 20px;
  color: #4a5568;
  margin-top: 20px;
}

/* ==================== 解决方案页 ==================== */
.solutions-content {
  padding: 100px 0;
  background: #fff;
}

.solution-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.solution-item {
  padding: 40px;
  background: #f8fafc;
  border-radius: 16px;
  border-left: 4px solid #1a5fb4;
  transition: all 0.3s ease;
}

.solution-item:hover {
  box-shadow: 0 10px 40px rgba(26, 95, 180, 0.1);
  transform: translateY(-3px);
}

.solution-item h3 {
  font-size: 20px;
  color: #1a2a4a;
  margin-bottom: 12px;
}

.solution-item p {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
}

/* ==================== 产品服务页 ==================== */
.products-page {
  padding: 100px 0;
  background: #fff;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.product-detail-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 40px;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.product-detail-card:hover {
  box-shadow: 0 15px 40px rgba(26, 95, 180, 0.1);
  border-color: #1a5fb4;
}

.product-detail-card .num {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background: linear-gradient(135deg, #1a5fb4 0%, #2ec4b6 100%);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.product-detail-card h3 {
  font-size: 20px;
  color: #1a2a4a;
  margin-bottom: 12px;
}

.product-detail-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
}

/* ==================== 关于我们页 ==================== */
.about-intro {
  padding: 100px 0;
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}

.about-text h2 {
  font-size: 28px;
  color: #1a2a4a;
  margin-bottom: 30px;
  font-weight: 700;
}

.about-text p {
  font-size: 15px;
  color: #555;
  line-height: 2;
  margin-bottom: 20px;
  text-align: justify;
}

.about-side {
  background: #f8fafc;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.qr-code {
  width: 160px;
  height: 160px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

.about-side h4 {
  font-size: 16px;
  color: #1a2a4a;
  margin-bottom: 16px;
}

.about-side p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 8px;
}

/* 发展历程 */
.history-section {
  padding: 100px 0;
  background: #f8fafc;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #1a5fb4, #2ec4b6);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  padding: 20px 0;
}

.timeline-content {
  width: 45%;
  padding: 28px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: auto;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 32px;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: #fff;
  border: 3px solid #1a5fb4;
  border-radius: 50%;
  z-index: 2;
}

.timeline-content h3 {
  font-size: 18px;
  color: #1a2a4a;
  margin-bottom: 8px;
}

.timeline-content .period {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(26, 95, 180, 0.1);
  color: #1a5fb4;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 12px;
}

.timeline-content p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

.video-section {
  padding: 80px 0;
  background: #fff;
}

.video-placeholder {
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #1a2a4a;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  gap: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-placeholder:hover {
  box-shadow: 0 20px 50px rgba(26, 95, 180, 0.2);
}

.video-placeholder .play-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* ==================== 页脚 ==================== */
.footer {
  background: #1a2a4a;
  color: #fff;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #2ec4b6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #2ec4b6;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-wrapper {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.3s ease;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    height: 560px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid,
  .solution-list,
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 50px !important;
    margin-right: 0 !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
