/* 极简风格样式 */
:root {
  --primary-color: #54578E;
  --secondary-color: #f5f5f5;
  --text-color: #333333;
  --light-text: #999999;
  --white: #ffffff;
  --border-color: #e0e0e0;
  --hover-color: #f8f8f8;
  --transition: all 0.3s ease;
}

body, html {
  font: 14px/1.2 -apple-system,PingFang SC,Hiragino Sans GB,Arial,Microsoft YaHei,Helvetica Neue,sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.header.scrolled {
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

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

.logo {
  height: 60px;
}

.logo img {
  height: 100%;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  margin: 0 20px;
}

.nav-list a {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}
.nav-list a:hover {
  color: #54578E;
}
.nav-list a.active {
  color: #54578E;
}
.nav-list > li > a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-list > li > a:hover::after,
.nav-list > li > a.active::after {
  transform: scaleX(1);
}

/* 下拉菜单样式 */
.nav-list .dropdown {
  position: relative;
}

.nav-list .dropdown > a {
  display: flex;
  align-items: center;
}

.nav-list .dropdown > a .bi {
  font-size: 12px;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.nav-list .dropdown:hover > a .bi {
  transform: rotate(180deg);
}

.nav-list .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px; /* 增加宽度 */
  background-color: #fff;
  border-radius: 2px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  margin-top: 15px; /* 减小顶部间距，更接近文字 */
  opacity: 0;
  visibility: hidden;
  transform-origin: top center; /* 从顶部中心开始变换 */
  transform: translateX(-50%) scaleY(0.8); /* 初始状态缩小 */
  transition: all 0.25s ease;
  z-index: 1001;
}

.nav-list .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px; /* 调整三角形位置 */
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #fff;
}

.nav-list .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scaleY(1); /* 展开到正常大小 */
}

.nav-list .dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid #f0f0f0; /* 添加分隔线 */
  transition: background-color 0.2s ease;
}

/* 确保下拉菜单项不继承导航项的底部线条效果 */
.nav-list .dropdown-menu a::after {
  display: none;
}

.nav-list .dropdown-menu a:last-child {
  border-bottom: none; /* 最后一项不需要分隔线 */
}

.nav-list .dropdown-menu a:hover {
  background-color: var(--hover-color);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-color);
}

/* 英雄区域样式 */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 80px;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  width: 100%;
  padding: 0 20px;
  text-align: center;
}

.hero-title {
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.btn {
  display: inline-block;
  padding: 12px 30px;


  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--primary-color);
  background-color: #fff;
  color: var(--primary-color);
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: #54578E;
  color: var(--white);
}

.btn-white {
  border-color: var(--white);
  color: #000;
}

.btn-white:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

/* 产品系列样式 */
.collections {
  padding: 120px 0;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 15px;
  text-align: center;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: var(--light-text);
  margin-bottom: 60px;

text-align: center;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.collection-item {
  position: relative;
  overflow: hidden;
  height: 500px;
}

.collection-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.collection-item:hover img {
  transform: scale(1.05);
}

.collection-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%);
  color: var(--white);
  text-align: left;
}

.collection-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.collection-link {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  position: relative;
}

.collection-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--white);
  transition: var(--transition);
}

.collection-link:hover::after {
  width: 0;
}

/* 品牌故事样式 */
.brand-story {
  padding: 120px 0;
  background-color: var(--secondary-color);
  text-align: center;
}

.story-content {
  max-width: 800px;
  margin: 0 auto;
}

.story-text {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 40px;
  font-weight: 300;
}

/* 特点样式 */
.features {
  padding: 120px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.feature-item {
  text-align: center;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.feature-text {
  font-size: 1rem;
  color: var(--light-text);
  line-height: 1.6;
}

/* 新品展示样式 */
.new-arrivals {
  padding: 120px 0;
  text-align: center;
}

.product-slider {
  margin-top: 60px;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.product-slider::-webkit-scrollbar {
  display: none;
}

.product-item {
  flex: 0 0 calc(33.333% - 20px);
  margin: 0 10px;
  scroll-snap-align: start;
  position: relative;
}

.product-image {
  height: 320px;
  overflow: hidden;
  margin-bottom: 20px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-item:hover .product-image img {
  transform: scale(1.05);
}

.product-title {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.product-price {
  font-size: 1rem;
  color: var(--light-text);
}

/* 联系我们样式 */
.contact {
  padding: 120px 0;
  background-color: var(--secondary-color);
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 60px auto 0;
}

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

.form-control {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  border: 1px solid var(--border-color);
  background-color: var(--white);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* 页脚样式 */
.footer {
  padding: 80px 0 30px;
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

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

.footer-logo img {
  height: 40px;
}

.footer-about {
  font-size: 14px;
  color: #6c6e75;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.footer-title {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: arial;
}

.footer-links li {
  margin-bottom: 10px;
  position: relative;
}

/* 为第二列和第三列（产品款式和关于我们）的链接添加小箭头 */
.footer-grid > div:nth-child(2) .footer-links li a,
.footer-grid > div:nth-child(3) .footer-links li a {
  padding-left: 15px;
  position: relative;
  transition: padding-left 0.2s ease;
}

.footer-grid > div:nth-child(2) .footer-links li a::before,
.footer-grid > div:nth-child(3) .footer-links li a::before {
  content: '-';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #858585;
  font-size: 10px;
  font-weight: bold;
  transition: all 0.2s ease;
}

.footer-grid > div:nth-child(2) .footer-links li a:hover,
.footer-grid > div:nth-child(3) .footer-links li a:hover {
  padding-left: 18px;
}

.footer-grid > div:nth-child(2) .footer-links li a:hover::before,
.footer-grid > div:nth-child(3) .footer-links li a:hover::before {
  transform: translateY(-50%) translateX(3px);
}

.footer-links a {
  font-size: 14px;
  color: #6c6e75;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 14px;
  color: var(--light-text);
}

.payment-methods {
  display: flex;
  gap: 20px;
}

.payment-link {
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.payment-link:hover {
  color: var(--primary-color);
}

.payment-icon {
  font-size: 20px;
  margin-right: 5px;
  color: var(--light-text);
}

.payment-link:hover .payment-icon {
  color: var(--primary-color);
}

.payment-link span {
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .product-item {
    flex: 0 0 calc(50% - 20px);
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
  }
  
  .nav-list.active {
    display: flex;
  }
  
  .nav-list li {
    margin: 10px 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  /* 移动端下拉菜单样式 */
  .nav-list .dropdown > a {
    justify-content: space-between;
  }
  
  .nav-list .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0;
    width: 100%;
    transform-origin: top center;
  }
  
  .nav-list .dropdown-menu::before {
    display: none;
  }
  
  .nav-list .dropdown-menu a {
    padding: 12px 20px;
    background-color: var(--secondary-color);
    text-align: left;
    margin-top: 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* 移动端分隔线颜色稍微淡一些 */
  }
  
  .nav-list .dropdown-menu a:last-child {
    border-bottom: none;
  }
  
  .nav-list .dropdown.active .dropdown-menu {
    max-height: 200px;
    opacity: 1;
    visibility: visible;
    transform: none; /* 确保移动端不应用缩放效果 */
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .collection-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .product-item {
    flex: 0 0 calc(100% - 20px);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
  }
  
  .payment-methods {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate {
  animation: fadeIn 1s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}
