/* ============================================================
   Square Face Generator — site chrome (home.css)
   Design language: "Indigo Studio" — 现代创作工具质感
   ============================================================ */
:root {
  --bg: #F4F5FB;
  --card: #FFFFFF;
  --ink: #16181D;
  --muted: #5F6672;
  --primary: #5B5FEF;
  --primary-deep: #4B4FD9;
  --violet: #8B5CF6;
  --border: #E4E6F0;
  --shadow: 0 2px 6px rgba(91, 95, 239, .07), 0 12px 32px rgba(91, 95, 239, .09);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.75;
}

/* ---------- Top bar ---------- */
nav.site {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
nav.site .nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; white-space: nowrap;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.02rem; color: var(--ink);
  text-decoration: none; letter-spacing: -.2px;
}
.nav-logo .mark {
  width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto;
  background: linear-gradient(135deg, #5B5FEF, #8B5CF6);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(91,95,239,.35);
}
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-weight: 500;
  font-size: .92rem; transition: color .15s;
}
.nav-links a:hover, .nav-links a.on { color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(700px 320px at 18% -10%, rgba(91,95,239,.14), transparent 60%),
    radial-gradient(600px 300px at 85% 0%, rgba(139,92,246,.13), transparent 60%),
    linear-gradient(180deg, #F7F8FE 0%, var(--bg) 100%);
  padding: 56px 24px 40px; text-align: center;
}
.hero .eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: 2.2px;
  text-transform: uppercase; color: var(--primary); margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.25;
  font-weight: 800; letter-spacing: -.5px; max-width: 780px; margin: 0 auto 14px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, #5B5FEF, #8B5CF6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { color: var(--muted); max-width: 640px; margin: 0 auto 20px; font-size: 1.02rem; }
.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1.5px solid var(--border); border-radius: 999px;
  padding: 7px 16px; font-size: .82rem; font-weight: 600; color: var(--ink);
  box-shadow: 0 1px 4px rgba(22,24,29,.05);
}

/* ---------- Editor card ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.tip {
  display: flex; align-items: center; gap: 8px;
  background: #EEF0FE; border: 1px solid #D9DCFA; border-radius: 12px;
  padding: 10px 16px; margin: 22px auto 18px; max-width: 960px;
  font-size: .86rem; color: #3f4270; font-weight: 500;
}
.tip-icon { font-size: 1.05rem; }
#tool {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 24px; box-shadow: var(--shadow); padding: 26px;
  max-width: 960px; margin: 0 auto;
}

/* ---------- Content sections as cards ---------- */
.section-grid {
  max-width: 1120px; margin: 26px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.section-grid section {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 26px 28px;
  box-shadow: 0 1px 3px rgba(22,24,29,.04);
  transition: transform .18s, box-shadow .18s;
}
.section-grid section:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(91,95,239,.12); }
.section-grid h2 {
  font-size: 1.12rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -.2px;
}
.section-grid section p { color: #3d434e; font-size: .95rem; }
.intro { max-width: 820px; margin: 26px auto 8px; padding: 0 24px; color: #3d434e; }

/* ---------- FAQ ---------- */
details {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 20px; margin: 10px 0;
}
details summary { font-weight: 600; cursor: pointer; font-size: .95rem; }
details p { margin-top: 8px; color: #3d434e; font-size: .93rem; }
.faq-wrap { max-width: 820px; margin: 10px auto 0; padding: 0 24px; }
.faq-title {
  max-width: 820px; margin: 34px auto 0; padding: 0 24px;
  font-size: 1.35rem; font-weight: 800; letter-spacing: -.3px;
}

/* ---------- Footer ---------- */
footer.site {
  background: #16181D; color: #9aa2b1; padding: 44px 24px 36px;
  margin-top: 56px; font-size: .88rem;
}
footer.site .cols {
  max-width: 1120px; margin: 0 auto; display: flex;
  gap: 48px; flex-wrap: wrap; text-align: left;
}
footer.site .col { flex: 1; min-width: 170px; }
footer.site .col strong { color: #fff; display: block; margin-bottom: 10px; font-size: .92rem; }
footer.site .col a { color: #9aa2b1; text-decoration: none; display: block; margin: 6px 0; }
footer.site .col a:hover { color: #A5A8F8; }
footer.site .brand-note { flex: 1.4; min-width: 240px; }
footer.site .legal {
  max-width: 1120px; margin: 30px auto 0; padding-top: 18px;
  border-top: 1px solid #2a2e38; font-size: .78rem; color: #6b7280;
}

@media(max-width: 760px) {
  nav.site .nav-inner { flex-direction: column; gap: 10px; padding: 12px 16px; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .hero { padding: 40px 18px 30px; }
  .wrap, .section-grid { padding: 0 16px; }
}
