/* 神兽日记本 官网 · 可爱风共享样式 */
:root {
  --peach: #FFB5BA;
  --peach-d: #E07A82;
  --orange: #FFD4A3;
  --mint: #A8E6CF;
  --mint-d: #69C9A4;
  --yellow: #FFE5A0;
  --coral: #FF8A80;
  --lavender: #D4C5F9;
  --sky: #B5E0FF;
  --cream: #FFF9F3;
  --white: #FFFFFF;
  --ink: #4A3F35;
  --ink2: #7A6F65;
  --ink3: #B5A99F;
  --line: #F4E2DE;
  --shadow: 0 8px 28px rgba(255, 181, 186, .22);
  --shadow-sm: 0 4px 14px rgba(255, 181, 186, .16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--peach-d); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 249, 243, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--ink); }
.logo img { width: 28px; height: 28px; object-fit: contain; }
.logo:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink2); font-size: 15px; font-weight: 600; }
.nav-links a:hover { color: var(--peach-d); text-decoration: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 28px;
  font-weight: 700; font-size: 15px; border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--peach), var(--orange));
  color: #fff; box-shadow: 0 6px 18px rgba(255, 138, 128, .35);
}
.btn-primary:hover { transform: translateY(-2px); text-decoration: none; }
.btn-outline {
  background: #fff; color: var(--peach-d);
  border: 1.5px solid var(--peach);
}
.btn-outline:hover { transform: translateY(-2px); text-decoration: none; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 60px; text-align: center; }
.hero .mascot { width: 104px; height: 104px; object-fit: contain; display: inline-block; }
.hero h1 { font-size: 48px; font-weight: 800; margin: 18px 0 12px; color: var(--peach-d); }
.hero .slogan { font-size: 20px; color: var(--ink2); margin-bottom: 8px; }
.hero .sub { font-size: 15px; color: var(--ink3); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- section ---------- */
.section { padding: 64px 0; }
.section-title { text-align: center; font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--ink2); margin-bottom: 44px; font-size: 16px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border-radius: 24px; padding: 28px 24px;
  box-shadow: var(--shadow-sm); border: 1px solid #FFE6E8;
}
.card .emoji {
  width: 64px; height: 64px; object-fit: contain; display: block;
  padding: 8px; box-sizing: border-box; border-radius: 16px;
  background: rgba(255, 138, 128, .08);
}
.card h3 { font-size: 18px; margin: 12px 0 6px; }
.card p { color: var(--ink2); font-size: 14px; }

.card.peach { background: linear-gradient(135deg, #FFE5E7, #FFEBD8); border: none; }
.card.mint { background: linear-gradient(135deg, #DCF7E8, #E8FBE5); border: none; }
.card.yellow { background: linear-gradient(135deg, #FFF3CC, #FFEAD6); border: none; }

/* ---------- 10 类记录图标 ---------- */
.record-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.record-item {
  background: transparent; padding: 6px 4px; text-align: center;
  box-shadow: none;
}
.record-item .ri-emoji {
  width: 72px; height: 72px; object-fit: contain;
  display: block; margin: 0 auto 6px;
  padding: 10px; box-sizing: border-box; border-radius: 20px;
  background: #fff; box-shadow: var(--shadow-sm);
}
.record-item .ri-label { margin-top: 8px; font-size: 14px; font-weight: 600; }

/* ---------- App 截图展示 ---------- */
.phones { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; align-items: flex-start; }
.shot { width: 198px; max-width: 78vw; }
.shot img {
  width: 100%; display: block;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(255, 138, 128, .20);
}

/* ---------- 协作高亮 ---------- */
.highlight {
  background: linear-gradient(135deg, #FFE5E7, #FFEBD8);
  border-radius: 32px; padding: 56px 40px; text-align: center;
}
.highlight .emoji { width: 80px; height: 80px; object-fit: contain; display: inline-block; }
.highlight h2 { font-size: 30px; margin: 14px 0 10px; }
.highlight p { color: var(--ink2); max-width: 560px; margin: 0 auto; }

/* ---------- 下载区 ---------- */
.download { text-align: center; }
.qr-box {
  width: 160px; height: 160px; background: #fff; border-radius: 20px;
  margin: 0 auto 16px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.qr-box img { width: 116px; height: 116px; object-fit: contain; }

/* ---------- 页脚 ---------- */
.footer {
  background: #fff; border-top: 1px solid var(--line);
  padding: 40px 0 28px; margin-top: 40px;
}
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer .f-col h4 { font-size: 14px; margin-bottom: 10px; }
.footer .f-col a, .footer .f-col p { display: block; color: var(--ink2); font-size: 13px; margin: 6px 0; }
.footer-bottom {
  text-align: center; color: var(--ink3); font-size: 12px;
  margin-top: 28px; padding-top: 20px; border-top: 1px dashed var(--line);
}

/* ---------- 文档页（隐私/协议）---------- */
.doc { max-width: 820px; margin: 0 auto; padding: 48px 24px 80px; }
.doc h1 { font-size: 32px; margin-bottom: 8px; }
.doc .doc-meta { color: var(--ink3); font-size: 13px; margin-bottom: 28px; }
.doc h2 { font-size: 21px; margin: 32px 0 12px; color: var(--peach-d); }
.doc h3 { font-size: 17px; margin: 20px 0 8px; }
.doc p, .doc li { color: var(--ink); font-size: 15px; }
.doc ul, .doc ol { margin: 10px 0 10px 24px; }
.doc li { margin: 6px 0; }
.doc .notice {
  background: #FFF3CC; border-left: 4px solid #E5B83C;
  border-radius: 10px; padding: 14px 18px; margin: 20px 0; font-size: 14px;
}
.doc .back { display: inline-block; margin-bottom: 20px; font-weight: 600; }

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .hero h1 { font-size: 36px; }
  .hero .mascot { width: 96px; height: 96px; }
  .section-title { font-size: 26px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .record-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }
  .highlight { padding: 40px 24px; }
}

/* ?embed=1 模式：app 内通过 WebView 打开协议页时隐 nav/footer，仅展示正文 */
/* 由 5 个协议 html 末尾的 inline script 在匹配 query 时给 body 加 .embed class */
body.embed nav.nav,
body.embed footer { display: none !important; }
body.embed .doc { padding-top: 16px; }
