/* === 全局重置与基础样式 === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
  line-height: 1.6;
  color: #1a1a2e;
  background-color: #f5f7fa;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img, svg {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

input, textarea {
  font: inherit;
  border: none;
  outline: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1a1a2e;
}

p {
  margin-bottom: 16px;
  color: #4a4a6a;
}

/* === 暗色模式 === */
body.dark-mode {
  background-color: #0f0f1a;
  color: #e0e0f0;
}

body.dark-mode h3 {
  color: #e0e0f0;
}

body.dark-mode p {
  color: #b0b0d0;
}

body.dark-mode .product-card,
body.dark-mode .faq-item,
body.dark-mode .stat-item,
body.dark-mode footer {
  background-color: #1a1a30;
  border-color: #2a2a50;
}

body.dark-mode .nav-container {
  background-color: rgba(15, 15, 30, 0.95);
}

body.dark-mode .search-bar {
  background-color: #1a1a30;
}

body.dark-mode .btn-primary {
  background: linear-gradient(135deg, #4a8eff, #1a73e8);
}

body.dark-mode .btn-secondary {
  border-color: #4a8eff;
  color: #4a8eff;
}

body.dark-mode .logo svg rect {
  fill: #2a5a9a;
}

body.dark-mode .back-to-top {
  background-color: #1a73e8;
  color: #fff;
}

/* === 导航栏 === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: background-color 0.3s;
}

.logo a {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: 24px;
}

.nav-menu li a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #2c3e50;
  padding: 6px 0;
  position: relative;
  transition: color 0.3s;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  transition: width 0.3s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: #1a73e8;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-actions button {
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-actions button:hover {
  background-color: rgba(26, 115, 232, 0.1);
  transform: scale(1.05);
}

.menu-toggle {
  display: none;
}

/* 搜索栏 */
.search-bar {
  display: none;
  padding: 12px 24px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.search-bar.active {
  display: block;
}

.search-bar form {
  display: flex;
  gap: 8px;
  max-width: 600px;
  margin: 0 auto;
}

.search-bar input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.search-bar input:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
}

.search-bar button {
  padding: 10px 24px;
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: opacity 0.3s;
}

.search-bar button:hover {
  opacity: 0.9;
}

/* === Hero Banner === */
.hero {
  padding-top: 80px;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  height: 520px;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.banner-slide.active {
  opacity: 1;
}

.banner-content {
  text-align: center;
  color: #fff;
  padding: 40px 24px;
  max-width: 800px;
}

.banner-content h1,
.banner-content h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.banner-content p {
  font-size: 1.15rem;
  margin-bottom: 32px;
  color: rgba(255,255,255,0.9);
}

.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, #fff, #e8f0fe);
  color: #1a73e8;
  font-weight: 700;
  border-radius: 50px;
  margin-right: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-secondary {
  display: inline-block;
  padding: 14px 36px;
  border: 2px solid #fff;
  color: #fff;
  font-weight: 700;
  border-radius: 50px;
  transition: background-color 0.3s, transform 0.3s;
}

.btn-secondary:hover {
  background-color: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

.banner-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}

.banner-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.25);
  backdrop-filter: blur(5px);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, transform 0.2s;
}

.banner-nav button:hover {
  background-color: rgba(255,255,255,0.4);
  transform: scale(1.1);
}

.dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.dot.active {
  background-color: #fff;
  transform: scale(1.3);
}

/* === 面包屑 === */
.breadcrumb {
  padding: 16px 24px;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

body.dark-mode .breadcrumb {
  background-color: #1a1a30;
}

.breadcrumb nav ol {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  color: #888;
}

.breadcrumb nav ol li a {
  color: #1a73e8;
}

.breadcrumb nav ol li a:hover {
  text-decoration: underline;
}

/* === 产品卡片 === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.product-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  border: 1px solid rgba(255,255,255,0.3);
  transition: transform 0.4s, box-shadow 0.4s;
}

.product-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 16px 48px rgba(26,115,232,0.15);
}

.product-card svg {
  margin: 0 auto 20px;
}

.product-card h3 {
  margin-bottom: 12px;
}

.product-card p {
  font-size: 0.95rem;
}

/* === 数据统计 === */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-item {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 28px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: transform 0.3s;
}

.stat-item:hover {
  transform: scale(1.05);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item span {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a73e8;
}

.stat-item p {
  margin-top: 8px;
  font-weight: 500;
  color: #555;
}

/* === FAQ === */
.faq-item {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a2e;
  transition: color 0.3s;
}

.faq-question:hover {
  color: #1a73e8;
}

.faq-icon {
  font-size: 1.4rem;
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 24px 18px;
}

.faq-answer p {
  margin: 0;
}

/* === 页脚 === */
footer {
  background-color: #1a1a2e;
  color: #ccc;
  padding: 60px 24px 20px;
}

body.dark-mode footer {
  background-color: #0a0a18;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-section h3 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.footer-section p,
.footer-section li a {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 2;
}

.footer-section li a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  font-size: 0.85rem;
  color: #888;
}

/* === 返回顶部 === */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(26,115,232,0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: scale(1.1);
}

/* === 响应式 === */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  }

  body.dark-mode .nav-menu {
    background-color: rgba(15,15,30,0.98);
  }

  .nav-menu.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-banner {
    height: 400px;
  }

  .banner-content h1,
  .banner-content h2 {
    font-size: 1.6rem;
  }

  .banner-content p {
    font-size: 1rem;
  }

  .btn-primary, .btn-secondary {
    padding: 12px 28px;
    font-size: 0.9rem;
  }

  .section {
    padding: 60px 0;
  }

  h2 {
    font-size: 1.6rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .back-to-top {
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  .hero-banner {
    height: 350px;
  }

  .banner-content h1,
  .banner-content h2 {
    font-size: 1.3rem;
  }

  .nav-container {
    padding: 10px 16px;
  }

  .container {
    padding: 0 16px;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* === 滚动动画辅助 === */
.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === 其他样式补全 === */
.brand-story, .culture, .team, .advantages, .services, .solutions, .industries, .cases, .partners, .testimonials, .news, .articles, .howto, .contact, .author {
  background-color: transparent;
}

body.dark-mode .breadcrumb nav ol li {
  color: #888;
}

body.dark-mode .faq-question {
  color: #e0e0f0;
}

body.dark-mode .faq-question:hover {
  color: #4a8eff;
}

body.dark-mode .stat-item p {
  color: #b0b0d0;
}

/* 随机风格点缀：渐变边框与毛玻璃统一 */
.product-card, .stat-item, .faq-item {
  border: 1px solid rgba(26,115,232,0.1);
}

body.dark-mode .product-card,
body.dark-mode .stat-item,
body.dark-mode .faq-item {
  border-color: rgba(74,142,255,0.15);
}