:root {
  --navy: #0c1d36;
  --navy-2: #132b4f;
  --blue: #155eef;
  --blue-dark: #0c46be;
  --blue-soft: #eaf2ff;
  --cyan: #0ca9b7;
  --orange: #707eff;
  --orange-dark: #5969f2;
  --green: #169b62;
  --ink: #142033;
  --muted: #5d697a;
  --line: #dce3ec;
  --surface: #f4f7fa;
  --white: #fff;
  --shadow-sm: 0 8px 24px rgba(18, 39, 69, 0.08);
  --shadow-md: 0 18px 48px rgba(18, 39, 69, 0.13);
  --container: 1180px;
  --c-blue-deep: var(--blue);
  --c-blue-mid: #3e7cf3;
  --c-blue-light: #dce9ff;
  --c-purple: var(--navy-2);
  --c-purple-dk: var(--navy);
  --c-orange: var(--orange);
  --c-white: var(--white);
  --c-ink: var(--ink);
  --c-gray: var(--muted);
  --c-gray-2: #98a3b2;
  --c-gray-light: var(--line);
  --c-bg: var(--surface);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  color: var(--ink);
  background: var(--white);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
h1, h2, h3, h4, h5, p, li, a, button { overflow-wrap: anywhere; word-break: break-word; }
ul { list-style: none; }

.container, .nav-inner, .hero-grid, .cta-band-inner {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.top-bar {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 20px;
  color: #fff;
  background: var(--navy);
  font-size: 13px;
  text-align: center;
}
.top-bar a {
  color: #d6d9ff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: 72px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(220, 227, 236, 0.92);
  backdrop-filter: blur(14px);
}
.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 1 auto;
  min-width: 0;
  color: var(--navy);
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}
.brand-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  background: url("../images/brand-mark.svg?v=2") center / contain no-repeat;
  filter: drop-shadow(0 6px 10px rgba(79, 96, 235, 0.2));
}
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 27px;
  margin-left: auto;
}
.nav-menu a {
  position: relative;
  padding: 24px 0;
  color: #3d4859;
  font-size: 14px;
  font-weight: 600;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--blue); }
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }

