:root {
  --color-primary-600: #2f6fed;
  --color-primary-700: #041a56;
  --color-teal-500: #3bb6a8;
  --color-slate-900: #0f172a;
  --color-slate-600: #475569;
  --color-slate-200: #e2e8f0;
  --color-bg: #ffffff;
  --gradient-hero: linear-gradient(
    135deg,
    var(--color-primary-700) 0%,
    var(--color-teal-500) 100%
  );
  --primary-rgb: 47, 111, 237;
  --teal-rgb: 59, 182, 168;
  --slate-rgb: 15, 23, 42;
  --white-rgb: 255, 255, 255;
}

html {
  scroll-padding-top: 120px; /* Account for fixed navbar height */
}

body {
  font-family: "Aptos Narrow", "Aptos", system-ui, -apple-system, sans-serif;
  color: var(--color-slate-900);
  background-color: var(--color-bg);
  line-height: 1.6;
}

.text-white-80 {
  color: rgba(255, 255, 255, 0.85);
}

.btn-primary {
  background-image: linear-gradient(
    135deg,
    var(--color-primary-600),
    var(--color-teal-500)
  );
  border: none;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.btn-primary:hover,
.btn-primary:focus {
  filter: brightness(0.96);
}

.btn-ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  filter: brightness(0.96);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.btn-outline-light {
  border-radius: 12px;
}

/* 确保所有按钮文字居中对齐 */
.btn {
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.section-padding {
  padding: clamp(48px, 8vw, 88px) 0;
}
.section-title {
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-section {
  background: var(--gradient-hero);
  position: relative;
  min-height: 70vh;
  overflow: hidden;
}
.hero-section .container {
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.hero-with-bg {
  background-repeat: no-repeat, no-repeat;
  background-size: 100% auto, cover;
  background-position: right center, center;
}
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: saturate(140%) blur(0px);
  background: radial-gradient(
      1200px 600px at 20% -10%,
      rgba(255, 255, 255, 0.12),
      transparent
    ),
    radial-gradient(
      1000px 500px at 80% 0%,
      rgba(255, 255, 255, 0.08),
      transparent
    );
  pointer-events: none;
  z-index: 0;
}
.hero-section > .container {
  position: relative;
  z-index: 2;
}

/* Absolute art image to guarantee hero visual and blend */
.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-art img {
  position: absolute;
  right: -2vw;
  top: 50%;
  transform: translateY(-50%);
  width: min(50vw, 860px);
  height: auto;
  filter: drop-shadow(0 24px 56px rgba(var(--slate-rgb), 0.25));
  -webkit-mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 1) 60%,
    rgba(0, 0, 0, 0) 92%
  );
  mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 1) 60%,
    rgba(0, 0, 0, 0) 92%
  );
}
.hero-art::after {
  content: "";
  position: absolute;
  right: 6vw;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(260px, 34vw, 560px);
  height: clamp(260px, 34vw, 560px);
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(var(--primary-rgb), 0.35),
    rgba(0, 0, 0, 0)
  );
  filter: blur(40px);
}

.hero-content {
  padding: 2rem 0;
}

/* Hero badges container - ensure no wrapping */
.hero-content .d-flex {
  flex-wrap: nowrap !important;
}

