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

:root {
  --primary-color: #2563eb;
  --secondary-color: #3b82f6;
  --accent-color: #60a5fa;
  --dark-color: #1e293b;
  --light-color: #f8fafc;
  --gray-color: #94a3b8;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

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

section {
  padding: 80px 0;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  border: 2px solid var(--primary-color);
}


.btn-info {
  background-color: var(--primary-color);
  color: #000;
  border: 2px solid var(--primary-color);
}


.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

/* 区块标题样式 */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-header p {
  color: var(--gray-color);
  font-size: 1.1rem;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  background-color: transparent;
  z-index: 1000;
  transition: var(--transition);
}

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

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo a {
  display: block;
  transition: var(--transition);
}

.logo a:hover {
  transform: scale(1.05);
}

.logo svg {
  height: 50px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu li {
  margin-left: 25px;
}

.nav-menu a {
  font-weight: 500;
  transition: var(--transition);
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary-color);
}

.nav-menu .nav-btn {
  background-color: var(--primary-color);
  color: #fff;
  padding: 8px 20px;
  border-radius: 5px;
}

.nav-menu .nav-btn:hover {
  background-color: var(--secondary-color);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero区域样式 */
.hero {
  height: 100vh;
  padding-top: 150px;
  background: linear-gradient(165deg, #f8fafc 60%, #e0f2fe 100%);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.hero-content {
  width: 50%;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content span {
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--gray-color);
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-btns {
  display: flex;
  gap: 20px;
}

.hero-image {
  width: 45%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.animate-text {
  overflow: hidden;
  white-space: nowrap;
  animation: typing 3.5s steps(40, end);
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* 服务区域样式 */
.services {
  background-color: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: #fff;
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow);
}

.service-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  background-color: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  margin-bottom: 25px;
}

.service-icon i {
  font-size: 2rem;
  color: var(--primary-color);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--gray-color);
}

/* 项目案例样式 */
.projects {
  background-color: #f1f5f9;
}

.projects-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  background-color: transparent;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow);
}

.project-img {
  position: relative;
  overflow: hidden;
}

.project-img img {
  transition: var(--transition);
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(37, 99, 235, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  display: inline-block;
  padding: 10px 25px;
  background-color: #fff;
  color: var(--primary-color);
  font-weight: 500;
  border-radius: 5px;
  transform: translateY(20px);
  transition: var(--transition);
}

.project-card:hover .project-link {
  transform: translateY(0);
}

.project-info {
  padding: 25px;
}

.project-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.project-info p {
  color: var(--gray-color);
}

/* 自主产品样式 */
.products {
  background-color: #fff;
}

.category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 15px;
}

.category-tab {
  padding: 12px 25px;
  background-color: transparent;
  border: none;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark-color);
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.category-tab::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: center;
  transition: var(--transition);
}

.category-tab:hover {
  color: var(--primary-color);
}

.category-tab.active {
  color: var(--primary-color);
}

.category-tab.active::after {
  transform: scaleX(1);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.product-showcase {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
  margin-bottom: 50px;
}

.product-image {
  flex: 1;
  min-width: 300px;
}

.product-image img {
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  width: 100%;
}

.product-details {
  flex: 1;
  min-width: 300px;
}

.product-details h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.product-features {
  margin-bottom: 30px;
}

.feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.feature i {
  color: var(--success-color);
  margin-right: 15px;
  font-size: 1.2rem;
  margin-top: 3px;
}

.feature span {
  font-size: 1.05rem;
  color: var(--gray-color);
}

/* 关于我们样式 */
.about {
  background-color: #fff;
}

.about-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

.about-text {
  width: 50%;
}

.advantage {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.advantage-icon {
  min-width: 60px;
  height: 60px;
  background-color: rgba(37, 99, 235, 0.1);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
}

.advantage-icon i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.advantage-info h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.advantage-info p {
  color: var(--gray-color);
}

.about-image {
  width: 45%;
}

.about-image img {
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

/* 联系我们样式 */
.contact {
  background-color: #f1f5f9;
}

.contact-content {
  display: flex;
  justify-content: space-between;
  gap: 50px;
}

.contact-info, .contact-form {
  width: 48%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 20px;
  margin-top: 5px;
}

.contact-item h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.contact-item p {
  color: var(--gray-color);
}

.social-media {
  margin-top: 40px;
  display: flex;
  gap: 15px;
}

.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: #fff;
  color: var(--primary-color);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.social-media a:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-group textarea {
  height: 150px;
  resize: none;
}

/* 页脚样式 */
.footer {
  background-color: var(--dark-color);
  color: #fff;
  padding: 70px 0 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.footer-logo {
  margin-bottom: 30px;
}

.footer-logo svg {
  height: 40px;
  width: auto;
  margin-bottom: 10px;
}

.footer-logo p {
  color: #cbd5e1;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #cbd5e1;
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: #cbd5e1;
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .about-content,
  .contact-content {
    flex-direction: column;
  }
  
  .about-text,
  .about-image,
  .contact-info,
  .contact-form {
    width: 100%;
  }
  
  .about-image {
    margin-top: 50px;
    text-align: center;
  }
  
  .product-showcase {
    flex-direction: column;
  }
  
  .product-image, .product-details {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    padding: 20px;
    background-color: #fff;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    margin: 15px 0;
    width: 100%;
  }
  
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content,
  .hero-image {
    width: 100%;
  }
  
  .hero-content {
    margin-bottom: 50px;
  }
  
  .hero-content p {
    margin: 0 auto 30px;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-links {
    gap: 30px;
  }
  
  .category-tab {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 576px) {
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .category-tab {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
} 