* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", sans-serif;
}

body {
  background-color: #ffffff;
  color: #333;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.3s;
  color: inherit;
}

.logo-container:hover {
  opacity: 0.8;
}

.logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  letter-spacing: 1px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.logo {
  height: 50px;
  cursor: pointer;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 40px;
  position: relative;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
  margin-top: 10px;
  overflow: visible;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-item {
  position: relative;
}

.dropdown-item > a {
  display: block;
  padding: 12px 25px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  transition: background-color 0.3s, color 0.3s;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child > a {
  border-bottom: none;
}

.dropdown-item > a:hover {
  background-color: #f5f5f5;
  color: #0070f3;
}

/* Submenu */
.dropdown-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 0;
  min-width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  margin-left: 5px;
}

.dropdown-item:hover .dropdown-submenu {
  opacity: 1;
  visibility: visible;
}

.dropdown-submenu a {
  display: block;
  padding: 10px 20px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s, color 0.3s;
  text-align: left;
  line-height: 1.6;
}

.dropdown-submenu a:hover {
  background-color: #f5f5f5;
  color: #0070f3;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s, background-color 0.3s;
  padding: 8px 16px;
  border-radius: 4px;
}

nav ul li a:hover {
  color: #0070f3;
}

/* 激活状态样式 */
nav ul li a.active {
  background-color: #e3f2fd;
  color: #0070f3;
}

/* Breadcrumb */
.breadcrumb {
  padding: 100px 0 20px;
  background-color: #f0f0f0;
}

.breadcrumb a {
  color: #0070f3;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  padding-top: 80px; /* 为固定导航栏留出空间 */
  overflow: hidden;
}

/* 视频背景 */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

/* 视频蒙版 */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* 遭挡视频水印 */
.video-watermark-cover {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  z-index: 1;
}

/* 自动消失提示框 */
.toast-notification {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.toast-notification.show {
  opacity: 1;
}

.hero-content {
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  position: relative;
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #0070f3;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 16px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #005bbd;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 112, 243, 0.3);
}

/* Services Section */
.services {
  padding: 80px 80px;
  text-align: center;
  background-color: white;
}

.section-title {
  font-size: 36px;
  margin-bottom: 20px;
  color: #333;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #0070f3;
}

.section-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 60px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* Service Category */
.service-category {
  margin-bottom: 80px;
}

.category-title {
  font-size: 28px;
  color: #0070f3;
  text-align: left;
  margin-bottom: 30px;
  padding-left: 20px;
  border-left: 4px solid #0070f3;
}

.cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

#about .section-subtitle {
  max-width: 1200px;
}

#about {
  padding-top: 0;
  background-color: white;
}

.card {
  width: 100%;
  max-width: 380px;
  padding: 50px 40px;
  border-radius: 0;
  background-color: #ffffff;
  box-shadow: none;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card img {
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  border-radius: 50%;
  border: 2px solid #0070f3;
  padding: 1px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #333;
  font-weight: 500;
  position: relative;
  padding-bottom: 15px;
}

.card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: #0070f3;
}

.card h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
  font-weight: 500;
}

.card p {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
  flex-grow: 1;
  margin-bottom: 0;
}

.detail-link {
  display: inline-block;
  color: #0070f3;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid #0070f3;
  border-radius: 4px;
  transition: all 0.3s;
  align-self: flex-start;
}

.detail-link:hover {
  background-color: #0070f3;
  color: white;
}

:root {
  --brand-purple: #0070f3;
  --brand-light: #e6f2ff;
  --brand-grid: #e6f0ff;
  --brand-gen: #eef6ff;
  --brand-user: #f7f7f7;
  --border: #e6efff;
  --text: #333;
  --muted: #666;
  --card-shadow: 0 16px 36px rgba(0, 112, 243, 0.14);
}

/* 产品与服务四列（参考图1风格） */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 320px);
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-card {
  position: relative;
  background: #fff;
  border-right: 1px solid #ddd;
  padding: 30px 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-card:last-child {
  border-right: none;
}

.product-card:hover {
  transform: translateY(-5px) scale(1.053);
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.product-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.product-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.product-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

.product-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.product-list li::before {
  content: "📋";
  font-size: 16px;
  margin-right: 8px;
  flex-shrink: 0;
}

.detail-link.small {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid #0070f3;
  color: #0070f3;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.detail-link.small:hover {
  background: #0070f3;
  color: #fff;
}

/* 响应式 */
@media (max-width: 1200px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .products-grid { grid-template-columns: 1fr; } }

/* Product Detail */
.product-detail {
  padding: 50px 0;
  background-color: white;
}

.product-header {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
  align-items: center;
}

.product-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-title h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #333;
}

.product-title p {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
}

.product-section {
  margin-bottom: 60px;
}

.product-section .section-title {
  text-align: left;
  margin-bottom: 40px;
}

.features, .advantages, .consulting-content, .cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-item, .advantage-item, .consulting-item, .case-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-radius: 8px;
  background-color: #f8f9fa;
  transition: transform 0.3s;
}

