
:root {
  --primary: #ff6600;
  --dark: #1d1d1d;
  --light: #f8f8f8;
}

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

body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* 头部样式 */
header {
  background: var(--dark);
  color: white;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header > div {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

header p {
  margin: 5px 0 10px;
  color: #ccc;
  font-size: 16px;
}

/* 导航样式 */
nav {
  display: flex;
  justify-content: center;
  background: #333;
  padding: 12px;
  margin-top: 10px;
  border-radius: 4px;
}

nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

nav a:hover, nav a.current {
  background: var(--primary);
  color: white;
}

/* 联系栏样式 */
.contact-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  padding: 12px 20px;
  border-radius: 50px;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: flex;
  gap: 15px;
}

.contact-bar a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.contact-bar a:hover {
  text-decoration: underline;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  background: #ff6600;
  color: black !important; /* 强制黑色文字可见 */
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid #ff6600;
    /*.btn {
    display: block;
    margin: 10px auto;
    width: 80%;
    max-width: 300px;
  }*/
}

/* 鼠标悬停样式 */
.btn:hover {
  background: #e55b00;
  color: black !important; /* 仍然强制保持黑色文字 */
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(255,102,0,0.3);
}

/* 容器样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 页脚样式 */
footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 30px 20px;
}

footer a {
  color: var(--primary);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
  header h1 {
    font-size: 20px;
  }
  
  nav {
    flex-wrap: wrap;
    gap: 8px;
  }
  .products-grid {
      grid-template-columns: 1fr;
  }
  .trust-grid {
    gap: 15px;
  }
  }
  
  /* 产品图片容器统一样式 */
/* 修复产品卡片布局 */
.product-card {
  display: flex;
  flex-direction: column;
  height: auto; /* 修复固定高度问题 */
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.product-img {
  height: auto;
  aspect-ratio: 16/9; /* 添加宽高比 */
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: ;fit: cover;
  display: block;
}

.product-card:hover {
  transform: translateY(-10px);
}

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

.product-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.product-content p {
  margin: 10px 0 20px;
  flex-grow: 1;
}

  .contact-bar {
    bottom: 10px;
    right: 10px;
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  
}
