/*
Theme Name: BabyCareWithLove
Theme URI: http://175.27.221.66:9090
Description: 爱宝智育 — 专业母婴品牌主题
Author: BabyCareWithLove
Version: 1.0
Text Domain: babycarewithlove
*/

/* ========== CSS Variables ========== */
:root {
  --pink: #F4A5A5;
  --pink-light: #F9C7C7;
  --bg: #FFF8F5;
  --green: #A8C5A0;
  --cta: #D4788A;
  --cta-hover: #c4687a;
  --text: #333;
  --text-light: #666;
  --white: #fff;
  --shadow: 0 2px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --transition: all 0.3s ease;
}

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', 'Quicksand', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

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

/* ========== 1. 顶部公告栏 ========== */
.top-bar {
  background: linear-gradient(135deg, var(--cta), var(--pink));
  color: var(--white);
  text-align: center;
  padding: 8px 20px;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.top-bar a {
  color: var(--white);
  text-decoration: underline;
  font-weight: 600;
}

/* ========== 2. 粘性导航栏 ========== */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.site-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--cta);
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo span { font-size: 28px; }

.main-nav ul {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--cta);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cta);
  transition: var(--transition);
}

.main-nav a:hover::after { width: 100%; }

.nav-icons {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 20px;
}

.nav-icons a { position: relative; }

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--cta);
  color: var(--white);
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

/* ========== 3. Hero 大图 ========== */
.hero {
  background: linear-gradient(135deg, #FFF0ED 0%, #FDE8E0 30%, #F9C7C7 60%, #E8D5E0 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168,197,160,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: var(--white);
  color: var(--cta);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text);
}

.hero h1 em {
  font-style: normal;
  color: var(--cta);
  position: relative;
}

.hero p {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--cta);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(212,120,138,0.4);
}

.btn-primary:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,120,138,0.5);
}

.btn-outline {
  background: var(--white);
  color: var(--cta);
  border: 2px solid var(--cta);
}

.btn-outline:hover {
  background: var(--cta);
  color: var(--white);
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat-item { text-align: center; }

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--cta);
}

.stat-label {
  font-size: 13px;
  color: var(--text-light);
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.hero-image-placeholder {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-light), var(--pink), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  box-shadow: 0 20px 60px rgba(244,165,165,0.3);
  position: relative;
}

.hero-image-placeholder::after {
  content: '';
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 2px dashed var(--pink-light);
  animation: spin 20s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== 4. 价值主张 ========== */
.value-props {
  padding: 60px 0;
  background: var(--white);
}

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

.value-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.value-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px;
}

.value-card:nth-child(1) .value-icon { background: #FFF0ED; }
.value-card:nth-child(2) .value-icon { background: #E8F5E9; }
.value-card:nth-child(3) .value-icon { background: #FFF3E0; }
.value-card:nth-child(4) .value-icon { background: #F3E5F5; }

.value-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  font-weight: 600;
}

.value-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ========== Section Headers ========== */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-light);
}

.section-line {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--cta));
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ========== 5. 产品分类 ========== */
.categories {
  padding: 70px 0;
  background: var(--bg);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--pink-light);
}

.cat-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 14px;
  transition: var(--transition);
}

