/* Globol Design System - Design Tokens */

:root {
  /* Brand 基础色 */
  --brand-white: #FFFFFF;
  --brand-cream: #FFF7EE;
  --brand-surface: #FCFBF9;

  /* 渐变色（Hero/按钮）——天空蓝 → 暖桃橙 → 淡粉 */
  --grad-sky: #49A9FF;
  --grad-peach: #FFC778;
  --grad-pink: #FFA3B5;

  /* 强调色（黄橙红） */
  --accent-yellow: #FFD92A;
  --accent-orange: #FF8A24;
  --accent-red: #EB2727;

  /* 灰阶（暖灰） */
  --gray-900: #2B2A28;
  --gray-700: #6B6761;
  --gray-500: #A7A29A;
  --gray-300: #D7D3CC;
  --gray-200: #EAE6DF;
  --gray-100: #F4F1EB;

  /* 文本 */
  --text-strong: var(--gray-900);
  --text-body: #3B3936;
  --text-muted: #6F6A63;

  /* 语义色 */
  --info: var(--grad-sky);
  --warning: var(--accent-yellow);
  --danger: var(--accent-red);

  /* 阴影色（暖黑 RGB） */
  --shadow-color: 24, 22, 18;

  /* 圆角（与瓶盖/圆形语言一致） */
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --radius-xl: 26px;
  --radius-2xl: 32px;
  --radius-pill: 999px;

  /* 阴影（柔和、暖向，带体积感） */
  --elev-1: 0 2px 8px rgba(var(--shadow-color), 0.08), 0 1px 0 rgba(0, 0, 0, 0.02);
  --elev-2: 0 6px 20px rgba(var(--shadow-color), 0.12);
  --elev-3: 0 14px 40px rgba(var(--shadow-color), 0.16);

  /* 动效 */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur-fast: 160ms;
  --dur-mid: 260ms;
  --dur-slow: 440ms;
}

/* 全局样式 */
body {
  font-family: Inter, 'SF Pro', 'Segoe UI', Roboto, 'PingFang SC', 'HarmonyOS Sans SC', 'Noto Sans CJK SC', system-ui, sans-serif;
  background: var(--brand-cream);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 渐变背景 */
.bg-brand-gradient {
  background: radial-gradient(120% 120% at 20% 0%,
    var(--grad-sky) 0%,
    var(--grad-peach) 55%,
    var(--grad-pink) 100%);
}

/* 阴影工具类 */
.shadow-1 { box-shadow: var(--elev-1); }
.shadow-2 { box-shadow: var(--elev-2); }
.shadow-3 { box-shadow: var(--elev-3); }

/* Hover 提升效果 */
.hover-lift {
  transition: transform var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out);
}
.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--elev-2);
}

/* a→o 动画 */
.round-word {
  position: relative;
  display: inline-block;
}
.round-word .letter-a,
.round-word .letter-o {
  transition: opacity var(--dur-slow) var(--ease-soft);
}
.round-word .letter-a { opacity: 1; }
.round-word .letter-o { 
  opacity: 0;
  position: absolute;
  left: 0;
}
.round-word.is-rounded .letter-a { opacity: 0; }
.round-word.is-rounded .letter-o { opacity: 1; }

/* 顶栏（毛玻璃） */
.header-glass {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* 导航胶囊 */
.nav-pill {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-strong);
  font-weight: 500;
  transition: all var(--dur-fast) var(--ease-out);
  text-decoration: none;
  display: inline-block;
}
.nav-pill:hover {
  background: rgba(0, 0, 0, 0.08);
}
.nav-pill[aria-current="page"] {
  background: var(--gray-200);
}

/* 按钮系统 */
.btn {
  border-radius: var(--radius-md);
  font-weight: 600;
  padding: 12px 24px;
  line-height: 1.2;
  transition: all var(--dur-mid) var(--ease-out);
  cursor: pointer;
  border: none;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  color: #000;
  background: linear-gradient(90deg, var(--grad-sky), var(--grad-peach), var(--grad-pink));
  box-shadow: var(--elev-2);
}
.btn-primary:hover {
  filter: saturate(1.05) brightness(1.02);
  transform: translateY(-1px);
  box-shadow: var(--elev-3);
}

.btn-secondary {
  background: var(--brand-surface);
  color: var(--text-strong);
  box-shadow: var(--elev-1);
}
.btn-secondary:hover {
  background: var(--brand-white);
  box-shadow: var(--elev-2);
}

.btn-quiet {
  background: transparent;
  color: var(--text-strong);
  border: 1px solid var(--gray-200);
}
.btn-quiet:hover {
  border-color: var(--gray-300);
  background: var(--brand-surface);
}

/* 卡片 */
.card {
  background: var(--brand-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-1);
  padding: 24px;
  transition: all var(--dur-mid) var(--ease-out);
}
.card:hover {
  box-shadow: var(--elev-2);
  transform: translateY(-2px);
}

/* 输入框 */
.input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--brand-surface);
  border: 1px solid var(--gray-200);
  color: var(--text-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  transition: all var(--dur-fast) var(--ease-out);
}
.input:focus {
  outline: none;
  border-color: var(--grad-sky);
  box-shadow: 0 0 0 4px rgba(73, 169, 255, 0.18);
}
.input::placeholder {
  color: var(--text-muted);
}

/* 徽章 */
.badge {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--gray-100);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Icon 容器 */
.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--grad-sky), var(--grad-peach));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--elev-1);
  margin: 0 auto 20px;
}

/* 动效降级 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .round-word .letter-a,
  .round-word .letter-o {
    transition: none;
  }
  
  .card:hover,
  .hover-lift:hover {
    transform: none;
  }
}

/* 响应式排版 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.4rem !important;
  }
}

