/* 卷卷菜官网全局样式 ·「暖阳陪伴」温暖版 */
:root {
  --brand-primary: #6F9550;
  --brand-primary-deep: #5A7B40;
  --brand-secondary: #F2A65A;
  --brand-accent: #E8834A;
  --text-primary: #463B32;
  --text-secondary: #8A7A6B;
  --bg-cream: #FFFDF9;
  --bg-light: #FAF3E8;
  --bg-white: #FFFFFF;
  --border-color: #F0E4D3;
  --border-warm: #EAD9BE;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow: 0 4px 14px rgba(122, 90, 55, 0.07);
  --shadow-hover: 0 14px 34px rgba(122, 90, 55, 0.14);
  --max-width: 1200px;
  --header-height: 68px;
  --ease-warm: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-cream);
}

a {
  color: var(--brand-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 容器 */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* 顶部导航：暖米半透明 + 毛玻璃 */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(253, 249, 243, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(238, 226, 208, 0.9);
  height: var(--header-height);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 6px 20px rgba(122, 90, 55, 0.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: 1px;
}

.logo span {
  color: var(--brand-secondary);
}

.logo:hover {
  text-decoration: none;
  animation: logoWiggle 0.5s ease;
}

@keyframes logoWiggle {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(-2.5deg); }
  65% { transform: rotate(2deg); }
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

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

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-secondary), var(--brand-primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-warm);
}

.nav a:hover {
  color: var(--brand-primary);
  text-decoration: none;
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.nav a.active {
  color: var(--brand-primary);
  font-weight: 600;
}

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

/* 主要内容区 */
main {
  min-height: calc(100vh - var(--header-height) - 280px);
}

/* 页面标题区：暖阳渐变 + 漂移光斑 */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FDF6EC 0%, #F9E9D4 55%, #F5DEC2 100%);
  padding: 72px 0;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 166, 90, 0.3), rgba(242, 166, 90, 0) 65%);
  top: -140px;
  right: -90px;
  animation: blobFloat 12s ease-in-out infinite;
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 149, 80, 0.22), rgba(111, 149, 80, 0) 65%);
  bottom: -140px;
  left: -70px;
  animation: blobFloat 14s ease-in-out -6s infinite;
  pointer-events: none;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 26px) scale(1.08); }
}

/* Hero 温馨装饰：暖阳 / 小屋 / 云朵（JS 自动注入） */
.hero-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-sun {
  position: absolute;
  top: 14px;
  right: 5%;
  width: 108px;
  height: 108px;
  animation: sunFloat 7s ease-in-out infinite;
}

.hero-sun .sun-rays {
  transform-box: fill-box;
  transform-origin: center;
  animation: sunSpin 36s linear infinite;
}

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

@keyframes sunFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.hero-house {
  position: absolute;
  bottom: -4px;
  left: 3.5%;
  width: 168px;
  animation: houseFloat 9s ease-in-out infinite;
}

@keyframes houseFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.hero-house .smoke {
  opacity: 0;
  animation: smokeRise 3.6s ease-out infinite;
}

.hero-house .smoke.s2 { animation-delay: 1.2s; }
.hero-house .smoke.s3 { animation-delay: 2.4s; }

@keyframes smokeRise {
  0% { opacity: 0; transform: translateY(0) scale(0.7); }
  25% { opacity: 0.65; }
  100% { opacity: 0; transform: translateY(-26px) scale(1.25); }
}

.hero-cloud {
  position: absolute;
  top: 30px;
  left: 10%;
  width: 92px;
  opacity: 0.85;
  animation: cloudDrift 20s ease-in-out infinite alternate;
}

.hero-cloud.c2 {
  top: 58px;
  left: auto;
  right: 22%;
  width: 64px;
  opacity: 0.6;
  animation-duration: 26s;
  animation-delay: -8s;
}

@keyframes cloudDrift {
  from { transform: translateX(0); }
  to { transform: translateX(46px); }
}

@media (max-width: 768px) {
  .hero-sun { width: 54px; height: 54px; right: 2%; top: 4px; }
  .hero-house { width: 108px; left: 1%; }
  .hero-cloud { width: 60px; top: 10px; }
  .hero-cloud.c2 { display: none; }
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: 38px;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 2px;
}

.page-hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto;
}

/* Hero 载入渐入（错峰） */
.page-hero .container > * {
  animation: heroFadeUp 0.8s var(--ease-warm) both;
}

