/*
Theme Name: 正合智企平台主题
Theme URI: https://myzhenghe.com
Author: 绵阳正合智企科技有限公司
Description: 正合智企本地企服平台官网主题，支持首页、企服平台、共享门店、AIO/AI获客、案例库和文章中心。
Version: 2.1.1
Text Domain: zhenghe-platform
Requires at least: 6.0
Tested up to: 6.5
*/

:root {
  --ink: #102136;
  --muted: #5c6b7a;
  --soft: #edf4fb;
  --line: #dbe7f2;
  --blue: #075ed3;
  --blue-deep: #053b8f;
  --cyan: #20a6e8;
  --amber: #f49a19;
  --panel: #ffffff;
  --navy: #071a30;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(16, 45, 84, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background: #ffffff;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 12px clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(219, 231, 242, 0.86);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header > *,
main,
section,
.section-head,
.info-card {
  min-width: 0;
}

.site-header[data-elevated="true"] {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(22, 50, 76, 0.08);
}

.brand img {
  width: 204px;
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: #31445a;
  font-size: 15px;
  white-space: nowrap;
}

.nav li {
  list-style: none;
}

.nav a {
  padding: 8px 0;
}

.nav a:hover {
  color: var(--blue);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
}

.header-cta {
  padding: 0 18px;
  color: #fff;
  background: var(--blue);
}

.hero {
  min-height: calc(100vh - 76px);
  padding: clamp(62px, 7vw, 104px) clamp(20px, 4vw, 64px) 44px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(240, 247, 253, 0.96) 0%, rgba(255, 255, 255, 0.98) 48%, rgba(228, 242, 254, 0.9) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(560px, 1.12fr);
  align-items: center;
  gap: clamp(36px, 5vw, 84px);
  max-width: 1320px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.3;
}

.hero-lead,
.section-head p,
.split-copy p,
.about p,
.final-cta p {
  color: var(--muted);
  font-size: 17px;
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 30px;
}

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

.btn {
  min-width: 146px;
  padding: 0 22px;
  border: 1px solid transparent;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 16px 34px rgba(7, 94, 211, 0.28);
}

.btn.secondary {
  color: var(--blue-deep);
  border-color: #aac8e9;
  background: #fff;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 680px;
}

.trust-row span {
  min-height: 34px;
  padding: 6px 12px;
  color: #274761;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  padding: 24px;
  color: #dff4ff;
  background:
    linear-gradient(145deg, rgba(8, 38, 74, 0.97), rgba(6, 25, 48, 0.98)),
    url("./assets/images/business-ai.png") center / cover;
  border: 1px solid rgba(91, 190, 255, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 26, 48, 0.88), rgba(7, 26, 48, 0.36)),
    linear-gradient(180deg, rgba(7, 26, 48, 0.4), rgba(7, 26, 48, 0.92));
}

.hero-visual > * {
  position: relative;
}

.visual-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 215, 255, 0.22);
}

.visual-topline span {
  color: #85cffa;
  font-size: 13px;
  font-weight: 800;
}

.visual-topline strong {
  color: #fff;
  font-size: 18px;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service-tile {
  min-height: 136px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(143, 218, 255, 0.25);
  border-radius: 8px;
}

.service-tile span,
.service-tile small {
  display: block;
}

.service-tile span {
  margin-bottom: 12px;
  color: #9bdcff;
  font-size: 12px;
  font-weight: 800;
}

.service-tile strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 22px;
}

.service-tile small {
  color: #b7cce0;
  font-size: 13px;
  line-height: 1.45;
}

.service-tile.featured {
  background: linear-gradient(135deg, rgba(28, 137, 242, 0.34), rgba(255, 255, 255, 0.1));
  border-color: rgba(77, 191, 255, 0.5);
}

.service-tile.accent {
  background: linear-gradient(135deg, rgba(244, 154, 25, 0.26), rgba(255, 255, 255, 0.08));
  border-color: rgba(244, 154, 25, 0.5);
}

.network-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 16px;
  background: rgba(1, 14, 31, 0.56);
  border: 1px solid rgba(143, 218, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  white-space: nowrap;
}

.network-strip span {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.network-strip i {
  flex: 1;
  min-width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}

.process-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 1320px;
  margin: -30px auto 0;
  padding: 0 clamp(20px, 4vw, 64px);
  position: relative;
  z-index: 2;
}