/* Hero badges - prevent text wrapping */
.hero-content .badge {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 600px;
}
.gradient-text {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bg-faint {
  background: linear-gradient(
    180deg,
    rgba(99, 102, 241, 0.06),
    rgba(34, 211, 238, 0.06)
  );
}
.glass-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--color-slate-200);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}
.nav-glass {
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(255, 255, 255, 0.9) !important;
}
/* Navbar link hover gradient */
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  background-image: linear-gradient(
    135deg,
    var(--color-primary-700),
    var(--color-primary-600)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* One-line Hero Title */
.hero-title {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  line-height: 1.12;
  /* 缩小以确保在卡片内单行不溢出 */
  font-size: clamp(20px, 3vw, 34px);
  letter-spacing: 0.2px;
}

/* Center the top 3 badges in Hero */
.badges-center {
  justify-content: center !important;
}
.badges-center .badge {
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--color-slate-900);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* Brand logo sizing */
.brand-logo {
  height: 90px;
  width: auto;
}
/* Brand stacked text next to logo */
.brand-text {
  line-height: 1.05;
  display: inline-flex;
  flex-direction: column;
}
.brand-line {
  display: block;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--color-primary-700);
  padding-left: 5px;
}
.brand-line-1 {
  font-size: 14px;
}
.brand-line-2 {
  font-size: 14px;
}
.brand-line-3 {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-slate-600);
}

.service-card,
.reason-item,
.contact-block {
  background: #fff;
  border: 1px solid var(--color-slate-200);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover,
.reason-item:hover,
.contact-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    rgba(47, 111, 237, 0.12),
    rgba(59, 182, 168, 0.12)
  );
  color: var(--color-primary-700);
  font-size: 20px;
}

.cost-pill {
  background: linear-gradient(
    135deg,
    rgba(47, 111, 237, 0.08),
    rgba(59, 182, 168, 0.08)
  );
  border: 1px solid var(--color-slate-200);
  border-radius: 9999px;
  font-size: 0.95rem;
}

.form-control,
.form-select {
  height: 48px;
  border-color: var(--color-slate-200);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--color-primary-600);
  box-shadow: 0 0 0 0.25rem rgba(47, 111, 237, 0.15);
}
textarea.form-control {
  height: auto;
}

