/**
 * 婚礼/活动极简策划工具站 - 全局样式表
 * 路径: /public/assets/css/styles.css
 * 功能: 定义设计Token、组件样式、响应式布局、动画效果
 * 依赖: Font Awesome 6.4 (CDN)
 * 优先级: main
 * 
 * 设计特性:
 * - 移动优先 (Mobile-First) 响应式策略
 * - 温柔浪漫浅色系配色 (玫瑰粉/香槟金/奶油白)
 * - 动态导航菜单系统 (支持5个主导航项: 首页/清单/预算/座位/邀请)
 * - 二级菜单悬停桥接技术 (PC端)
 * - 下拉菜单动态高度动画 (CSS Grid / Max-Height)
 * - Modal与Backdrop层级解耦
 */

:root {
  /* ===== 系统配置 ===== */
  --sys-type: tool-wedding;
  --theme-mode: light;
  --motion-level: standard;

  /* ===== 品牌色 - 婚礼主题温柔浪漫 ===== */
  --brand-primary: #C71585;      /* 玫瑰粉 - 主品牌色 */
  --brand-secondary: #F5DEB3;    /* 香槟金 - 辅助色 */
  --brand-accent: #FFB6C1;       /* 浅粉红 - 强调色 */

  /* ===== 语义色彩 - 浅色温柔背景 ===== */
  --bg-default: #FFFCF8;         /* 奶油白背景 */
  --bg-subtle: #FFF8F0;          /* 微妙暖白 */
  --bg-hover: #FFF0F5;           /* 玫瑰粉悬停 */
  --fg-default: #4A4A4A;         /* 深灰文字 */
  --fg-muted: #8B8680;           /* 柔和灰文字 */
  --fg-inverse: #FFFFFF;         /* 反白文字 */
  --surface-default: #FFFFFF;    /* 纯白表面 */
  --surface-elevated: #FFFAF5;   /*  elevated表面 */
  --surface-overlay: rgba(74, 74, 74, 0.5); /* 遮罩层 */
  --border-default: rgba(199, 21, 133, 0.15); /* 玫瑰粉边框 */
  --border-hover: rgba(199, 21, 133, 0.4);
  --border-active: var(--brand-primary);
  --status-success: #10B981;
  --status-warning: #F59E0B;
  --status-error: #EF4444;
  --status-info: var(--brand-accent);

  /* ===== 组件色 ===== */
  --color-primary: var(--brand-primary);
  --color-primary-fg: var(--fg-inverse);
  --color-secondary: var(--surface-elevated);
  --color-secondary-fg: var(--fg-default);
  --color-accent: var(--brand-accent);
  --color-accent-fg: var(--fg-default);
  --color-muted: var(--surface-default);
  --color-muted-fg: var(--fg-muted);
  --color-card: var(--surface-default);
  --color-card-fg: var(--fg-default);
  --color-border: var(--border-default);
  --color-input: var(--border-default);
  --color-ring: var(--brand-primary);
  --color-destructive: var(--status-error);
  --color-destructive-fg: var(--fg-inverse);

  /* ===== 渐变 ===== */
  --gradient-primary: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  --gradient-surface: linear-gradient(180deg, var(--surface-elevated) 0%, var(--surface-default) 100%);
  --gradient-mesh:
    radial-gradient(at 0% 0%, rgba(199, 21, 133, 0.08) 0%, transparent 50%),
    radial-gradient(at 100% 0%, rgba(255, 182, 193, 0.1) 0%, transparent 50%),
    radial-gradient(at 100% 100%, rgba(245, 222, 179, 0.08) 0%, transparent 50%),
    radial-gradient(at 0% 100%, rgba(199, 21, 133, 0.05) 0%, transparent 50%);

  /* ===== 排版 ===== */
  --font-sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */
  --text-hero: clamp(2rem, 6vw, 4rem);
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-black: 900;
  --leading-tight: 1.2;
  --leading-snug: 1.4;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;

  /* ===== 空间 - 舒适密度 ===== */
  --density: 1.1;
  --space-0: 0;
  --space-1: calc(0.25rem * var(--density));   /* 4.4px */
  --space-2: calc(0.5rem * var(--density));    /* 8.8px */
  --space-3: calc(0.75rem * var(--density));   /* 13.2px */
  --space-4: calc(1rem * var(--density));      /* 17.6px */
  --space-5: calc(1.25rem * var(--density));   /* 22px */
  --space-6: calc(1.5rem * var(--density));    /* 26.4px */
  --space-8: calc(2rem * var(--density));      /* 35.2px */
  --space-10: calc(2.5rem * var(--density));   /* 44px */
  --space-12: calc(3rem * var(--density));     /* 52.8px */
  --space-16: calc(4rem * var(--density));     /* 70.4px */
  --space-20: calc(5rem * var(--density));     /* 88px */
  --space-24: calc(6rem * var(--density));     /* 105.6px */

  /* ===== 导航栏高度配置 ===== */
  --nav-height-mobile: 3.5rem;   /* 56px */
  --nav-height-tablet: 4rem;     /* 64px */
  --nav-height-desktop: 4.5rem;  /* 72px */
  --nav-height: var(--nav-height-mobile);

  /* 安全顶部间距 */
  --safe-top: calc(var(--nav-height) + var(--space-4));
  --safe-top-tablet: calc(var(--nav-height-tablet) + var(--space-6));
  --safe-top-desktop: calc(var(--nav-height-desktop) + var(--space-8));

  /* ===== 形状 - 柔和圆角 ===== */
  --radius-none: 0;
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-3xl: 2rem;      /* 32px */
  --radius-full: 9999px;

  /* ===== 动效 ===== */
  --duration-instant: 0ms;
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 800ms;
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);

  /* ===== 阴影 - 柔和光晕 ===== */
  --shadow-sm: 0 1px 2px 0 rgba(199, 21, 133, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(199, 21, 133, 0.1), 0 2px 4px -2px rgba(199, 21, 133, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(199, 21, 133, 0.12), 0 4px 6px -4px rgba(199, 21, 133, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(199, 21, 133, 0.15), 0 8px 10px -6px rgba(199, 21, 133, 0.1);
  --glow-sm: 0 0 20px rgba(199, 21, 133, 0.15);
  --glow-md: 0 0 40px rgba(199, 21, 133, 0.2);
  --glow-lg: 0 0 60px rgba(199, 21, 133, 0.25);

  /* ===== 层级 ===== */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal-backdrop: 300;
  --z-modal: 400;
  --z-popover: 500;
  --z-tooltip: 600;

  /* ===== 动态导航配置 ===== */
  --nav-item-count: 5;           /* PRD中的5个核心功能 */
  --nav-stagger-delay: 50ms;
  --nav-link-max-width: 200px;   /* 导航项最大宽度 */
  --dropdown-max-height: 600px;  /* 下拉菜单最大高度 */
}

/* ===== 深色模式适配 ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-default: #1A1A1F;
    --bg-subtle: #25252B;
    --bg-hover: #2D2D35;
    --fg-default: #F5F5F5;
    --fg-muted: #A0A0A8;
    --surface-default: #25252B;
    --surface-elevated: #2D2D35;
    --border-default: rgba(199, 21, 133, 0.2);
    --border-hover: rgba(199, 21, 133, 0.4);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  }
}

/* ===== 减弱动画 ===== */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0.01ms;
    --duration-normal: 0.01ms;
    --duration-slow: 0.01ms;
    --duration-slower: 0.01ms;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--safe-top);
}