.cat-card:nth-child(1) .cat-icon { background: linear-gradient(135deg, #FFF0ED, #FDDCDC); }
.cat-card:nth-child(2) .cat-icon { background: linear-gradient(135deg, #E8F5E9, #C8E6C9); }
.cat-card:nth-child(3) .cat-icon { background: linear-gradient(135deg, #E3F2FD, #BBDEFB); }
.cat-card:nth-child(4) .cat-icon { background: linear-gradient(135deg, #FFF3E0, #FFE0B2); }
.cat-card:nth-child(5) .cat-icon { background: linear-gradient(135deg, #F3E5F5, #E1BEE7); }
.cat-card:nth-child(6) .cat-icon { background: linear-gradient(135deg, #FCE4EC, #F8BBD0); }
.cat-card:nth-child(7) .cat-icon { background: linear-gradient(135deg, #E0F2F1, #B2DFDB); }
.cat-card:nth-child(8) .cat-icon { background: linear-gradient(135deg, #FFF8E1, #FFECB3); }
.cat-card:nth-child(9) .cat-icon { background: linear-gradient(135deg, #EDE7F6, #D1C4E9); }

.cat-card:hover .cat-icon {
  transform: scale(1.1);
}

.cat-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cat-card p {
  font-size: 13px;
  color: var(--text-light);
}

/* ========== 6. 精选商品 ========== */
.products {
  padding: 70px 0;
  background: var(--white);
}

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

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid #f0e8e5;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-image {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  position: relative;
}

.product-card:nth-child(1) .product-image { background: linear-gradient(135deg, #FFF0ED, #FDE8E0); }
.product-card:nth-child(2) .product-image { background: linear-gradient(135deg, #E8F5E9, #C8E6C9); }
.product-card:nth-child(3) .product-image { background: linear-gradient(135deg, #E3F2FD, #BBDEFB); }
.product-card:nth-child(4) .product-image { background: linear-gradient(135deg, #FFF3E0, #FFE0B2); }

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--cta);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
}

.product-badge.new { background: var(--green); }

.product-info {
  padding: 16px;
}

.product-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.product-stars {
  color: #FFB800;
  font-size: 13px;
}

.product-reviews {
  font-size: 12px;
  color: var(--text-light);
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.price-current {
  font-size: 20px;
  font-weight: 700;
  color: var(--cta);
}

.price-original {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

.product-card .btn {
  width: 100%;
  justify-content: center;
  padding: 10px;
  font-size: 14px;
  border-radius: 8px;
}

/* ========== 7. 品牌故事 ========== */
.brand-story {
  padding: 80px 0;
  background: linear-gradient(135deg, #FFF0ED, #FDE8E0, #F9C7C7);
  position: relative;
}

.story-wrapper {
  display: flex;
  align-items: center;
  gap: 60px;
}

.story-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-image-placeholder {
  width: 380px;
  height: 320px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--white), var(--pink-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  box-shadow: var(--shadow-hover);
}

.story-content {
  flex: 1;
}

.story-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

.story-content p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 14px;
}

.story-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.story-tag {
  background: var(--white);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--cta);
  box-shadow: var(--shadow);
}

/* ========== 8. 信任背书 ========== */
.trust {
  padding: 60px 0;
  background: var(--white);
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.trust-stat {
  text-align: center;
  padding: 24px;
}

.trust-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--cta);
  margin-bottom: 6px;
}

.trust-label {
  font-size: 15px;
  color: var(--text-light);
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.trust-badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.trust-badge-icon {
  font-size: 24px;
}

/* ========== 9. 用户评价 ========== */
.reviews {
  padding: 70px 0;
  background: var(--bg);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  position: relative;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.review-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 48px;
  color: var(--pink-light);
  font-family: Georgia, serif;
  line-height: 1;
}

.review-stars {
  color: #FFB800;
  font-size: 14px;
  margin-bottom: 12px;
}

.review-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.review-card:nth-child(1) .review-avatar { background: #FFF0ED; }
.review-card:nth-child(2) .review-avatar { background: #E8F5E9; }
.review-card:nth-child(3) .review-avatar { background: #E3F2FD; }

.review-name {
  font-size: 14px;
  font-weight: 600;
}

.review-date {
  font-size: 12px;
  color: #999;
}

/* ========== 10. 育儿知识 ========== */
.blog {
  padding: 70px 0;
  background: var(--white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid #f0e8e5;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.blog-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
}

.blog-card:nth-child(1) .blog-image { background: linear-gradient(135deg, #FFF0ED, #FDE8E0); }
.blog-card:nth-child(2) .blog-image { background: linear-gradient(135deg, #E8F5E9, #C8E6C9); }
.blog-card:nth-child(3) .blog-image { background: linear-gradient(135deg, #E3F2FD, #BBDEFB); }

.blog-content {
  padding: 20px;
}

.blog-tag {
  display: inline-block;
  background: var(--pink-light);
  color: var(--cta);
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5;
}

.blog-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
}

.read-more {
  color: var(--cta);
  font-weight: 600;
  font-size: 13px;
}

.read-more:hover { color: var(--cta-hover); }

/* ========== 11. 邮件订阅 ========== */
.newsletter {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--cta), var(--pink));
  color: var(--white);
  text-align: center;
}

.newsletter h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.newsletter p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.newsletter-form button {
  padding: 14px 28px;
  background: var(--white);
  color: var(--cta);
  border: none;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ========== 12. 页脚 ========== */
.site-footer {
  background: #2D2D2D;
  color: #ccc;
  padding: 50px 0 0;
}

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

.footer-brand .site-logo {
  color: var(--pink);
  margin-bottom: 14px;
  font-size: 22px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: #aaa;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--cta);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 14px;
  color: #aaa;
}

.footer-col a:hover { color: var(--pink); }

.footer-bottom {
  border-top: 1px solid #444;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: #888;
}

.payment-methods {
  display: flex;
  gap: 8px;
  font-size: 20px;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .hero .container { flex-direction: column; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image-placeholder { width: 300px; height: 300px; font-size: 80px; }

  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .story-wrapper { flex-direction: column; }
  .story-image-placeholder { width: 100%; max-width: 380px; }
  .trust-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 20px;
  }

  .main-nav.active { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid #f0f0f0;
  }

  .main-nav a {
    display: block;
    padding: 12px 0;
  }

  .menu-toggle { display: block; }

  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .hero-stats { gap: 20px; }
  .stat-number { font-size: 22px; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }

  .newsletter-form { flex-direction: column; }
  .newsletter-form input, .newsletter-form button { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .trust-badges { gap: 12px; }
  .trust-badge { padding: 10px 16px; font-size: 13px; }

  .section-header h2 { font-size: 26px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .hero-image-placeholder { width: 220px; height: 220px; font-size: 60px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; gap: 12px; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-card { padding: 20px 12px; }
  .cat-icon { width: 60px; height: 60px; font-size: 28px; }

  .product-grid { grid-template-columns: 1fr; }
  .trust-stats { grid-template-columns: 1fr; }
}