.process-item {
  min-height: 92px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-right: 0;
  color: #284157;
  font-weight: 800;
}

.process-item:first-child {
  border-radius: 8px 0 0 8px;
}

.process-item:last-child {
  border-right: 1px solid var(--line);
  border-radius: 0 8px 8px 0;
}

.process-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 13px;
}

.section {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(76px, 9vw, 128px) clamp(20px, 4vw, 64px);
}

.section-tint {
  max-width: none;
  background: var(--soft);
}

.section-tint > * {
  max-width: 1192px;
}

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

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

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.capability-grid article,
.mode-list article,
.store-points article,
.case-list article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 460ms ease, transform 460ms ease, border-color 180ms ease;
}

.capability-grid article.is-visible,
.mode-list article.is-visible,
.store-points article.is-visible,
.case-list article.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.capability-grid article {
  min-height: 220px;
  padding: 28px;
}

.capability-grid span,
.mode-list span,
.case-list span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.capability-grid p,
.mode-list p,
.store-points p,
.case-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
}

.section-tint.split {
  max-width: none;
  padding-left: max(clamp(20px, 4vw, 64px), calc((100vw - 1320px) / 2 + 64px));
  padding-right: max(clamp(20px, 4vw, 64px), calc((100vw - 1320px) / 2 + 64px));
}

.mode-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mode-list article {
  min-height: 230px;
  padding: 26px;
}

.store-section {
  padding-top: clamp(82px, 9vw, 130px);
}

.store-layout {
  display: grid;
  grid-template-columns: minmax(430px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.store-network {
  position: relative;
  min-height: 520px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(236, 247, 255, 0.94)),
    url("./assets/images/business-ai.png") center / cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.store-network::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.9)),
    repeating-linear-gradient(90deg, transparent 0, transparent 72px, rgba(7, 94, 211, 0.04) 73px);
}

.store-network::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}

.store-node {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  min-height: 58px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #b9d3ea;
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 14px 34px rgba(17, 55, 90, 0.13);
}

.store-node.center {
  left: 50%;
  top: 50%;
  width: 156px;
  min-height: 74px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  border: 0;
  transform: translate(-50%, -50%);
}

.node-a { left: 9%; top: 16%; }
.node-b { right: 9%; top: 17%; }
.node-c { left: 11%; bottom: 18%; }
.node-d { right: 8%; bottom: 18%; }
.node-e { left: 50%; top: 8%; transform: translateX(-50%); }

.store-points {
  display: grid;
  gap: 14px;
}

.store-points article {
  padding: 24px;
}

.image-panel {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.check-list span {
  min-height: 46px;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #284157;
  font-size: 14px;
  font-weight: 800;
}

.cases {
  padding-left: max(clamp(20px, 4vw, 64px), calc((100vw - 1320px) / 2 + 64px));
  padding-right: max(clamp(20px, 4vw, 64px), calc((100vw - 1320px) / 2 + 64px));
}

.case-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}

.case-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.case-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.case-list {
  display: grid;
  gap: 14px;
}

.case-list article {
  padding: 24px;
}

.about {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(26px, 5vw, 80px);
  align-items: start;
}

.about p {
  margin-bottom: 0;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 0 clamp(20px, 4vw, 64px) clamp(40px, 6vw, 72px);
  padding: clamp(42px, 6vw, 70px);
  color: #fff;
  background:
    linear-gradient(130deg, rgba(5, 59, 143, 0.98), rgba(7, 26, 48, 0.98)),
    url("./assets/images/business-ai.png") center / cover;
  border-radius: 8px;
}

.final-cta .eyebrow,
.final-cta p {
  color: #cdefff;
}

.final-cta h2 {
  margin-bottom: 12px;
}

.final-cta p {
  max-width: 720px;
  margin-bottom: 0;
}

.footer {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(320px, 1.3fr) minmax(150px, 0.6fr);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
  padding: 42px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
}

.footer img {
  width: 220px;
}

