/* ============================================================
   geo-optimization.css — extracted from geo-optimization.html
   ============================================================ */

:root{
  /* —— Brand colors —— */
  --brand:        #991B2D;   /* Deep red */
  --brand-dark:   #7c1322;   /* Deep red (hover) */
  --brand-soft:   #E6D1D1;   /* Light red */
  --brand-soft-2: #f4e9e9;   /* Lighter red, for backgrounds */

  /* —— Neutral grays (matching the original site) —— */
  --text:    #1f2328;   /* Primary text */
  --text-2:  #5b6168;   /* Secondary text */
  --text-3:  #8a9099;   /* Tertiary text */
  --line:    #e8e8ec;   /* Divider / border */
  --bg:      #ffffff;
  --bg-soft: #fafafb;

  --radius: 14px;
  --maxw: 1180px;
  --shadow-sm: 0 1px 2px rgba(20,20,30,.04), 0 4px 16px rgba(20,20,30,.05);
  --shadow-md: 0 8px 30px rgba(153,27,45,.10);

  /* Font: same system stack as the original site, to keep color/size consistent */
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "微软雅黑", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--font);
  color:var(--text);
  background:var(--bg);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  font-size:16px;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }

/* ============ Header nav (replica from screenshot, preview only) ============ */
header.site{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.9);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
}
.nav{ display:flex; align-items:center; height:68px; gap:36px; }
.logo{ display:flex; align-items:center; gap:10px; }
.logo .mark{
  width:36px; height:36px; border-radius:50%;
  border:2.5px solid var(--brand); position:relative; flex:none;
}
.logo .mark::before{ content:""; position:absolute; inset:7px; border-radius:50%; border:2px solid var(--brand); }
.logo .mark::after{ content:""; position:absolute; left:50%; top:50%; width:6px; height:6px; border-radius:50%; background:var(--brand); transform:translate(-50%,-50%); }
.logo .name{ font-size:22px; font-weight:800; letter-spacing:.5px; color:var(--text); }
.logo .tag{ display:block; font-size:9px; letter-spacing:1px; color:var(--text-3); text-transform:uppercase; font-weight:600; margin-top:-3px; }

.menu{ display:flex; align-items:center; gap:30px; margin-left:8px; }
.menu > li{ position:relative; list-style:none; }
.menu > li > a{ font-size:16px; font-weight:600; color:#3a3f45; padding:8px 0; display:inline-flex; align-items:center; gap:5px; transition:color .18s; }
.menu > li > a:hover{ color:var(--brand); }
.menu .active > a{ color:var(--brand); }
.caret{ width:9px; height:9px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg) translateY(-2px); }

