/* 全局基础配置 - 核心变量区分不同页面风格 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", "Microsoft Yahei", sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 页面专属主题色 - 每个页面主色调不同 */
:root {
  /* 首页：活力橙 */
  --home-primary: #ff781f;
  --home-secondary: #2a2a2a;
  /* 关于我们：沉稳蓝 */
  --about-primary: #1e68c3;
  --about-secondary: #1f2937;
  /* 产品中心：科技紫 */
  --product-primary: #7938f4;
  --product-secondary: #2d1b69;
  /* 新闻资讯：清新绿 */
  --news-primary: #22c55e;
  --news-secondary: #166534;
  /* 案例展示：质感灰 */
  --case-primary: #64748b;
  --case-secondary: #1e293b;
  /* 联系我们：商务红 */
  --contact-primary: #dc2626;
  --contact-secondary: #7f1d1d;
  /* 通用辅助色 */
  --white: #ffffff;
  --light-gray: #f8fafc;
  --gray: #94a3b8;
  --dark-gray: #334155;
}

/* 通用头部 - 基础样式，各页面通过类名差异化 */
.header {
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  background: var(--white);
}

.header-home {
  background: linear-gradient(120deg, var(--home-primary), #ff9a58);
  color: var(--white);
}

.header-about {
  background: linear-gradient(120deg, var(--about-primary), #3b82f6);
  color: var(--white);
}

.header-product {
  background: linear-gradient(120deg, var(--product-primary), #9333ea);
  color: var(--white);
}

.header-news {
  background: linear-gradient(120deg, var(--news-primary), #4ade80);
  color: var(--white);
}

.header-case {
  background: linear-gradient(120deg, var(--case-primary), #94a3b8);
  color: var(--white);
}

.header-contact {
  background: linear-gradient(120deg, var(--contact-primary), #ef4444);
  color: var(--white);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav ul {
  display: flex;
  gap: 28px;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

/* 通用底部 - 各页面差异化配色 */
.footer {
  padding: 60px 0 30px;
  color: var(--white);
  margin-top: 80px;
}

.footer-home {
  background: var(--home-secondary);
}

.footer-about {
  background: var(--about-secondary);
}

.footer-product {
  background: var(--product-secondary);
}

.footer-news {
  background: var(--news-secondary);
}

.footer-case {
  background: var(--case-secondary);
}

.footer-contact {
  background: var(--contact-secondary);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid currentColor;
  opacity: 0.8;
}

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 14px;
  opacity: 0.8;
}

.footer-col ul li:hover {
  opacity: 1;
  transform: translateX(4px);
  transition: all 0.3s ease;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 13px;
  opacity: 0.8;
}

/* 页面专属样式 - 完全差异化布局 */
/* 首页样式 */
.home-hero {
  height: 650px;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
              url('https://tse-mm.bing.com/th?q=6686体育 专业体育用品 运动装备') center/cover no-repeat;
  display: flex;
  align-items: center;
  color: var(--white);
  padding: 0 20px;
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--home-primary);
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
}

.hero-btn:hover {
  background: #ff6a00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 120, 31, 0.3);
}

.home-intro {
  padding: 80px 0;
  background: var(--light-gray);
}

.intro-title {
  text-align: center;
  font-size: 32px;
  color: var(--home-secondary);
  margin-bottom: 10px;
}

.intro-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 60px;
  font-size: 16px;
}

.intro-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.intro-card {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.intro-card h3 {
  color: var(--home-primary);
  font-size: 20px;
  margin-bottom: 16px;
}

.intro-card p {
  color: var(--dark-gray);
  font-size: 14px;
  line-height: 1.7;
}

.home-product-preview {
  padding: 80px 0;
}

.product-preview-title {
  font-size: 32px;
  color: var(--home-secondary);
  margin-bottom: 40px;
  padding-left: 8px;
  border-left: 4px solid var(--home-primary);
}

.product-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-preview-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-preview-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-preview-item p {
  padding: 16px;
  font-weight: 500;
  color: var(--dark-gray);
}

/* 关于我们页面样式 */
.about-banner {
  height: 400px;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
              url('https://tse-mm.bing.com/th?q=6686体育 企业理念 发展历程') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
}

.about-banner h1 {
  font-size: 42px;
  margin-bottom: 16px;
}

.about-banner p {
  font-size: 18px;
  opacity: 0.9;
}

.about-story {
  padding: 80px 0;
  background: var(--white);
}

.story-container {
  display: flex;
  gap: 40px;
  align-items: center;
}

.story-img {
  width: 40%;
}

.story-img img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.story-content {
  width: 60%;
}

.story-content h2 {
  font-size: 28px;
  color: var(--about-primary);
  margin-bottom: 20px;
}

.story-content p {
  color: var(--dark-gray);
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 15px;
}

.about-values {
  padding: 80px 0;
  background: var(--light-gray);
}

.values-title {
  font-size: 32px;
  color: var(--about-secondary);
  text-align: center;
  margin-bottom: 60px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.value-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.value-card .icon {
  font-size: 40px;
  color: var(--about-primary);
  margin-bottom: 20px;
}

.value-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--about-secondary);
}

.value-card p {
  color: var(--dark-gray);
  font-size: 14px;
  line-height: 1.7;
}

/* 产品中心页面样式 */
.product-header {
  padding: 40px 0;
  background: linear-gradient(120deg, var(--product-primary), var(--product-secondary));
  color: var(--white);
  text-align: center;
}

.product-header h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.product-header p {
  font-size: 16px;
  opacity: 0.9;
}

.product-categories {
  padding: 60px 0;
  background: var(--white);
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.category-tab {
  padding: 10px 24px;
  background: var(--light-gray);
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  color: var(--dark-gray);
  transition: all 0.3s ease;
}

.category-tab.active {
  background: var(--product-primary);
  color: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
}

.product-card-img {
  width: 100%;
  height: 250px;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-content {
  padding: 24px;
}

.product-card-content h3 {
  font-size: 18px;
  color: var(--product-secondary);
  margin-bottom: 8px;
}

.product-card-content .tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--light-gray);
  color: var(--product-primary);
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 16px;
}

.product-card-content p {
  color: var(--dark-gray);
  font-size: 14px;
  line-height: 1.6;
}

/* 新闻资讯页面样式 */
.news-page-header {
  padding: 50px 0;
  background: var(--light-gray);
  text-align: center;
}

.news-page-header h1 {
  font-size: 36px;
  color: var(--news-secondary);
  margin-bottom: 12px;
}

.news-page-header p {
  color: var(--dark-gray);
  font-size: 16px;
}

.news-list {
  padding: 60px 0;
}

.news-item {
  display: flex;
  gap: 30px;
  padding: 24px 0;
  border-bottom: 1px solid var(--light-gray);
}

.news-item-img {
  width: 280px;
  height: 180px;
  flex-shrink: 0;
}

.news-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.news-item-content {
  flex: 1;
}

.news-item-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--gray);
}

.news-item-content h3 {
  font-size: 20px;
  color: var(--news-primary);
  margin-bottom: 16px;
}

.news-item-content p {
  color: var(--dark-gray);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.news-item-read {
  display: inline-block;
  color: var(--news-primary);
  font-weight: 500;
  font-size: 14px;
}

.news-item-read:hover {
  color: var(--news-secondary);
}

/* 案例展示页面样式 */
.case-banner {
  height: 450px;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
              url('https://tse-mm.bing.com/th?q=6686体育 成功案例 项目落地') center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 60px 0;
  color: var(--white);
}

.case-banner-content {
  max-width: 700px;
}

.case-banner-content h1 {
  font-size: 40px;
  margin-bottom: 16px;
}

.case-banner-content p {
  font-size: 18px;
  opacity: 0.9;
}

.case-grid {
  padding: 80px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.case-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.case-card-img {
  width: 100%;
  height: 280px;
}

.case-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card-content {
  padding: 30px;
  flex: 1;
}

.case-card-content h3 {
  font-size: 22px;
  color: var(--case-secondary);
  margin-bottom: 12px;
}

.case-card-content .case-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--light-gray);
  color: var(--case-primary);
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 16px;
}

.case-card-content p {
  color: var(--dark-gray);
  font-size: 14px;
  line-height: 1.8;
}

/* 联系我们页面样式 */
.contact-container {
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.contact-info h2 {
  font-size: 28px;
  color: var(--contact-primary);
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--light-gray);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--contact-primary);
  font-size: 20px;
}

.contact-info-text h3 {
  font-size: 16px;
  color: var(--contact-secondary);
  margin-bottom: 4px;
}

.contact-info-text p {
  color: var(--dark-gray);
  font-size: 14px;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.contact-form h2 {
  font-size: 28px;
  color: var(--contact-primary);
  margin-bottom: 30px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--dark-gray);
  font-weight: 500;
  font-size: 14px;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray);
  border-radius: 4px;
  font-size: 14px;
  color: var(--dark-gray);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--contact-primary);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--contact-primary);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  background: var(--contact-secondary);
}