.nav-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.nav-cta {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 17px;
  color: #fff;
  background: var(--orange);
}
.nav-cta:hover { background: var(--orange-dark); }
.menu-toggle {
  display: none;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

section { padding: 92px 0; }
.hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  padding: 86px 0 92px;
  color: #fff;
  background-color: var(--navy);
  background-image: url("../images/hero-banner.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 27, 52, 0.97) 0%, rgba(8, 27, 52, 0.88) 38%, rgba(8, 27, 52, 0.4) 61%, rgba(8, 27, 52, 0.05) 88%);
}
.hero-grid { display: grid; grid-template-columns: 1fr; }
.hero-grid > div:first-child { max-width: 680px; }
.hero-visual { display: none; }
.hero-tag, .section-tag, .news-tag {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}
.hero-tag {
  margin-bottom: 21px;
  color: #dce9ff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.hero h1 {
  margin-bottom: 24px;
  color: #fff;
  font-size: 58px;
  line-height: 1.15;
  letter-spacing: 0;
}
.hero .accent { color: #aab2ff; }
.hero p {
  max-width: 650px;
  margin-bottom: 32px;
  color: #d6dfeb;
  font-size: 18px;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(112, 126, 255, 0.28);
}
.btn-primary:hover {
  color: #fff;
  background: var(--orange-dark);
  box-shadow: 0 12px 28px rgba(112, 126, 255, 0.34);
}
.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.16); }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 42px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-stat strong { display: block; color: #fff; font-size: 30px; line-height: 1.2; }
.hero-stat span { color: #aebdce; font-size: 12px; }

.stats-band {
  padding: 44px 0;
  color: var(--ink);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 6px 28px; text-align: center; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: 0; }
.stat-item strong { display: block; margin-bottom: 5px; color: var(--blue); font-size: 38px; line-height: 1.2; }
.stat-item span { color: var(--muted); font-size: 13px; }

.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-tag {
  margin-bottom: 13px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border: 1px solid #ccdcff;
}
.section-head h2 { margin-bottom: 15px; color: var(--ink); font-size: 40px; line-height: 1.25; letter-spacing: 0; }
.accent { color: var(--blue); }
.section-head p, .showcase-text > p { color: var(--muted); font-size: 16px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.feature-card {
  position: relative;
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: #b7cdf9; box-shadow: var(--shadow-md); }
.feature-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  margin-bottom: 20px;
  object-fit: contain;
  background: var(--surface);
  border-radius: 6px;
}
.feature-card .icon-badge {
  position: absolute;
  top: 32px;
  right: 32px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(216, 224, 236, 0.95);
  border-radius: 7px;
  box-shadow: var(--shadow-sm);
  font-size: 17px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}
.feature-card:not(:has(img)) { padding-top: 28px; }
.feature-card:not(:has(img)) .icon-badge {
  position: static;
  margin-bottom: 18px;
  background: var(--blue-soft);
  box-shadow: none;
}
.feature-card h3 { margin-bottom: 9px; color: var(--ink); font-size: 20px; line-height: 1.4; }
.feature-card p { color: var(--muted); font-size: 14px; }

.feature-showcase { background: var(--surface); }
.showcase-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 68px;
  margin-bottom: 92px;
}
.showcase-row:last-child { margin-bottom: 0; }
.showcase-row.reverse .showcase-text { order: 2; }
.showcase-row.reverse .showcase-img { order: 1; }
.showcase-text, .showcase-img { min-width: 0; }
.showcase-text h3 { margin-bottom: 16px; color: var(--ink); font-size: 32px; line-height: 1.3; }
.showcase-list { display: grid; gap: 11px; margin: 24px 0 28px; }
.showcase-list li { position: relative; padding-left: 28px; color: #334054; font-size: 14px; }
.showcase-list li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 2px;
  width: 15px;
  height: 8px;
  border-bottom: 2px solid var(--green);
  border-left: 2px solid var(--green);
  transform: rotate(-45deg);
}
.showcase-img {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}
.showcase-img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }

.scenario-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-bottom: 38px; }
.tab {
  min-height: 40px;
  padding: 0 18px;
  color: #435066;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.tab:hover, .tab.active { color: #fff; background: var(--blue); border-color: var(--blue); }

.platform-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.platform-card {
  padding: 28px 20px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.platform-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.platform-icon {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #fff;
  background: var(--navy-2);
  border-radius: 8px;
  font-size: 26px;
  font-weight: 800;
}
.platform-card h4 { margin-bottom: 5px; font-size: 18px; }
.platform-card p { margin-bottom: 15px; color: var(--muted); font-size: 13px; }
.platform-card a.btn { min-height: 38px; padding: 0 16px; color: var(--blue); background: var(--blue-soft); }

.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 0.8fr));
  gap: 20px;
  align-items: stretch;
}
.news-feature, .news-list, .article-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.news-feature, .article-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.news-feature:hover, .article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-feature img, .article-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.news-feature .body, .article-card .body { padding: 22px; }
.news-tag { margin-bottom: 10px; color: var(--blue-dark); background: var(--blue-soft); }
.news-feature h3, .article-card h3 { margin-bottom: 10px; font-size: 19px; line-height: 1.5; }
.news-feature p, .article-card p { margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.news-meta { display: flex; flex-wrap: wrap; gap: 9px 16px; color: #7c8797; font-size: 12px; }
.news-list { padding: 22px; }
.news-list h4 {
  display: inline-block;
  margin-bottom: 12px;
  padding-bottom: 8px;
  color: var(--navy);
  border-bottom: 2px solid var(--orange);
  font-size: 16px;
}
.news-list-item { padding: 12px 0; border-bottom: 1px solid #e7ebf0; }
.news-list-item:last-child { border-bottom: 0; }
.news-list-item .date { color: var(--blue); font-size: 11px; font-weight: 700; }
.news-list-item h5 { margin-top: 3px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.news-list-item a:hover, .article-card h3 a:hover, .news-feature h3 a:hover { color: var(--blue); }

.cta-band { padding: 64px 0; color: #fff; background: var(--blue); }
.cta-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  align-items: center;
  gap: 42px;
}
.cta-band h2 { margin-bottom: 10px; color: #fff; font-size: 36px; line-height: 1.3; }
.cta-band p { max-width: 700px; margin-bottom: 0; color: #dbe6ff; }
.cta-form { display: flex; gap: 10px; }
.cta-form input {
  min-width: 0;
  flex: 1;
  min-height: 46px;
  padding: 0 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid transparent;
  border-radius: 7px;
  outline: none;
}
.cta-form input:focus { border-color: #a7c3ff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2); }

.footer { padding: 60px 0 26px; color: #aeb9c9; background: var(--navy); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(4, minmax(0, 0.75fr));
  gap: 36px;
  margin-bottom: 40px;
}
.footer .brand { color: #fff !important; }
.footer-brand p { max-width: 320px; margin-top: 16px; color: #93a0b3; font-size: 13px; }
.footer h5 { margin-bottom: 15px; color: #fff; font-size: 14px; }
.footer li { margin-bottom: 8px; }
.footer a { color: #aeb9c9; font-size: 13px; }
.footer a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px 30px;
  padding-top: 23px;
  color: #8290a4;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.page-banner {
  position: relative;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 20px;
  color: #fff;
  background-color: var(--navy);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  text-align: center;
  isolation: isolate;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 27, 52, 0.76);
}
.page-banner h1 { margin-bottom: 12px; color: #fff; font-size: 46px; line-height: 1.2; }
.page-banner p { max-width: 760px; color: #dce5f0; font-size: 17px; }
.page-banner .breadcrumb { margin-top: 18px; color: #b7c5d5; font-size: 13px; }
.page-banner .breadcrumb a { color: #fff; }
.banner-download { background-image: url("../images/banner-download.jpg"); background-position: center 52%; }
.banner-news { background-image: url("../images/banner-news.jpg"); background-position: center 45%; }
.banner-resources { background-image: url("../images/banner-resources.jpg"); background-position: center 48%; }
.banner-about { background-image: url("../images/banner-about.jpg"); background-position: center 42%; }

.dl-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 14px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dl-card:hover { border-color: #b8ccf5; box-shadow: var(--shadow-sm); }
.dl-platform { min-width: 0; display: flex; align-items: center; gap: 18px; }
.dl-platform .icon {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.dl-platform .icon img { width: 34px; height: 34px; object-fit: contain; }
.dl-platform .platform-windows img { filter: brightness(0) invert(1); }
.dl-platform .platform-windows { background: #087cd8; }
.dl-platform .platform-macos { background: #202938; }
.dl-platform .platform-android { background: #36a96f; }
.dl-platform .platform-ios { background: #087df5; }
.dl-platform h3 { margin-bottom: 3px; font-size: 20px; }
.dl-platform p { color: var(--muted); font-size: 13px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 6px 15px; margin-top: 6px; color: #7b8796; font-size: 12px; }
.dl-card > .btn { width: 232px; justify-self: end; }

.article-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.article-card { min-width: 0; }

.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.res-card {
  position: relative;
  min-width: 0;
  padding: 25px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.res-card:hover { transform: translateY(-4px); border-color: #b8ccf5; box-shadow: var(--shadow-md); }
.res-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 17px;
  color: #fff;
  background: var(--navy-2);
  border-radius: 8px;
  font-size: 22px;
}
.res-card h3 { margin-bottom: 9px; font-size: 18px; line-height: 1.45; }
.res-card p { margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.res-meta { display: flex; flex-wrap: wrap; gap: 5px 13px; margin-bottom: 16px; color: #7a8594; font-size: 12px; }
.res-card .btn { min-height: 38px; padding: 0 16px; color: var(--blue); background: var(--blue-soft); }

.faq { background: var(--surface); }
.faq-list { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { padding: 0; background: transparent; border-bottom: 1px solid var(--line); cursor: pointer; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  color: var(--ink);
  font-weight: 700;
}
.faq-q::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 24px;
  font-weight: 300;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 42px 20px 0; color: var(--muted); font-size: 14px; }
.faq-item.open .faq-a { display: block; }

@media (max-width: 1024px) {
  .menu-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 108px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 16px 20px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .navbar.menu-open .nav-menu { display: grid; gap: 2px; }
  .nav-menu a { padding: 10px 5px; }
  .nav-menu a::after { display: none; }
  .hero { min-height: 620px; }
  .feature-grid, .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-row { grid-template-columns: 1fr; gap: 34px; margin-bottom: 64px; }
  .showcase-row.reverse .showcase-text, .showcase-row.reverse .showcase-img { order: initial; }
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: 1fr; }
  .cta-band-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.5fr repeat(2, 1fr); }
  .footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 700px) {
  .container, .nav-inner, .hero-grid, .cta-band-inner { width: min(calc(100% - 28px), var(--container)); }
  .top-bar { min-height: 42px; }
  .navbar, .nav-inner { min-height: 66px; }
  .nav-menu { top: 108px; }
  .brand { font-size: 15px; }
  .brand-icon { flex-basis: 36px; width: 36px; height: 36px; }
  .nav-cta { display: none; }
  section { padding: 68px 0; }
  .hero {
    min-height: 610px;
    padding: 72px 0 76px;
    background-position: 43% center;
  }
  .hero::before { background: rgba(8, 27, 52, 0.84); }
  .hero h1 { font-size: 39px; }
  .hero p { font-size: 16px; }
  .hero-cta-row, .cta-form { display: grid; }
  .hero-cta-row .btn, .cta-form .btn { width: 100%; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-stat strong { font-size: 24px; }
  .stats-grid, .feature-grid, .platform-grid, .article-list, .res-grid, .footer-grid { grid-template-columns: 1fr; }
  .stat-item { padding: 18px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-item:last-child { border-bottom: 0; }
  .section-head { margin-bottom: 34px; }
  .section-head h2 { font-size: 30px; }
  .showcase-text h3 { font-size: 27px; }
  .page-banner { min-height: 310px; padding: 60px 18px; }
  .page-banner h1 { font-size: 38px; }
  .page-banner p { font-size: 15px; }
  .dl-card { grid-template-columns: 1fr; text-align: center; }
  .dl-platform { flex-direction: column; }
  .dl-card > .btn { width: 100%; justify-self: stretch; }
  .cta-band h2 { font-size: 30px; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .faq-a { padding-right: 0; }
}

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

/* WordPress latest-posts block and editorial pages */
.wp-latest-posts {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 9% 15%, rgba(21, 94, 239, 0.1), transparent 27%),
    radial-gradient(circle at 88% 80%, rgba(112, 126, 255, 0.11), transparent 30%),
    #f7f9fd;
}
.wp-latest-posts::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(21, 94, 239, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 94, 239, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 72%, transparent);
}
.wp-latest-posts .container { position: relative; }
.wp-latest-posts-heading { margin-bottom: 40px; }
.wp-latest-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.wp-latest-post-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(184, 199, 223, 0.82);
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(17, 42, 79, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.wp-latest-post-card:hover {
  transform: translateY(-5px);
  border-color: #aec5f5;
  box-shadow: 0 20px 48px rgba(17, 42, 79, 0.14);
}
.wp-latest-post-image {
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-soft), #eef0ff);
  border-bottom: 1px solid var(--line);
}
.wp-latest-post-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.wp-latest-post-card:hover .wp-latest-post-image img { transform: scale(1.035); }
.wp-latest-post-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}
.wp-latest-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  color: #758296;
  font-size: 12px;
}
.wp-latest-post-meta span:first-child {
  padding: 3px 8px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-radius: 4px;
  font-weight: 700;
}
.wp-latest-post-card h2,
.wp-latest-post-card h3 {
  margin: 0 0 11px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.45;
}
.wp-latest-post-card h2 a:hover,
.wp-latest-post-card h3 a:hover { color: var(--blue); }
.wp-latest-post-card p {
  display: -webkit-box;
  margin: 0 0 19px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.wp-latest-post-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}
.wp-latest-post-link span { transition: transform 0.2s ease; }
.wp-latest-post-link:hover span { transform: translateX(4px); }
.wp-latest-posts-footer { margin-top: 30px; text-align: center; }
.wp-latest-posts-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  color: var(--blue);
  background: #fff;
  border: 1px solid #bdd0f6;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.wp-latest-posts-footer a:hover { color: #fff; background: var(--blue); border-color: var(--blue); }
.wp-latest-posts-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 760px;
  min-height: 150px;
  margin: 0 auto;
  padding: 28px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.86);
  border: 1px dashed #abc4f3;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.wp-latest-posts-empty h2,
.wp-latest-posts-empty h3 { margin: 0 0 6px; color: var(--ink); font-size: 20px; }
.wp-latest-posts-empty p { margin: 0; }
.wp-latest-posts-empty-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 10px;
}
.wp-latest-posts-empty-icon svg { width: 27px; height: 27px; }

.beatify-wp-content { background: #f7f9fc; }
.beatify-content-main { min-height: 58vh; }
.beatify-blog-hero {
  padding: 78px 0 74px;
  color: #fff;
  background: linear-gradient(125deg, var(--navy) 0%, var(--navy-2) 58%, #224a91 100%);
  text-align: center;
}
.beatify-blog-hero .section-tag { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.24); }
.beatify-blog-hero h1 { margin: 5px 0 14px; color: #fff; font-size: 44px; }
.beatify-blog-hero p { max-width: 700px; margin: 0 auto; color: #dce6f5; font-size: 17px; }
.beatify-blog-listing { padding: 78px 0 92px; }
.beatify-blog-grid { row-gap: 28px; }
.beatify-pagination { margin-top: 42px; text-align: center; }
.beatify-pagination .nav-links { display: inline-flex; gap: 8px; }
.beatify-pagination .page-numbers {
  display: grid;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  place-items: center;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.beatify-pagination .current,
.beatify-pagination a:hover { color: #fff; background: var(--blue); border-color: var(--blue); }
.beatify-single-wrap { padding: 58px 20px 92px; }
.beatify-article-container { width: min(900px, 100%); margin: 0 auto; }
.beatify-breadcrumb { display: flex; gap: 9px; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.beatify-breadcrumb a:hover { color: var(--blue); }
.beatify-single-article { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm); }
.beatify-single-header { padding: 48px 54px 34px; text-align: center; }
.beatify-single-header h1 { margin: 5px 0 18px; color: var(--ink); font-size: 42px; line-height: 1.32; }
.beatify-single-header .wp-latest-post-meta { justify-content: center; margin: 0; }
.beatify-single-image { padding: 0 54px; }
.beatify-single-image img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 8px; }
.beatify-single-content { padding: 40px 54px 52px; color: #344156; font-size: 17px; line-height: 1.9; }
.beatify-single-content > * + * { margin-top: 1.25em; }
.beatify-single-content h2,
.beatify-single-content h3 { color: var(--ink); line-height: 1.4; }
.beatify-single-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.beatify-single-content ul,
.beatify-single-content ol { padding-left: 1.4em; }
.beatify-single-content ul { list-style: disc; }
.beatify-single-content blockquote { padding: 18px 22px; background: var(--blue-soft); border-left: 4px solid var(--blue); }
.beatify-single-tags { margin: 0 54px 42px; padding-top: 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }
.beatify-content-footer { padding-top: 42px; }
.beatify-content-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 28px; }
.beatify-content-footer-row nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }

@media (max-width: 1024px) {
  .wp-latest-posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .wp-latest-posts-grid { grid-template-columns: 1fr; }
  .wp-latest-post-body { padding: 21px; }
  .wp-latest-posts-empty { align-items: flex-start; padding: 22px; }
  .beatify-blog-hero { padding: 62px 0; }
  .beatify-blog-hero h1 { font-size: 34px; }
  .beatify-blog-listing { padding: 58px 0 70px; }
  .beatify-single-wrap { padding: 32px 14px 68px; }
  .beatify-single-header { padding: 34px 22px 26px; }
  .beatify-single-header h1 { font-size: 31px; }
  .beatify-single-image { padding: 0 22px; }
  .beatify-single-content { padding: 30px 22px 38px; font-size: 16px; }
  .beatify-single-tags { margin: 0 22px 32px; }
  .beatify-content-footer-row { align-items: flex-start; flex-direction: column; }
}
