/* ============================================
   Spark · Global Design System
   奶油 + 暖橘 + 樱花粉，双城异地恋调性
   ============================================ */

:root {
  /* 主色调 */
  --bg-cream: #fff4ec;
  --bg-peach: #ffe7d6;
  --bg-pink: #ffe2ec;
  --bg-mint: #e6f4ee;

  --ink-dark: #2b2622;
  --ink-soft: #6b5f56;
  --ink-fade: #b5a89c;

  --accent-coral: #ff8a9a;
  --accent-warm: #ff9a5c;
  --accent-gold: #f3b573;
  --accent-mint: #8bc9ad;

  /* 狗色 */
  --dog-white: #fffdf9;
  --dog-white-shadow: #f4ebe2;
  --dog-gold: #ffd9a0;
  --dog-gold-shadow: #f3b573;
  --dog-ear-gold: #e89e58;

  /* 圆角与阴影 */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;

  --shadow-soft: 0 4px 14px rgba(43, 38, 34, 0.06);
  --shadow-pop: 0 10px 30px rgba(43, 38, 34, 0.10);

  /* 字体 */
  --font-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-hand: "Caveat", "Bradley Hand", "Yuanti SC", cursive;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-cn);
  color: var(--ink-dark);
  background: var(--bg-cream);
  background-image:
    radial-gradient(at 10% 0%, var(--bg-pink) 0%, transparent 40%),
    radial-gradient(at 90% 100%, var(--bg-peach) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 80px;
  padding-top: env(safe-area-inset-top);
}

/* 让所有可点击元素有反馈 */
button, a {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* 通用容器 */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 底部导航 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(255, 244, 236, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(43, 38, 34, 0.06);
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  z-index: 100;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
  color: var(--ink-fade);
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-item.active {
  color: var(--accent-coral);
}

.nav-item:active {
  transform: scale(0.92);
}

.nav-icon {
  font-size: 22px;
  line-height: 1;
}

.nav-label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #2b2622;
  transition: color 0.2s ease;
}

.nav-item.active .nav-label {
  color: var(--accent-coral);
}
/* ===== 底部 Tab 自定义图标 ===== */
.nav-item .nav-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2px;
  opacity: 0.65;
  transition: all 0.25s ease;
}

.nav-item .nav-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-item.active .nav-icon {
  opacity: 1;
  transform: translateY(-2px) scale(1.1);
}

.nav-item .nav-icon-emoji {
  font-size: 22px;
  line-height: 1;
  display: none;
}
