/* ===== 基础重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:       #8B2500;      /* 深红褐，接地气 */
  --red-light: #B33A1D;      /* 稍亮的红 */
  --gold:      #A0711A;      /* 土黄 */
  --wheat:     #C89B3C;       /* 麦子金 */
  --earth:     #5C3A1E;       /* 大地棕 */
  --cream:     #FDF5E6;       /* 原米色 */
  --light:     #F0E4CC;       /* 浅土黄 */
  --dark:      #2C1810;       /* 深褐 */
  --gray:      #5C4033;       /* 土灰 */
  --gray-light:#9C7B5C;       /* 浅土灰 */
  --white:     #FFFEF8;       /* 暖白 */
  --radius:    12px;
  --shadow:    0 4px 16px rgba(44,24,16,0.12);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "宋体", serif;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== 通用容器 ===== */
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* ===== 音乐开关 ===== */
.music-toggle {
  position: fixed; top: 16px; right: 16px; z-index: 999;
  width: 44px; height: 44px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(139,37,0,0.5);
  transition: transform 0.2s;
}
.music-toggle:hover { transform: scale(1.1); }

/* ===== 导航栏 ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,245,230,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(139,37,0,0.12);
  padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.9rem; color: var(--red);
}
.nav-logo-img { height: 36px; width: auto; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a {
  font-size: 0.88rem; color: var(--gray);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--red); }
.nav-toggle {
  display: none; background: none; border: none;
  font-size: 1.5rem; cursor: pointer; color: var(--red);
}

/* ===== Hero 首屏 ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 40px 20px;
  background-color: #3A5A1E; /* 草地基础色 */
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/grassland.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* 渐变叠加层，让文字清晰可读 */
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(44,24,16,0.72) 0%,
    rgba(44,24,16,0.45) 50%,
    rgba(60,40,20,0.60) 100%
  );
}
.hero-content {
  position: relative; z-index: 2; flex: 1;
  color: var(--white);
  max-width: 600px;
}
.hero-badge {
  display: inline-block;
  background: rgba(200,155,60,0.25);
  color: #F5D97E;
  font-size: 0.82rem; font-weight: 600;
  padding: 5px 16px; border-radius: 20px;
  margin-bottom: 18px; letter-spacing: 0.08em;
  border: 1px solid rgba(200,155,60,0.4);
}
.hero-title {
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  font-weight: 900; line-height: 1.2;
  color: var(--white);
  margin-bottom: 18px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero-title span { color: #F5C842; }
.hero-subtitle {
  font-size: 1.05rem; color: rgba(255,255,255,0.88);
  margin-bottom: 30px; line-height: 1.9;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 13px 30px; border-radius: 30px;
  font-size: 1rem; font-weight: 700;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(139,37,0,0.5);
}
.btn-primary:hover { background: #6B1C00; transform: translateY(-2px); }
.btn-outline {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white);
  padding: 11px 30px; border-radius: 30px;
  font-size: 1rem; font-weight: 600;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.hero-music-hint {
  font-size: 0.8rem; color: rgba(255,255,255,0.6);
  display: flex; align-items: center; gap: 6px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.hero-music-hint small { opacity: 0.7; }

.hero-logo {
  flex: 0 0 auto;
  padding-left: 60px;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
}
.logo-main {
  max-height: 260px; width: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
}

/* ===== 通用区块 ===== */
.section { padding: 64px 0; }
.section-dark { background: var(--dark); color: var(--cream); }
.section-light { background: var(--light); }

.section-header { text-align: center; margin-bottom: 40px; }
.section-tag {
  display: inline-block;
  color: var(--red); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; margin-bottom: 10px;
  font-family: "PingFang SC", serif;
}
.section-dark .section-tag { color: var(--gold); }
.section-header h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  color: var(--dark);
  font-family: "PingFang SC", serif;
}
.section-dark .section-header h2 { color: var(--cream); }

/* ===== 产品认知 ===== */
.product-desc {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: var(--shadow);
  display: flex; gap: 18px; align-items: start;
  margin-bottom: 28px;
  border-left: 5px solid var(--red);
}
.product-desc-icon { font-size: 1.6rem; flex-shrink: 0; }
.product-desc-text p { font-size: 0.95rem; color: var(--gray); margin-bottom: 8px; }

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--red);
}
.card-icon { font-size: 1.6rem; margin-bottom: 10px; }
.info-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.info-card p { font-size: 0.9rem; color: var(--gray); }

/* ===== 患者照片墙 ===== */
.photo-disclaimer {
  text-align: center; font-size: 0.82rem; color: var(--gray-light);
  margin-bottom: 24px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 20px;
}
.photo-item {
  background: var(--white);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--red-light);
}
.photo-item img { width: 100%; height: 180px; object-fit: cover; }
.photo-item p {
  padding: 10px 14px;
  font-size: 0.82rem; color: var(--gray);
  text-align: center;
  background: var(--white);
}
.photo-note {
  text-align: center;
  font-size: 0.9rem; color: var(--red);
  font-weight: 700;
  padding: 14px;
  background: rgba(139,37,0,0.08);
  border-radius: var(--radius);
  border: 1px solid rgba(139,37,0,0.15);
}

