/* ==========================================================
   base.css — 设计根基：配色 / 排版 / 通用原子
   配色：米白打底 · 奶油黄点缀 · 樱花粉点睛
   ========================================================== */

:root {
  /* 米白系 */
  --cream-0: #FFFFFF;
  --cream-1: #FCFAF6;
  --cream-2: #F5F1E9;
  --cream-3: #EDE7DC;

  /* 粉系 */
  --pink-soft: #FDF0F1;
  --pink: #F6CCD2;
  --pink-mid: #EFB0BA;
  --pink-deep: #D48795;

  /* 黄系 */
  --yellow-soft: #FDF6E7;
  --yellow: #F9E3B8;
  --yellow-mid: #F0CD87;

  /* 文字 */
  --ink: #3D3833;
  --ink-2: #756C64;
  --ink-3: #B0A69C;

  --line: #F0EAE0;
  --line-strong: #E6DDD0;

  /* 阴影 */
  --sh-xs: 0 2px 10px rgba(150, 128, 108, .05);
  --sh-sm: 0 4px 16px rgba(150, 128, 108, .06);
  --sh-md: 0 10px 30px rgba(150, 128, 108, .08);
  --sh-lg: 0 18px 50px rgba(150, 128, 108, .12);

  /* 圆角 */
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 15px;
  --r-sm: 10px;

  /* 尺寸 */
  --app-w: 480px;
  --tb-h: 56px;
  --tab-h: 64px;
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}

/* 桌面端：米色背景 + 居中手机画布 */
@media (min-width: 560px) {
  body {
    background:
      radial-gradient(circle at 18% 12%, #FDF1E4 0%, transparent 46%),
      radial-gradient(circle at 84% 82%, #FBE7EA 0%, transparent 44%),
      var(--cream-2);
    padding: 24px 0;
  }
}

h1, h2, h3, h4, p, ul, li, figure {
  margin: 0;
  padding: 0;
}

ul { list-style: none; }

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

textarea, input {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
  resize: none;
}

::selection {
  background: var(--pink);
  color: var(--ink);
}

::-webkit-scrollbar { width: 0; height: 0; }

/* 衬线强调：数字 / 标题质感 */
.serif {
  font-family: "Songti SC", "STSong", "Noto Serif SC", Georgia, "Times New Roman", serif;
}

/* 通用按钮 */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--pink) 0%, #F7D2B8 100%);
  color: #6B4249;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  box-shadow: 0 6px 18px rgba(226, 150, 160, .28);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-primary:active {
  transform: scale(.975);
  box-shadow: 0 3px 10px rgba(226, 150, 160, .22);
}

/* 进场动画 */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
