:root {
  --bg: #f4f8fc;
  --surface: #ffffff;
  --surface-soft: #eef5fb;
  --surface-deep: #0d2740;
  --text: #13283a;
  --muted: #607282;
  --line: #d6e0ea;
  --primary: #0f6fb8;
  --primary-dark: #0b5086;
  --secondary: #f28b2f;
  --secondary-dark: #dd7318;
  --success: #1f9b64;
  --success-dark: #0f7651;
  --shadow: 0 22px 50px rgba(15, 42, 61, 0.1);
  --radius: 24px;
  --max: 1180px;
  --font: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(242, 139, 47, 0.11), transparent 28%),
    radial-gradient(circle at top left, rgba(15, 111, 184, 0.11), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #edf4f9 100%);
  line-height: 1.68;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.lang-link:focus-visible,
.menu-toggle:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(15, 111, 184, 0.22);
  outline-offset: 3px;
}

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

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

.narrow {
  width: min(calc(100% - 32px), 860px);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--text);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
}

.skip-link:focus {
  left: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(249, 252, 255, 0.92);
  border-bottom: 1px solid rgba(214, 224, 234, 0.9);
}

.topline {
  background: linear-gradient(90deg, var(--surface-deep), #173f62);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

.topline .container {
  min-height: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.topline strong,
.topline a {
  color: #fff;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: var(--shadow);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 18px;
  letter-spacing: 0.01em;
}

.brand-copy small {
  color: var(--muted);
}

.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-weight: 700;
}

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

.lang-group {
  display: flex;
  gap: 8px;
}

.lang-link,
.menu-toggle {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
}

.lang-link.active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.menu-toggle {
  display: none;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: rgba(15, 111, 184, 0.35);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #2db97d);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-light {
  background: #fff;
  color: var(--surface-deep);
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: rgba(255, 255, 255, 0.62);
}

.section-dark {
  background: linear-gradient(135deg, var(--surface-deep), #143a58);
  color: #fff;
}

.section-head {
  margin-bottom: 28px;
  max-width: 920px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 111, 184, 0.1);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
}

.section-dark .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.section-head h1,
.section-head h2,
.page-hero h1 {
  margin: 14px 0 10px;
  line-height: 1.1;
  font-size: clamp(32px, 5vw, 52px);
}

.section-head p,
.lead,
.intro,
.muted {
  color: var(--muted);
}

.section-head p {
  max-width: 760px;
}

.lead {
  font-size: 18px;
  line-height: 1.8;
  max-width: 900px;
}

.section-dark .lead,
.section-dark .section-head p,
.section-dark .muted {
  color: rgba(255, 255, 255, 0.85);
}

.hero {
  padding: 60px 0 42px;
}

.hero-grid,
.split,
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 26px;
  align-items: start;
}

.card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(214, 224, 234, 0.9);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 24px;
  overflow-wrap: anywhere;
}

.hero-panel {
  padding: 28px;
  overflow: hidden;
  position: relative;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto auto -40px -40px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(15, 111, 184, 0.07);
}

.hero-art {
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(15, 111, 184, 0.12), rgba(242, 139, 47, 0.16));
  padding: 12px;
  margin-bottom: 20px;
}

.hero-points,
.chip-row,
.icon-list,
.inline-links,
.stats,
.breadcrumbs,
.footer-links,
.contact-list,
.simple-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-points,
.chip-row,
.stats,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points li,
.chip-row span,
.stats li,
.area-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
  font-weight: 700;
}

.stats li {
  min-height: 70px;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 14px;
  color: var(--text);
}

.stats strong {
  font-size: 24px;
}

.cta-row,
.form-actions,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.service-card,
.area-card,
.value-card,
.step-card,
.blog-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card h3,
.area-card h3,
.value-card h3,
.step-card h3,
.blog-card h3 {
  margin: 16px 0 10px;
  font-size: 22px;
  line-height: 1.32;
}

.service-card p,
.area-card p,
.value-card p,
.step-card p,
.blog-card p {
  margin: 0;
}

.blog-card h3,
.blog-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card h3 {
  -webkit-line-clamp: 3;
}

.blog-card p {
  -webkit-line-clamp: 3;
}

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(15, 111, 184, 0.14), rgba(242, 139, 47, 0.18));
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  font-weight: 800;
  padding-top: 4px;
}

.text-link:hover {
  opacity: 0.86;
}

.simple-list li,
.icon-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
}

.simple-list li::before,
.icon-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.page-hero {
  padding: 34px 0 10px;
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.breadcrumbs a {
  color: var(--muted);
}

.content-with-sidebar .sidebar {
  position: sticky;
  top: 104px;
}

.quote-form {
  display: grid;
  gap: 18px;
}

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

.quote-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.quote-form input,
.quote-form textarea,
.quote-form select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  min-height: 52px;
  padding: 14px;
  font: inherit;
  font-size: 16px;
  background: #fff;
}

.quote-form textarea {
  min-height: 130px;
  resize: vertical;
}

.quote-form input:focus,
.quote-form textarea:focus,
.quote-form select:focus {
  outline: none;
  border-color: rgba(15, 111, 184, 0.8);
  box-shadow: 0 0 0 4px rgba(15, 111, 184, 0.12);
}

.full {
  grid-column: 1 / -1;
}