.feature-item:hover, .advantage-item:hover, .consulting-item:hover, .case-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.feature-icon, .advantage-icon, .consulting-icon, .case-icon {
  width: 60px;
  height: 60px;
  background-color: #0070f3;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.feature-content h3, .advantage-content h3, .consulting-details h3, .case-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #333;
}

.feature-content p, .advantage-content p, .consulting-details p, .case-content p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

.consulting-details ul {
  list-style-type: none;
  padding-left: 0;
}

.consulting-details ul li {
  padding: 5px 0;
  position: relative;
  padding-left: 15px;
}

.consulting-details ul li::before {
  content: "•";
  color: #0070f3;
  position: absolute;
  left: 0;
  top: 5px;
}

/* Contact CTA */
.contact-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #001a33 0%, #003366 100%);
  color: white;
  text-align: center;
}

.contact-cta h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.contact-cta p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Contact Section */
.contact {
  padding: 80px 80px;
  background-color: white;
  text-align: center;
}

.contact-container {
  display: flex;
  gap: 60px;
  max-width: 1200px;
  margin: 40px auto 0;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 35px;
  text-align: left;
}

.contact-office {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: flex-start;
}

.office-icon {
  flex-shrink: 0;
  margin-top: 3px;
}

.office-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-office h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.contact-office p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Footer */
footer {
  background-color: #000;
  color: #aaa;
  text-align: center;
  padding: 30px;
  font-size: 14px;
}

footer a {
  color: #0070f3;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.footer-about {
  max-width: 800px;
  margin: 0 auto 20px;
  padding: 0 20px;
}



.footer-about p {
  color: #ccc;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.footer-services, .footer-about {
  display: inline-block;
  vertical-align: top;
  margin: 0 40px;
  text-align: left;
}

.footer-services h3, .footer-about h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-service-category {
  display: inline-block;
  vertical-align: top;
  margin: 0;
}

.footer-service-category h4 {
  color: #fff;
  font-size: 16px;
  margin: 0 0 10px 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #0070f3;
  text-decoration: underline;
}

/* 右侧悬浮按钮 */
.float-buttons {
  position: fixed;
  right: 50px;
  bottom: 150px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.float-btn {
  width: 60px;
  height: 60px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: #666;
  position: relative;
}

.float-btn:hover {
  background-color: #0070f3;
  color: #fff;
  border-color: #0070f3;
  box-shadow: 0 4px 12px rgba(0, 112, 243, 0.3);
  transform: translateY(-3px);
}

.float-btn svg {
  width: 30px;
  height: 30px;
}

/* 联系信息卡片 */
.contact-card {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #2d2d2d;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  width: 220px;
  z-index: 10;
}

#contactBtn:hover .contact-card {
  opacity: 1;
  visibility: visible;
}

.qr-code {
  background-color: #fff;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.qr-code img {
  width: 100%;
  height: auto;
  display: block;
}

.contact-info-text {
  color: #999;
  font-size: 13px;
  line-height: 1.6;
}

.contact-info-text p {
  margin: 5px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 返回顶部按钮初始隐藏 */
#backToTop {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

/* Responsive */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 42px;
  }
  .about {
    flex-direction: column;
  }
  .about img {
    width: 80%;
  }
  .product-header {
    flex-direction: column;
  }
  .product-image {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 600px) {
  header {
    padding: 0 20px;
    height: 80px;
  }
  .logo-img {
    height: 35px;
  }
  .logo-text {
    font-size: 20px;
  }
  nav ul {
    flex-direction: column;
    background: white;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    display: none;
  }
  nav ul.show {
    display: flex;
  }
  /* 确保在滚动时导航栏仍然可见 */
  header {
    display: flex !important;
  }
  nav ul li {
    margin: 10px 0;
    text-align: center;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero p {
    font-size: 16px;
  }
  .cards {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 100%;
    max-width: 350px;
  }
  .contact-info {
    flex-direction: column;
    gap: 30px;
  }
  .section-title {
    font-size: 28px;
  }
  .section-subtitle {
    font-size: 16px;
  }
  .category-title {
    font-size: 24px;
  }
  .product-title h1 {
    font-size: 28px;
  }
  .product-title p {
    font-size: 16px;
  }
  .features, .advantages, .consulting-content, .cases {
    grid-template-columns: 1fr;
  }
}