/*
Theme Name: Zhiqing GEO
Theme URI: https://example.com/zhiqing-geo
Author: Codex
Author URI: https://example.com
Description: 智擎GEO 企业官网主题，面向 AI 搜索可见性与 GEO 增长服务。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: zhiqing-geo
*/

:root {
  --ink: #09152f;
  --muted: #5d6b86;
  --line: #e6edf7;
  --soft: #f5f8fc;
  --blue: #176bff;
  --cyan: #10b9ff;
  --green: #33d18f;
  --navy: #071027;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(20, 56, 110, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
  background: var(--white);
}

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

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

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

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

.topbar {
  background: #071329;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar-links {
  display: flex;
  gap: 18px;
  white-space: nowrap;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(230, 237, 247, 0.86);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 24px rgba(23, 107, 255, 0.28);
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-sub {
  display: block;
  margin-top: -4px;
  color: var(--muted);
  font-size: 12px;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: #18243d;
  font-size: 15px;
}

.nav-menu li {
  display: contents;
  list-style: none;
}

.nav-menu a {
  position: relative;
  padding: 26px 0;
}

.nav-menu a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  content: "";
  opacity: 0;
  background: var(--blue);
  transform: scaleX(0.2);
  transition: 0.2s ease;
}

.nav-menu a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-pill {
  width: 190px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  color: #8b99ad;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 28px rgba(23, 107, 255, 0.22);
}

.btn.secondary {
  color: var(--blue);
  background: #fff;
  border: 1px solid rgba(23, 107, 255, 0.28);
  box-shadow: none;
}

.hero {
  position: relative;
  padding: 92px 0 86px;
  color: #fff;
  background:
    radial-gradient(circle at 8% 20%, rgba(16, 185, 255, 0.22), transparent 28%),
    linear-gradient(115deg, #071027 0%, #0b2b6d 48%, #0b67d1 100%);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 18px;
  color: #d9f5ff;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--green);
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 610px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 610px;
}

.stat {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.stat strong {
  display: block;
  font-size: 26px;
  line-height: 1.2;
}

.stat span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

.hero-card {
  position: absolute;
  right: 26px;
  bottom: -28px;
  width: min(330px, 78%);
  padding: 18px;
  color: var(--ink);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.hero-card b {
  display: block;
  margin-bottom: 8px;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 86px 0;
}

.section.soft {
  background: var(--soft);
}

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

.section-kicker {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.section-link {
  display: inline-block;
}

.section h2 a:hover,
.section-link:hover {
  color: var(--cyan);
}

.section h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
  letter-spacing: 0;
}

.section-head p {
  margin: 16px 0 0;
  color: var(--muted);
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.module-list {
  grid-template-columns: 1fr;
}

.module-list .advantage-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  column-gap: 22px;
  align-items: start;
}

.module-list .advantage-card h3,
.module-list .advantage-card .card-content {
  grid-column: 2;
}

.module-list .icon-box {
  grid-row: 1 / span 2;
  margin-bottom: 0;
}

.advantage-card,
.solution-card,
.case-card {
  min-height: 100%;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(30, 61, 106, 0.06);
}

.icon-box {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: #fff;
  font-weight: 900;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.advantage-card h3,
.solution-card h3,
.case-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.advantage-card p,
.solution-card p,
.case-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card-content {
  color: var(--muted);
  font-size: 15px;
}

.card-content p,
.card-content ul,
.card-content ol,
.card-content blockquote,
.card-content figure,
.card-content table,
.card-content .wp-block-buttons {
  margin: 0 0 12px;
}

.card-content p:last-child,
.card-content ul:last-child,
.card-content ol:last-child,
.card-content blockquote:last-child,
.card-content figure:last-child,
.card-content table:last-child,
.card-content .wp-block-buttons:last-child {
  margin-bottom: 0;
}

.card-content ul,
.card-content ol {
  padding-left: 20px;
}

.card-content h1,
.card-content h2,
.card-content h3,
.card-content h4,
.card-content h5,
.card-content h6 {
  margin: 16px 0 10px;
  color: var(--ink);
  line-height: 1.35;
}

.card-content h1:first-child,
.card-content h2:first-child,
.card-content h3:first-child,
.card-content h4:first-child,
.card-content h5:first-child,
.card-content h6:first-child {
  margin-top: 0;
}

.card-content strong {
  color: var(--ink);
}

.card-content a {
  color: var(--blue);
  font-weight: 700;
}

.card-content img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 12px 0;
  border-radius: 8px;
}

.card-content .wp-block-image img {
  margin: 0;
}

.card-content blockquote {
  padding: 12px 16px;
  color: #33425f;
  border-left: 3px solid var(--blue);
  background: #f6f9fd;
}

.card-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.card-content th,
.card-content td {
  padding: 9px 10px;
  border: 1px solid var(--line);
}

.card-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  color: #fff;
  border-radius: 6px;
  background: var(--blue);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.feature-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: start;
}

.feature-row i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  font-style: normal;
  border-radius: 8px;
  background: var(--green);
}

.feature-row strong {
  display: block;
  margin-bottom: 4px;
}

.feature-row span {
  color: var(--muted);
  font-size: 15px;
}

.dashboard-panel {
  padding: 28px;
  border-radius: 10px;
  background: #09152f;
  box-shadow: var(--shadow);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.76);
}

