/* 全局重置+基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", "Arial", sans-serif;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth; /* 平滑滚动 */
}
body {
  color: #333;
  background-color: #f8f9fa;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}
ul {
  list-style: none;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: #0056b3;
  color: white;
  border-radius: 4px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}
.btn:hover {
  background: #004085;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 86, 179, 0.2);
}
.section-title {
  text-align: center;
  margin-bottom: 60px;
}
.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #222;
}
.section-title p {
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

/* 头部导航 */
header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 15px 0;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 50px;
}

/* 导航菜单 */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-menu li a {
  font-weight: 500;
  color: #333;
  padding: 8px 0;
  position: relative;
}
.nav-menu li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #0056b3;
  transition: width 0.3s ease;
}
.nav-menu li a:hover::after {
  width: 100%;
}

/* 语言切换 */
.language-switch {
  position: relative;
  margin-left: 20px;
}
.lang-btn {
  padding: 8px 15px;
  background: #f1f3f5;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}
.lang-dropdown {
  position: absolute;
  top: 120%;
  right: 0;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  width: 180px;
  padding: 10px 0;
  display: none;
  z-index: 1000;
}
.lang-dropdown.active {
  display: block;
}
.lang-dropdown li {
  padding: 8px 20px;
  cursor: pointer;
}
.lang-dropdown li:hover {
  background: #f8f9fa;
}

/* 移动端汉堡菜单 */
.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Hero区域 */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../images/123456.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  color: white;
  padding-top: 80px;
  text-align: center;
}
.hero-content {
  max-width: 800px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 45px;
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f1f1f1;
}
.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* 关于我们 */
.about {
  padding: 100px 0;
  background: white;
}
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-img img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.about-text h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #222;
}
.about-text p {
  margin-bottom: 15px;
  color: #666;
}

/* 产品展示 */
.slider {
  font-family: "Muli", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
  margin: 0;
}
.container1 {
  display: flex;
  width: 90vw;
}
.panel {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 80vh;
  border-radius: 50px;
  color: #fff;
  cursor: pointer;
  flex: 0.5;
  margin: 10px;
  position: relative;
  -webkit-transition: all 700ms ease-in;
  -moz-transition: all 700ms ease-in;
  -o-transition: all 700ms ease-in;
  transition: all 700ms ease-in;
}

.panel h3 {
  font-size: 24px;
  position: absolute;
  bottom: 20px;
  left: 20px;
  margin: 0;
  opacity: 0;
}
.panel.active {
  flex: 5;
}
.panel.active h3 {
  opacity: 1;
  transition: opacity 0.3s ease-in 0.4s;
}
@media (max-width: 480px) {
  .container {
    width: 100vw;
  }
  .panel:nth-of-type(4),
  .panel:nth-of-type(5) {
    display: none;
  }
}
.products {
  padding: 100px 0;
  background: #f8f9fa;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}
.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.product-img {
  height: 200px;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img img {
  transform: scale(1.05);
}
.product-info {
  padding: 20px;
}
.product-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #222;
}
.product-info p {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

/* 核心优势 */
.advantages {
  padding: 100px 0;
  background: white;
}
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}
.advantage-card {
  text-align: center;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: background 0.3s ease;
}
.advantage-card:hover {
  background: #e9ecef;
}
.advantage-icon {
  font-size: 40px;
  color: #0056b3;
  margin-bottom: 20px;
}
.advantage-card h3 {
  margin-bottom: 15px;
  color: #222;
}
.advantage-card p {
  color: #666;
}

/* 案例展示 */
.cases {
  padding: 100px 0;
  background: #f8f9fa;
}
.cases-slider {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}
.case-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.case-img {
  height: 200px;
}
.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-info {
  padding: 20px;
}
.case-info h3 {
  margin-bottom: 10px;
  color: #222;
}
.case-info p {
  color: #666;
  font-size: 14px;
}

/* 联系我们 */
.contact {
  padding: 100px 0;
  background: white;
  text-align: center;
}
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.contact-form {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}
.form-group textarea {
  height: 150px;
  resize: none;
}
.contact-info {
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.contact-info h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #222;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.contact-icon {
  font-size: 24px;
  color: #0056b3;
}
.contact-text h4 {
  text-align: left;
  font-size: 18px;
  margin-bottom: 5px;
  color: #222;
  font-weight: 500;
}
.contact-text p {
  text-align: left;
  color: #666;
}

/* 页脚 */
footer {
  background: #222;
  color: white;
  padding: 60px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h3 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: #0056b3;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a:hover {
  color: #0056b3;
  padding-left: 5px;
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #999;
  font-size: 14px;
}

/* 响应式适配 - 平板（992px以下） */
@media (max-width: 992px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  }
  .nav-menu.active {
    display: flex;
  }
  .hamburger {
    display: block;
  }
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 36px;
  }
}

/* 响应式适配 - 移动端（768px以下） */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 28px;
  }
  .hero-btns {
    flex-direction: column;
    gap: 10px;
  }
  .section-title h2 {
    font-size: 26px;
  }
  .products-grid,
  .advantages-grid,
  .cases-slider {
    grid-template-columns: 1fr;
  }
  .logo img {
    height: 40px;
  }
  .lang-btn {
    padding: 6px 12px;
    font-size: 14px;
  }
  .lang-dropdown {
    width: 150px;
  }
  .about,
  .products,
  .advantages,
  .cases,
  .contact {
    padding: 60px 0;
  }
  .contact-form {
    padding: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

/* 响应式适配 - 小屏手机（480px以下） */
@media (max-width: 480px) {
  .hero {
    height: 80vh;
  }
  .hero h1 {
    font-size: 24px;
  }
  .hero p {
    font-size: 16px;
  }
  .section-title {
    margin-bottom: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