.page-hero .container > *:nth-child(2) { animation-delay: 0.12s; }
.page-hero .container > *:nth-child(3) { animation-delay: 0.24s; }
.page-hero .container > *:nth-child(4) { animation-delay: 0.36s; }
.page-hero .container > *:nth-child(5) { animation-delay: 0.48s; }

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

/* 区块 */
.section {
  padding: 64px 0;
}

.section-title {
  position: relative;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-primary);
  letter-spacing: 1.5px;
}

.section-title::after {
  content: '';
  display: block;
  width: 140px;
  height: 20px;
  margin: 12px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 20'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23F2A65A'/%3E%3Cstop offset='1' stop-color='%23E8834A'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='42' y='7.5' width='56' height='5' rx='2.5' fill='url(%23g)'/%3E%3Cpath d='M30 16 Q31 8 26 4' stroke='%237A9B57' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3Cellipse cx='24' cy='6' rx='4.5' ry='2.4' fill='%238FAE77' transform='rotate(-35 24 6)'/%3E%3Cellipse cx='33' cy='9' rx='4.5' ry='2.4' fill='%238FAE77' transform='rotate(25 33 9)'/%3E%3Cpath d='M110 16 Q109 8 114 4' stroke='%237A9B57' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3Cellipse cx='116' cy='6' rx='4.5' ry='2.4' fill='%238FAE77' transform='rotate(35 116 6)'/%3E%3Cellipse cx='107' cy='9' rx='4.5' ry='2.4' fill='%238FAE77' transform='rotate(-25 107 9)'/%3E%3C/svg%3E") center / contain no-repeat;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: -30px;
  margin-bottom: 40px;
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  position: relative;
  overflow: hidden;
  background: #FFFEFB;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease-warm), box-shadow 0.3s var(--ease-warm), border-color 0.3s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-secondary), var(--brand-accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-warm);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* 按钮：全圆角 + 暖色呼吸 */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  letter-spacing: 1px;
  transition: transform 0.25s var(--ease-warm), box-shadow 0.25s var(--ease-warm), background 0.25s ease, color 0.25s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-deep) 100%);
  color: var(--bg-white);
  box-shadow: 0 6px 18px rgba(111, 149, 80, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(111, 149, 80, 0.42);
  text-decoration: none;
  color: var(--bg-white);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--brand-secondary) 0%, #E8944A 100%);
  color: var(--bg-white);
  box-shadow: 0 6px 18px rgba(242, 166, 90, 0.35);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(242, 166, 90, 0.45);
  text-decoration: none;
  color: var(--bg-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
}

.btn-outline:hover {
  background-color: var(--brand-primary);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(111, 149, 80, 0.3);
  text-decoration: none;
}

/* 合规提示条：暖纸质感 */
.compliance-notice {
  background: linear-gradient(135deg, #FFF7E8 0%, #FDF0DA 100%);
  border: 1px solid #F3E2C2;
  border-left: 5px solid var(--brand-secondary);
  padding: 18px 22px;
  margin: 24px 0;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  box-shadow: 0 3px 10px rgba(122, 90, 55, 0.06);
}

.compliance-notice strong {
  color: var(--brand-accent);
}

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

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

.faq-item h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.faq-item p {
  color: var(--text-secondary);
}

/* 价格表 */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #FFFEFB;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.pricing-table th,
.pricing-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.pricing-table th {
  background-color: var(--bg-light);
  font-weight: 600;
  color: var(--text-primary);
}

.pricing-table tbody tr {
  transition: background 0.2s ease;
}

.pricing-table tbody tr:hover {
  background-color: #FDF8EF;
}

/* 表单 */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #EBDCC6;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background-color: #FFFDF9;
  color: var(--text-primary);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 4px rgba(242, 166, 90, 0.16);
}

/* 青草山坡条带（JS 注入页脚上方） */
.grass-strip {
  margin-top: 48px;
  margin-bottom: -1px;
  line-height: 0;
  pointer-events: none;
}

.grass-strip svg {
  display: block;
  width: 100%;
  height: 82px;
}

/* —— 页面中部俏皮院子场景（JS 自动注入）—— */
.play-scene {
  max-height: 210px;
  overflow: hidden;
  margin-top: 8px;
  line-height: 0;
  pointer-events: none;
}

.play-scene svg {
  display: block;
  width: 100%;
  height: auto;
}

