/* 盈策 SEO 静态页共用样式（纯静态，无 JS 依赖）
   配色对齐站内主题（app/theme.ts + shared/theme/appColors.ts）：
   primary #023e8a、AI 品牌渐变 #480ca8→#b5179e、Footer 紫 + 荧光青 accent #4df0d0 */
:root {
  --ink: #0f172a;        /* 标题（slate-900 系） */
  --muted: #64748b;      /* 次要文字（slate-500 系） */
  --line: #e2e8f0;
  --bg: #f8fafc;         /* 站内 background.default */
  --card: #ffffff;
  --brand: #023e8a;      /* 站内 primary.main：链接与浅底强调 */
  --ai-purple: #480ca8;  /* AI 品牌渐变紫端（appColors.getAiBrandGradient） */
  --ai-pink: #b5179e;    /* AI 品牌渐变粉端 */
  --accent: #4df0d0;     /* 站内 Footer 荧光青 */
  --radius: 12px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; opacity: 0.85; }
/* 真实 logo（GP 马头）：浅色页头用 favicon 彩色版，与主站 PageLayout 浅色模式一致 */
.brand-logo {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 8px;
}
/* 品牌行 slogan：站名右侧分隔线小字（品牌灵魂常驻，不占 SEO 权重位） */
.brand-slogan {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding-left: 12px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}
.site-nav { display: flex; gap: 20px; font-size: 14px; color: var(--muted); }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--brand); text-decoration: none; }

/* Hero：站内 AI 品牌渐变（紫→粉），青绿 radial 提亮呼应 Footer accent */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1100px 480px at 12% -12%, rgba(181, 23, 158, 0.40) 0%, transparent 58%),
              radial-gradient(900px 420px at 92% -6%, rgba(77, 240, 208, 0.15) 0%, transparent 52%),
              linear-gradient(160deg, #2b0a62 0%, var(--ai-purple) 82%, #5c0fae 100%);
  color: #fff;
  padding: 72px 0 64px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 80%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f3d4ff;
  border: 1px solid rgba(243, 212, 255, 0.4);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.28;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
/* slogan：品牌灵魂行，紧贴 h1（粉→青渐变文字呼应品牌视觉）；英文压低字距 */
.hero .slogan {
  margin: -4px 0 16px;
  font-size: clamp(15px, 1.9vw, 19px);
  font-weight: 600;
  letter-spacing: 0.22em;
  background: linear-gradient(90deg, #f3d4ff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[lang="en"] .hero .slogan { letter-spacing: 0.04em; }
.hero .lead {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 26px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: #fff; color: #3d0b78; box-shadow: 0 8px 24px rgba(24, 4, 48, 0.35); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* 正文区块 */
main { padding: 56px 0 24px; }
.section { margin-bottom: 56px; }
.section h2 {
  font-size: 24px;
  line-height: 1.4;
  margin: 0 0 10px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.section .sub { color: var(--muted); margin: 0 0 24px; max-width: 780px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 16px; color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.steps { display: grid; gap: 14px; counter-reset: step; }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 20px 66px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--ai-purple), var(--ai-pink));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
}
.step strong { display: block; color: var(--ink); margin-bottom: 4px; }
.step span { color: var(--muted); font-size: 14px; }

.note {
  border-left: 3px solid var(--ai-purple);
  background: rgba(72, 12, 168, 0.05);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  color: #475569;
  font-size: 14px;
}
.note strong { color: var(--ink); }

/* 适用 / 不适用 */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fit .card ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.fit .card li { margin: 4px 0; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--ai-purple), var(--ai-pink));
  color: #fff;
  border-radius: 16px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta h2 { color: #fff; margin: 0 0 6px; font-size: 22px; }
.cta p { margin: 0; color: rgba(255,255,255,0.72); font-size: 14px; }

/* 页脚：站内 Footer 视觉（#480ca8 系深紫 + 荧光青 accent） */
.site-footer {
  position: relative;
  margin-top: 48px;
  background: linear-gradient(180deg, #3a0a8c 0%, #270657 100%);
  color: rgba(255, 255, 255, 0.66);
  padding: 32px 0 28px;
  font-size: 13px;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 240, 208, 0.5), transparent);
}
/* 品牌行：白色版 logo（GP 马头）+ 站名，末字用 accent 高亮（对齐站内 Footer） */
.footer-brand {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand img { width: 32px; height: 32px; display: block; }
.footer-id { display: flex; flex-direction: column; gap: 2px; }
.footer-name { font-weight: 800; font-size: 18px; letter-spacing: 0.04em; color: #fff; }
.footer-name em { font-style: normal; color: var(--accent); }
.footer-slogan { font-size: 12px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.55); }
.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer a { color: rgba(255,255,255,0.78); margin-right: 14px; }
.site-footer a:hover { color: var(--accent); text-decoration: none; }
.site-footer .fine { max-width: 780px; margin-top: 10px; line-height: 1.7; font-size: 12px; color: rgba(255,255,255,0.5); }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .fit { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .brand-slogan { display: none; }
  .hero { padding: 56px 0 48px; }
  main { padding-top: 40px; }
}
