/* ============================================================
   甜梦网络科技 - Geo 与 SEO 优化专家
   共享样式（设计系统）
   ============================================================ */

:root {
  /* 品牌色 */
  --primary: #3b5bfd;
  --primary-dark: #2a44d8;
  --primary-soft: #eef1ff;
  --accent-geo: #0ea5e9;
  --accent-seo: #8b5cf6;

  /* 中性色 */
  --text-bright: #0f172a;
  --text: #334155;
  --text-muted: #64748b;
  --surface: #f8fafc;
  --surface-alt: #f1f5f9;
  --border: #e2e8f0;
  --white: #ffffff;

  /* 排版 */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --container: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(59, 91, 253, 0.28);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text-bright);
  background: var(--white);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-light {
  background: var(--white);
  color: var(--primary);
}

.btn-light:hover {
  background: var(--primary-soft);
}

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.5px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  display: block;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
  transition: all 0.2s ease;
}

.main-nav a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.main-nav a.active {
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 600;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-bright);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 88px 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.section-head h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-head p {
  font-size: 17px;
  color: var(--text-muted);
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-brand p {
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 1.8;
  max-width: 300px;
}

.footer-brand .logo {
  color: #fff;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  font-size: 14.5px;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: #fff;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  margin-bottom: 14px;
  line-height: 1.6;
}

.footer-contact .c-label {
  color: #64748b;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding: 24px 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
}

.footer-bottom .beian {
  color: #64748b;
}

.footer-bottom .beian a {
  color: #64748b;
  transition: color 0.2s ease;
}

.footer-bottom .beian a:hover {
  color: #cbd5e1;
}

/* ---------- 页面 Hero（内页） ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--primary-soft), #f5f3ff 60%, #ffffff);
  padding: 96px 0 72px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: 44px;
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.25;
  margin-bottom: 18px;
}

.page-hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 60px 0;
  }
  .section-head h2 {
    font-size: 28px;
  }
  .page-hero {
    padding: 64px 0 48px;
  }
  .page-hero h1 {
    font-size: 32px;
  }

  .nav-toggle {
    display: flex;
  }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    display: none;
    box-shadow: var(--shadow);
  }
  .main-nav.open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav a {
    padding: 13px 14px;
    font-size: 16px;
  }
  .header-cta .btn {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   首页组件
   ============================================================ */

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #eef1ff 0%, #f5f3ff 45%, #ffffff 100%);
  padding: 104px 0 96px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 91, 253, 0.14), transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -180px;
  left: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 65%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.18;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.hero h1 .grad {
  background: linear-gradient(120deg, var(--primary), #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* 数据指标 */
.stats-band {
  background: var(--text-bright);
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat .stat-value {
  font-size: 44px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -1px;
}

.stat .stat-value .suffix {
  color: #7dd3fc;
}

.stat .stat-label {
  margin-top: 12px;
  font-size: 14.5px;
  color: #94a3b8;
}

/* 服务卡片 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.feature-card .card-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card.geo .card-icon {
  background: rgba(14, 165, 233, 0.12);
  color: var(--accent-geo);
}

.feature-card.seo .card-icon {
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-seo);
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 15.5px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.feature-card .card-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feature-card .card-link:hover {
  gap: 10px;
}

/* 案例网格 */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s ease;
}

.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.case-card .case-img {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.case-card .case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.case-card:hover .case-img img {
  transform: scale(1.05);
}

.case-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
}

.case-tag.geo {
  background: var(--accent-geo);
}

.case-tag.seo {
  background: var(--accent-seo);
}

.case-card .case-body {
  padding: 24px 26px 28px;
}

.case-card .case-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.case-card .case-body p {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* 合作流程 */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: all 0.25s ease;
}

.process-step:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.process-step .step-num {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--primary-soft);
  -webkit-text-stroke: 1.5px var(--primary);
  margin-bottom: 18px;
}

.process-step h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 10px;
}

.process-step p {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* CTA 横幅 */
.cta-band {
  background: linear-gradient(120deg, var(--primary), #7c3aed);
  border-radius: 22px;
  padding: 64px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.14), transparent 50%);
  pointer-events: none;
}

.cta-band h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 14px;
  position: relative;
}

.cta-band p {
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  position: relative;
}

.cta-band .btn {
  position: relative;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--primary);
}

.cta-band .btn-primary:hover {
  background: var(--primary-soft);
}

/* ============================================================
   服务页组件
   ============================================================ */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-of-type {
  border-bottom: none;
}

.service-block .sv-content .sv-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-block .sv-content .sv-icon svg {
  width: 26px;
  height: 26px;
}

.service-block.geo .sv-icon {
  background: rgba(14, 165, 233, 0.12);
  color: var(--accent-geo);
}

.service-block.seo .sv-icon {
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-seo);
}

.service-block h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 16px;
}

.service-block .sv-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.service-tags span {
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
}

.service-fit {
  font-size: 14px;
  color: var(--text-muted);
  background: var(--surface-alt);
  border-radius: 10px;
  padding: 12px 16px;
}

.service-fit strong {
  color: var(--text-bright);
  font-weight: 600;
}

.sv-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 2;
}

.sv-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-visual .viz-label {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  padding: 10px;
  background: var(--white);
  border-top: 1px solid var(--border);
}

/* 服务页流程 */
.svc-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: svc-step;
}

.svc-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  transition: all 0.25s ease;
}

.svc-step:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.svc-step .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 18px;
}

.svc-step h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 10px;
}

.svc-step p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================================
   案例页组件
   ============================================================ */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ============================================================
   联系页组件
   ============================================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-form h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.contact-form .form-sub {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.form-row label .req {
  color: #ef4444;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-bright);
  background: var(--white);
  transition: all 0.2s ease;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 91, 253, 0.12);
}

.form-row .btn {
  width: 100%;
  justify-content: center;
  font-size: 16px;
}

.form-tips {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  font-size: 14px;
}

.contact-info h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 24px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-item .ii-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-item .ii-icon svg {
  width: 21px;
  height: 21px;
}

.info-item .ii-label {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.info-item .ii-value {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-bright);
}

.why-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 14px;
}

.why-list li .check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.why-list li .check svg {
  width: 13px;
  height: 13px;
}

/* 响应式 */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
  .feature-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }
  .process-grid,
  .svc-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-block {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-wrap {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 38px;
  }
}

@media (max-width: 560px) {
  .process-grid,
  .svc-process-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 30px;
  }
  .contact-form {
    padding: 26px;
  }
}
