/* 51吃瓜 - 女性疗愈风格主样式 */
:root {
  --cream: #faf7f2;
  --warm-white: #fffdf9;
  --blush: #e8c5bc;
  --dusty-rose: #d4a5a0;
  --fog-pink: #f0ddd8;
  --warm-apricot: #f2c9a0;
  --khaki: #e8e0d0;
  --gray-purple: #c5b8c8;
  --mist-rose: #ddc8c5;
  --oat: #ede8df;
  --text-main: #4a3f3a;
  --text-soft: #7a6e6a;
  --text-light: #a89e9a;
  --border: #e8ddd8;
  --shadow: rgba(180,150,140,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  background: var(--cream);
  color: var(--text-main);
  line-height: 1.8;
  font-size: 16px;
}

/* ===== 导航 ===== */
.site-header {
  background: rgba(250,247,242,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 5%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dusty-rose);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.logo span { color: var(--text-soft); font-weight: 400; font-size: 0.85rem; margin-left: 6px; }

nav { display: flex; gap: 0; }

nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 20px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

nav a:hover, nav a.active {
  color: var(--dusty-rose);
  background: var(--fog-pink);
}

/* 搜索框 */
.search-bar {
  background: var(--oat);
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 5%;
  display: flex;
  justify-content: center;
}

.search-bar form {
  display: flex;
  align-items: center;
  max-width: 480px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 9px 18px;
  font-size: 0.9rem;
  background: transparent;
  color: var(--text-main);
  font-family: inherit;
}

.search-bar input::placeholder { color: var(--text-light); }

.search-bar button {
  background: var(--dusty-rose);
  border: none;
  color: #fff;
  padding: 9px 20px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: background 0.3s;
  font-family: inherit;
}

.search-bar button:hover { background: var(--blush); }

/* ===== 首屏 ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.88) saturate(0.85);
  transform: scale(1.02);
  animation: heroZoom 12s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.06); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(250,247,242,0.72) 0%, rgba(232,197,188,0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 0 8%;
  animation: fadeInUp 1s ease both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-tag {
  display: inline-block;
  background: var(--fog-pink);
  color: var(--dusty-rose);
  font-size: 0.82rem;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  letter-spacing: 0.08em;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  color: var(--dusty-rose);
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.9;
  margin-bottom: 32px;
  max-width: 480px;
}

.btn-primary {
  display: inline-block;
  background: var(--dusty-rose);
  color: #fff;
  text-decoration: none;
  padding: 13px 32px;
  border-radius: 30px;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(212,165,160,0.35);
}

.btn-primary:hover {
  background: var(--blush);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,165,160,0.45);
}

.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--dusty-rose);
  color: var(--dusty-rose);
  text-decoration: none;
  padding: 11px 28px;
  border-radius: 30px;
  font-size: 0.92rem;
  transition: all 0.3s ease;
  margin-left: 12px;
}

.btn-outline:hover {
  background: var(--fog-pink);
  transform: translateY(-2px);
}

/* ===== 通用区块 ===== */
section {
  padding: 80px 5%;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--dusty-rose);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  line-height: 1.4;
}

.section-desc {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.9;
  max-width: 560px;
  margin-bottom: 48px;
}

/* ===== 情绪卡片 ===== */
.emotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.emotion-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: all 0.35s ease;
  animation: fadeInUp 0.6s ease both;
}

.emotion-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--shadow);
  border-color: var(--blush);
}

.emotion-card .icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.emotion-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.emotion-card p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ===== 图文交错 ===== */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

.split-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow);
}

.split-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.split-img:hover img { transform: scale(1.03); }

.split-text h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.4;
}

.split-text p {
  color: var(--text-soft);
  line-height: 1.9;
  margin-bottom: 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  background: var(--fog-pink);
  color: var(--dusty-rose);
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 14px;
}

/* ===== 视频卡片 ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.video-card {
  background: var(--warm-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
  transition: all 0.35s ease;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px var(--shadow);
}

.video-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--oat);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover .video-thumb img { transform: scale(1.05); }

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover .play-btn { opacity: 1; }

.play-btn svg {
  width: 52px;
  height: 52px;
  fill: rgba(255,255,255,0.92);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.video-info {
  padding: 16px 18px;
}

.video-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.5;
}

.video-meta {
  display: flex;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ===== 手记卡片 ===== */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.note-card {
  background: var(--warm-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
  transition: all 0.35s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.note-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px var(--shadow);
}

.note-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.note-card:hover img { transform: scale(1.04); }

.note-body {
  padding: 20px 22px;
}

.note-cat {
  font-size: 0.75rem;
  color: var(--dusty-rose);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.note-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 8px;
}

.note-card p {
  font-size: 0.86rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ===== 用户评价 ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.review-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px;
  transition: all 0.35s ease;
  animation: fadeInUp 0.6s ease both;
}

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

.review-quote {
  font-size: 1.5rem;
  color: var(--blush);
  margin-bottom: 12px;
  line-height: 1;
}

.review-card p {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 16px;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviewer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fog-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--dusty-rose);
  font-weight: 600;
}

.reviewer-info .name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.reviewer-info .role {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 760px;
  margin: 40px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-q {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.faq-q::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--dusty-rose);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.85;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding-top: 12px;
}

/* ===== 成长步骤 ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.step-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--warm-white);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.35s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow);
  border-color: var(--blush);
}

.step-num {
  width: 44px;
  height: 44px;
  background: var(--fog-pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dusty-rose);
  margin: 0 auto 16px;
}

.step-card h3 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ===== 联系区块 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form {
  background: var(--warm-white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--cream);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--dusty-rose); }

.form-group textarea { height: 110px; resize: vertical; }

.contact-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 36px;
  height: 36px;
  background: var(--fog-pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--text-main);
  color: rgba(255,255,255,0.75);
  padding: 50px 5% 30px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand .logo-footer {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blush);
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.86rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.84rem;
  margin-bottom: 8px;
  transition: color 0.3s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
}

.footer-bottom a:hover { color: var(--blush); }

/* ===== 背景色块 ===== */
.bg-oat { background: var(--oat); }
.bg-fog { background: var(--fog-pink); }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--warm-white); }

/* ===== 分隔线 ===== */
.divider {
  width: 48px;
  height: 3px;
  background: var(--dusty-rose);
  border-radius: 2px;
  margin: 16px 0 32px;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-light);
  padding: 14px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--dusty-rose); }

.breadcrumb span { margin: 0 6px; }

/* ===== 页面英雄区 ===== */
.page-hero {
  background: linear-gradient(135deg, var(--fog-pink) 0%, var(--oat) 100%);
  padding: 60px 5%;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1rem;
  color: var(--text-soft);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .split-section { grid-template-columns: 1fr; gap: 32px; }
  .split-section.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 8px; }
  nav { flex-wrap: wrap; gap: 4px; }
  nav a { padding: 6px 10px; font-size: 0.84rem; }
  .hero { min-height: 70vh; }
  .hero-content { padding: 0 5%; }
  section { padding: 50px 5%; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .video-grid { grid-template-columns: 1fr; }
  .notes-grid { grid-template-columns: 1fr; }
}

/* ===== 动画延迟 ===== */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
