/* ===== Base ===== */
:root{
  --font-sans:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  --bg1:#f7f9fc;
  --bg2:#edf3fa;
  --card:rgba(255,255,255,.92);
  --card-solid:#fff;
  --text:#1d1d1f;
  --sub:#667085;
  --muted:#94a3b8;
  --primary:#2563eb;
  --primary-hover:#1d4ed8;
  --light:#eef4ff;
  --light-hover:#e2ebff;
  --border:#e5e7eb;
  --shadow:0 24px 60px rgba(15,23,42,.08);
  --shadow-soft:0 8px 24px rgba(15,23,42,.05);
  --success:#16a34a;
  --danger:#dc2626;
  --maxw:1220px;
  --radius-xl:28px;
  --radius-lg:20px;
  --radius-md:14px;
  --glass-border:1px solid rgba(255,255,255,.62);
}

html{scroll-behavior:smooth}
html,body{min-height:100%}

*,
*::before,
*::after{box-sizing:border-box}

body,
h1,
h2,
h3,
p,
ul,
ol{margin:0}

ul,
ol{padding:0}

body{
  font-family:var(--font-sans);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  margin:0;
}

a{
  color:inherit;
  text-decoration:none;
}

img{
  display:block;
  max-width:100%;
}

button,
input,
select,
textarea{
  font:inherit;
}

.mt-14{margin-top:14px}

/* 修复 hero-summary 双栏布局 */
.site-page .hero-summary{
  display:grid;
}

.home-page .hero-summary{
  grid-template-columns:1.2fr .8fr;
  gap:14px;
  margin-top:18px;
}

.service-page .hero-summary{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin-top:20px;
  align-items:stretch;
}

/* 恢复联系按钮区留白 */
.home-page .contact-links,
.contact-page .contact-links{
  margin-top:12px;
}

/* ===== Shared site pages: home / contact / geo / seo / sem ===== */
.site-page{
  min-height:100%;
  background:linear-gradient(180deg,var(--bg1) 0%,var(--bg2) 100%);
  padding:14px 10px 30px;
}

.site-page .page{
  width:min(var(--maxw),100%);
  margin:0 auto;
}

.site-page .topbar{
  position:sticky;
  top:12px;
  z-index:50;
  margin-bottom:18px;
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border:var(--glass-border);
  border-radius:18px;
  box-shadow:0 8px 24px rgba(15,23,42,.04);
}

