/* 全局重置与基础配置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'PingFang SC', 'Microsoft Yahei', sans-serif;
}

:root {
  /* 全新品牌配色：活力红+科技黑+高级灰，适配体育用品动感定位 */
  --primary: #E53E3E;
  --primary-dark: #C53030;
  --secondary: #2D3748;
  --secondary-light: #4A5568;
  --accent: #38B2AC;
  --light: #F7FAFC;
  --white: #FFFFFF;
  --gray: #718096;
  --shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 10px 24px rgba(0, 0, 0, 0.12);
}

body {
  background-color: var(--light);
  color: var(--secondary);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease-in-out;
}

ul {
  list-style: none;
}

.container {
  width: 92%;
  max-width: 1280px;
  margin: 0 auto;
}

/* 响应式断点 */
@media (max-width: 1024px) {
  .container {
    width: 94%;
  }
}

@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }
  .container {
    width: 96%;
  }
}

/* 头部样式 - 极简悬浮导航 */
.header {
  background-color: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem 0;
  box-shadow: var(--shadow);
  transition: padding 0.3s ease, background-color 0.3s ease;
}

.header.scrolled {
  padding: 0.5rem 0;
  background-color: var(--white);
  box-shadow: var(--shadow-hover);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo span {
  color: var(--secondary);
}

/* 桌面端导航 */
.nav-main {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-main li a {
  font-weight: 500;
  color: var(--secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-main li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-main li a:hover::after,
.nav-main li a.active::after {
  width: 100%;
}

.login-btn {
  padding: 0.6rem 1.4rem;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.login-btn:hover {
  background-color: var(--primary-dark);
}

/* 移动端导航 */
.mobile-nav-toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  height: 100vh;
  background-color: var(--white);
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-close {
  align-self: flex-end;
  font-size: 1.8rem;
  color: var(--secondary);
  cursor: pointer;
  margin-bottom: 2rem;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.mobile-nav-list li a {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--secondary);
}

.mobile-login-btn {
  margin-top: 2rem;
  padding: 0.8rem;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 768px) {
  .nav-main, .login-btn {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
}

/* 按钮通用样式 */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.2);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* 页面标题通用样式 */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.4rem;
  color: var(--secondary);
  font-weight: 700;
}

.section-title h2 span {
  color: var(--primary);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* 底部样式 */
.footer {
  background-color: var(--secondary);
  color: var(--white);
  padding: 5rem 0 2rem;
  margin-top: 6rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 1.8rem;
  color: var(--white);
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent);
}

.footer-col ul li {
  margin-bottom: 1rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-col ul li:hover {
  opacity: 1;
}

.footer-col .contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* 响应式底部 */
@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* 首页专属样式 */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(45, 55, 72, 0.85), rgba(45, 55, 72, 0.85)), 
              url('https://tse-mm.bing.com/th?q=k8体育 专业体育用品') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding-top: 80px;
}

.hero-content {
  max-width: 900px;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* 首页核心优势 */
.features {
  padding: 8rem 0;
  background-color: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background-color: var(--light);
  padding: 2.5rem 2rem;
  border-radius: 10px;
  border-top: 4px solid var(--primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.4rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--gray);
  line-height: 1.7;
}

/* 首页产品展示 */
.product-showcase {
  padding: 8rem 0;
  background-color: var(--light);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}

.product-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
}

.product-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-info {
  padding: 1.5rem;
}

.product-info h4 {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 0.8rem;
}

.product-info p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* 响应式首页布局 */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 8rem 0 6rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .features-grid, .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .features-grid, .product-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
}

/* 关于我们页面样式 */
.about-hero {
  height: 60vh;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
              url('https://tse-mm.bing.com/th?q=k8体育 企业介绍') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding-top: 80px;
}

.about-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
}

.about-content {
  padding: 6rem 0;
  background-color: var(--white);
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.about-text h3 {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.about-text h3 span {
  color: var(--primary);
}

.about-text p {
  color: var(--gray);
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

/* 企业优势 */
.company-advantages {
  padding: 6rem 0;
  background-color: var(--light);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.advantage-item {
  text-align: center;
  padding: 2rem 1rem;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.advantage-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.advantage-item h4 {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 0.8rem;
}

.advantage-item p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* 响应式关于我们 */
@media (max-width: 768px) {
  .about-wrapper {
    grid-template-columns: 1fr;
  }
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-hero {
    height: 40vh;
  }
  .about-hero h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .advantages-grid {
    grid-template-columns: 1fr;
  }
}

/* 产品中心页面样式 */
.products {
  padding: 6rem 0;
  background-color: var(--white);
}

.product-categories {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.category-tab {
  padding: 0.8rem 1.8rem;
  background-color: var(--light);
  border: none;
  border-radius: 30px;
  color: var(--secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-tab.active, .category-tab:hover {
  background-color: var(--primary);
  color: var(--white);
}

.products-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

/* 响应式产品中心 */
@media (max-width: 1024px) {
  .products-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .products-list {
    grid-template-columns: 1fr;
  }
}

/* 新闻资讯页面样式 */
.news {
  padding: 6rem 0;
  background-color: var(--light);
}

.news-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-8px);
}

.news-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 1.8rem;
}

.news-meta {
  display: flex;
  gap: 1.2rem;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.news-content h3 {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.news-excerpt {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.news-readmore {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* 响应式新闻资讯 */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* 案例展示页面样式 */
.cases {
  padding: 6rem 0;
  background-color: var(--white);
}

.case-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.case-card {
  background-color: var(--light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.case-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.case-details {
  padding: 2rem;
}

.case-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 30px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.case-details h3 {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 1.2rem;
}

.case-desc {
  color: var(--gray);
  line-height: 1.8;
}

/* 响应式案例展示 */
@media (max-width: 768px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
}

/* 联系我们页面样式 */
.contact {
  padding: 6rem 0;
  background-color: var(--light);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-info-icon {
  font-size: 1.8rem;
  color: var(--primary);
  background-color: rgba(229, 62, 62, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 0.8rem;
}

.contact-info-text p {
  color: var(--gray);
  line-height: 1.6;
}

.contact-form-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-form-card h3 {
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--secondary);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--gray);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 180px;
}

/* 响应式联系我们 */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}