/* 全局重置与基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}
body {
  color: #333;
  line-height: 1.6;
  background-color: #f8f9fa;
}
a {
  text-decoration: none;
  color: #333;
  transition: 0.3s;
}
ul {
  list-style: none;
}
.container {
  width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
img {
  max-width: 100%;
  display: block;
}

/* 顶部导航 */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.logo {
  font-size: 28px;
  font-weight: bold;
  color: #0052cc; /* 主色调：运动蓝 */
}
.logo span {
  color: #e63946; /* 辅助色：运动红 */
}
.nav-menu {
  display: flex;
  gap: 40px;
}
.nav-menu a {
  font-size: 16px;
  font-weight: 500;
  padding: 10px 0;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: #0052cc;
  border-bottom: 3px solid #e63946;
}

/* 轮播图 */
.banner {
  height: 500px;
  overflow: hidden;
  position: relative;
}
.banner-slide {
  height: 100%;
  display: flex;
  transition: 0.5s;
}
.banner-item {
  min-width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 48px;
  font-weight: bold;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.dot.active {
  background: #e63946;
}

/* 通用标题 */
.section-title {
  text-align: center;
  margin: 60px 0 40px;
}
.section-title h2 {
  font-size: 32px;
  color: #333;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}
.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #e63946;
}
.section-title p {
  color: #666;
  margin-top: 10px;
}

/* 产品展示 */
.products {
  padding: 20px 0 80px;
}
.product-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: 0.3s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.product-img {
  height: 200px;
  object-fit: cover;
}
.product-info {
  padding: 20px;
  text-align: center;
}
.product-name {
  font-size: 18px;
  margin-bottom: 10px;
}
.product-price {
  color: #e63946;
  font-size: 16px;
  font-weight: bold;
}

/* 新闻列表 */
.news {
  padding: 20px 0 80px;
}
.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.news-img {
  height: 180px;
  object-fit: cover;
}
.news-info {
  padding: 20px;
}
.news-date {
  color: #999;
  font-size: 14px;
  margin-bottom: 10px;
}
.news-title {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-desc {
  color: #666;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 关于我们 */
.about {
  padding: 40px 0 80px;
}
.about-content {
  display: flex;
  gap: 40px;
  align-items: center;
}
.about-img {
  flex: 1;
  border-radius: 8px;
}
.about-text {
  flex: 1;
}
.about-text h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #0052cc;
}
.about-text p {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.8;
}

/* 底部 */
.footer {
  background: #222;
  color: #fff;
  padding: 60px 0 20px;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}
.footer-col h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #e63946;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  color: #ccc;
}
.footer-col ul li a:hover {
  color: #0052cc;
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #999;
}

/* 响应式适配 */
@media (max-width: 1200px) {
  .container { width: 100%; }
}
@media (max-width: 992px) {
  .product-list { grid-template-columns: repeat(2, 1fr); }
  .news-list { grid-template-columns: repeat(2, 1fr); }
  .about-content { flex-direction: column; }
}
@media (max-width: 768px) {
  .nav { flex-direction: column; height: auto; padding: 15px 0; }
  .nav-menu { margin-top: 15px; gap: 20px; }
  .banner { height: 300px; }
  .banner-item { height: 300px; font-size: 32px; }
  .footer-content { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .product-list, .news-list { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
}