.site-page .topbar-inner{
  min-height:70px;
  padding:12px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.site-page .brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.site-page .brand-info{min-width:0}

.site-page .brand-mark{
  width:42px;
  height:42px;
  flex-shrink:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:13px;
  background:linear-gradient(180deg,#eff6ff 0%,#dbeafe 100%);
  color:var(--primary);
  font-size:18px;
  font-weight:800;
}

.site-page .brand-title{
  color:#0f172a;
  font-size:18px;
  font-weight:800;
  line-height:1.2;
}

.site-page .brand-sub{
  margin-top:2px;
  color:var(--sub);
  font-size:12px;
  line-height:1.5;
  white-space:nowrap;
}

.site-page .nav-wrap{
  display:flex;
  align-items:center;
  gap:10px;
}

.site-page .nav{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.site-page .nav a{
  padding:10px 12px;
  border-radius:12px;
  color:#475569;
  font-size:14px;
  transition:background-color .2s ease,color .2s ease,transform .2s ease;
}

.site-page .nav a:hover,
.site-page .nav a.active{
  background:var(--light);
  color:var(--primary);
}

.site-page .nav-cta,
.site-page .btn,
.error-page .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:none;
  transition:background-color .2s ease,color .2s ease,transform .2s ease,box-shadow .2s ease;
}

.site-page .nav-cta{
  min-height:42px;
  padding:0 16px;
  border-radius:12px;
  background:var(--primary);
  color:#fff;
  font-size:14px;
  font-weight:700;
}

.site-page .nav-cta:hover{
  background:var(--primary-hover);
  transform:translateY(-1px);
}

.site-page .menu-toggle{
  display:none;
  width:42px;
  height:42px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  color:#334155;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  font-size:20px;
  line-height:1;
}

.site-page .mobile-nav{
  display:none;
  padding:0 14px 14px;
}

.site-page .mobile-nav.show{display:block}

.site-page .mobile-nav-inner{
  display:grid;
  gap:8px;
  padding-top:12px;
  border-top:1px solid rgba(0,0,0,.05);
}

.site-page .mobile-nav a{
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  color:#475569;
  font-size:14px;
  font-weight:600;
}

.site-page .mobile-nav a:last-child{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
}

.site-page .hero{
  margin-bottom:20px;
  padding:32px 28px 26px;
  border:var(--glass-border);
  border-radius:var(--radius-xl);
  background:var(--card);
  box-shadow:var(--shadow);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

.site-page .eyebrow,
.error-page .eyebrow,
.site-page .tag{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#f8fafc;
  color:#475569;
  font-size:13px;
  font-weight:700;
}

.site-page .eyebrow,
.error-page .eyebrow{margin-bottom:16px}

.site-page .hero-title{
  margin-bottom:8px;
  color:var(--primary);
  font-size:clamp(2.3rem,5vw,4.4rem);
  font-weight:900;
  line-height:1.04;
  letter-spacing:-.04em;
}

.site-page .hero-services{
  margin-bottom:14px;
  color:#0f172a;
  font-size:clamp(1.1rem,2.2vw,2rem);
  font-weight:800;
  line-height:1.35;
  letter-spacing:-.02em;
}

.site-page .lead{
  max-width:900px;
  margin-bottom:18px;
  color:#475569;
  font-size:16px;
  line-height:1.95;
}

.site-page .hero-actions,
.site-page .cta-actions,
.site-page .contact-links,
.error-page .actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.site-page .hero-actions{margin-bottom:16px}

.site-page .hero-tags{display:flex;gap:10px;flex-wrap:wrap}
.home-page .hero-tags{margin-bottom:18px}
.contact-page .hero-tags{margin-top:8px}
.service-page .hero-tags{margin-bottom:20px}

.site-page .btn,
.error-page .btn{
  min-height:46px;
  padding:0 18px;
  border-radius:14px;
  cursor:pointer;
  font-size:14px;
  font-weight:700;
}

.site-page .btn-primary,
.error-page .btn-primary{
  background:var(--primary);
  color:#fff;
  box-shadow:0 10px 24px rgba(37,99,235,.2);
}

.site-page .btn-primary:hover,
.error-page .btn-primary:hover{
  background:var(--primary-hover);
  transform:translateY(-1px);
}

.site-page .btn-light,
.error-page .btn-light{
  background:var(--light);
  color:#334155;
}

.site-page .btn-light:hover,
.error-page .btn-light:hover{
  background:var(--light-hover);
  transform:translateY(-1px);
}

.site-page .section{margin-top:20px}

.site-page .card,
.site-page .panel,
.site-page .mini-card,
.site-page .metric,
.site-page .contact-main{
  background:var(--card-solid);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-soft);
}

.site-page .card{overflow:hidden}

.site-page .panel,
.site-page .mini-card{padding:18px}

.site-page .panel h3,
.site-page .mini-card h3{
  margin-bottom:12px;
  color:#0f172a;
  font-size:18px;
  font-weight:800;
  line-height:1.4;
}

.site-page .mini-card p,
.site-page .mini-card li,
.site-page .panel p,
.site-page .panel li{
  color:#475569;
  font-size:14px;
  line-height:1.9;
}

.site-page .mini-card ul,
.site-page .panel ul{padding-left:18px}

.site-page .section-head{
  padding:18px 22px;
  border-bottom:1px solid rgba(0,0,0,.05);
  background:rgba(255,255,255,.72);
}

.site-page .section-head h2{
  margin-bottom:8px;
  color:#0f172a;
  font-size:24px;
}

.site-page .section-head p{
  max-width:900px;
  color:var(--sub);
  font-size:14px;
  line-height:1.85;
}

.site-page .section-body{padding:22px}

.site-page .metrics,
.site-page .grid-2,
.site-page .grid-3,
.site-page .grid-4,
.site-page .process-grid,
.site-page .cta-grid,
.site-page .field-grid-2,
.site-page .contact-layout{
  display:grid;
  gap:14px;
}

.site-page .metrics{
  grid-template-columns:repeat(4,1fr);
  margin-top:18px;
}

.site-page .grid-4{grid-template-columns:repeat(4,1fr)}
.site-page .grid-3,
.site-page .process-grid{grid-template-columns:repeat(3,1fr)}
.site-page .grid-2,
.site-page .field-grid-2,
.site-page .cta-grid{grid-template-columns:1fr 1fr}

.site-page .metric{padding:16px}

.site-page .metric-num{
  color:#0f172a;
  font-size:1.85rem;
  font-weight:800;
  line-height:1.15;
}

.site-page .metric-text{
  margin-top:6px;
  color:var(--sub);
  font-size:13px;
  line-height:1.7;
}

.site-page .step-no{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  margin-bottom:12px;
  border-radius:999px;
  background:#dbeafe;
  color:var(--primary);
  font-size:14px;
  font-weight:800;
}

.site-page .faq details{
  padding:14px 0;
  border-top:1px solid #eef2f7;
}

.site-page .faq details:first-child{
  padding-top:0;
  border-top:none;
}

.site-page .faq summary{
  cursor:pointer;
  list-style:none;
  color:#1e293b;
  font-size:16px;
  font-weight:700;
}

.site-page .faq summary::-webkit-details-marker{display:none}

.site-page .faq .answer{
  margin-top:10px;
  color:#475569;
  font-size:14px;
  line-height:1.95;
}

.site-page .footer,
.error-page .footer{
  margin-top:20px;
  padding:18px 20px;
  border:1px solid var(--border);
  border-radius:20px;
  background:rgba(255,255,255,.9);
  box-shadow:var(--shadow-soft);
  color:var(--sub);
  font-size:13px;
  line-height:1.9;
  text-align:center;
}

.site-page .footer a,
.error-page .footer a{color:#475569}

.site-page .footer a:hover,
.error-page .footer a:hover{color:var(--primary)}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .site-page .nav a,
  .site-page .nav-cta,
  .site-page .btn,
  .error-page .btn{
    transition:none;
  }
}

/* ===== Home ===== */
.home-page .hero-summary{
  grid-template-columns:1.2fr .8fr;
  margin-top:18px;
}

.home-page .hero-panel{padding:18px}

.home-page .hero-panel ul{padding-left:18px}

.home-page .hero-panel h3{
  margin-bottom:10px;
  color:#0f172a;
  font-size:18px;
}

.home-page .hero-panel p,
.home-page .hero-panel li{
  color:#475569;
  font-size:14px;
  line-height:1.9;
}

.home-page .contact-layout{
  grid-template-columns:1.08fr .92fr;
  gap:22px;
  align-items:start;
}

.home-page .contact-main{padding:20px}

.home-page .contact-side{
  display:grid;
  gap:18px;
  align-content:start;
  padding:0;
  border:none;
  background:transparent;
  box-shadow:none;
}

.home-page .contact-main h3,
.home-page .contact-side h3{
  margin-bottom:10px;
  color:#0f172a;
  font-size:20px;
}

.home-page .contact-main > p{color:#475569;font-size:14px;line-height:1.9}

.home-page .contact-side .mini-card{padding:20px}

.home-page .contact-side .mini-card h3{margin-bottom:12px}
.home-page .contact-side .mini-card ul{margin-top:10px}
.home-page .contact-side .mt-14{margin-top:0}

.home-page .contact-form{
  display:grid;
  gap:12px;
  margin-top:16px;
}

.home-page .field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.home-page .field label{
  color:#334155;
  font-size:13px;
  font-weight:700;
}

.home-page .input,
.home-page .select,
.home-page .textarea,
.contact-page .input,
.contact-page .select,
.contact-page .textarea{
  width:100%;
  padding:13px 14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  color:var(--text);
  font-size:14px;
  outline:none;
  transition:border-color .2s ease,box-shadow .2s ease;
}

.home-page .input:focus,
.home-page .select:focus,
.home-page .textarea:focus,
.contact-page .input:focus,
.contact-page .select:focus,
.contact-page .textarea:focus{
  border-color:#93c5fd;
  box-shadow:0 0 0 4px rgba(37,99,235,.08);
}

.home-page .textarea,
.contact-page .textarea{
  min-height:140px;
  resize:vertical;
  line-height:1.8;
}

.home-page .form-note,
.contact-page .form-note{
  color:var(--muted);
  font-size:12px;
  line-height:1.8;
}

.home-page .ip-status,
.contact-page .ip-status{
  margin-top:4px;
  color:var(--sub);
  font-size:12px;
  line-height:1.8;
}

.home-page .result,
.contact-page .result{
  display:none;
  padding:14px;
  border:1px solid transparent;
  border-radius:14px;
  background:#f8fafc;
  font-size:13px;
  line-height:1.8;
  white-space:pre-wrap;
  word-break:break-word;
}

.home-page .result.ok,
.contact-page .result.ok{
  background:#ecfdf5;
  border-color:#bbf7d0;
  color:#166534;
}

.home-page .result.err,
.contact-page .result.err{
  background:#fef2f2;
  border-color:#fecaca;
  color:#991b1b;
}

.home-page .contact-meta,
.contact-page .contact-meta{
  display:grid;
  gap:10px;
  margin-top:6px;
}

.home-page .contact-meta-item,
.contact-page .contact-meta-item{
  color:#475569;
  font-size:14px;
  line-height:1.85;
  word-break:break-all;
}

.home-page .more{
  display:inline-flex;
  margin-top:14px;
  color:var(--primary);
  font-size:13px;
  font-weight:700;
}

/* ===== Contact ===== */
.contact-page .contact-layout{
  grid-template-columns:1.08fr .92fr;
  gap:22px;
  align-items:start;
}

.contact-page .contact-main{
  padding:20px;
}

.contact-page .contact-side{
  display:grid;
  gap:18px;
  align-content:start;
  padding:0;
  border:none;
  background:transparent;
  box-shadow:none;
}

.contact-page .contact-main h3,
.contact-page .contact-side h3,
.contact-page .mini-card h3{
  margin-bottom:10px;
  color:#0f172a;
  font-size:20px;
}

.contact-page .contact-main p,
.contact-page .contact-side p,
.contact-page .mini-card p,
.contact-page .mini-card li{
  color:#475569;
  font-size:14px;
  line-height:1.9;
}

.contact-page .mini-card{padding:18px}
.contact-page .contact-side .mini-card{padding:20px}
.contact-page .mini-card ul{padding-left:18px;margin-top:8px}
.contact-page .contact-side .mini-card h3{margin-bottom:12px}
.contact-page .contact-side .mini-card ul{margin-top:10px}
.contact-page .contact-side .mt-14{margin-top:0}

.contact-page .contact-form{
  display:grid;
  gap:12px;
  margin-top:16px;
}

.contact-page .field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.contact-page .field label{
  color:#334155;
  font-size:13px;
  font-weight:700;
}

/* ===== Service pages: geo / seo / sem ===== */
.service-page .hero-summary{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin-top:20px;
  align-items:stretch;
}

.service-page .summary-card{padding:20px;height:100%}

.service-page .summary-list{
  display:grid;
  gap:12px;
  list-style:none;
}

.service-page .summary-list li{
  position:relative;
  padding-left:18px;
  color:#475569;
  font-size:14px;
  line-height:1.9;
}

.service-page .summary-list li::before{
  content:"";
  position:absolute;
  top:11px;
  left:0;
  width:7px;
  height:7px;
  border-radius:999px;
  background:var(--primary);
}

/* ===== 404 ===== */
.error-page{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:linear-gradient(180deg,var(--bg1) 0%,var(--bg2) 100%);
}

.error-page .wrap{
  width:100%;
  max-width:760px;
}

.error-page .card{
  padding:40px 32px;
  border:var(--glass-border);
  border-radius:28px;
  background:var(--card);
  box-shadow:var(--shadow);
  text-align:center;
}

.error-page .code{
  margin-bottom:12px;
  color:var(--primary);
  font-size:clamp(3rem,8vw,5rem);
  font-weight:900;
  line-height:1;
  letter-spacing:-.05em;
}

.error-page h1{
  margin-bottom:14px;
  color:#0f172a;
  font-size:clamp(1.5rem,3vw,2.3rem);
  font-weight:800;
  line-height:1.3;
}

.error-page .desc{
  max-width:560px;
  margin:0 auto 20px;
  color:#475569;
  font-size:16px;
  line-height:1.9;
}

.error-page .countdown{
  display:inline-block;
  margin-bottom:22px;
  padding:12px 16px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  box-shadow:var(--shadow-soft);
  color:#334155;
  font-size:14px;
  line-height:1.8;
}

.error-page .countdown strong{
  color:var(--primary);
  font-weight:800;
}

/* ===== Responsive ===== */
@media (max-width:1100px){
  .service-page .metrics,
  .service-page .grid-4,
  .service-page .grid-3,
  .service-page .grid-2,
  .service-page .process-grid,
  .service-page .cta-grid,
  .home-page .hero-summary,
  .home-page .metrics,
  .home-page .grid-4,
  .home-page .grid-3,
  .home-page .process-grid,
  .home-page .contact-layout{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:900px){
  .site-page .nav,
  .site-page .nav-cta{
    display:none;
  }

  .site-page .menu-toggle{display:inline-flex}

  .site-page .brand-sub{white-space:normal}
}

@media (max-width:860px){
  .site-page .topbar-inner,
  .site-page .hero,
  .site-page .section-head,
  .site-page .section-body,
  .site-page .footer{
    padding-left:16px;
    padding-right:16px;
  }

  .site-page .hero{
    padding-top:24px;
    padding-bottom:22px;
  }

  .site-page .hero-title{
    margin-bottom:6px;
    font-size:clamp(2rem,9vw,3rem);
  }

  .site-page .hero-services{
    margin-bottom:12px;
    font-size:clamp(1rem,4.8vw,1.35rem);
  }

  .site-page .lead,
  .error-page .desc{
    font-size:15px;
    line-height:1.9;
  }

  .site-page .hero-actions,
  .site-page .cta-actions,
  .site-page .contact-links,
  .error-page .actions{
    width:100%;
  }

  .site-page .hero-summary,
  .site-page .metrics,
  .site-page .grid-4,
  .site-page .grid-3,
  .site-page .grid-2,
  .site-page .process-grid,
  .site-page .cta-grid,
  .site-page .contact-layout,
  .site-page .field-grid-2{
    grid-template-columns:1fr;
  }

  .site-page .btn,
  .error-page .btn{
    width:100%;
  }

  .home-page .contact-side,
  .contact-page .contact-side{gap:14px}

  .service-page .summary-card{padding:18px}
  .service-page .summary-list{gap:10px}
  .service-page .summary-list li{line-height:1.85}

  .error-page .card{
    padding:32px 20px;
    border-radius:24px;
  }

  .error-page .actions{flex-direction:column}
}
