/* ================================================
   YY4480苹果乐园 — 果园日志编辑部设计系统
   ella-bella.com.cn
   ================================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
  background-color: #FBF9F4;
  background-image: radial-gradient(rgba(217, 79, 69, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  color: #2D3436;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #D94F45;
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #FBF9F4;
}
::-webkit-scrollbar-thumb {
  background: #D9CFC0;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D94F45;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(217, 79, 69, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============ 核心布局 ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section:nth-child(even) {
  background: #F0EDE5;
}

/* ============ 导航头部 ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px dashed #D9CFC0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #2D3436;
}

.logo icon,
.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  background: #D94F45;
  color: #fff;
  box-shadow: 0 4px 14px rgba(217, 79, 69, 0.35);
  transition: transform 0.3s;
}

.logo:hover .logo-icon {
  transform: rotate(-8deg) scale(1.05);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: #4A4843;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.25s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #D94F45;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a:hover {
  color: #D94F45;
}

.nav-cta {
  padding: 10px 24px !important;
  border-radius: 50px !important;
  background: #D94F45;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(217, 79, 69, 0.35);
  transition: all 0.3s ease !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: #C2372F;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 79, 69, 0.45);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #F0EDE5;
  border: 1px solid #E5DED4;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}

.menu-toggle::before {
  content: '';
  width: 18px;
  height: 2px;
  background: #2D3436;
  border-radius: 2px;
  box-shadow: 0 6px 0 #2D3436, 0 -6px 0 #2D3436;
  transition: all 0.3s;
}

.menu-toggle:hover {
  background: #E8E0D6;
}

.menu-toggle:hover::before {
  background: #D94F45;
  box-shadow: 0 6px 0 #D94F45, 0 -6px 0 #D94F45;
}

/* ============ Hero ============ */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 120px 0 90px;
  background: linear-gradient(135deg, #F4EFE7 0%, #FBF9F4 55%, #EDF2EA 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  right: -140px;
  top: -100px;
  background: radial-gradient(circle, rgba(217, 79, 69, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '🍎';
  position: absolute;
  right: 7%;
  bottom: 10%;
  font-size: 9rem;
  opacity: 0.1;
  transform: rotate(-18deg);
  line-height: 1;
  pointer-events: none;
  filter: saturate(0.8);
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 2;
  flex: 1.2;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 20px;
  border-radius: 40px;
  margin-bottom: 18px;
  background: #EDF2EA;
  color: #5B7A5E;
  border: 1px solid #D5E2D2;
  box-shadow: 0 2px 8px rgba(91, 122, 94, 0.08);
}

.hero h1 {
  font-size: 3.1rem;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.035em;
  font-weight: 900;
  color: #2D3436;
}

.hero p {
  font-size: 1.08rem;
  opacity: 0.72;
  max-width: 560px;
  margin-bottom: 34px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 14px;
}

.hero-image {
  flex: 0.8;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #E8F0E4, #D2E3CD);
  border: 1px solid #D5E2D2;
  box-shadow: 20px 26px 50px rgba(91, 122, 94, 0.22);
  transform: rotate(1.5deg);
  animation: float-soft 6s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image::after {
  content: '🍏';
  font-size: 6rem;
  opacity: 0.35;
  transform: translateY(0);
  display: block;
}

.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  transition: transform 0.6s ease;
}

.hero-image:hover img {
  transform: scale(1.04);
}

@keyframes float-soft {
  0%, 100% { transform: rotate(1.5deg) translateY(0); }
  50% { transform: rotate(1.5deg) translateY(-10px); }
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
}

.btn-primary {
  color: #fff;
  background: #D94F45;
  box-shadow: 0 6px 22px rgba(217, 79, 69, 0.35);
}

.btn-primary:hover {
  background: #C2372F;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(217, 79, 69, 0.42);
}

.btn-outline {
  background: transparent;
  border: 2px solid #D94F45;
  color: #D94F45;
}

.btn-outline:hover {
  background: #D94F45;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(217, 79, 69, 0.3);
}

/* ============ 区块标题 ============ */
.section-label {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 6px 18px;
  background: #FBF0D9;
  color: #8E6D26;
  border: 1px solid #EAD9B0;
  border-radius: 3px;
  transform: rotate(-1.5deg);
  box-shadow: 2px 2px 0 rgba(155, 123, 47, 0.12);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  color: #2D3436;
}

.section-title::after {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  background: #D94F45;
  border-radius: 50%;
  margin-left: 10px;
  vertical-align: middle;
}

.section-desc {
  max-width: 600px;
  opacity: 0.7;
  margin-bottom: 44px;
  font-size: 1.02rem;
  line-height: 1.75;
}

/* ============ 卡片网格 ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.category-card {
  border-radius: 20px;
  padding: 30px 26px;
  border: 1px solid #E5DED4;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(45, 52, 54, 0.04);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #D94F45, #E9B44C, #6B8F71);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.category-card:hover {
  transform: translateY(-7px) rotate(-0.4deg);
  box-shadow: 14px 18px 36px rgba(91, 122, 94, 0.15);
  border-color: #D5E2D2;
  background: #fff;
}

.category-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
  background: #F0EDE5;
  transition: transform 0.3s;
}

.category-card:hover .card-icon {
  transform: scale(1.08) rotate(-5deg);
}

.category-card:nth-child(1) .card-icon { background: #FCECEA; }
.category-card:nth-child(2) .card-icon { background: #E8F0E4; }
.category-card:nth-child(3) .card-icon { background: #FBF0D9; }
.category-card:nth-child(4) .card-icon { background: #E7F0F2; }

.card-link {
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  color: #D94F45;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  transition: gap 0.3s ease, color 0.2s;
}

.card-link:hover {
  gap: 14px;
  color: #C2372F;
}

/* ============ 特性块 ============ */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #FBE3E0, #F4C4C0);
  border: 1px solid #EBC9C6;
  box-shadow: 16px 22px 44px rgba(217, 79, 69, 0.13);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-image::after {
  content: '🍎';
  font-size: 5.5rem;
  opacity: 0.4;
  line-height: 1;
}

.feature-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.feature-image:hover img {
  transform: scale(1.03);
}

.feature-text {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #4A4843;
}

.feature-text p {
  margin-bottom: 18px;
}

.feature-text .section-label {
  margin-bottom: 14px;
}

.feature-list {
  list-style: none;
  margin-top: 12px;
}

.feature-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 0.97rem;
}

.feature-list li::before {
  content: '🍃';
  font-weight: 700;
  flex-shrink: 0;
}

/* ============ 数据条 ============ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}

.stat-item {
  padding: 34px 20px 28px;
  border-radius: 20px;
  border: 1px solid #E5DED4;
  background: rgba(255, 255, 255, 0.85);
  position: relative;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(91, 122, 94, 0.12);
}

.stat-item::after {
  content: '';
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 4px;
  background: #D94F45;
  border-radius: 4px;
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  color: #D94F45;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.92rem;
  opacity: 0.6;
  margin-top: 8px;
  font-weight: 500;
}

/* ============ 内容墙 ============ */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.content-wall-item {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #E5DED4;
  background: #fff;
  transition: all 0.35s ease;
}

.content-wall-item:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 40px rgba(91, 122, 94, 0.15);
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.content-wall-item:nth-child(1) img { background: linear-gradient(135deg, #FBE3E0, #E8A09A); }
.content-wall-item:nth-child(2) img { background: linear-gradient(135deg, #E8F0E4, #A3C69A); }
.content-wall-item:nth-child(3) img { background: linear-gradient(135deg, #FBF0D9, #E9CF9E); }
.content-wall-item:nth-child(4) img { background: linear-gradient(135deg, #E7F0F2, #A8C6CE); }
.content-wall-item:nth-child(5) img { background: linear-gradient(135deg, #EDE7F0, #C9BEDA); }
.content-wall-item:nth-child(6) img { background: linear-gradient(135deg, #FDE8D8, #E8A56A); }

.content-wall-item:hover img {
  transform: scale(1.04);
}

.content-wall-body {
  padding: 24px 24px 26px;
}

.content-wall-body h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #2D3436;
}

.content-wall-body p {
  font-size: 0.9rem;
  opacity: 0.62;
  line-height: 1.65;
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid #E0D9CC;
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.65);
  transition: all 0.3s ease;
}

.faq-item:hover,
.faq-item.open {
  border-color: #D94F45;
  background: #fff;
  box-shadow: 0 6px 20px rgba(217, 79, 69, 0.08);
}

.faq-item .faq-question {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 0.98rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #2D3436;
  transition: color 0.2s;
}

.faq-question::after {
  content: '＋';
  font-size: 1.15rem;
  color: #D94F45;
  font-weight: 700;
  transition: transform 0.35s ease;
}

.faq-item.open .faq-question::after {
  content: '×';
  transform: rotate(180deg);
}

.faq-item .faq-answer {
  padding: 0 24px 20px;
  display: none;
  opacity: 0.75;
  font-size: 0.95rem;
  line-height: 1.75;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ============ CTA 横幅 ============ */
.cta-banner {
  padding: 64px 40px;
  text-align: center;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #D94F45 0%, #E8734A 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(217, 79, 69, 0.35);
}

.cta-banner::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  top: -90px;
  right: -70px;
}

.cta-banner::after {
  content: '🍎';
  position: absolute;
  bottom: 16px;
  left: 30px;
  font-size: 4.5rem;
  opacity: 0.22;
  transform: rotate(22deg);
  line-height: 1;
}

.cta-banner h2 {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: -0.025em;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.cta-banner .btn {
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary {
  background: #fff;
  color: #D94F45;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
}

.cta-banner .btn-primary:hover {
  background: #F7F2EA;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* ============ 页脚 ============ */
.site-footer {
  padding: 68px 0 30px;
  background: #EFEAE2;
  border-top: 1px dashed #D9CFC0;
  position: relative;
}

.site-footer::before {
  content: '🍏';
  position: absolute;
  top: -23px;
  left: 54px;
  font-size: 1.6rem;
  background: #FBF9F4;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #D9CFC0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  line-height: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand h3 {
  font-size: 1.25rem;
  font-weight: 900;
  color: #2D3436;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.footer-brand p {
  font-size: 0.92rem;
  opacity: 0.65;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: #6B8F71;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  padding: 4px 0;
}

.footer-col ul a {
  text-decoration: none;
  color: #4A4843;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-col ul a:hover {
  color: #D94F45;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(45, 52, 54, 0.08);
  margin-top: 44px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #8A8378;
  letter-spacing: 0.02em;
}

/* ============ 工具类 ============ */
.text-accent {
  color: #D94F45;
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  opacity: 0.7;
  line-height: 1.75;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .feature-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(251, 249, 244, 0.98);
    padding: 28px 24px;
    border-bottom: 1px dashed #D9CFC0;
    box-shadow: 0 12px 28px rgba(45, 52, 54, 0.08);
  }

  .main-nav.open .nav-cta {
    margin-top: 6px;
  }

  .hero {
    flex-direction: column;
    padding-top: 120px;
    gap: 44px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-image {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .hero-content {
    max-width: 100%;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .cta-banner {
    padding: 48px 24px;
  }

  .cta-banner h2 {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .cards-grid,
  .content-wall,
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.55rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .cta-banner h2 {
    font-size: 1.5rem;
  }

  .site-footer::before {
    left: 24px;
  }
}