/* ===== 宝威体育官方网站 style.css ===== */
/* 全局重置与基础 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f8fafc;
  color: #1a1a2e;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}
body.dark {
  background: #0f0f23;
  color: #e0e0e0;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.grid {
  display: grid;
  gap: 24px;
}
.text-center {
  text-align: center;
}
.mt-4 {
  margin-top: 40px;
}
.mb-4 {
  margin-bottom: 40px;
}
.py-4 {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* 标题装饰 */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #1a73e8, #0d47a1);
  border-radius: 2px;
  margin: 8px auto 0;
}

/* 卡片 – 毛玻璃效果 */
.card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translateY(20px);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}
body.dark .card {
  background: rgba(30, 30, 60, 0.7);
  border-color: rgba(255, 255, 255, 0.05);
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  color: #fff;
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 115, 232, 0.4);
}
.btn-outline {
  background: transparent;
  border: 2px solid #1a73e8;
  color: #1a73e8;
}
body.dark .btn-outline {
  color: #64b5f6;
  border-color: #64b5f6;
}
.btn-outline:hover {
  background: #1a73e8;
  color: #fff;
}
body.dark .btn-outline:hover {
  background: #64b5f6;
  color: #0f0f23;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.3s;
}
body.dark .navbar {
  background: rgba(15, 15, 35, 0.85);
  border-color: rgba(255, 255, 255, 0.05);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a73e8;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo svg {
  width: 36px;
  height: 36px;
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: #1a1a2e;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 0.95rem;
}
body.dark .nav-links a {
  color: #e0e0e0;
}
.nav-links a:hover {
  color: #1a73e8;
}
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.hamburger span {
  width: 28px;
  height: 3px;
  background: #1a1a2e;
  border-radius: 2px;
  transition: all 0.3s;
}
body.dark .hamburger span {
  background: #e0e0e0;
}

/* Hero – 渐变Banner */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  padding-top: 70px;
}
body.dark .hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b2838 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg svg {
  width: 100%;
  height: 100%;
  opacity: 0.1;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 32px;
  opacity: 0.85;
}
.hero .btn {
  margin-right: 16px;
}

/* Banner轮播 */
.banner-slider {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin-top: 40px;
}
.banner-slide {
  display: none;
  animation: fadeIn 0.6s ease;
}
.banner-slide.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
.banner-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s;
}
.dot.active {
  background: #1a73e8;
  width: 32px;
  border-radius: 6px;
}

/* 通用区块 */
.section {
  padding: 80px 0;
}

/* 关于我们网格 */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-grid.reverse .about-image {
  order: 2;
}
.about-image svg {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* 数据统计 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a73e8;
  display: block;
}
.stat-label {
  font-size: 1rem;
  opacity: 0.8;
  margin-top: 8px;
}

/* 产品网格 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* 客户评价 */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 16px 0;
  cursor: pointer;
}
body.dark .faq-item {
  border-color: rgba(255, 255, 255, 0.1);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding-top: 8px;
  opacity: 0.8;
}
.faq-item.open .faq-answer {
  max-height: 300px;
}
.faq-icon {
  transition: transform 0.3s;
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* Footer */
.footer {
  background: #0d1b2a;
  color: #e0e0e0;
  padding: 60px 0 30px;
}
.footer a {
  color: #90caf9;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  margin-top: 40px;
  text-align: center;
  font-size: 0.9rem;
}

/* 返回顶部 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* 主题切换按钮 */
.theme-toggle {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.3s;
  color: #1a1a2e;
}
body.dark .theme-toggle {
  color: #e0e0e0;
}
.theme-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}
body.dark .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* 移动端菜单 */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 999;
}
body.dark .mobile-menu {
  background: rgba(15, 15, 35, 0.98);
}
.mobile-menu.active {
  display: block;
}
.mobile-menu a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: #1a1a2e;
  text-decoration: none;
  font-weight: 500;
}
body.dark .mobile-menu a {
  color: #e0e0e0;
  border-color: rgba(255, 255, 255, 0.05);
}

/* 响应式 – 平板及手机 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-title {
    font-size: 1.6rem;
  }
  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
}

/* 滚动动画 – 卡片初始隐藏，由JS添加可见类 */
.card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.card.visible {
  opacity: 1;
  transform: translateY(0);
}