/* 宝宝成长记录 — 官网样式
   Landing：绘本风暖色调——全屏绘本插画背景 + 暖棕文字 + 圆润字体 + 奶油质感按钮。
   文档页（隐私政策/用户协议）：浅色，保证可读性。 */
:root {
  --accent: #ffb199;          /* 暖蜜桃点缀 */
  --accent-strong: #ff8f6b;
  --dark: #0e0f13;           /* 深底 */
  --dark-card: #16181d;      /* 面板 */
  --ink: #f2efe9;            /* 深底上的正文 */
  --ink-secondary: #9a958d;
  --ink-hint: #6b6761;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 16px;

  /* 文档页浅色变量 */
  --doc-bg: #faf8f4;
  --doc-text: #2b2b2b;
  --doc-text2: #6b6b6b;
  --doc-hint: #9b9b9b;
  --doc-line: #e8e4de;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Segoe UI', sans-serif;
  background: var(--doc-bg);
  color: var(--doc-text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============ Landing：全屏背景图主题 ============ */
body.landing-page {
  background: #fff3e2;
  color: #4a3728;
}

/* 全屏背景图 + 底部极淡暖色压暗（只保证页脚可读，不破坏绘本画面亮度）。
   背景图在 web/assets/background.jpeg；缺失时暖奶油色兜底 */
body.landing-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 248, 238, 0) 60%, rgba(255, 248, 238, 0.45) 100%),
    url('../assets/background.jpeg') center / cover no-repeat,
    #fff3e2;
}

body.landing-page .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
}

body.landing-page .nav .brand {
  font-size: 16px;
  font-weight: 700;
  color: #4a3728;
  text-decoration: none;
  letter-spacing: 0.5px;
}

/* 一屏主体：名称 + 介绍 + 两个并排按钮，居中 */
.landing {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 0 56px;
}

.landing h1 {
  font-family: 'YouYuan', 'Yuanti SC', 'PingFang SC', sans-serif;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: 2px;
  color: #4a3728;
  margin-bottom: 18px;
  animation: fade-up 0.6s ease both;
}

.landing .sub {
  font-size: 15px;
  color: rgba(74, 55, 40, 0.75);
  max-width: 520px;
  margin-bottom: 26px;
  animation: fade-up 0.6s 0.1s ease both;
}

/* 特性标签：一行四个小胶囊，扫一眼就知道功能 */
.feature-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
  animation: fade-up 0.6s 0.18s ease both;
}

.tag {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #4a3728;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(74, 55, 40, 0.12);
  backdrop-filter: blur(4px);
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fade-up 0.6s 0.2s ease both;
}

.btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-solid {
  background: #f08a7e;
  color: #fff;
  box-shadow: 0 6px 18px rgba(240, 138, 126, 0.35);
}

.btn-solid:hover {
  background: #e5786b;
}

.btn-ghost {
  color: #4a3728;
  border: 1px solid rgba(74, 55, 40, 0.25);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.85);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.landing-page .footer {
  margin-top: auto;
  padding: 20px 0 30px;
  font-size: 12px;
  color: rgba(74, 55, 40, 0.55);
  text-align: center;
}

body.landing-page .footer .copyright {
  margin-top: 8px;
}

/* ============ 文档页（浅色） ============ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.nav .brand {
  font-size: 15px;
  font-weight: 600;
  color: var(--doc-text);
  text-decoration: none;
}

.nav .links a {
  color: var(--doc-text2);
  text-decoration: none;
  margin-left: 18px;
  font-size: 13px;
}

.doc {
  background: #fff;
  border: 1px solid var(--doc-line);
  border-radius: var(--radius);
  padding: 36px 32px;
  margin: 32px 0 56px;
}

.doc h1 {
  font-size: 22px;
  margin-bottom: 4px;
}

.doc .doc-date {
  font-size: 12px;
  color: var(--doc-hint);
  margin-bottom: 24px;
}

.doc .intro {
  font-size: 14px;
  color: var(--doc-text2);
  margin-bottom: 24px;
}

.doc h2 {
  font-size: 15px;
  margin: 24px 0 8px;
}

.doc p {
  font-size: 14px;
  color: var(--doc-text2);
  white-space: pre-line;
  margin-bottom: 8px;
}

.footer {
  margin-top: auto;
  padding: 20px 0 32px;
  text-align: center;
  font-size: 12px;
  color: var(--doc-hint);
}

.footer a {
  color: var(--doc-text2);
  text-decoration: none;
  margin: 0 10px;
}

.footer .copyright {
  margin-top: 8px;
}

@media (max-width: 600px) {
  .landing h1 {
    font-size: 30px;
  }

  .landing .sub {
    margin-bottom: 32px;
  }
}