body {
  font-family: var(--font-sans);
  background: var(--bg-default);
  color: var(--fg-default);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 菜单或Modal打开时锁定背景滚动 */
body.menu-open,
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* ===== 页面容器（防遮挡核心）===== */
.page-wrapper {
  padding-top: var(--nav-height);
  width: 100%;
  min-height: 100vh;
  position: relative;
}

/* ===== 按钮系统 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px; /* 移动端触控最小尺寸 */
  padding: var(--space-3) var(--space-6);
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--duration-fast) var(--ease-default);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

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

.btn--primary {
  background: var(--color-primary);
  color: var(--color-primary-fg);
  box-shadow: var(--glow-sm);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-md), var(--shadow-lg);
  filter: brightness(1.1);
}

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-secondary-fg);
  border-color: var(--color-border);
}

.btn--secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn--gradient {
  background: var(--gradient-primary);
  color: var(--fg-inverse);
  position: relative;
  z-index: 1;
}

.btn--gradient::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-mesh);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  filter: blur(8px);
  transition: opacity var(--duration-normal) var(--ease-default);
}

.btn--gradient:hover::before {
  opacity: 0.6;
}

.btn--ghost {
  background: transparent;
  color: var(--fg-default);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  background: var(--surface-default);
  border-color: var(--border-hover);
}