.form-note {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  position: relative;
  padding-right: 28px;
  line-height: 1.6;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 22px;
  color: var(--primary);
}

.faq-item[open] summary::after {
  content: "−";
}

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

.cta-banner {
  background: linear-gradient(135deg, var(--surface-deep), #123d60);
  color: #fff;
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.86);
}

.site-footer .cta-banner .card {
  background: rgba(255, 255, 255, 0.98);
  color: var(--text) !important;
}

.site-footer .cta-banner .card h1,
.site-footer .cta-banner .card h2,
.site-footer .cta-banner .card h3,
.site-footer .cta-banner .card strong {
  color: var(--text) !important;
}

.site-footer .cta-banner .card p,
.site-footer .cta-banner .card li,
.site-footer .cta-banner .card .muted,
.site-footer .cta-banner .card .footer-note {
  color: var(--muted) !important;
}

.site-footer .cta-banner .card a:not(.btn) {
  color: var(--primary) !important;
}

.site-footer .cta-banner .card .simple-list li,
.site-footer .cta-banner .card .simple-list li::marker,
.site-footer .cta-banner .card ul li,
.site-footer .cta-banner .card h3,
.site-footer .cta-banner .card h2 {
  color: var(--text) !important;
}

.blog-card time,
.meta-row,
.small-note {
  color: var(--muted);
  font-size: 14px;
}

.post-content h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1.24;
}

.post-content h3 {
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.36;
}

.post-content p,
.post-content li {
  color: #42576a;
  font-size: 17px;
  line-height: 1.9;
}

.post-content p {
  margin: 0 0 16px;
}

.post-content ul,
.post-content ol {
  margin: 0 0 18px;
}

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

.meta-strip,
.directory-list ul,
.contact-cards {
  display: grid;
  gap: 16px;
}

.meta-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.meta-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(15, 111, 184, 0.09);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
}

.review-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 254, 0.98));
}

.review-quote {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.85;
}

.review-name {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.quote-note {
  margin: 0 0 16px;
  color: var(--text);
}

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

.directory-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.directory-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.directory-list li a {
  color: var(--text);
  font-weight: 700;
  line-height: 1.5;
}

.directory-list li span {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.article-links a {
  color: var(--text);
  font-weight: 700;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.page-link {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 800;
}

.page-link.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.site-footer {
  padding: 40px 0 120px;
  background: linear-gradient(180deg, #f6fbff 0%, #e9f2f8 100%);
  border-top: 1px solid rgba(214, 224, 234, 0.8);
}

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

.footer-links li {
  min-height: 40px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.sticky-callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(10, 28, 46, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 -14px 30px rgba(9, 24, 39, 0.16);
  display: none;
}

.sticky-callbar .bar-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sticky-callbar a {
  min-height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.sticky-callbar a.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.mobile-only {
  display: none;
}

@media (max-width: 1080px) {
  .cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: fixed;
    inset: 108px 12px auto 12px;
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.98);
    max-height: calc(100vh - 136px);
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 14px;
  }

  .main-nav a:hover {
    background: var(--surface-soft);
  }

  .hero-grid,
  .split,
  .content-with-sidebar,
  .footer-grid,
  .cols-3,
  .cols-2 {
    grid-template-columns: 1fr;
  }

  .content-with-sidebar .sidebar {
    position: static;
  }

  .header-actions .btn {
    display: none;
  }

  .topline .container {
    flex-direction: column;
    justify-content: center;
    padding: 8px 0;
    gap: 4px;
  }

  .meta-strip,
  .contact-cards,
  .directory-list ul {
    grid-template-columns: 1fr;
  }

  .cta-row {
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 48px 0;
  }

  .hero {
    padding-top: 32px;
  }

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

  .header-inner {
    min-height: 72px;
    align-items: center;
  }

  .brand-copy small {
    font-size: 12px;
  }

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

  .form-grid,
  .cols-4 {
    grid-template-columns: 1fr;
  }

  .btn,
  .cta-row > *,
  .form-actions > *,
  .footer-actions > * {
    width: 100%;
  }

  .sticky-callbar,
  .mobile-only {
    display: block;
  }

  .site-footer {
    padding-bottom: 126px;
  }

  .lang-group {
    display: flex;
  }

  .header-actions {
    gap: 8px;
  }

  .section-head h1,
  .section-head h2,
  .page-hero h1 {
    font-size: clamp(28px, 7vw, 38px);
  }

  .section-head {
    margin-bottom: 22px;
  }

  .lead,
  .post-content p,
  .post-content li {
    font-size: 16px;
  }

  .lead {
    line-height: 1.74;
  }

  .card,
  .cta-banner {
    padding: 20px;
  }

  .hero-panel {
    padding: 22px;
  }

  .topline {
    font-size: 12px;
  }

  .topline .container {
    align-items: flex-start;
  }

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

  .sticky-callbar .bar-grid a:last-child {
    grid-column: 1 / -1;
  }

  .sticky-callbar a {
    min-height: 54px;
    font-size: 14px;
    padding: 0 10px;
  }

  .hero-points li,
  .chip-row span,
  .stats li,
  .area-tags span {
    min-height: 38px;
    padding: 0 12px;
    font-size: 14px;
  }

  .post-content h2 {
    margin-top: 28px;
    font-size: 26px;
  }

  .post-content h3 {
    margin-top: 20px;
    font-size: 20px;
  }
}
