:root {
  --bg: #f4f7ff;
  --bg-alt: #edf3ff;
  --text: #0f172a;
  --muted: #56607a;
  --primary: #2d5bff;
  --primary-dark: #2146d2;
  --card: #ffffff;
  --border: #dfe7ff;
  --shadow: 0 16px 48px rgba(23, 42, 98, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 0% 0%, #eef3ff, #f9fbff 42%, #f4f7ff);
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bg-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
}

.bg-glow-1 {
  background: rgba(82, 127, 255, 0.2);
  top: -120px;
  left: -120px;
}

.bg-glow-2 {
  background: rgba(0, 183, 255, 0.14);
  bottom: 8%;
  right: -100px;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 5.8rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-tag,
.tag {
  display: inline-block;
  background: rgba(45, 91, 255, 0.12);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0;
}

h1 {
  margin-top: 0.9rem;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
}

h2 {
  margin-top: 0.9rem;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
}

p {
  margin: 1rem 0 0;
  color: var(--muted);
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(7px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: #24304d;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

body.nav-open .nav-toggle .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

.brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.nav a {
  color: #3b445d;
  font-weight: 500;
}

.nav a.active,
.nav a:hover {
  color: var(--primary);
}

.hero {
  padding-top: 4.3rem;
}

.hero-copy h1 {
  max-width: 11ch;
  letter-spacing: 0.01em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 0.72rem 1.2rem;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-small {
  padding: 0.55rem 1rem;
  border-radius: 10px;
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: #bfd0ff;
}

.btn-block {
  width: 100%;
  margin-top: 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}

.lead {
  max-width: 58ch;
  font-size: 1.02rem;
}

.seo-intro {
  margin-top: 0.7rem;
  max-width: 62ch;
  font-size: 0.92rem;
  color: #4f5d83;
}

.stats {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.stats div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
  min-width: 130px;
  box-shadow: 0 8px 20px rgba(45, 91, 255, 0.08);
}

.stats strong {
  display: block;
  color: var(--primary);
  font-size: 1.05rem;
}

.stats span {
  color: #55607d;
  font-size: 0.86rem;
}

.actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-card {
  position: relative;
  color: #fff;
  border-radius: 18px;
  min-height: 360px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(7, 19, 58, 0.84), rgba(47, 99, 255, 0.45));
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-overlay h3 {
  font-size: 1.2rem;
}

.hero-overlay ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.hero-overlay li {
  margin-bottom: 0.6rem;
}

.feature-grid,
.service-grid,
.testimonial-grid,
.pricing-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.testimonial-grid {
  grid-template-columns: repeat(3, 1fr);
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid #e6ecff;
  border-radius: 16px;
  padding: 1.3rem 1.2rem;
  box-shadow: 0 10px 24px rgba(29, 58, 135, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(29, 58, 135, 0.1);
}

.card p {
  margin-top: 0.6rem;
}

.service-card {
  padding: 0;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.service-card h3,
.service-card p {
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

.service-card h3 {
  margin-top: 1rem;
}

.service-card p {
  margin-bottom: 1.2rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.about-highlight {
  background: linear-gradient(160deg, #f8faff, #ffffff);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
}

.about-highlight ul {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: #2f3e66;
}

.text-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-image {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
}

.quote p {
  color: #2e3650;
}

cite {
  margin-top: 0.8rem;
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

.price-label {
  color: var(--primary);
  font-weight: 700;
}

.price ul {
  margin: 0.8rem 0 0;
  padding-left: 1rem;
  color: #36435f;
}

.form {
  display: grid;
  gap: 0.75rem;
}

.form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 500;
  color: #24304d;
}

.required-star {
  color: #e53935;
  margin-left: 0.15rem;
  font-weight: 700;
}

.form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  font: inherit;
}

.form input:focus {
  border-color: var(--primary);
  outline: 2px solid rgba(47, 99, 255, 0.2);
}

@media (max-width: 760px) {
  .form input,
  .form button {
    font-size: 16px;
    min-height: 48px;
  }
}

.form-tip {
  min-height: 1.4rem;
  margin: 0.1rem 0 0;
  font-size: 0.92rem;
}

.contact-list p {
  margin-top: 0.5rem;
}

.qrcode-wrap {
  margin-top: 0.5rem;
}

.qrcode-image {
  margin-top: 0.45rem;
  width: 100%;
  max-width: 155px;
  height: auto;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  display: block;
  cursor: zoom-in;
  image-rendering: -webkit-optimize-contrast;
}

.qrcode-tip {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: #65729a;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
}

.qr-modal.is-open {
  display: block;
}

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 46, 0.7);
}

.qr-modal-dialog {
  position: relative;
  max-width: min(92vw, 480px);
  margin: 6vh auto 0;
  background: #fff;
  border-radius: 14px;
  padding: 0.9rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.35);
}

.qr-modal-image {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.qr-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #1f2c4f;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.compact {
  padding-top: 1.4rem;
  padding-bottom: 1.8rem;
}

.logos {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}

.logos p {
  margin: 0;
  color: #4d5670;
}

.logos div {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.logos span {
  background: #eff4ff;
  color: #36508f;
  border: 1px solid #dbe6ff;
  border-radius: 999px;
  padding: 0.33rem 0.72rem;
  font-size: 0.83rem;
  font-weight: 600;
}

.cta {
  padding-top: 3.8rem;
  padding-bottom: 3.8rem;
}

.cta-inner {
  background: linear-gradient(120deg, #1f49df, #2d73ff);
  border-radius: 20px;
  padding: 2rem 2.1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.cta-inner .section-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.cta-inner h2,
.cta-inner p {
  color: #fff;
}

.cta-inner p {
  opacity: 0.92;
}

.cta .btn {
  background: #fff;
  color: #2b59ff;
  border-color: #fff;
}

.cta .btn:hover {
  background: #edf2ff;
}

.footer {
  padding: 2rem 0;
  background: #0b1223;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer p {
  color: #cad1e4;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer a {
  color: #e6ebfa;
}

.seo-block p {
  max-width: 72ch;
}

.seo-keywords {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.seo-keywords span {
  background: #e6efff;
  border: 1px solid #d2e1ff;
  color: #2a3f76;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.faq-grid {
  margin-top: 1.6rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.blog-preview .btn {
  margin-top: 1.2rem;
}

.blog-hero {
  padding: 0;
  overflow: hidden;
  position: relative;
  margin-bottom: 1.2rem;
}

.blog-hero img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 20, 62, 0.8), rgba(45, 91, 255, 0.35));
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.blog-hero-overlay h1,
.blog-hero-overlay p {
  color: #fff;
}

.blog-thumb {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.8rem;
}

.article-cover {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 14px;
  margin-top: 0.8rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .service-grid,
  .testimonial-grid,
  .pricing-grid,
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .header {
    position: sticky;
    top: 0;
  }

  .nav-wrap .brand {
    margin-right: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta {
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
    min-height: 44px;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 86vw);
    max-width: 100%;
    margin: 0;
    padding: calc(4.25rem + env(safe-area-inset-top, 0px)) 1.1rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    box-shadow: -10px 0 40px rgba(15, 23, 42, 0.15);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-left: 1px solid var(--border);
  }

  body.nav-open .nav {
    transform: translateX(0);
  }

  .nav a {
    padding: 0.95rem 0.35rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eef2ff;
    font-size: 1rem;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 199;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  .section {
    padding: 4.2rem 0;
  }

  .hero {
    padding-top: 3.4rem;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .feature-grid,
  .service-grid,
  .testimonial-grid,
  .pricing-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 310px;
  }

  .blog-hero img,
  .article-cover {
    height: 220px;
  }

  .qrcode-image {
    max-width: 125px;
  }

  .btn {
    min-height: 48px;
    padding: 0.75rem 1.25rem;
  }
}

@media (min-width: 761px) {
  .nav-backdrop {
    display: none !important;
  }
}