.bars {
  display: grid;
  gap: 14px;
}

.bar {
  height: 42px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(30, 61, 106, 0.06);
}

.post-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef4fb;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-body {
  padding: 24px;
}

.post-meta {
  margin-bottom: 9px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.post-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
}

.post-body p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 36px;
  text-align: center;
  border: 1px dashed #b8c6da;
  border-radius: 8px;
  background: #fff;
}

.empty-state h3 {
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  padding: 82px 0 74px;
  color: #fff;
  background:
    radial-gradient(circle at 8% 20%, rgba(16, 185, 255, 0.22), transparent 28%),
    linear-gradient(115deg, #071027 0%, #0b2b6d 58%, #176bff 100%);
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.16;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}

.content-main {
  color: #17233d;
  font-size: 17px;
}

.content-main h2,
.content-main h3 {
  margin-top: 34px;
  line-height: 1.28;
}

.content-main p {
  margin: 0 0 18px;
}

.content-cover {
  width: 100%;
  margin-bottom: 28px;
  border-radius: 8px;
}

.pagination {
  margin-top: 36px;
  text-align: center;
}

.pagination .nav-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination a,
.pagination span {
  min-width: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.pagination .current {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.center-action {
  margin-top: 34px;
  text-align: center;
}

.step-no {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.case-card.highlight {
  color: #fff;
  background: linear-gradient(135deg, #0b2b6d, #176bff);
  border-color: transparent;
}

.case-card.highlight p {
  color: rgba(255, 255, 255, 0.78);
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.metric {
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.metric strong {
  display: block;
  font-size: 28px;
}

.metric span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.cta {
  position: relative;
  padding: 70px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 16, 39, 0.96), rgba(23, 107, 255, 0.9)),
    url("assets/geo-hero.png") center/cover no-repeat;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta h2 {
  max-width: 720px;
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 42px);
}

.cta p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  color: rgba(255, 255, 255, 0.75);
  background: #071027;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 36px;
  padding: 54px 0;
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 16px;
  color: #fff;
}

.footer-grid p,
.footer-grid a {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

.copyright {
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.float-tools {
  position: fixed;
  right: 18px;
  top: 44%;
  z-index: 30;
  display: grid;
  gap: 8px;
}

.float-tools a {
  width: 54px;
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 8px 6px;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  border-radius: 8px;
  background: var(--blue);
  box-shadow: 0 10px 26px rgba(23, 107, 255, 0.24);
}

@media (max-width: 1060px) {
  .nav-menu {
    gap: 16px;
  }

  .search-pill {
    display: none;
  }

  .advantage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .module-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .topbar {
    display: none;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-menu {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .nav-menu a {
    padding: 4px 0 10px;
    white-space: nowrap;
  }

  .header-actions {
    display: none;
  }

  .hero {
    padding: 58px 0 70px;
  }

  .hero-grid,
  .split,
  .cases,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .solution-grid,
  .post-grid,
  .case-metrics,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    position: static;
    width: 100%;
    margin-top: 16px;
  }

  .section {
    padding: 62px 0;
  }

  .float-tools {
    right: 10px;
    top: auto;
    bottom: 12px;
    grid-template-columns: repeat(3, 48px);
  }

  .float-tools a {
    width: 48px;
    min-height: 48px;
    font-size: 11px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .advantage-grid {
    grid-template-columns: 1fr;
  }

  .module-list .advantage-card {
    grid-template-columns: 1fr;
  }

  .module-list .advantage-card h3,
  .module-list .advantage-card .card-content {
    grid-column: auto;
  }

  .module-list .icon-box {
    grid-row: auto;
    margin-bottom: 22px;
  }

  .brand-name {
    font-size: 20px;
  }

  .hero h1 {
    font-size: 36px;
  }
}