/* Utilities */
.py-lg-6 {
  padding-top: 96px !important;
  padding-bottom: 96px !important;
}

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Image frames (drop-in placeholders for future assets) */
.image-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer */
.site-footer {
  background: linear-gradient(
    135deg,
    var(--color-primary-700) 0%,
    var(--color-teal-500) 100%
  );
  color: #fff;
  position: relative;
  overflow: hidden;
}
.border-white-10 {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Footer content styling - updated for Bootstrap grid */
/* Desktop footer column spacing optimization */
@media (min-width: 768px) {
  .site-footer .col-md-3 {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .site-footer .row {
    margin-left: -15px;
    margin-right: -15px;
  }
}

.site-footer .footer-top {
  min-height: auto;
  position: relative;
}

/* Add subtle decorative background pattern */
.site-footer .footer-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px, 80px 80px, 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.site-footer .footer-top > .container {
  position: relative;
  z-index: 1;
}

/* Company info section styling */
.site-footer .company-info {
  padding-right: 1.5rem;
}

/* Social media section styling */
.site-footer .social-connect {
  padding: 0 1rem;
}

.site-footer .social-links a {
  transition: all 0.3s ease;
  padding: 0.25rem 0;
  border-radius: 4px;
}

.site-footer .social-links a:hover {
  color: var(--color-primary-300) !important;
  transform: translateX(4px);
}

.site-footer .social-links i {
  width: 20px;
  font-size: 1rem;
}

/* Quick links section styling */
.site-footer .quick-links {
  padding-left: 0.5rem;
}

/* Footer typography - unified styling for all three sections */
.site-footer .footer-top .fw-bold {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.25rem !important;
  padding-top: 0.5rem;
}

.site-footer .footer-top p,
.site-footer .footer-top li,
.site-footer .footer-top div:not(.fw-bold) {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.site-footer .footer-top a {
  font-size: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 0.125rem 0;
}

.site-footer .footer-top a:hover {
  color: var(--color-primary-300) !important;
}

.site-footer .footer-top ul {
  margin-bottom: 0;
  padding-left: 0;
}

.site-footer .footer-top li {
  margin-bottom: 0.5rem;
  list-style: none;
}

.site-footer .footer-top li:last-child {
  margin-bottom: 0;
}

/* Unified section spacing and alignment for four-column layout */
.site-footer .company-brand,
.site-footer .quick-links,
.site-footer .our-services,
.site-footer .contact-info {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.site-footer .quick-links ul,
.site-footer .our-services ul {
  display: flex;
  flex-direction: column;
}

.site-footer .quick-links li,
.site-footer .our-services li {
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.site-footer .quick-links li:last-child,
.site-footer .our-services li:last-child {
  margin-bottom: 0;
}

/* Company brand section styling */
.site-footer .company-brand {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Quick links section styling */
.site-footer .quick-links {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Our services section styling */
.site-footer .our-services {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Override list-style for Our Services to show bullet points */
.site-footer .our-services ul {
  padding-left: 1.2rem;
}

.site-footer .our-services li {
  list-style-type: disc !important;
  margin-left: 0;
}

/* Footer logo styling */
.site-footer .footer-logo {
  height: 45px;
  width: auto;
  display: block;
  margin-bottom: 0.75rem;
  filter: brightness(1.1);
  transition: all 0.3s ease;
}

.site-footer .footer-logo:hover {
  filter: brightness(1.2);
  transform: scale(1.02);
}

/* Contact info section styling */
.site-footer .contact-info {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.site-footer .contact-info div {
  margin-bottom: 0.5rem;
}

.site-footer .contact-info div:last-child {
  margin-bottom: 0;
}

/* Why steps redesign */
.why-steps .step-card {
  background: #fff;
  border: 1px solid var(--color-slate-200);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.why-steps .step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}
.step-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(47, 111, 237, 0.9),
    rgba(59, 182, 168, 0.9)
  );
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(47, 111, 237, 0.35);
  flex-shrink: 0;
}

/* FAQ Section Styling */
.faq-section .accordion {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.faq-section .accordion-item {
  border: none;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  margin-bottom: 12px;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
}

.faq-section .accordion-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.faq-section .accordion-item:last-child {
  margin-bottom: 0;
}

.faq-section .accordion-button {
  background: linear-gradient(
    135deg,
    rgba(47, 111, 237, 0.05),
    rgba(59, 182, 168, 0.05)
  );
  border: none;
  border-radius: 12px !important;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-slate-900);
  transition: all 0.3s ease;
  position: relative;
  box-shadow: none;
}

.faq-section .accordion-button:not(.collapsed) {
  background: linear-gradient(
    135deg,
    var(--color-primary-600),
    var(--color-teal-500)
  );
  color: #fff;
  box-shadow: 0 4px 12px rgba(47, 111, 237, 0.25);
}

.faq-section .accordion-button:hover {
  background: linear-gradient(
    135deg,
    rgba(47, 111, 237, 0.08),
    rgba(59, 182, 168, 0.08)
  );
  color: var(--color-slate-900);
  transform: translateY(-1px);
}

.faq-section .accordion-button:not(.collapsed):hover {
  background: linear-gradient(
    135deg,
    var(--color-primary-700),
    var(--color-teal-600)
  );
  filter: brightness(1.05);
}

.faq-section .accordion-button:focus {
  border-color: var(--color-primary-600);
  box-shadow: 0 0 0 0.25rem rgba(47, 111, 237, 0.15);
}

.faq-section .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23334155'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transition: transform 0.3s ease;
  width: 1.5rem;
  height: 1.5rem;
}

.faq-section .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transform: rotate(180deg);
}

.faq-section .accordion-collapse {
  border: none;
}

.faq-section .accordion-body {
  padding: 0 24px 24px 24px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-slate-700);
  background: rgba(255, 255, 255, 0.98);
}

.faq-section .accordion-body p {
  margin-bottom: 0;
}

/* FAQ Section Title - removed specific styling to use default gradient-text class */

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  color: #fff;
  text-decoration: none;
  z-index: 1040;
  background-image: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 12px 24px rgba(18, 140, 126, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 32px rgba(18, 140, 126, 0.45);
}
