/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* 滚动动画 */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.show {
  opacity: 1;
  transform: translateY(0);
}

a {
  text-decoration: none;
  color: #4285F4;
  transition: color 0.3s ease;
}

a:hover {
  color: #3367d6;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  background-color: #4285F4;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #3367d6;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid #4285F4;
  color: #4285F4;
}

.btn-outline:hover {
  background-color: #4285F4;
  color: #fff;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 15px;
}

.section-title p {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

/* 导航栏 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 10px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: #333;
  font-weight: 500;
  position: relative;
}

.nav-links a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #4285F4;
  transition: width 0.3s ease;
}

.nav-links a:hover:after,
.nav-links a.active:after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  cursor: pointer;
}

/* 英雄区 */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-image: url('../images/hero-bg.svg');
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
}

.hero-content {
  max-width: 600px;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  gap: 15px;
}

/* 关于我们 */
.about {
  background-color: #f9f9f9;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-img {
  flex: 1;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

.about-text p {
  margin-bottom: 15px;
  color: #666;
}

.company-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-item h4 {
  font-size: 2.5rem;
  color: #4285F4;
  margin-bottom: 10px;
}

.stat-item p {
  font-size: 1rem;
  color: #666;
}

/* 服务 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
}

.service-icon img {
  height: 60px;
}

.service-content {
  padding: 25px;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
}

.service-content p {
  color: #666;
  margin-bottom: 20px;
}

/* 产品 */
.products {
  background-color: #f9f9f9;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-img {
  height: 200px;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.1);
}

.product-content {
  padding: 25px;
}

.product-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #333;
}

.product-content p {
  color: #666;
  margin-bottom: 20px;
}

/* 产品分类 */
.product-categories {
  margin-bottom: 50px;
}

.category-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.category-tab {
  padding: 10px 20px;
  background-color: #f5f5f5;
  border: none;
  border-radius: 5px;
  margin: 0 10px 10px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  color: #666;
}

.category-tab.active,
.category-tab:hover {
  background-color: #4285F4;
  color: #fff;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.product-rating {
  color: #ffc107;
}

.product-rating span {
  color: #666;
  margin-left: 5px;
}

.product-price span {
  font-weight: bold;
  color: #4285F4;
  font-size: 1.2rem;
}

/* 团队 */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
}

.member-img {
  height: 250px;
  overflow: hidden;
}

.member-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info {
  padding: 25px;
}

.member-info h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: #333;
}

.member-info p {
  color: #4285F4;
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: #f5f5f5;
  border-radius: 50%;
  color: #333;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: #4285F4;
  color: #fff;
}

/* 联系我们 */
.contact {
  background-color: #f9f9f9;
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.contact-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-10px);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background-color: #4285F4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 auto 15px;
  font-size: 1.5rem;
}

.contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #333;
}

.contact-card p {
  color: #666;
}

.contact-form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form .form-group.full-width {
  grid-column: 1 / -1;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #4285F4;
  outline: none;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.map-container {
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

/* FAQ样式 */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: #fff;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h3 {
  font-size: 1.2rem;
  color: #333;
  margin: 0;
}

.faq-toggle {
  color: #4285F4;
}

.faq-answer {
  padding: 0 20px 20px;
  display: none;
}

.faq-answer p {
  color: #666;
  margin: 0;
}

/* 页脚 */
.footer {
  background-color: #333;
  color: #fff;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #fff;
}

.footer-col p {
  color: #aaa;
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #aaa;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #4285F4;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
}

/* 响应式设计 */
@media screen and (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

@media screen and (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .about-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .about-img, .about-text {
    flex: none;
    width: 100%;
  }
  
  .services-grid,
  .products-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section {
    padding: 70px 0;
  }
  
  .section-title {
    margin-bottom: 40px;
  }


@media screen and (max-width: 768px) {
  .container {
    max-width: 540px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: #fff;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    transition: left 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links li {
    margin: 15px 0;
  }
  
  .company-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .stat-item {
    flex: 0 0 calc(50% - 10px);
  }
  
  .services-grid,
  .products-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .product-categories .category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .product-categories .category-tab {
    flex: 1 0 calc(50% - 5px);
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 576px) {
  .container {
    padding: 0 15px;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .section-title p {
    font-size: 1rem;
  }
  
  .stat-item {
    flex: 0 0 100%;
  }
  
  .navbar {
    padding: 15px 0;
  }
  
  .logo img {
    height: 35px;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .contact-form-container {
    padding: 20px;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 10px;
  }
  
  .faq-question h3 {
    font-size: 1.2rem;
  }
  
  .product-categories .category-tab {
    flex: 1 0 100%;
  }
  
  .product-card,
  .service-card,
  .team-member {
    margin-bottom: 20px;
  }
  
  .footer {
    padding: 40px 0 20px;
  }
  
  .footer-col h3 {
    font-size: 1.3rem;
  }
}