:root {
  --ink: #1a1a1a;
  --bg: #faf8f3;
  --gold: #b48a5c;
  --gold-dark: #8e6b46;
  --accent: #2d4a3e;
  --line: #e5e0d8;
  --muted: #666;
  --night: #2B2A26;
  --paper: #F5F1E8;
  --moss: #5C7A5E;
  --honey: #C49B45;
  --sunset: #C4683A;
}

/* ===== 页面级渐入 ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* 首页封面 */
.hero {
  animation: scaleIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-content h1 {
  animation: fadeInUp 0.9s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-content p {
  animation: fadeInUp 0.9s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-content .btn {
  animation: fadeInUp 0.9s 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 四宫格逐格弹出 */
.quad-cell {
  opacity: 0;
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.quad-cell:nth-child(1) { animation-delay: 0.1s; }
.quad-cell:nth-child(2) { animation-delay: 0.25s; }
.quad-cell:nth-child(3) { animation-delay: 0.4s; }
.quad-cell:nth-child(4) { animation-delay: 0.55s; }

/* 卡片悬浮 */
.card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(43, 42, 38, 0.10);
  border-color: var(--honey);
}

/* 四宫格悬浮 */
.quad-cell {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s ease;
}
.quad-cell:hover {
  transform: translateY(-4px);
  background: var(--paper) !important;
}

/* 按钮动效 */
.btn {
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover::after {
  transform: translateX(0);
}

/* 导航栏滚动模糊加深 */
.header {
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.header.scrolled {
  background: rgba(250, 248, 243, 0.98);
  box-shadow: 0 2px 24px rgba(43, 42, 38, 0.08);
}

/* 标题渐入（滚动触发） */
.section .title,
.section .subtitle {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.section .subtitle {
  animation-delay: 0.15s;
}

/* 网格卡片逐格渐入 */
.grid-4 .card,
.grid-2 .card,
.grid-3 .card {
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.grid-4 .card:nth-child(1), .grid-2 .card:nth-child(1), .grid-3 .card:nth-child(1) { animation-delay: 0.05s; }
.grid-4 .card:nth-child(2), .grid-2 .card:nth-child(2), .grid-3 .card:nth-child(2) { animation-delay: 0.15s; }
.grid-4 .card:nth-child(3), .grid-3 .card:nth-child(3) { animation-delay: 0.25s; }
.grid-4 .card:nth-child(4) { animation-delay: 0.35s; }

/* 目的地卡片 */
.dest-card {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.dest-card:nth-child(2) { animation-delay: 0.1s; }
.dest-card:nth-child(3) { animation-delay: 0.25s; }
.dest-card:nth-child(4) { animation-delay: 0.4s; }
.dest-card:nth-child(5) { animation-delay: 0.55s; }

/* 标签呼吸光 */
.tag {
  animation: tagPulse 3s ease-in-out infinite;
}
@keyframes tagPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 155, 69, 0.15); }
  50% { box-shadow: 0 0 0 6px rgba(196, 155, 69, 0); }
}

/* 价格数字强调 */
.price {
  transition: color 0.3s ease, transform 0.3s ease;
}
.card:hover .price {
  color: var(--honey);
  transform: scale(1.04);
}

/* 页脚渐入 */
footer {
  animation: fadeIn 1s 0.3s ease both;
}

/* Tab 切换动效 */
.tab-content {
  animation: fadeIn 0.4s ease both;
}

/* 联系条脉冲 */
.contact-bar {
  animation: slideUpBar 0.6s 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes slideUpBar {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 平滑滚动 */
html { scroll-behavior: smooth; }

/* 移动端保持动效但缩短延迟 */
@media (max-width: 768px) {
  .quad-cell:nth-child(n) { animation-delay: 0.05s; }
  .grid-4 .card:nth-child(n),
  .grid-2 .card:nth-child(n),
  .grid-3 .card:nth-child(n) { animation-delay: 0.05s; }
}
