:root {
  --red: #d71920;
  --yellow: #f3c316;
  --blue: #173f91;
  --ink: #172033;
  --muted: #647084;
  --line: #dfe5ee;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --deep: #0f274f;
  --shadow: 0 18px 48px rgba(23, 32, 51, 0.12);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.admin-bar .site-header {
  top: 32px;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(223, 229, 238, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

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

.brand img,
.custom-logo {
  width: 62px;
  height: 46px;
  object-fit: contain;
}

.brand strong {
  display: block;
  color: var(--deep);
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.primary-nav {
  justify-self: end;
}

.menu {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #253149;
  font-size: 15px;
  font-weight: 600;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--red);
}

.header-call,
.btn,
.quote-tool button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.header-call,
.btn-primary,
.quote-tool button {
  color: #fff;
  background: var(--red);
  box-shadow: 0 10px 24px rgba(215, 25, 32, 0.22);
}

.btn-secondary {
  color: var(--deep);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn:hover,
.header-call:hover,
.quote-tool button:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--deep);
}

.hero {
  padding: 56px 0 48px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 40%, rgba(244, 247, 251, 0.72) 100%),
    var(--soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  align-items: center;
  gap: 44px;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--deep);
  font-size: 48px;
  line-height: 1.14;
  letter-spacing: 0;
}

.hero-copy > p {
  max-width: 660px;
  margin: 22px 0 0;
  color: #41506a;
  font-size: 18px;
}

.hero-copy,
.section-heading,
.service-card,
.pricing-panel,
.quote-tool,
.about-grid,
.contact-grid,
address {
  min-width: 0;
}

.hero h1,
.section-heading h2,
.about-grid h2,
.contact-grid h2,
.content-page h1,
.hero-copy p,
.service-card p,
address p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 0;
}

.hero-proof div {
  min-height: 92px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  border-radius: var(--radius);
}

.hero-proof dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-proof dd {
  margin: 6px 0 0;
  color: var(--deep);
  font-weight: 800;
}

.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-media::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 8px;
  background: linear-gradient(90deg, var(--yellow), var(--red), var(--blue));
  content: "";
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.section {
  padding: 76px 0;
}

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

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
  text-align: center;
}

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

.section-heading h2,
.about-grid h2,
.contact-grid h2,
.content-page h1 {
  margin: 0;
  color: var(--deep);
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-heading p,
.about-grid p,
.contact-grid p {
  margin: 14px 0 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-card h3,
.service-card h2 {
  margin: 0;
  color: var(--deep);
  font-size: 20px;
  line-height: 1.3;
}

.service-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  align-items: start;
  gap: 40px;
}

.pricing-panel {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 18px;
}

.pricing-list {
  margin: 0;
  padding: 24px 24px 24px 44px;
  background: #fff;
  border-left: 6px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.08);
}

.pricing-list li {
  margin: 10px 0;
}

.quote-tool {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: var(--deep);
  border-radius: var(--radius);
  color: #fff;
}

.quote-tool label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.quote-tool input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  font: inherit;
}

.quote-tool input::placeholder {
  color: rgba(255, 255, 255, 0.54);
}

.quote-tool p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.process-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.process-rail article {
  min-height: 210px;
  padding: 24px 20px;
  background: #fff;
}

.process-rail span {
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
}

.process-rail h3 {
  margin: 24px 0 8px;
  color: var(--deep);
  font-size: 19px;
}

.process-rail p {
  margin: 0;
  color: var(--muted);
}

.section-about {
  color: #fff;
  background: linear-gradient(135deg, var(--deep), #163f7a);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: 46px;
  align-items: center;
}

.about-grid h2,
.about-grid p {
  color: #fff;
}

.about-grid p {
  opacity: 0.78;
}

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

.about-facts div {
  min-height: 132px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 4px solid var(--yellow);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.about-facts strong {
  display: block;
  font-size: 20px;
}

.about-facts span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.74);
}

.careers-section {
  background: #f6f8fb;
}

.careers-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.careers-panel h2 {
  margin: 8px 0 10px;
  color: var(--deep);
  font-size: clamp(28px, 4vw, 42px);
}

.careers-panel p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}
.contact-section {
  padding-bottom: 96px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(440px, 1.22fr);
  gap: 42px;
  align-items: start;
}

address {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-style: normal;
  box-shadow: 0 12px 34px rgba(23, 32, 51, 0.08);
}

address p {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  margin: 0;
}

address strong {
  color: var(--deep);
}

.qr {
  width: 140px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.site-footer {
  padding: 30px 0 82px;
  color: rgba(255, 255, 255, 0.76);
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
}

.footer-grid strong {
  display: block;
  color: #fff;
}

.footer-grid p {
  margin: 8px 0 0;
}

.mobile-consult {
  display: none;
}

.post-list,
.content-page {
  max-width: 860px;
}

.content-page {
  color: #334155;
}

.content-page h1 {
  margin-bottom: 20px;
}

.entry-meta {
  margin-bottom: 20px;
  color: var(--muted);
}

@media (max-width: 980px) {
  body.admin-bar .site-header {
    top: 0;
  }

  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: block;
  }

  .menu {
    display: grid;
    gap: 4px;
  }

  .menu a {
    padding: 8px 10px;
  }

  .header-call {
    display: none;
  }

  .hero-grid,
  .pricing-layout,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-media img {
    aspect-ratio: 16 / 10;
  }

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

  .pricing-panel {
    grid-template-columns: 1fr;
  }

  .process-rail {
    grid-template-columns: 1fr;
  }

  .process-rail article {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  body {
    padding-bottom: 70px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand {
    min-width: 0;
  }

  .brand img,
  .custom-logo {
    width: 52px;
    height: 40px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    display: none;
  }

  .hero {
    padding: 38px 0 34px;
  }

  .hero h1 {
    width: 100%;
    max-width: 330px;
    font-size: 26px;
    line-height: 1.18;
  }

  .hero-copy > p {
    width: 100%;
    max-width: 330px;
    font-size: 16px;
  }

  .hero-copy,
  .hero-media,
  .hero-proof,
  .service-card,
  .pricing-panel,
  .quote-tool,
  address {
    width: 100%;
    max-width: 100%;
  }

  .hero h1,
  .hero-copy p,
  .section-heading p,
  .service-card p,
  .pricing-list,
  .quote-tool p,
  address p {
    word-break: break-all;
  }

  .hero-actions,
  .hero-proof,
  .service-grid,
  .about-facts,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .section {
    padding: 56px 0;
  }

  .section-heading h2,
  .about-grid h2,
  .contact-grid h2,
  .content-page h1 {
    font-size: 28px;
  }

  .pricing-list {
    padding-left: 34px;
  }

  address {
    padding: 20px;
  }

  address p {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .mobile-consult {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 10px 12px;
    gap: 10px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(23, 32, 51, 0.12);
  }

  .mobile-consult a {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    border-radius: var(--radius);
    font-weight: 800;
  }

  .mobile-consult a:first-child {
    color: #fff;
    background: var(--red);
  }

  .mobile-consult a:last-child {
    color: var(--deep);
    background: var(--soft);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
