/* base.css —— 公共：设计变量 / 重置 / 字体 / 按钮 / 动画
   登录页与主页面共用，新增页面也引这一份保持风格一致。 */

:root {
  --bg: #faf9f5;
  --bg-warm: #f0eee6;
  --ink: #1f1e1d;
  --ink-soft: #6b6862;
  --accent: #cc785c;
  --accent-dark: #b3613f;
  --line: #e6e3da;
  --card: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* 公共按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px;
  font-family: inherit; font-size: .98rem; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: all .2s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
