/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #f5f7fa;
}

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

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

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.navbar.scrolled {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 20px;
  font-weight: bold;
  color: #1f2937;
}

.logo-sub {
  font-size: 12px;
  color: #6b7280;
}

.nav-links {
  display: none;
  gap: 8px;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  transition: all 0.2s;
}

.nav-link:hover {
  color: #2563eb;
  background: #f3f4f6;
}

.nav-link.active {
  color: #2563eb;
  background: #eff6ff;
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* 移动端菜单 */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: #fff;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 99;
}

.mobile-menu.show {
  display: block;
}

.mobile-link {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 16px;
  color: #374151;
}

.mobile-link:hover,
.mobile-link.active {
  background: #eff6ff;
  color: #2563eb;
}

/* 优势横幅 */
.advantages-banner {
  background: linear-gradient(135deg, #2563eb, #1d4ed8, #1e40af);
  padding: 30px 20px;
  margin-top: 70px;
}

.advantages-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (min-width: 768px) {
  .advantages-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1024px) {
  .advantages-grid {
    grid-template-columns: repeat(9, 1fr);
    gap: 10px;
  }
}

.advantage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.advantage-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 8px;
}

.advantage-label {
  color: #fff;
  font-weight: bold;
  font-size: 14px;
}

.advantage-desc {
  color: #bfdbfe;
  font-size: 12px;
}

/* 主视觉区域 */
.hero {
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
  padding: 100px 20px;
  text-align: center;
  color: #fff;
}

.hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary {
  background: #fff;
  color: #2563eb;
}

.btn-primary:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* 产品展示 */
.products {
  padding: 80px 20px;
  background: #fff;
}

.section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  color: #1f2937;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: #6b7280;
  font-size: 18px;
  margin-bottom: 48px;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
}

.product-card:hover {
  border-color: #2563eb;
  box-shadow: 0 10px 40px rgba(37, 99, 235, 0.1);
  transform: translateY(-4px);
}

.product-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.product-name {
  font-size: 22px;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 8px;
}

.product-desc {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 16px;
}

.product-link {
  color: #2563eb;
  font-weight: 500;
}

/* 关于我们 */
.about {
  padding: 80px 20px;
  background: #f5f7fa;
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 48px;
}

@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 2fr 1fr;
  }
}

.about-text p {
  color: #4b5563;
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-list {
  list-style: none;
  margin-top: 24px;
}

.about-list li {
  padding: 8px 0;
  color: #374151;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}

@media (min-width: 768px) {
  .about-stats {
    border-left: 1px solid #e5e7eb;
    padding-left: 48px;
  }
}

.stat-item {
  text-align: center;
}

@media (min-width: 768px) {
  .stat-item {
    text-align: left;
  }
}

.stat-number {
  font-size: 48px;
  font-weight: bold;
  color: #2563eb;
  display: block;
}

.stat-label {
  color: #6b7280;
  font-size: 14px;
}

/* 联系方式 */
.contact {
  padding: 80px 20px;
  background: #fff;
}

.contact-grid {
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  display: grid;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: #eff6ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.contact-label {
  display: block;
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 4px;
}

.contact-value {
  color: #1f2937;
  font-size: 16px;
  font-weight: 500;
}

/* 页脚 */
.footer {
  background: #1f2937;
  color: #fff;
  padding: 40px 20px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
  color: #9ca3af;
}

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

.footer-copy {
  max-width: 1200px;
  margin: 24px auto 0;
  padding-top: 24px;
  border-top: 1px solid #374151;
  text-align: center;
  font-size: 14px;
  color: #9ca3af;
}

/* 产品详情页通用样式 */
.product-hero {
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
  padding: 120px 20px 60px;
  color: #fff;
  text-align: center;
}

.product-hero h1 {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 16px;
}

.product-hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.product-content {
  padding: 60px 20px;
}

.features-grid {
  display: grid;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-title {
  font-size: 22px;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.feature-text {
  color: #4b5563;
  line-height: 1.8;
  font-size: 15px;
}

.related-products {
  background: #f5f7fa;
  padding: 60px 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.related-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.related-card:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
}

.related-card .product-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.related-card h4 {
  font-size: 14px;
  color: #1f2937;
  font-weight: 600;
}