/* 基础设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 导航栏 */
.header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.logo h1 {
  font-size: 2.4rem;
  font-weight: 600;
  color: #2c3e50;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: #2c3e50;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 3rem;
  align-items: center;
}

.nav-list a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: #e74c3c;
}

.cta-link {
  background-color: #2c3e50;
  color: #ffffff !important;
  padding: 1rem 2rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.cta-link:hover {
  background-color: #1a252f;
}

/* 主要内容区域 */
.main {
  margin-top: 8rem;
}

/* Hero 区域 */
.hero {
  padding: 8rem 0;
  background-color: #f8f9fa;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.hero-title {
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: #2c3e50;
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: 1.8rem;
  color: #7f8c8d;
  margin-bottom: 2rem;
}

.hero-desc {
  font-size: 1.6rem;
  color: #5d6d7e;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.hero-buttons {
  display: flex;
  gap: 2rem;
}

.btn {
  display: inline-block;
  padding: 1.5rem 3rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1.6rem;
}

.btn-primary {
  background-color: #2c3e50;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #1a252f;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: #2c3e50;
  border: 2px solid #2c3e50;
}

.btn-secondary:hover {
  background-color: #2c3e50;
  color: #ffffff;
}

.hero-image {
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* 产品分类区域 */
.products {
  padding: 8rem 0;
  background-color: #ffffff;
}

.section-title {
  text-align: center;
  font-size: 3.6rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 6rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
}

.product-category {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #f8f9fa;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-icon {
  font-size: 4rem;
  margin-bottom: 2rem;
}

.product-category h3 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.product-category p {
  color: #7f8c8d;
  font-size: 1.4rem;
}

/* 产品展示区域 */
.product-showcase {
  padding: 8rem 0;
  background-color: #f8f9fa;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 4rem;
}

.showcase-item {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.showcase-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.showcase-content {
  padding: 3rem 2rem;
}

.showcase-content h3 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.showcase-content p {
  color: #5d6d7e;
  font-size: 1.5rem;
  line-height: 1.6;
}

/* 品牌特色区域 */
.features {
  padding: 8rem 0;
  background-color: #f8f9fa;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
}

.feature-item {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 4rem;
  margin-bottom: 2rem;
}

.feature-item h3 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1.5rem;
}

.feature-item p {
  color: #5d6d7e;
  font-size: 1.5rem;
  line-height: 1.7;
}

/* 关于蔓姿区域 */
.about {
  padding: 8rem 0;
  background-color: #ffffff;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-desc {
  font-size: 1.6rem;
  color: #5d6d7e;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: #7f8c8d;
  font-size: 1.4rem;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 页脚 */
.footer {
  background-color: #2c3e50;
  color: #ffffff;
  padding: 6rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #bdc3c7;
  font-size: 1.4rem;
}

.footer-links {
  display: flex;
  gap: 3rem;
  justify-content: flex-end;
  align-items: center;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #e74c3c;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #34495e;
}

.footer-bottom a {
  color: #bdc3c7;
  text-decoration: none;
  font-size: 1.3rem;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* 响应式设计 */
@media (max-width: 768px) {
  html {
    font-size: 55%;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: top 0.3s ease;
    z-index: 999;
  }
  
  .nav.active {
    top: 8rem;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 2rem 0;
  }
  
  .nav-list li {
    width: 100%;
  }
  
  .nav-list a {
    display: block;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f8f9fa;
    width: 100%;
  }
  
  .cta-link {
    background-color: #2c3e50 !important;
    color: #ffffff !important;
    margin: 1rem 2rem;
    border-radius: 6px;
    text-align: center;
  }
  
  .main {
    margin-top: 8rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-title {
    font-size: 3.6rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .hero, .products, .features, .about {
    padding: 4rem 0;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 2.8rem;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  
  .showcase-item img {
    height: 200px;
  }
  
  .hero-buttons {
    width: 100%;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
}

/* 平滑滚动动画 */
@media (prefers-reduced-motion: no-preference) {
  .product-category,
  .feature-item,
  .btn {
    transition: transform 0.3s ease;
  }
}

/* 可访问性优化 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  .hero {
    background-color: #ffffff;
    border-bottom: 2px solid #000000;
  }
  
  .product-category,
  .feature-item {
    border: 2px solid #000000;
  }
}