/* 秋千摇曳 */
.ps-swing {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: swingRock 2.8s ease-in-out infinite;
}

@keyframes swingRock {
  0%, 100% { transform: rotate(6deg); }
  50% { transform: rotate(-6deg); }
}

/* 树冠轻摆 */
.ps-canopy {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: canopySway 6s ease-in-out infinite;
}

@keyframes canopySway {
  0%, 100% { transform: rotate(1.4deg); }
  50% { transform: rotate(-1.4deg); }
}

/* 风筝起伏 */
.ps-kite {
  animation: kiteFloat 4.2s ease-in-out infinite;
}

@keyframes kiteFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(2.5deg); }
}

/* 奔跑小孩颠簸 */
.ps-kid-run {
  animation: kidBob 0.9s ease-in-out infinite;
}

@keyframes kidBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* 皮球弹跳 */
.ps-ball {
  animation: ballBounce 0.9s cubic-bezier(0.28, 0.84, 0.42, 1) infinite;
}

@keyframes ballBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* 蝴蝶：翅膀扇动 + 路径漂移 */
.ps-butterfly .wings {
  transform-box: fill-box;
  transform-origin: center;
  animation: wingFlap 0.5s ease-in-out infinite alternate;
}

@keyframes wingFlap {
  from { transform: scaleX(1); }
  to { transform: scaleX(0.4); }
}

.ps-butterfly.b1 { animation: butterflyMove1 6s ease-in-out infinite; }
.ps-butterfly.b2 { animation: butterflyMove2 7.5s ease-in-out infinite; }

@keyframes butterflyMove1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(9px, -8px); }
  50% { transform: translate(18px, -1px); }
  75% { transform: translate(9px, 6px); }
}

@keyframes butterflyMove2 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-8px, 7px); }
  50% { transform: translate(-16px, -2px); }
  75% { transform: translate(-8px, -7px); }
}

/* 飞鸟掠过 */
.ps-bird {
  animation: birdFly 22s linear infinite;
}

.ps-bird.b2 { animation-delay: -7s; }
.ps-bird.b3 { animation-delay: -14s; }

@keyframes birdFly {
  from { transform: translateX(-120px); }
  to { transform: translateX(1520px); }
}

/* 场景小屋炊烟 */
.ps-house .smoke {
  opacity: 0;
  animation: smokeRise 3.6s ease-out infinite;
}

.ps-house .smoke.s2 { animation-delay: 1.8s; }

/* 场景云朵漂移 */
.ps-cloud {
  animation: cloudDrift 18s ease-in-out infinite alternate;
}

.ps-cloud.c2 { animation-duration: 24s; animation-delay: -6s; }

/* —— 全站背景点缀层（JS 注入 body 末尾）—— */
/* z-index: 1 → 位于各 section 实色背景之上、内容容器之下，
   让大树/猫/狗/兔子/孩子们作为"墙纸"在页面边缘可见嬉戏 */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* 内容容器抬升到背景层之上，保证文字/卡片不被动物遮挡 */
.container {
  position: relative;
  z-index: 2;
}

.bg-item {
  position: absolute;
  opacity: 0.28;
  animation-name: bgFloat;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes bgFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-14px) rotate(5deg); }
}

/* 背景大树（左下角，低透明度） */
.bg-tree {
  position: absolute;
  left: -4%;
  bottom: -3%;
  width: min(44vw, 540px);
  opacity: 0.15;
}

.bg-tree .sq-tail {
  transform-box: fill-box;
  transform-origin: 100% 100%;
  animation: tailFlick 2.4s ease-in-out infinite;
}

@keyframes tailFlick {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-10deg); }
}

/* 飘落树叶 */
.bg-leaf {
  position: absolute;
  opacity: 0;
  animation: leafFall 9s linear infinite;
}

@keyframes leafFall {
  0% { transform: translate(0, -8px) rotate(0deg); opacity: 0; }
  12% { opacity: 0.5; }
  85% { opacity: 0.4; }
  100% { transform: translate(-28px, 44vh) rotate(330deg); opacity: 0; }
}

/* 背景小动物与嬉戏孩子 */
.bg-animal,
.bg-dog-ball {
  position: absolute;
  opacity: 0.55;
}

/* 猫：尾巴摇摆 + 毛线球滚动 */
.bg-cat .tail {
  transform-box: fill-box;
  transform-origin: 0% 100%;
  animation: tailSwish 1.8s ease-in-out infinite;
}