.btn--destructive {
  background: var(--color-destructive);
  color: var(--color-destructive-fg);
}

.btn--destructive:hover {
  animation: wiggle var(--duration-normal) var(--ease-default);
}

.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  filter: none !important;
  box-shadow: none !important;
}

/* ===== 卡片系统 ===== */
.card {
  background: var(--color-card);
  color: var(--color-card-fg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  transition: all var(--duration-normal) var(--ease-default);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--glow-sm);
  border-color: var(--border-hover);
}

.card--glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card--interactive {
  cursor: pointer;
}

.card--interactive:hover {
  transform: translateY(-4px);
}

/* ===== 导航栏（固定定位）- 婚礼主题 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  height: var(--nav-height);
  background: rgba(255, 252, 248, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
}

.navbar__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__brand {
  font-size: var(--text-xl);
  font-weight: var(--font-black);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.navbar__brand > i {
  color: var(--brand-primary);
  -webkit-text-fill-color: currentColor;
}

/* 移动端菜单按钮 */
.navbar__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  color: var(--fg-default);
  font-size: var(--text-xl);
  cursor: pointer;
  border-radius: var(--radius-lg);
  transition: all var(--duration-fast) var(--ease-default);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.navbar__toggle:hover {
  background: var(--surface-default);
  color: var(--brand-primary);
}

.navbar__toggle:active {
  transform: scale(0.95);
}

/* ===== 导航菜单容器（移动端）- 全屏高度修复版 ===== */
.navbar__nav {
  display: flex;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  min-height: calc(100vh - var(--nav-height));
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  background: var(--bg-default);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4);
  flex-direction: column;
  gap: var(--space-2);
  list-style: none;

  /* 动画控制三要素：opacity + visibility + transform */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);

  transition:
    opacity var(--duration-normal) var(--ease-default),
    visibility var(--duration-normal) var(--ease-default),
    transform var(--duration-normal) var(--ease-out);

  pointer-events: none;
  z-index: var(--z-dropdown);
}

/* 菜单打开状态 */
.navbar__nav--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

/* ===== 动态导航项 ===== */
.navbar__item {
  width: 100%;
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity var(--duration-fast) var(--ease-default) calc(var(--item-index, 0) * var(--nav-stagger-delay)),
    transform var(--duration-fast) var(--ease-default) calc(var(--item-index, 0) * var(--nav-stagger-delay));
}

/* 菜单打开时菜单项依次入场 */
.navbar__nav--open .navbar__item {
  opacity: 1;
  transform: translateX(0);
}

/* 预定义前8个菜单项的索引变量 */
.navbar__item:nth-child(1) { --item-index: 0; }
.navbar__item:nth-child(2) { --item-index: 1; }
.navbar__item:nth-child(3) { --item-index: 2; }
.navbar__item:nth-child(4) { --item-index: 3; }
.navbar__item:nth-child(5) { --item-index: 4; }
.navbar__item:nth-child(6) { --item-index: 5; }
.navbar__item:nth-child(7) { --item-index: 6; }
.navbar__item:nth-child(8) { --item-index: 7; }

