/* --- Brand: warm page + cool near-black hero, matte sage accent --- */
:root {
  --site-bg-page: #faf9f6;
  --site-bg-dark: #0d1117;
  --site-accent: #c8d8c0;
  --site-accent-hover: #b4c8ac;
  --site-text-muted: #8a9a8a;
  --site-text-soft: #6b8a6b;
  --site-text-body: #3d453d;
  --site-font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --site-font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body.site-body {
  font-family: var(--site-font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  background-color: var(--site-bg-page) !important;
  color: var(--site-text-body);
}

/* 移动端：略增水平内边距，避免内容贴边；尊重刘海屏安全区 */
@media (max-width: 767.98px) {
  body.site-body .container,
  body.site-body .container-fluid {
    --bs-gutter-x: 2rem;
    padding-left: max(
      calc(var(--bs-gutter-x) * 0.5),
      env(safe-area-inset-left, 0px)
    );
    padding-right: max(
      calc(var(--bs-gutter-x) * 0.5),
      env(safe-area-inset-right, 0px)
    );
  }
}

body.site-body .text-secondary {
  color: var(--site-text-muted) !important;
}

main h1,
main .display-4,
main .display-5,
main .display-6 {
  font-family: var(--site-font-serif);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

main h1,
main .display-4 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.site-navbar {
  background-color: var(--site-bg-page) !important;
  height: 100px;
}

/* 移动端折叠菜单：不透明底，避免叠在 Hero 等深色背景上看不清 */
@media (max-width: 767.98px) {
  .site-navbar .navbar-collapse {
    background-color: var(--site-bg-page);
    margin-top: 0.5rem;
    padding: 0.75rem 1rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(61, 69, 61, 0.18);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  }
  .site-navbar .navbar-collapse .nav-link {
    color: var(--site-text-body) !important;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }
  .site-navbar .navbar-collapse .nav-link.nav-active {
    background-color: rgba(200, 216, 192, 0.45);
    border-radius: 0.25rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

.site-section {
  padding-top: clamp(1rem, 2.5vw, 1.75rem);
  padding-bottom: clamp(3.5rem, 10vw, 7.5rem);
}

.site-section-dark {
  background-color: var(--site-bg-dark);
  color: rgba(250, 249, 246, 0.92);
}

.site-section-dark .text-secondary {
  color: rgba(138, 154, 138, 0.95) !important;
}

/* 首页底部深色标语：覆盖 .site-section「上大下小」的 padding，改为上下对称且较矮，文案在色块内视觉居中 */
.home-bottom-banner.site-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

@media (min-width: 1200px) {
  .container {
    max-width: 1160px;
  }
}

@keyframes pageFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  animation: pageFade 0.4s ease;
}

.hero-home {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: clamp(3rem, 10vw, 5rem) 1rem;
  background-image: linear-gradient(
      rgba(13, 17, 23, 0.78),
      rgba(13, 17, 23, 0.9)
    ),
    url("../assets/images/hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero-eyebrow {
  font-family: var(--site-font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 216, 192, 0.95);
  margin-bottom: 1.25rem;
}

.hero-home .hero-title {
  font-family: var(--site-font-serif);
  font-weight: 300;
  font-size: clamp(2.25rem, 5vw, 3.65rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #faf9f6;
}

.hero-home .hero-title-line2 {
  color: var(--site-accent);
}

.hero-home .hero-lead {
  font-family: var(--site-font-sans);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.35vw, 1.1rem);
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: rgba(250, 249, 246, 0.88);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.site-btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--site-accent);
  border: 0.5px solid var(--site-accent);
  padding: 12px 28px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  font-family: var(--site-font-sans);
  border-radius: 0;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.site-btn-hero-primary:hover {
  background: var(--site-accent);
  color: var(--site-bg-dark);
  border-color: var(--site-accent);
}

.site-btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  color: rgba(200, 216, 192, 0.92);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
  font-family: var(--site-font-sans);
  padding: 12px 8px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.site-btn-hero-secondary:hover {
  color: #fff;
}
.site-btn-hero-secondary::after {
  content: " \2192";
}

/* 主导航：小号大写 + 字间距 */
.navbar .nav-link {
  font-family: var(--site-font-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.navbar .nav-link:hover {
  color: var(--site-text-body) !important;
}
.navbar .nav-link:active {
  color: var(--site-text-soft) !important;
}
.nav-link.nav-active {
  font-weight: 500;
  color: var(--site-text-soft) !important;
  border-bottom: none;
}
.nav-link.nav-active:hover {
  color: #4a5c4a !important;
}

.navbar-brand-logo {
  height: 2.125rem;
  width: auto;
  max-width: min(9.5rem, 42vw);
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

/* Language toggle */
.btn-lang-toggle {
  cursor: pointer;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.02em;
  color: #334155;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 2rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn-lang-toggle:hover {
  color: #0f172a;
  border-color: #94a3b8;
  background: #f8fafc;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}
.btn-lang-toggle:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(15, 23, 42, 0.15);
}
.btn-lang-toggle:active {
  transform: translateY(0);
}
.lang-btn-flag {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.lang-flag-icon {
  width: 24px;
  height: auto;
  display: block;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}
.lang-btn-txt {
  line-height: 1.2;
}

footer.border-top.bg-light {
  background-color: #f2f1ec !important;
}

/* Footer: 备案信息一行 + 免责声明单独更小一行 */
.footer-strip-main {
  font-size: 0.875rem;
  line-height: 1.5;
}
.footer-disclaimer {
  font-size: 0.7rem;
  line-height: 1.45;
  max-width: 52rem;
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

/* Service / Why cards: hover lift + shadow */
.card-interactive {
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease;
  will-change: transform;
}
.card-interactive:hover {
  transform: translateY(-10px);
  box-shadow: 0 1.25rem 2.5rem rgba(15, 23, 42, 0.14) !important;
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.card-reveal {
  animation: cardReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.card-reveal-delay-1 {
  animation-delay: 0.06s;
}
.card-reveal-delay-2 {
  animation-delay: 0.12s;
}
.card-reveal-delay-3 {
  animation-delay: 0.18s;
}
.card-reveal-delay-4 {
  animation-delay: 0.24s;
}
.card-reveal-delay-5 {
  animation-delay: 0.3s;
}

.card-icon-wrap {
  width: 3rem;
  height: 3rem;
  transition: background-color 0.28s ease, transform 0.28s ease;
}
.card-icon-wrap i {
  display: inline-block;
  transition: transform 0.28s ease, color 0.28s ease;
}
.card-interactive:hover .card-icon-wrap {
  background-color: #e2e8f0 !important;
  transform: scale(1.04);
}
.card-interactive:hover .card-icon-wrap i {
  transform: scale(1.1);
  color: #0f172a !important;
}

/* Home: 左文右图（重叠配图） */
.home-showcase-section {
  background: linear-gradient(
    180deg,
    var(--site-bg-page) 0%,
    #f0efe8 48%,
    var(--site-bg-page) 100%
  );
}
.text-accent-brand {
  color: var(--site-text-soft) !important;
}
.home-reveal {
  animation: cardReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.home-reveal-delay-1 {
  animation-delay: 0.08s;
}
.home-reveal-delay-2 {
  animation-delay: 0.14s;
}
.home-reveal-delay-3 {
  animation-delay: 0.2s;
}
.home-reveal-delay-4 {
  animation-delay: 0.26s;
}
.home-quote-box {
  background: rgba(200, 216, 192, 0.18);
  border-radius: 0.5rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(107, 138, 107, 0.22);
}
.home-quote-rule {
  height: 2px;
  width: 3rem;
  background: var(--site-accent);
  border-radius: 1px;
}
.home-quote-avatar {
  width: 2.75rem;
  height: 2.75rem;
}
/* 首页：两列拼贴 — 左上/右下文案约 20% 列高，右上/左下图约 80%，非正方形 */
.home-collage {
  display: flex;
  gap: 0.75rem;
  max-width: 520px;
  width: 100%;
  min-height: 360px;
  align-items: stretch;
}
.home-collage-col {
  flex: 1 1 50%;
  min-width: 0;
  display: grid;
  gap: 0.75rem;
  min-height: 0;
}
.home-collage-col-left {
  grid-template-rows: 1fr 4fr;
}
.home-collage-col-right {
  grid-template-rows: 4fr 1fr;
}
.home-collage-tile-text {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.85rem 0.65rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.home-collage-tile-img {
  position: relative;
  min-height: 0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}
.home-collage-tile-img img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}
.home-collage-frame {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.home-collage-frame-tl {
  top: -8px;
  left: -8px;
  width: 72px;
  height: 72px;
  border-top: 3px solid var(--site-accent);
  border-left: 3px solid var(--site-accent);
  border-radius: 4px 0 0 0;
}
.home-collage-frame-br {
  bottom: -8px;
  right: -8px;
  width: 84px;
  height: 84px;
  border-bottom: 3px solid var(--site-accent);
  border-right: 3px solid var(--site-accent);
  border-radius: 0 0 4px 0;
}
.home-collage-label {
  position: relative;
  z-index: 1;
  line-height: 1.35;
  max-width: 95%;
}
@media (max-width: 991.98px) {
  .home-collage {
    margin-top: 0.5rem;
    min-height: 300px;
    max-width: min(100%, 420px);
    gap: 0.65rem;
  }
  .home-collage-col {
    gap: 0.65rem;
  }
}

/* Why 页：数字支撑条 */
.why-stats {
  max-width: 52rem;
}
.why-stat {
  text-align: center;
  padding: 0.75rem 0.5rem;
  border: 1px solid rgba(107, 138, 107, 0.2);
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.65);
}
.why-stat-value {
  font-family: var(--site-font-serif);
  font-weight: 300;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.1;
  color: var(--site-text-body);
  letter-spacing: -0.02em;
}
.why-stat-label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--site-text-muted);
  margin-top: 0.35rem;
  line-height: 1.35;
}

/* Why 页：左侧 FAQ 手风琴 + 右侧双图分栏 */
.why-accordion.accordion {
  --bs-accordion-border-width: 0;
  --bs-accordion-bg: transparent;
  --bs-accordion-active-bg: transparent;
}
.why-accordion {
  --why-accent: rgba(107, 138, 107, 0.45);
  --why-accent-dark: #4a5c4a;
  --why-accent-soft: rgba(200, 216, 192, 0.22);
}
.why-accordion .accordion-item {
  border: 1px solid var(--why-accent);
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #fff;
}
.why-accordion .accordion-item:last-child {
  margin-bottom: 0;
}
.why-accordion .accordion-button {
  font-weight: 600;
  color: #1e293b;
  background-color: #fff;
  box-shadow: none;
  padding: 0.85rem 1rem;
}
.why-accordion .accordion-button:not(.collapsed) {
  background-color: var(--why-accent-soft);
  color: var(--why-accent-dark);
}
.why-accordion .accordion-button::after {
  filter: brightness(0) saturate(100%) invert(52%) sepia(12%) saturate(400%)
    hue-rotate(58deg);
  opacity: 0.55;
}
.why-accordion .accordion-button:not(.collapsed)::after {
  filter: brightness(0) saturate(100%) invert(38%) sepia(18%) saturate(500%)
    hue-rotate(58deg);
  opacity: 1;
}
.why-accordion .accordion-body {
  border-top: 1px solid rgba(107, 138, 107, 0.28);
  padding: 1rem 1.15rem;
  background: #fff;
}
.why-split-gallery {
  min-height: 280px;
}
.why-split-panel {
  min-height: 260px;
}
.why-split-img {
  min-height: 260px;
  object-fit: cover;
  display: block;
}
@media (max-width: 991.98px) {
  .why-split-gallery {
    min-height: 220px;
  }
  .why-split-panel,
  .why-split-img {
    min-height: 200px;
  }
}

/* Services 页：卡片 — 哑光绿描边与悬停 */
.service-card .card-icon-wrap {
  color: var(--site-text-soft);
}
.service-card {
  border: 1px solid rgba(107, 138, 107, 0.25);
  box-shadow: none;
  background: #fff;
  transition: border-color 0.4s ease, box-shadow 0.45s ease,
    transform 0.35s ease;
}
.service-card:hover {
  border-color: rgba(107, 138, 107, 0.45) !important;
  box-shadow: 0 14px 42px rgba(61, 69, 61, 0.1) !important;
  transform: translateY(-5px);
}
.service-card-title {
  display: inline-block;
  position: relative;
}
.service-card-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: var(--site-text-soft);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-card-title::after {
  width: 100%;
}
.service-card:hover .card-icon-wrap {
  background-color: rgba(200, 216, 192, 0.28) !important;
  transform: scale(1.04);
}
.service-card:hover .card-icon-wrap i {
  transform: scale(1.08);
  color: var(--site-text-soft) !important;
}