@keyframes tailSwish {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(12deg); }
}

.bg-cat .yarn {
  transform-box: fill-box;
  transform-origin: center;
  animation: yarnRock 2.6s ease-in-out infinite;
}

@keyframes yarnRock {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}

/* 狗：小跑颠簸 + 快速摇尾 + 耳朵抖动 */
.bg-dog {
  animation: dogBob 0.7s ease-in-out infinite;
}

@keyframes dogBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.bg-dog .tail {
  transform-box: fill-box;
  transform-origin: 0% 100%;
  animation: tailWag 0.45s ease-in-out infinite;
}

@keyframes tailWag {
  0%, 100% { transform: rotate(-16deg); }
  50% { transform: rotate(16deg); }
}

.bg-dog .ear {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: earWiggle 1.4s ease-in-out infinite;
}

@keyframes earWiggle {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(7deg); }
}

/* 狗追的皮球：来回滚动 */
.bg-dog-ball {
  animation: ballRoll 2.4s ease-in-out infinite;
}

@keyframes ballRoll {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  50% { transform: translateX(-16px) rotate(-120deg); }
}

/* 兔子：蹲坐呼吸（腹部轻微起伏）+ 耳朵晃动 */
.bg-rabbit {
  transform-origin: 50% 100%;
  animation: rabbitSit 2.8s ease-in-out infinite;
}

@keyframes rabbitSit {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.015, 0.985); }
}

.bg-rabbit .ears {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: earWobble 1.6s ease-in-out infinite;
}

@keyframes earWobble {
  0%, 100% { transform: rotate(0deg); }
  40% { transform: rotate(-5deg); }
  70% { transform: rotate(3deg); }
}

@media (max-width: 768px) {
  .bg-item { opacity: 0.2; }
  .bg-tree { width: 240px; opacity: 0.12; }
  .bg-animal, .bg-dog-ball, .bg-leaf { display: none; }
}

/* 页脚：深暖棕 */
.footer {
  background: linear-gradient(160deg, #3B302A 0%, #322822 100%);
  color: #CBB9A8;
  padding: 52px 0 24px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer h4 {
  color: #F5EBDD;
  font-size: 16px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.footer a {
  color: #CBB9A8;
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer a:hover {
  color: var(--brand-secondary);
  text-decoration: none;
  transform: translateX(3px);
}

/* 页脚二维码 */
.footer-qr {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}

.footer-qr-item {
  text-align: center;
}

.footer-qr-item img {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  border: 2px solid rgba(245, 235, 221, 0.25);
  background: #FFFFFF;
  padding: 3px;
  object-fit: cover;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.footer-qr-item img:hover {
  transform: scale(1.08);
  border-color: var(--brand-secondary);
}

.footer-qr-item p {
  font-size: 12px;
  color: #BFC9BF;
  margin-top: 6px;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(245, 235, 221, 0.12);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}

/* 导航下拉（成长小班课合并入口） */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  cursor: pointer;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #FFFEFB;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-hover);
  padding: 8px 0;
  z-index: 1100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
  animation: dropdownIn 0.25s var(--ease-warm);
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  white-space: nowrap;
}

.nav-dropdown-menu a::after {
  display: none;
}

.nav-dropdown-menu a:hover {
  background: var(--bg-light);
  text-decoration: none;
}

/* 品牌新旧关联说明条 */
.brand-relation {
  background-color: #F4F0E4;
  border: 1px solid #E5DCC4;
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 auto 32px;
  max-width: 860px;
  text-align: center;
}

.brand-relation strong {
  color: var(--brand-primary);
}

/* 全局悬浮预约按钮：呼吸脉冲 */
.floating-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  background: linear-gradient(135deg, var(--brand-accent) 0%, #D9743D 100%);
  color: var(--bg-white);
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(232, 131, 74, 0.42);
  animation: ctaBreath 3s ease-in-out infinite;
  transition: transform 0.25s var(--ease-warm), box-shadow 0.25s ease;
}

@keyframes ctaBreath {
  0%, 100% { box-shadow: 0 6px 20px rgba(232, 131, 74, 0.42); }
  50% { box-shadow: 0 8px 30px rgba(232, 131, 74, 0.6); }
}

.floating-cta:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 32px rgba(232, 131, 74, 0.55);
  text-decoration: none;
  color: var(--bg-white);
}

/* 公益专区高亮 */
.welfare-section {
  background: linear-gradient(135deg, #F3F1E4 0%, #F8F4E9 100%);
  border: 1px solid #E5DCC4;
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 900px;
  margin: 0 auto 40px;
  box-shadow: var(--shadow);
}

.welfare-section .welfare-tag {
  display: inline-block;
  background: var(--brand-primary);
  color: var(--bg-white);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.welfare-item {
  padding: 14px 8px;
  border-bottom: 1px dashed #D8CCAE;
  border-radius: 10px;
  transition: background 0.25s ease, padding-left 0.25s ease;
}

.welfare-item:last-child {
  border-bottom: none;
}

.welfare-item h3 {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 4px;
  transition: color 0.25s ease;
}

.welfare-item p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 可点击卡片（公益/详情入口） */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.card-link:hover {
  text-decoration: none;
}

.card-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-primary);
  transition: transform 0.25s var(--ease-warm);
}

.card-link:hover .card-more {
  transform: translateX(4px);
  color: var(--brand-accent);
}

.welfare-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.welfare-item-link:hover {
  background: rgba(255, 253, 249, 0.8);
  padding-left: 14px;
}

.welfare-item-link:hover h3 {
  color: var(--brand-primary);
}

/* 公益详情页 */
.welfare-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.welfare-meta-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--brand-primary);
  color: var(--bg-white);
  letter-spacing: 0.5px;
}

.welfare-meta-date {
  background: var(--brand-accent);
}

.welfare-meta-free {
  background: #F3F1E4;
  color: var(--brand-primary);
  border: 1px solid #D8CCAE;
}

.welfare-detail-cover {
  margin: 0 0 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.welfare-detail-cover img {
  width: 100%;
  display: block;
}

.welfare-detail-cover figcaption {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  padding: 10px;
  background: var(--bg-light);
}

.welfare-detail-content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-primary);
}