/* 导航链接样式 - 包含长文字处理 */
.navbar__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  color: var(--fg-default);
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  border-radius: var(--radius-lg);
  transition: all var(--duration-fast) var(--ease-default);
  min-height: 48px;

  /* 文字过长处理 */
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar__link:hover, .navbar__link--active {
  color: var(--color-primary);
  background: var(--bg-hover);
}

/* 导航图标 */
.navbar__icon {
  width: 20px;
  text-align: center;
  color: var(--fg-muted);
  transition: color var(--duration-fast) var(--ease-default);
  flex-shrink: 0;
}

.navbar__link:hover .navbar__icon,
.navbar__link--active .navbar__icon {
  color: var(--color-primary);
}

/* CTA按钮容器（移动端在菜单底部） */
.navbar__cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity var(--duration-fast) var(--ease-default) calc(var(--nav-item-count) * var(--nav-stagger-delay)),
    transform var(--duration-fast) var(--ease-default) calc(var(--nav-item-count) * var(--nav-stagger-delay));
}

.navbar__nav--open .navbar__cta {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Hero区域 - 婚礼主题 ===== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--safe-top) var(--space-4) var(--space-24);
  overflow: hidden;
  background: var(--bg-default);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.8;
  animation: mesh-shift 30s linear infinite;
}

.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  animation: fade-in-up var(--duration-slow) var(--ease-smooth) both;
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: var(--font-black);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  color: var(--fg-default);
}

.hero__title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__description {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--fg-muted);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== 输入框 ===== */
.input {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-default);
  border: 1px solid var(--color-input);
  border-radius: var(--radius-xl);
  color: var(--fg-default);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  outline: none;
  transition: all var(--duration-fast) var(--ease-default);
}

.input::placeholder {
  color: var(--fg-muted);
}

.input:focus {
  border-color: var(--color-ring);
  box-shadow: 0 0 0 3px rgba(199, 21, 133, 0.1), var(--glow-sm);
  transform: translateY(-1px);
}

.input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== 骨架屏 ===== */
.skeleton {
  background: linear-gradient(90deg, var(--color-muted) 25%, rgba(199, 21, 133, 0.1) 50%, var(--color-muted) 75%);
  background-size: 200% 100%;
  border-radius: var(--radius-lg);
  animation: shimmer var(--duration-slow) linear infinite;
}

/* ===== 弹窗系统（层级解耦版）===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--surface-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-modal-backdrop);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-default);
}

.modal-backdrop--open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--color-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-2xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-xl), var(--glow-md);
  padding: var(--space-8);
  max-width: 90%;
  width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: var(--z-modal);
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration-normal) var(--ease-bounce);
  isolation: isolate;
}

.modal--open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-default);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--fg-muted);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
  z-index: 1;
}

.modal__close:hover {
  background: var(--bg-hover);
  color: var(--fg-default);
  transform: rotate(90deg);
}

.modal__header {
  margin-bottom: var(--space-6);
}

.modal__title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--fg-default);
}

.modal__body {
  color: var(--fg-muted);
  line-height: var(--leading-relaxed);
}

.modal__footer {
  margin-top: var(--space-6);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

/* ===== 页脚 ===== */
.footer {
  margin-top: auto;
  background: var(--surface-default);
  border-top: 1px solid var(--color-border);
  padding: var(--space-12) var(--space-4) var(--space-6);
}

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

