/* 首页（未登录着陆页）。配色 token 沿用 app.css，亮/深两套都要能看清 */

body.home {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.home-top {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--bg); z-index: 5;
}
.home-top .brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.home-top .brand img { border-radius: 8px; }
.home-top .brand b { font-size: 16px; letter-spacing: -.01em; }

main { flex: 1; width: 100%; max-width: 940px; margin: 0 auto; padding: 0 22px; }

/* ---- Hero ---- */
.hero { text-align: center; padding: 48px 0 44px; }
.hero-logo { display: block; margin: 0 auto 22px; }
.pill {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
  padding: 5px 13px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); border: 1px solid var(--line);
}
.hero h1 { font-size: clamp(30px, 5vw, 42px); margin: 18px 0 12px; letter-spacing: -.03em; }
.hero-sub {
  color: var(--muted); font-size: 16.5px; line-height: 1.7;
  max-width: 620px; margin: 0 auto 30px;
}
.hero-cta { max-width: 300px; margin: 0 auto; }
.invite-note {
  color: var(--muted); font-size: 14px; line-height: 1.75;
  max-width: 560px; margin: 22px auto 0;
}

/* ---- 功能卡片 ---- */
.features { padding: 20px 0 8px; }
.features h2, .about h2, .security h2, .cta-2 h2 {
  font-size: 20px; margin: 0 0 20px; text-align: center; letter-spacing: -.02em;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px;
}
.card-icon { font-size: 22px; line-height: 1; margin-bottom: 10px; }
.card b { display: block; font-size: 15px; margin-bottom: 5px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ---- 安全说明 ---- */
.security {
  margin: 44px 0 0; padding: 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
}
.security h2 { text-align: start; }
.security p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.8; }

/* ---- 二次 CTA ---- */
.cta-2 { text-align: center; padding: 52px 0 40px; }
.cta-2 .gbtn { max-width: 300px; margin: 0 auto; }
.pill-plain { color: var(--muted); font-size: 13px; margin: 14px 0 0; }

/* ---- 页脚 ---- */
.home-foot {
  border-top: 1px solid var(--line); padding: 18px 22px;
  display: flex; gap: 8px; justify-content: center; align-items: center;
  color: var(--muted); font-size: 13px;
}
.home-foot a { color: var(--muted); text-decoration: none; }
.home-foot a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 560px) {
  .hero { padding: 38px 0 32px; }
  .security { padding: 20px; }
}

/* ---- 产品说明 ---- */
.about { padding: 20px 0 8px; }
.about-lead {
  color: var(--muted); font-size: 15.5px; line-height: 1.8;
  max-width: 720px; margin: 0 auto 26px; text-align: center;
}

/* ---- 为什么需要 Google 账号（OAuth 验证要求的透明说明） ---- */
.google-data {
  margin: 44px 0 0; padding: 26px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
}
.google-data h2 { text-align: start; margin-bottom: 10px; }
.gd-intro { color: var(--muted); font-size: 14.5px; line-height: 1.8; margin: 0 0 18px; }
.gd-list { margin: 0; display: grid; gap: 14px; }
.gd-list > div {
  display: grid; grid-template-columns: 210px 1fr; gap: 14px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.gd-list > div:last-child { border-bottom: none; padding-bottom: 0; }
.gd-list dt { font-weight: 600; font-size: 14.5px; }
.gd-list dd { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.gd-more { color: var(--muted); font-size: 14px; margin: 18px 0 14px; }
.gd-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.gd-links .btn { text-decoration: none; font-size: 14px; }

@media (max-width: 620px) {
  .gd-list > div { grid-template-columns: 1fr; gap: 4px; }
}
