/* ================================
   快羊羊省钱超市 - 样式表
   ================================ */

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

:root {
  --primary-color: #FF6B35;
  --primary-dark: #E55A2B;
  --secondary-color: #004E98;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --white: #fff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --radius: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* ================================
   导航栏
   ================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.navbar .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo-icon {
  height: 40px;
  width: auto;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 8px 0;
  position: relative;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ================================
   Hero 区域
   ================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #FFF5F0 0%, #FFF0E6 50%, #FFE8D6 100%);
  z-index: -1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  text-align: center;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--primary-color);
}

.hero .subtitle {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 2px;
}

.hero .hero-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 40px;
}

.cta-button {
  display: inline-block;
  padding: 16px 40px;
  background: var(--primary-color);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.35);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 107, 53, 0.45);
}

/* ================================
   四大优势
   ================================ */
.features {
  padding: 80px 0;
  background: var(--bg-light);
}

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

.feature-card {
  background: var(--white);
  padding: 40px 25px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFF0E6, #FFE0D0);
  color: var(--primary-color);
  margin-bottom: 25px;
}

.feature-icon svg {
  width: 40px;
  height: 40px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ================================
   品类展示
   ================================ */
.categories {
  padding: 80px 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 25px;
}

.category-card {
  background: var(--white);
  padding: 35px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.category-emoji {
  font-size: 3.5rem;
  margin-bottom: 15px;
}

.category-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.category-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ================================
   品牌故事
   ================================ */
.brand-story {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
}

.story-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.story-item {
  background: var(--white);
  padding: 35px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.story-badge {
  position: absolute;
  top: -20px;
  left: 30px;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-item h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  margin-top: 10px;
  color: var(--text-dark);
}

.story-item p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
}

.story-footer {
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: var(--radius);
  color: var(--white);
}

.story-footer p {
  font-size: 1.1rem;
  line-height: 1.9;
  max-width: 800px;
  margin: 0 auto;
}

/* ================================
   CTA 区域
   ================================ */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #004E98 0%, #003A75 100%);
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

.cta-section .cta-button {
  background: var(--white);
  color: var(--secondary-color);
}

.cta-section .cta-button:hover {
  background: #f0f0f0;
}

/* ================================
   Footer
   ================================ */
.footer {
  background: #1a1a1a;
  color: #fff;
  padding: 60px 0 30px;
}

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

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.footer-brand p {
  color: #999;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: #999;
  transition: color 0.3s;
}

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

.footer-contact p {
  color: #999;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 30px;
  text-align: center;
  color: #666;
}

/* ================================
   响应式设计
   ================================ */
@media (max-width: 992px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: var(--shadow);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero .subtitle {
    font-size: 1.1rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .story-content {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 80px 15px 50px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .cta-button {
    padding: 14px 30px;
    font-size: 1rem;
  }
  
  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  
  .feature-card,
  .category-card,
  .story-item {
    padding: 25px 15px;
  }
}