.footer__top {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer__logo {
  font-size: var(--text-2xl);
  font-weight: var(--font-black);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__description {
  color: var(--fg-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  max-width: 300px;
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-default);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--fg-muted);
  transition: all var(--duration-fast) var(--ease-default);
}

.footer__social-link:hover {
  background: var(--bg-hover);
  color: var(--brand-primary);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.footer__column-title {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--fg-default);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__link {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: all var(--duration-fast) var(--ease-default);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer__link:hover {
  color: var(--brand-primary);
  transform: translateX(4px);
}

.footer__link-icon {
  font-size: var(--text-xs);
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

.footer__copyright {
  color: var(--fg-muted);
  font-size: var(--text-sm);
}

.footer__legal {
  display: flex;
  gap: var(--space-4);
}

.footer__legal-link {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--duration-fast) var(--ease-default);
}

.footer__legal-link:hover {
  color: var(--brand-primary);
}

/* ===== 动画关键帧 ===== */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pop-in {
  0% { opacity: 0; transform: scale(0.9); }
  70% { transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes mesh-shift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(2%, 2%) scale(1.05); }
  50% { transform: translate(-1%, 3%) scale(1); }
  75% { transform: translate(3%, -2%) scale(1.02); }
}

@keyframes wiggle {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px) rotate(-1deg); }
  75% { transform: translateX(4px) rotate(1deg); }
}

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

/* ===== 工具类 ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* 二级菜单容器定位上下文 */
.navbar__item--has-dropdown {
  position: relative;
}

/* ===== 响应式优化（平板及以上）===== */
@media (min-width: 768px) {
  :root {
    --nav-height: var(--nav-height-tablet);
    --safe-top: var(--safe-top-tablet);
    --nav-link-max-width: 250px;
  }

  /* PC端二级菜单悬停桥接技术 */
  .navbar__item--has-dropdown {
    padding-bottom: 20px;
    margin-bottom: -20px;
  }

  /* 二级菜单容器 - CSS Grid动态高度 */
  .navbar__item--has-dropdown .navbar__dropdown {
    display: grid;
    grid-template-rows: 0fr;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--surface-default);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      grid-template-rows var(--duration-fast) var(--ease-out),
      opacity var(--duration-fast) var(--ease-out),
      visibility var(--duration-fast) var(--ease-out),
      transform var(--duration-fast) var(--ease-out),
      padding var(--duration-fast) var(--ease-out);
    z-index: var(--z-dropdown);
    pointer-events: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  /* 右侧溢出时自动右对齐 */
  .navbar__item--has-dropdown .navbar__dropdown--right {
    left: auto;
    right: 0;
  }

  /* 下拉菜单内部容器 */
  .navbar__dropdown-inner {
    overflow: hidden;
    min-height: 0;
  }

  /* 悬停桥接伪元素 */
  .navbar__item--has-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
    z-index: var(--z-dropdown);
    pointer-events: auto;
  }

  /* 悬停展开 */
  .navbar__item--has-dropdown:hover .navbar__dropdown,
  .navbar__item--has-dropdown:focus-within .navbar__dropdown {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    padding: var(--space-2);
  }

  /* 二级菜单项样式 */
  .navbar__dropdown-item {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--fg-default);
    text-decoration: none;
    font-size: var(--text-sm);
    border-radius: var(--radius-lg);
    transition: all var(--duration-fast) var(--ease-default);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
  }

  .navbar__dropdown-item:hover,
  .navbar__dropdown-item:focus {
    background: var(--bg-hover);
    color: var(--color-primary);
  }

  /* 导航栏平板端样式 */
  .navbar {
    padding: 0 var(--space-6);
  }

  .navbar__toggle {
    display: none;
  }

  .navbar__nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 0;
    gap: var(--space-6);
    margin-left: auto;
    margin-right: var(--space-6);

    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: all;
    width: auto;
    min-height: auto;
    max-height: none;
    overflow-y: visible;
  }

  .navbar__item {
    width: auto;
    opacity: 1;
    transform: none;
    transition: none;
    --item-index: 0 !important;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .navbar__link {
    width: auto;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    position: relative;
    min-height: auto;
    max-width: none;
  }

  .navbar__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--duration-normal) var(--ease-default);
  }

  .navbar__link:hover::after,
  .navbar__link--active::after {
    width: 80%;
  }

  .navbar__cta {
    display: flex;
    flex-direction: row;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    opacity: 1;
    transform: none;
    gap: var(--space-3);
  }

  /* 页脚平板端布局 */
  .footer__top {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer__columns {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .hero {
    padding: var(--safe-top) var(--space-6) var(--space-24);
  }

  .modal {
    width: 600px;
    max-width: 80%;
  }
}

/* ===== 响应式优化（桌面端）===== */
@media (min-width: 1024px) {
  :root {
    --nav-height: var(--nav-height-desktop);
    --safe-top: var(--safe-top-desktop);
  }

  .navbar {
    padding: 0 var(--space-8);
  }

  .navbar__nav {
    gap: var(--space-8);
  }

  .navbar__dropdown {
    min-width: 240px;
  }

  .container {
    padding: 0 var(--space-8);
  }

  .hero {
    padding: var(--safe-top) var(--space-8) var(--space-24);
  }

  .footer__columns {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== 小屏手机优化 ===== */
@media (max-width: 767px) {
  /* 移动端二级菜单垂直排列 */
  .navbar__item--has-dropdown .navbar__dropdown {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--duration-normal) var(--ease-default);
    margin-left: var(--space-4);
    margin-top: var(--space-2);
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    backdrop-filter: none;
  }

  .navbar__item--has-dropdown.expanded .navbar__dropdown {
    grid-template-rows: 1fr;
  }

  .navbar__dropdown-inner {
    overflow: hidden;
    min-height: 0;
  }

  .navbar__dropdown-item {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    color: var(--fg-default);
    text-decoration: none;
    font-size: var(--text-sm);
    border-radius: var(--radius-lg);
    transition: background var(--duration-fast) var(--ease-default);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

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

  .navbar__dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--color-primary);
  }

  /* 移动端分组折叠菜单 */
  .navbar__nav--mobile .navbar__item--group {
    font-weight: var(--font-bold);
    padding: var(--space-4) var(--space-4) var(--space-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navbar__nav--mobile .navbar__item--group::after {
    content: '▼';
    font-size: var(--text-sm);
    transition: transform var(--duration-fast) var(--ease-default);
  }

  .navbar__nav--mobile .navbar__item--group.expanded::after {
    transform: rotate(180deg);
  }

  .navbar__nav--mobile .navbar__group-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--duration-normal) var(--ease-default);
    margin-left: var(--space-4);
    overflow: hidden;
  }

  .navbar__nav--mobile .navbar__item--group.expanded .navbar__group-content {
    grid-template-rows: 1fr;
  }

  /* 小屏下减少级联延迟 */
  .navbar__item {
    --nav-stagger-delay: 30ms;
  }

  :root {
    --density: calc(1.1 * 0.9);
    --nav-link-max-width: 150px;
  }

  .hero__description {
    font-size: var(--text-base);
  }

  .modal {
    width: 95%;
    max-height: 95vh;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
  }

  .footer__columns {
    grid-template-columns: 1fr;
  }
}

/* ===== Tooltip 样式 ===== */
.tooltip {
  position: relative;
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-elevated);
  color: var(--fg-default);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  white-space: nowrap;
  z-index: var(--z-tooltip);
  box-shadow: var(--shadow-md);
  pointer-events: none;
  border: 1px solid var(--color-border);
}