.welfare-detail-content p {
  margin-bottom: 18px;
}

.welfare-detail-content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 12px 0;
  box-shadow: var(--shadow);
}

/* 课程视频板块 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.video-card {
  position: relative;
  display: block;
  background: #FFFEFB;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s var(--ease-warm), box-shadow 0.3s var(--ease-warm), border-color 0.3s ease;
}

.video-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-secondary), var(--brand-accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-warm);
  text-decoration: none;
}

.video-card:hover::before {
  opacity: 1;
}

.video-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.video-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.video-card .video-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-primary);
  transition: color 0.25s ease, transform 0.25s var(--ease-warm);
}

.video-card:hover .video-play {
  color: var(--brand-accent);
  transform: translateX(3px);
}

/* FAQ 意图标签 */
.faq-intent-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
  margin-left: 6px;
}

.faq-intent-browse { background: #E7F0FA; color: #3D6C9E; }
.faq-intent-need { background: #FCEFD9; color: #C07A1F; }
.faq-intent-buy { background: #F2E8F5; color: #8A4B9E; }

/* 预约表单提交成功提示 */
.form-success {
  display: none;
  background: #F3F1E4;
  border: 1px solid var(--brand-primary);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.form-success h3 {
  color: var(--brand-primary);
  margin-bottom: 12px;
}

.form-success p {
  color: var(--text-secondary);
  font-size: 15px;
}

.form-success strong {
  color: var(--text-primary);
}

/* 页脚联系信息 */
.footer-contact p {
  font-size: 14px;
  color: #CBB9A8;
  margin-bottom: 6px;
}

/* 面包屑 */
.breadcrumb {
  padding: 16px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--brand-primary);
  text-decoration: none;
}

/* 滚动渐入动效（JS 加 .js-anim 才启用，无 JS 时内容直接可见） */
.js-anim [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s var(--ease-warm);
  will-change: opacity, transform;
}

.js-anim [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式 */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #FFFDF9;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    box-shadow: var(--shadow-hover);
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
  }

  .nav.active {
    display: flex;
  }

  .nav a::after {
    display: none;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    min-width: 0;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
    animation: none;
  }

  @keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .floating-cta {
    right: 16px;
    bottom: 16px;
    padding: 12px 22px;
    font-size: 14px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .page-hero {
    padding: 68px 0 44px;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .section {
    padding: 44px 0;
  }

  .section-title {
    font-size: 24px;
  }
}

/* 工具类 */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mt-40 {
  margin-top: 40px;
}

.mb-20 {
  margin-bottom: 20px;
}

.lead {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* 尊重减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js-anim [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