/* ===== 品牌故事 ===== */
.story-main {
  display: grid; grid-template-columns: 1fr auto;
  gap: 40px; align-items: center; margin-bottom: 48px;
}
.story-text p { font-size: 0.96rem; margin-bottom: 12px; opacity: 0.9; line-height: 1.9; }
.story-highlight {
  font-size: 1.08rem !important;
  font-weight: 700;
  color: #F5C842 !important;
  margin-top: 18px !important;
}
.story-brand {
  font-size: 1.15rem !important;
  font-weight: 800;
  color: var(--gold) !important;
  margin-top: 10px !important;
}
.story-product img { max-height: 200px; width: auto; }

.story-timeline {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap;
}
.timeline-item {
  flex: 1; min-width: 160px; max-width: 220px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  border: 1px solid rgba(200,155,60,0.2);
}
.timeline-year {
  width: 58px; height: 58px;
  background: linear-gradient(135deg, var(--gold), #C89B3C);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.68rem;
  color: var(--white); text-align: center;
  line-height: 1.25;
  margin: 0 auto 14px;
  box-shadow: 0 2px 8px rgba(160,113,26,0.4);
}
.timeline-item p { font-size: 0.86rem; opacity: 0.8; }

/* ===== 产品介绍 ===== */
.product-intro {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: grid; grid-template-columns: auto 1fr;
  gap: 32px; align-items: center;
  margin-bottom: 32px;
  border-top: 4px solid var(--red);
}
.product-intro-img img { max-height: 160px; width: auto; }
.product-intro-text h3 { font-size: 1.1rem; color: var(--red); margin-bottom: 10px; font-weight: 700; }
.product-intro-text p { font-size: 0.94rem; color: var(--gray); margin-bottom: 16px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: rgba(139,37,0,0.09);
  color: var(--red);
  padding: 5px 14px; border-radius: 18px;
  font-size: 0.82rem; font-weight: 700;
  border: 1px solid rgba(139,37,0,0.15);
}

.usage-steps {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 20px;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow);
  flex: 1; min-width: 180px; max-width: 260px;
  border-left: 4px solid var(--red);
}
.step-num {
  width: 42px; height: 42px;
  background: var(--red); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; font-weight: 800; flex-shrink: 0;
}
.step-text h4 { font-size: 0.94rem; font-weight: 700; margin-bottom: 3px; }
.step-text p { font-size: 0.82rem; color: var(--gray); }
.step-arrow { font-size: 1.4rem; color: var(--red); opacity: 0.35; }
.usage-note { text-align: center; font-size: 0.82rem; color: var(--gray-light); }

/* ===== 资质认证 ===== */
.quality-layout {
  display: grid; grid-template-columns: 1fr 280px;
  gap: 32px; align-items: start;
}
.quality-info { display: flex; flex-direction: column; gap: 16px; }
.quality-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex; gap: 16px; align-items: start;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}
.quality-icon { font-size: 1.5rem; flex-shrink: 0; }
.quality-text h4 { font-size: 0.96rem; font-weight: 700; margin-bottom: 5px; }
.quality-text p { font-size: 0.84rem; color: var(--gray); }

.quality-license {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.license-img { width: 100%; height: auto; }
.license-note {
  padding: 10px 14px;
  font-size: 0.75rem; color: var(--gray);
  text-align: center;
  background: var(--light);
}

/* ===== 页脚 ===== */
.footer {
  background: var(--earth);
  color: rgba(253,245,230,0.75);
  padding: 52px 0 30px;
}
.footer-main {
  display: grid; grid-template-columns: 1fr auto;
  gap: 36px; align-items: start;
  margin-bottom: 28px;
}
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-logo-img { height: 64px; width: auto; }
.footer-logo-title { font-size: 1.05rem; font-weight: 800; color: var(--cream); margin-bottom: 5px; }
.footer-slogan { font-size: 0.82rem; color: var(--gold); }

.footer-contact h4 { font-size: 0.96rem; margin-bottom: 9px; color: var(--cream); font-weight: 700; }
.footer-contact p { font-size: 0.86rem; margin-bottom: 13px; }
.btn-pinduoduo {
  display: inline-block;
  background: #E9414A;
  color: #fff;
  padding: 11px 22px; border-radius: 22px;
  font-size: 0.86rem; font-weight: 700;
  transition: opacity 0.2s;
  box-shadow: 0 3px 10px rgba(233,65,74,0.4);
}
.btn-pinduoduo:hover { opacity: 0.85; }

.footer-company {
  border-top: 1px solid rgba(253,245,230,0.1);
  padding-top: 22px; margin-bottom: 18px;
}
.footer-company p { font-size: 0.78rem; opacity: 0.5; margin-bottom: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(253,245,230,0.07);
  padding-top: 16px;
  text-align: center;
}
.footer-bottom p { font-size: 0.78rem; opacity: 0.35; }
.footer-music { margin-top: 5px; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute; top: 56px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 2px solid rgba(139,37,0,0.12);
    flex-direction: column; padding: 14px 20px; gap: 14px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .hero { flex-direction: column; padding: 36px 20px; text-align: center; }
  .hero-logo { padding-left: 0; }
  .hero-cta-row { justify-content: center; }
  .hero-music-hint { justify-content: center; }

  .story-main { grid-template-columns: 1fr; }
  .story-product { display: none; }
  .story-timeline { flex-direction: column; align-items: center; }
  .timeline-item { max-width: 100%; width: 100%; }

  .product-intro { grid-template-columns: 1fr; text-align: center; }
  .product-intro-img img { margin: 0 auto; }
  .product-tags { justify-content: center; }

  .quality-layout { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .info-cards { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .usage-steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
}