/* Dropdown */
.dropdown{
  position:absolute; top:46px; left:-18px; min-width:210px;
  background:#f5f5f6; border-radius:10px; padding:10px;
  box-shadow:0 12px 40px rgba(0,0,0,.12);
  opacity:0; visibility:hidden; transform:translateY(8px); transition:.18s;
}
.menu > li:hover .dropdown{ opacity:1; visibility:visible; transform:translateY(0); }
.dropdown a{ display:block; padding:11px 14px; border-radius:7px; font-size:15px; color:#4a4f55; font-weight:500; }
.dropdown a:hover{ background:#ececee; }
.dropdown a.on{ color:var(--brand); font-weight:700; box-shadow:inset 0 0 0 2px var(--brand); }

.nav .spacer{ flex:1; }
.btn-login{ background:var(--brand); color:#fff; font-weight:700; font-size:15px; padding:9px 22px; border-radius:8px; transition:background .18s; }
.btn-login:hover{ background:var(--brand-dark); }

/* ============ Buttons ============ */
.btn{ display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:16px; padding:14px 28px; border-radius:10px; cursor:pointer; border:none; transition:.2s; font-family:inherit; }
.btn-primary{ background:var(--brand); color:#fff; box-shadow:0 6px 18px rgba(153,27,45,.28); }
.btn-primary:hover{ background:var(--brand-dark); transform:translateY(-2px); box-shadow:0 10px 24px rgba(153,27,45,.34); }
.btn-ghost{ background:#fff; color:var(--brand); box-shadow:inset 0 0 0 1.5px var(--brand-soft); }
.btn-ghost:hover{ background:var(--brand-soft-2); }
.arrow{ transition:transform .2s; }
.btn:hover .arrow{ transform:translateX(3px); }

/* Eyebrow label */
.eyebrow{ display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:700; letter-spacing:1.5px; color:var(--brand); text-transform:uppercase; }
.eyebrow::before{ content:""; width:22px; height:2px; background:var(--brand); }

/* Section heading */
.sec-head{ text-align:center; max-width:720px; margin:0 auto 56px; }
.sec-head .eyebrow{ justify-content:center; }
.sec-head h2{ font-size:34px; font-weight:800; letter-spacing:.5px; margin:16px 0 14px; line-height:1.35; }
.sec-head p{ font-size:17px; color:var(--text-2); }

section{ padding:96px 0; }

/* ============ Hero ============ */
.hero{ position:relative; padding:24px 0 96px; overflow:hidden; }
/* 顶部避让跟随导航条高度（变量定义在 layouts/main.php），
   原先写死 88px，在导航条 120px 的断点下不足以避让，面包屑会被压住 */
.aipo-breadcrumb{ padding-top:calc(var(--navbar-h, 120px) + 20px); padding-bottom:14px; background:#f9fafb; border-bottom:1px solid #e5e7eb; font-family:var(--font); }
.aipo-breadcrumb ol{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; list-style:none; margin:0; padding:0; font-size:14px; line-height:1.5; }
.aipo-breadcrumb ol a{ color:#6b7280; text-decoration:none; transition:color .2s; }
.aipo-breadcrumb ol a:hover{ color:var(--brand); }
.aipo-breadcrumb ol .sep{ color:#9ca3af; }
.aipo-breadcrumb ol .current{ color:#1f2937; font-weight:500; }
.hero::before{
  content:""; position:absolute; top:-180px; right:-160px; width:620px; height:620px; border-radius:50%;
  background:radial-gradient(circle at center, var(--brand-soft) 0%, rgba(230,209,209,0) 68%);
  z-index:0;
}
.hero .wrap{ position:relative; z-index:1; display:grid; grid-template-columns:1.05fr .95fr; gap:64px; align-items:center; }
.hero h1{ font-size:50px; line-height:1.22; font-weight:800; letter-spacing:.5px; margin:22px 0 22px; }
.hero h1 .hl{ color:var(--brand); position:relative; white-space:nowrap; }
.hero h1 .hl::after{ content:""; position:absolute; left:0; right:0; bottom:6px; height:12px; background:var(--brand-soft); z-index:-1; border-radius:3px; }
.hero p.lead{ font-size:18px; color:var(--text-2); max-width:520px; margin-bottom:32px; }
.hero .ctas{ display:flex; gap:14px; flex-wrap:wrap; }
.hero .engines-line{ margin-top:30px; font-size:14px; color:var(--text-3); }
.hero .engines-line b{ color:var(--text-2); font-weight:700; }

/* Hero right: AI answer card demo */
.answer-card{
  background:#fff; border:1px solid var(--line); border-radius:18px; padding:24px;
  box-shadow:var(--shadow-md); position:relative;
}
.answer-card .q{ display:flex; gap:12px; align-items:center; padding-bottom:18px; border-bottom:1px dashed var(--line); margin-bottom:18px; }
.answer-card .q .avatar{ width:34px; height:34px; border-radius:50%; background:#ececee; flex:none; display:grid; place-items:center; font-size:16px; }
.answer-card .q .txt{ font-size:15px; color:var(--text); font-weight:600; }
.answer-card .a-head{ display:flex; align-items:center; gap:9px; margin-bottom:12px; }
.answer-card .a-head .dot{ width:24px; height:24px; border-radius:7px; background:linear-gradient(135deg,var(--brand),#c43a4e); display:grid; place-items:center; }
.answer-card .a-head .dot svg{ width:14px; height:14px; }
.answer-card .a-head span{ font-size:13px; font-weight:700; color:var(--text-2); }
.answer-card .a-body{ font-size:15px; color:#3a3f45; line-height:1.85; }
.answer-card .a-body .brand-chip{
  display:inline-flex; align-items:center; gap:5px; background:var(--brand-soft-2); color:var(--brand);
  font-weight:700; padding:1px 9px; border-radius:6px; box-shadow:inset 0 0 0 1px var(--brand-soft);
}
.answer-card .sources{ display:flex; gap:8px; margin-top:16px; flex-wrap:wrap; }
.answer-card .sources .src{ font-size:12px; color:var(--text-3); background:var(--bg-soft); border:1px solid var(--line); padding:4px 10px; border-radius:20px; }
.answer-card .float-badge{
  position:absolute; top:-16px; right:18px; background:var(--brand); color:#fff; font-size:12px; font-weight:700;
  padding:7px 14px; border-radius:30px; box-shadow:0 8px 20px rgba(153,27,45,.35); letter-spacing:.5px;
}

/* ============ Pain points / Why GEO ============ */
.why{ background:var(--bg-soft); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.why-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.why-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:32px 28px; box-shadow:var(--shadow-sm); }
.why-card .num{ font-size:14px; font-weight:800; color:var(--brand-soft); letter-spacing:2px; }
.why-card h3{ font-size:20px; font-weight:800; margin:10px 0 12px; }
.why-card p{ font-size:15px; color:var(--text-2); }

/* ============ Core services ============ */
.svc-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
.svc{
  position:relative; background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:34px 32px; box-shadow:var(--shadow-sm); transition:.22s; overflow:hidden;
}
.svc::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--brand); transform:scaleY(0); transform-origin:top; transition:transform .25s; }
.svc:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:var(--brand-soft); }
.svc:hover::before{ transform:scaleY(1); }
.svc .ic{ width:50px; height:50px; border-radius:13px; background:var(--brand-soft-2); display:grid; place-items:center; margin-bottom:20px; }
.svc .ic svg{ width:26px; height:26px; stroke:var(--brand); }
.svc h3{ font-size:21px; font-weight:800; margin-bottom:10px; }
.svc p{ font-size:15px; color:var(--text-2); margin-bottom:16px; }
.svc ul{ list-style:none; display:flex; flex-direction:column; gap:8px; }
.svc li{ font-size:14px; color:var(--text-2); display:flex; gap:9px; align-items:flex-start; }
.svc li::before{ content:""; width:7px; height:7px; border-radius:50%; background:var(--brand); margin-top:8px; flex:none; }

/* ============ Supported engines ============ */
.engines{ background:var(--bg-soft); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.engine-grid{ display:flex; flex-wrap:wrap; justify-content:center; gap:30px 18px; max-width:760px; margin:0 auto; }
.engine{
  width:108px; display:flex; flex-direction:column; align-items:center; gap:14px;
  padding:8px 4px; border-radius:14px; transition:.22s;
}
.engine:hover{ transform:translateY(-4px); }
.engine .logo-box{ height:56px; display:grid; place-items:center; }
.engine .logo-box img{ height:54px; width:auto; max-width:96px; object-fit:contain; }
/* Qianwen placeholder (swap in official logo URL) */
.engine .logo-box .ph{ width:54px; height:54px; border-radius:14px; background:linear-gradient(135deg,#615CED,#8B7BFF); color:#fff; display:grid; place-items:center; font-size:22px; font-weight:800; }
.engine .name{ font-size:14px; font-weight:600; color:var(--text-2); text-align:center; }
.engine-note{ text-align:center; margin-top:30px; font-size:13px; color:var(--text-3); }

/* ============ Process ============ */
.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; counter-reset:step; }
.step{ position:relative; padding:0 24px; }
.step:not(:last-child)::after{ content:""; position:absolute; top:26px; right:-2px; width:1px; height:56px; background:var(--line); }
.step .badge{
  counter-increment:step; width:54px; height:54px; border-radius:15px; background:#fff; border:2px solid var(--brand-soft);
  color:var(--brand); font-size:22px; font-weight:800; display:grid; place-items:center; margin-bottom:20px;
}
.step .badge::before{ content:"0" counter(step); }
.step h3{ font-size:19px; font-weight:800; margin-bottom:10px; }
.step p{ font-size:14px; color:var(--text-2); }

/* ============ Stats / results ============ */
.stats{ background:linear-gradient(135deg, #fff 0%, var(--brand-soft-2) 100%); border-top:1px solid var(--line); }
.stat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; text-align:center; }
.stat .big{ font-size:46px; font-weight:800; color:var(--brand); line-height:1; letter-spacing:.5px; }
.stat .big small{ font-size:24px; }
.stat p{ font-size:15px; color:var(--text-2); margin-top:12px; }

/* ============ CTA band ============ */
.cta-band{ background:var(--brand); color:#fff; position:relative; overflow:hidden; }
.cta-band::before{ content:""; position:absolute; top:-120px; right:-80px; width:380px; height:380px; border-radius:50%; background:rgba(255,255,255,.07); }
.cta-band::after{ content:""; position:absolute; bottom:-160px; left:-60px; width:340px; height:340px; border-radius:50%; background:rgba(255,255,255,.05); }
.cta-band .wrap{ position:relative; z-index:1; text-align:center; }
.cta-band h2{ font-size:36px; font-weight:800; margin-bottom:16px; letter-spacing:.5px; }
.cta-band p{ font-size:18px; color:rgba(255,255,255,.85); max-width:560px; margin:0 auto 32px; }
.cta-band .btn-white{ background:#fff; color:var(--brand); font-weight:800; }
.cta-band .btn-white:hover{ background:var(--brand-soft); transform:translateY(-2px); }

/* Footer placeholder (no rewrite needed; replace with your existing footer) */
footer.placeholder{ background:#1a1a1d; color:#9a9aa0; text-align:center; padding:28px; font-size:13px; }
footer.placeholder b{ color:#fff; }

/* Scroll reveal animation */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }

/* ============ Responsive ============ */
@media (max-width:900px){
  .hero .wrap{ grid-template-columns:1fr; gap:44px; }
  .hero h1{ font-size:38px; }
  .why-grid, .svc-grid, .engine-grid, .steps, .stat-grid{ grid-template-columns:1fr 1fr; }
  .step::after{ display:none; }
  .menu{ display:none; }
}
@media (max-width:560px){
  .why-grid, .svc-grid, .engine-grid, .steps, .stat-grid{ grid-template-columns:1fr; }
  .hero h1{ font-size:31px; }
  section{ padding:64px 0; }
  .sec-head h2, .cta-band h2{ font-size:26px; }
}