/* ===== 下拉菜单Max-Height备选方案 ===== */
.navbar__dropdown--maxheight {
  display: block;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-fast) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out),
              visibility var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              padding var(--duration-fast) var(--ease-out);
}

.navbar__item--has-dropdown:hover .navbar__dropdown--maxheight,
.navbar__item--has-dropdown:focus-within .navbar__dropdown--maxheight {
  max-height: var(--dropdown-max-height);
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  padding: var(--space-2);
}

/* ===== 进度条组件（婚礼清单用）===== */
.progress {
  width: 100%;
  height: 8px;
  background: var(--color-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--duration-slow) var(--ease-smooth);
}

/* ===== 标签组件 ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: var(--bg-hover);
  color: var(--brand-primary);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.tag--success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--status-success);
}

.tag--warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--status-warning);
}

.tag--error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--status-error);
}

/* ===== 分隔线 ===== */
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-4) 0;
}

/* ===== 空状态 ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-4);
  text-align: center;
  color: var(--fg-muted);
}

.empty-state__icon {
  font-size: var(--text-5xl);
  color: var(--color-border);
  margin-bottom: var(--space-4);
}

.empty-state__title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--fg-default);
  margin-bottom: var(--space-2);
}

.empty-state__description {
  font-size: var(--text-sm);
  max-width: 300px;
}