.footer p,
.footer span {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-brand p {
  margin-top: 14px;
  color: var(--ink);
  font-weight: 800;
}

.footer-brand span {
  display: block;
  margin-top: 5px;
}

.footer-facts {
  display: grid;
  gap: 10px;
}

.footer-facts p {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
}

.footer-facts strong {
  color: var(--ink);
}

.footer-facts a,
.footer-links a {
  color: var(--blue-deep);
  font-weight: 800;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.page-intro {
  padding-top: clamp(88px, 10vw, 150px);
  padding-bottom: clamp(46px, 6vw, 76px);
}

.page-intro h1 {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.12;
}

.section-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

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

.info-card {
  min-height: 210px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-card span {
  display: block;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.info-card h2,
.info-card h3 {
  overflow-wrap: anywhere;
}

.info-card h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.info-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.featured-info {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  border-color: transparent;
}

.featured-info span,
.featured-info p,
.featured-info .text-link {
  color: #d9efff;
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--blue-deep);
  font-weight: 900;
}

.company-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}

.fact-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.fact-list div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.fact-list strong {
  color: var(--ink);
}

.fact-list span,
.prose-stack p {
  color: var(--muted);
}

.prose-stack {
  display: grid;
  gap: 18px;
}

.prose-stack p {
  margin-bottom: 0;
  font-size: 17px;
}

.social-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.social-list div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.social-list strong {
  color: var(--blue-deep);
}

.social-list span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

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

.post-card {
  min-height: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: #acd0ef;
  box-shadow: 0 18px 44px rgba(17, 55, 90, 0.1);
}

.post-card a {
  display: block;
  height: 100%;
  padding: 26px;
}

.post-card span,
.case-meta-grid span {
  display: block;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

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

.pagination-wrap {
  margin-top: 34px;
}

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

.pagination-wrap a,
.pagination-wrap span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

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

.single-layout {
  max-width: 980px;
}

.single-head {
  margin-bottom: 38px;
}

.single-head h1 {
  max-width: 900px;
  font-size: clamp(36px, 4.2vw, 58px);
}

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

.single-content {
  color: #25384e;
  font-size: 17px;
}

.single-content h2,
.single-content h3 {
  margin-top: 38px;
}

.single-content p,
.single-content ul,
.single-content ol {
  margin-bottom: 18px;
}

.single-content a {
  color: var(--blue);
  font-weight: 800;
}

.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 36px;
}

.case-meta-grid div {
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.case-meta-grid strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.inline-process {
  margin: 0;
  padding: 0;
  max-width: none;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav {
    display: none;
  }

  .hero-inner,
  .split,
  .store-layout,
  .case-row,
  .about,
  .company-layout,
  .footer {
    grid-template-columns: 1fr;
  }

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

  .hero-inner {
    gap: 42px;
  }

  .hero-visual {
    max-width: 780px;
  }

  .process-band,
  .capability-grid,
  .post-grid,
  .case-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-item,
  .process-item:first-child,
  .process-item:last-child {
    border: 1px solid var(--line);
    border-radius: 8px;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 66px;
    padding: 10px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: min(142px, 100%);
  }

  .header-cta {
    min-width: 0;
    min-height: 40px;
    padding: 0 11px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  h1 {
    font-size: 38px;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: 30px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    padding: 18px;
  }

  .visual-grid,
  .capability-grid,
  .process-band,
  .check-list,
  .post-grid,
  .case-meta-grid,
  .info-grid,
  .social-list {
    grid-template-columns: 1fr;
  }

  .visual-grid,
  .mode-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-tile {
    min-height: auto;
    padding: 14px;
  }

  .service-tile span {
    margin-bottom: 8px;
  }

  .service-tile strong {
    font-size: 18px;
  }

  .service-tile small {
    font-size: 12px;
  }

  .network-strip {
    overflow-x: auto;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .page-intro .section-head,
  .page-intro h1,
  .section-head p,
  .info-card {
    max-width: 100%;
  }

  .store-layout {
    gap: 24px;
  }

  .store-network {
    min-height: 460px;
  }

  .store-node {
    width: 120px;
    font-size: 13px;
  }

  .node-a { left: 5%; top: 14%; }
  .node-b { right: 5%; top: 16%; }
  .node-c { left: 6%; bottom: 15%; }
  .node-d { right: 5%; bottom: 16%; }

  .final-cta {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 18px;
    margin-right: 18px;
    padding: 34px 24px;
  }

  .footer {
    align-items: flex-start;
    gap: 28px;
  }

  .footer-facts p,
  .fact-list div,
  .social-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
