/* ========================================
   BOAC 蓝海艺创 - Design System (Pico-inspired)
   ======================================== */

/* Inter — loaded via <link rel="preload"> in HTML head */

:root {
  /* Brand Colors — from BOAC VI & Logo DNA */
  --boac-navy: #2F3188;         /* VI PANTONE P 99-8C: titles / dark sections */
  --boac-indigo: #3741FC;       /* VI PANTONE 2727 C: accent / gradients */
  --boac-blue: #00A2E9;         /* VI PANTONE 112-8 C: primary CTA / links */
  --boac-bright-blue: #00B4F0;  /* Logo sphere bright mid-tone */
  --boac-cyan: #33C5FF;         /* Logo sphere highlight */
  --boac-light-blue: #7DD7FF;   /* Light cyan */
  --boac-sky: #E8F7FF;          /* Cyan-tinted sky */
  --boac-pale: #F0FAFF;         /* Pale cyan */
  --boac-ice: #F5FCFF;          /* Ice cyan */

  /* Neutrals — cool grey to match navy-blue tone */
  --white: #FFFFFF;
  --gray-50: #F7F8FC;
  --gray-100: #EEF0F7;
  --gray-200: #DDE1EC;
  --gray-300: #C7CFD9;          /* VI auxiliary grey-blue */
  --gray-400: #8E99AD;
  --gray-500: #5E6880;
  --gray-600: #3E4660;
  --gray-700: #262B40;
  --gray-800: #1A1E2E;
  --gray-900: #101224;

  /* Semantic */
  --text-primary: var(--gray-800);
  --text-secondary: var(--gray-500);
  --text-muted: var(--gray-400);
  --bg-primary: var(--white);
  --bg-secondary: var(--gray-50);
  --bg-tertiary: var(--gray-100);
  --border-color: var(--gray-200);
  --accent: var(--boac-blue);
  --accent-hover: var(--boac-navy);
  --accent-light: rgba(0, 162, 233, 0.12);

  /* Section seam system — dark blocks fade their edges into the page
     background so light/dark boundaries are soft. In light mode the fade
     resolves to white; in dark mode it merges into the dark page (invisible). */
  --grad-dark: linear-gradient(160deg, var(--boac-navy) 0%, var(--boac-indigo) 50%, #1e4a7e 100%);
  --seam-fade: 52px;

  /* Typography — Inter-first for international aesthetic */
  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-display: "Inter", var(--font-sans);
  --font-body: var(--font-sans);

  /* Spacing Scale — generous breathing room */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-28: 7rem;
  --space-32: 8rem;
  --space-40: 10rem;

  /* Layout — wider container, more whitespace */
  --container: 1320px;
  --header-height: 80px;
  --section-padding-y: 8rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(47, 49, 136, 0.04);
  --shadow-md: 0 4px 12px rgba(47, 49, 136, 0.08);
  --shadow-lg: 0 12px 32px rgba(47, 49, 136, 0.12);
  --shadow-xl: 0 24px 64px rgba(47, 49, 136, 0.16);
  --shadow-glow: 0 0 40px rgba(0, 162, 233, 0.22);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 800ms;
}

/* Dark theme */
[data-theme="dark"] {
  --text-primary: #F0F2FA;
  --text-secondary: #9AA4B8;
  --text-muted: #6B7890;
  --bg-primary: #101224;
  --bg-secondary: #161A2C;
  --bg-tertiary: #1E2338;
  --border-color: rgba(255, 255, 255, 0.08);
  --accent: #33C5FF;
  --accent-hover: #7DD7FF;
  --accent-light: rgba(0, 162, 233, 0.18);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.5);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  font-size: 1.125rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--duration-normal) var(--ease-out),
              color var(--duration-normal) var(--ease-out);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ========================================
   Utilities
   ======================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-8);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-12);
  }
}

.section {
  padding: var(--section-padding-y) 0;
}

/* Full-viewport sections for anchor pages */
#about,
#insights {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Contact page: let content define height, avoid extra blank space after map removal */
.contact-page #contact {
  min-height: auto;
  display: block;
}

/* #works needs block layout so header + scroll area stack vertically */
#works {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

#home {
  padding-top: var(--header-height);
  padding-bottom: 0;
}

#contact {
  padding-top: calc(var(--header-height) + var(--space-4));
  padding-bottom: var(--space-8);
}

#about,
#works,
#insights {
  padding-top: calc(var(--header-height) + var(--space-6) - 30px);
  padding-bottom: var(--space-6);
}

/* 减少“为什么选择蓝海艺创”版块上下空白，同时保持内容居中 */
#about {
  min-height: auto;
  padding-top: calc(var(--header-height) + var(--space-8));
  padding-bottom: var(--space-10);
}

#home > .container,
#about > .container,
#works > .container,
#insights > .container,
#contact > .container {
  width: 100%;
}

.section-header {
  max-width: 780px;
  margin: 0 auto var(--space-10);
  text-align: center;
}

.section-title {
  margin-bottom: calc(var(--space-4) * 1.75);
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-tertiary {
  background-color: var(--bg-tertiary);
}
.highlights-section {
  position: relative;
  background:
    radial-gradient(620px circle at 86% -6%, rgba(0, 162, 233, 0.06), rgba(0, 162, 233, 0) 58%),
    radial-gradient(720px circle at 4% 104%, rgba(47, 49, 136, 0.04), rgba(47, 49, 136, 0) 60%),
    linear-gradient(180deg, #EAF1FF 0%, #F5F9FF 48%, var(--bg-primary) 100%);
  color: var(--text-primary);
  padding-top: calc(var(--space-8) + 44px);
  padding-bottom: calc(var(--space-10) + 112px);
}

.highlights-section .section-header {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

.highlights-section .section-label {
  color: #00A2E9;
  text-transform: none;
}

.highlights-section .section-desc {
  color: var(--text-secondary);
  max-width: 640px;
  margin: 18px auto 48px;
  white-space: nowrap;
}

.highlights-section .feature-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(47, 49, 136, 0.08);
  border-radius: var(--radius-xl);
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: 0 4px 24px rgba(47, 49, 136, 0.06);
}

.highlights-section .feature-card:hover {
  background: #FFFFFF;
  border-color: rgba(0, 162, 233, 0.40);
  transform: translateY(-6px);
  box-shadow: 0 22px 52px rgba(0, 162, 233, 0.18);
}

.highlights-section .feature-icon {
  background: linear-gradient(135deg, #00A2E9, #33C5FF);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 162, 233, 0.22);
}

.highlights-section .feature-title {
  color: #1A1E2E;
  font-weight: 600;
}

.highlights-section .feature-desc {
  color: #5E6880;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: rgba(0, 162, 233, 0.12);
  border: 1px solid rgba(0, 162, 233, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--boac-cyan);
  transition: all var(--duration-fast) var(--ease-out);
}

.highlights-section .feature-card:hover .feature-tag {
  background: rgba(0, 162, 233, 0.18);
  border-color: rgba(0, 162, 233, 0.4);
}

/* Stats & feature cards inside highlights — light theme */
.highlights-section .stat-item {
  background: #FFFFFF;
  border: 1px solid rgba(0, 162, 233, 0.10);
  box-shadow: 0 2px 8px rgba(47, 49, 136, 0.04);
}
.highlights-section .stat-value { color: #00A2E9; }
.highlights-section .stat-label { color: #5E6880; }

/* Highlights single-column layout */
.highlights-section .features-grid {
  grid-template-columns: 1fr;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .highlights-section .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .highlights-section .features-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: none;
  }
}

/* Typography — Pico-inspired international scale */
.heading-hero {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.3vw, 2.65rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.heading-md {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.text-display {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

.text-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.text-body-lg {
  font-size: 1.25rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.text-lead {
  font-size: 1.375rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--text-secondary);
}

.text-small {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.accent-text {
  color: var(--accent);
}

/* Section Header — clean & understated */
.section-header {
  max-width: 780px;
  margin: 0 auto var(--space-10);
  text-align: center;
}

.section-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.section-title {
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* Buttons — clean, minimal */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--boac-navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--boac-indigo);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: var(--space-2) 0;
  font-weight: 500;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-white {
  background: var(--white);
  color: var(--boac-navy);
  font-weight: 600;
}

.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
}

/* Cards */
.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-body {
  padding: var(--space-6);
}

.glass-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .glass-card {
  background: rgba(20, 37, 54, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: all var(--duration-normal) var(--ease-out);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: var(--shadow-sm);
  height: 72px;
}

[data-theme="dark"] .header.scrolled {
  background: rgba(10, 22, 34, 0.92);
}

/* 深色模式滚动后：背景已变深，logo 应继续用白色版本，避免蓝字压深底看不清 */
[data-theme="dark"] .header.scrolled .logo-dark {
  display: none;
}

[data-theme="dark"] .header.scrolled .logo-light {
  display: block;
  filter: brightness(1.15) contrast(1.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.logo img {
  height: 48px;
  width: auto;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.logo-dark,
.logo-light {
  display: block;
}

/* 深色背景上的 logo 提亮，让白色文字更醒目 */
.logo-light {
  filter: brightness(1.15) contrast(1.05);
}

.logo-dark {
  display: none;
}

.header.scrolled .logo-dark {
  display: block;
}

.header.scrolled .logo-light {
  display: none;
}

.logo-text {
  display: none;
}

@media (min-width: 640px) {
  .logo-text {
    display: block;
  }
}

.nav {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
  }
}

.nav-link {
  position: relative;
  padding: var(--space-2) var(--space-4);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
  letter-spacing: -0.01em;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: var(--space-4);
  right: var(--space-4);
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
}

.theme-toggle:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.theme-toggle .icon-moon,
[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

.theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* Header Phone Button */
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-out);
  letter-spacing: 0.02em;
}

.header-phone:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 162, 233, 0.35);
}

.header-phone svg {
  flex-shrink: 0;
}

/* Desktop only: show phone in nav */
@media (min-width: 1024px) {
  .header-phone {
    display: inline-flex;
  }
}

/* Mobile: show phone in mobile menu too */
.mobile-menu .header-phone {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: var(--space-3);
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--space-2);
  border-radius: var(--radius-md);
}

.mobile-menu-btn:hover {
  background: var(--accent-light);
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg-primary);
  padding-top: calc(var(--header-height) + var(--space-6));
  padding-bottom: var(--space-8);
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: all var(--duration-normal) var(--ease-out);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.mobile-menu .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-menu .nav-link {
  font-size: 1.25rem;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
}

.mobile-menu .header-actions {
  margin-top: var(--space-6);
  justify-content: flex-start;
}

/* ========================================
   Breadcrumb
   ======================================== */
.breadcrumb {
  padding: var(--space-4) 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.breadcrumb-list a:hover {
  color: var(--accent);
}

.breadcrumb-list .sep {
  color: var(--text-muted);
}

.breadcrumb-list .current {
  color: var(--text-primary);
  font-weight: 500;
}

/* ========================================
   Hero — Pico-inspired: bold, clean, minimal
   ======================================== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  padding-bottom: var(--space-32);
  overflow: hidden;
  background:
    linear-gradient(to top, rgba(255,255,255,0.04) 0%, transparent 36px),
    linear-gradient(160deg, var(--boac-navy) 0%, #1e4a7e 35%, var(--boac-indigo) 70%, var(--boac-blue) 100%);
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Hero Background Slideshow */
.hero-slideshow {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background:
    linear-gradient(
      160deg,
      rgba(10, 22, 60, 0.88) 0%,
      rgba(15, 32, 78, 0.80) 35%,
      rgba(30, 50, 100, 0.74) 70%,
      rgba(12, 28, 66, 0.72) 100%
    ),
    rgba(8, 18, 50, 0.6);
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  animation: float 24s infinite ease-in-out;
}

.hero-shape-1 {
  width: 700px;
  height: 700px;
  top: -180px;
  right: -120px;
  animation-delay: 0s;
}

.hero-shape-2 {
  width: 450px;
  height: 450px;
  bottom: -80px;
  left: -80px;
  animation-delay: -8s;
}

.hero-shape-3 {
  width: 250px;
  height: 250px;
  top: 45%;
  left: 55%;
  transform: translate(-50%, -50%);
  animation-delay: -16s;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 960px;
  padding: 0 var(--space-6);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3.25vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-8);
  color: var(--white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.hero-desc {
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  line-height: 1.65;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-12);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll .mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  position: relative;
}

.hero-scroll .mouse::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-full);
  animation: scrollWheel 2s infinite;
}

/* Page Hero — clean secondary hero */
.page-hero {
  position: relative;
  padding: calc(var(--header-height) + var(--space-20)) 0 var(--space-20);
  background: linear-gradient(165deg, #E8F7FF 0%, #F0FAFF 35%, #F5FCFF 70%, #FFFFFF 100%);
  color: var(--gray-800);
  text-align: center;
  overflow: hidden;
}

.page-hero .hero-shape {
  background: rgba(0, 162, 233, 0.06);
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: var(--space-5);
}

.page-hero-desc {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* ========================================
   Animations
   ======================================== */
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

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

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 160, 233, 0.2); }
  50% { box-shadow: 0 0 40px rgba(0, 160, 233, 0.4); }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ========================================
   Feature Cards — clean, minimal
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) and (max-width: 1023px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 220px));
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .features-grid {
    gap: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-left: auto;
    margin-right: auto;
  }
}

.feature-card {
  position: relative;
  padding: var(--space-4) var(--space-4) var(--space-5);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00A2E9, #33C5FF);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 162, 233, 0.22);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* ========================================
   Services
   ======================================== */
.service-card {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--border-color);
}

.service-card:last-child {
  border-bottom: none;
}

@media (min-width: 1024px) {
  .service-card {
    grid-template-columns: 1fr 1fr;
    padding: var(--space-16) 0;
  }

  .service-card:nth-child(even) .service-content {
    order: 2;
  }
}

.service-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--boac-sky), var(--boac-pale));
}

.service-visual .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.service-visual .placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.4;
}

.service-number {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--boac-blue);
  margin-bottom: var(--space-3);
}

.service-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.service-desc {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.service-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: 0.6em;
  background: var(--accent);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.service-related {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px dashed var(--border-color);
}

.service-related + .service-related {
  margin-top: var(--space-4);
  padding-top: 0;
  border-top: none;
}

.service-related-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--text-secondary) 72%, transparent);
  margin-bottom: var(--space-3);
}

.service-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.service-related-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.42em 0.9em;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--boac-blue);
  background: color-mix(in srgb, var(--boac-blue) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--boac-blue) 35%, transparent);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.service-related-links a::after {
  content: '\2192';
  font-size: 0.95em;
  opacity: 0.65;
}

.service-related-links a:hover {
  background: var(--boac-navy);
  color: #fff;
  border-color: var(--boac-navy);
  transform: translateY(-1px);
}

.service-related-links a:hover::after {
  opacity: 0.9;
}

/* ========================================
   Works Horizontal Scroll Gallery — Pico-style
   ======================================== */
.works-section {
  position: relative;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: var(--space-20);
}

.works-section .section-header {
  padding: 0 var(--space-6);
  margin-bottom: var(--space-4);
  transform: translateY(-20px);
}

@media (min-width: 768px) {
  .works-section .section-header {
    padding: 0 var(--space-8);
  }
}

@media (min-width: 1024px) {
  .works-section .section-header {
    padding: 0 var(--space-12);
  }
}

/* Wrapper — block container with side padding to reserve space for arrows */
.works-scroll-wrapper {
  margin-top: var(--space-4);
  position: relative;
  padding: 0 52px;
}

/* Progress bar stays absolutely positioned within the wrapper */
.works-progress {
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  z-index: 10;
  overflow: hidden;
}

.works-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--boac-blue), var(--boac-indigo));
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.1s linear;
}

/* Navigation arrows — absolute positioned within .works-section (which has normal viewport width) */
.works-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 1 !important;
  visibility: visible !important;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-lg);
}

.works-nav.disabled,
.works-nav[aria-disabled="true"] {
  opacity: 0.3 !important;
  pointer-events: none;
  cursor: default;
}

.works-nav:hover:not(.disabled):not([aria-disabled="true"]) {
  background: var(--boac-navy);
  color: var(--white);
  border-color: var(--boac-navy);
  transform: translateY(-50%) scale(1.08);
}

/* Arrow positions — fixed distance from section edges */
.works-nav-prev { left: 8px; }
.works-nav-next { right: 8px; }

@media (min-width: 768px) {
  .works-nav-prev { left: 16px; }
  .works-nav-next { right: 16px; }
}

@media (min-width: 1024px) {
  .works-nav-prev { left: 24px; }
  .works-nav-next { right: 24px; }
}

/* Scrollable track — full-width horizontal scroll container */
.works-track {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-4) 0 var(--space-6);
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.works-track::-webkit-scrollbar {
  display: none;
}

.works-track.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.works-track.dragging .work-slide,
.works-track.dragging .work-slide-link {
  pointer-events: none;
}

@media (min-width: 768px) {
  .works-track {
    gap: var(--space-5);
  }
}

@media (min-width: 1024px) {
  .works-track {
    /* padding handled by wrapper */
  }
}

/* Individual slide card */
.work-slide {
  position: relative;
  flex: 0 0 85vw;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

.work-slide-link {
  display: flex;
  flex: 0 0 85vw;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
}

.work-slide-link .work-slide {
  flex: 1 1 auto;
}

@media (min-width: 600px) {
  .works-track {
    gap: 16px;
  }
  .work-slide {
    flex: 0 0 calc((100% - 32px) / 3);
    width: calc((100% - 32px) / 3);
    max-width: none;
    min-width: 0;
  }
  .work-slide-link {
    flex: 0 0 calc((100% - 32px) / 3);
    width: calc((100% - 32px) / 3);
    max-width: none;
    min-width: 0;
  }
}

@media (min-width: 768px) {
  .work-slide {
    flex: 0 0 calc((100% - 40px) / 3);
    width: calc((100% - 40px) / 3);
  }
  .work-slide-link {
    flex: 0 0 calc((100% - 40px) / 3);
    width: calc((100% - 40px) / 3);
  }
}

.work-slide:hover,
.work-slide-link:hover .work-slide {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Slide media area */
.work-slide-media {
  position: relative;
  aspect-ratio: 16 / 8.4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--boac-sky), var(--boac-pale));
}

.work-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slower) var(--ease-out);
}

.work-slide:hover .work-slide-media img,
.work-slide-link:hover .work-slide-media img {
  transform: scale(1.04);
}

.work-slide-media .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.25;
}

.work-slide-media .placeholder svg {
  width: 64px;
  height: 64px;
}

/* Gradient overlay on media */
.work-slide-media::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(
    to top,
    rgba(10, 30, 90, 0.75) 0%,
    rgba(20, 40, 100, 0.35) 40%,
    transparent 100%
  );
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.work-slide:hover .work-slide-media::after,
.work-slide-link:hover .work-slide-media::after {
  opacity: 0.9;
}

/* Slide content below media */
.work-slide-content {
  padding: var(--space-2) var(--space-5) var(--space-3);
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  transition: background var(--duration-normal) var(--ease-out);
}

[data-theme="dark"] .work-slide-content {
  background: var(--bg-secondary);
}

.work-slide-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.work-slide-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.work-slide-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: var(--space-3);
}

.work-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: gap var(--duration-fast) var(--ease-out);
}

.work-slide:hover .work-slide-cta,
.work-slide-link:hover .work-slide-cta {
  gap: var(--space-3);
}

/* Dots indicator */
.works-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
  padding: 0 var(--space-6);
}

.works-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--border-color);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--duration-fast) var(--ease-out);
}

.works-dot:hover {
  background: var(--text-muted);
}

.works-dot.active {
  background: var(--accent);
  width: 32px;
}

/* Responsive: stack vertically on small mobile */
@media (max-width: 480px) {
  .works-track {
    flex-direction: column;
    gap: var(--space-6);
    overflow-x: hidden;
    scroll-snap-type: none;
    padding: 0 var(--space-6);
  }

  .work-slide {
    flex: none;
    max-width: 100%;
    scroll-snap-align: none;
  }

  .works-nav {
    display: none;
  }

  .works-progress {
    display: none;
  }

  .works-dots {
    display: none;
  }
}

/* ========================================
   Cases (legacy, kept for detail pages)
   ======================================== */
.case-filters,
.news-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.filter-btn {
  padding: var(--space-2) var(--space-5);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* Enhanced active state - clear visual highlight */
.filter-btn.active {
  background: var(--boac-navy);
  border-color: var(--boac-navy);
  box-shadow: 0 2px 8px rgba(15, 40, 78, 0.25);
  font-weight: 600;
}

/* Case card filtering transitions */
.case-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  transition: opacity 0.35s ease, transform 0.35s ease, grid-auto-rows 0.35s ease;
}

.case-card.filter-hidden,
.news-card.filter-hidden {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
  grid-row: 1 / span 1;
}

.case-card.filter-visible,
.news-card.filter-visible {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
  position: relative;
}

.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  min-height: 500px;
  transition: min-height 0.4s ease, gap 0.4s ease;
}

@media (min-width: 640px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
    min-height: 400px;
    gap: var(--space-5);
  }
}

/* Show 3 columns from 900px+ */
@media (min-width: 900px) {
  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    min-height: 550px;
  }
}

@media (min-width: 1280px) {
  .cases-grid {
    gap: var(--space-6);
    min-height: 600px;
  }
}

.case-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  transition: all var(--duration-normal) var(--ease-out);
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.case-image {
  position: relative;
  aspect-ratio: 4 / 2.65;
  overflow: hidden;
  background: linear-gradient(135deg, var(--boac-sky), var(--boac-pale));
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.case-card:hover .case-image img {
  transform: scale(1.06);
}

.case-category {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background: var(--boac-blue);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 162, 233, 0.3);
}

.case-body {
  padding: var(--space-4) var(--space-6) 2px;
}

.case-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.case-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ========================================
   Cases Page — compact layout for single-screen fit
   ======================================== */
.cases-page .page-hero {
  padding: calc(var(--header-height) + var(--space-10)) 0 var(--space-10);
}

.cases-page .page-hero-title {
  font-size: clamp(1.125rem, 2.666vw, 2rem);
  margin-bottom: var(--space-3);
}

.cases-page .page-hero-desc {
  font-size: 1rem;
  line-height: 1.4;
}

.cases-page .breadcrumb {
  padding: var(--space-2) 0;
}

/* ========================================
   News Page — match cases page hero spacing
   ======================================== */
.news-page .page-hero {
  padding: calc(var(--header-height) + var(--space-10)) 0 var(--space-10);
}

.news-page .page-hero-title {
  font-size: clamp(1.125rem, 2.666vw, 2rem);
  margin-bottom: var(--space-3);
}

.news-page .page-hero-desc {
  font-size: 1rem;
  line-height: 1.4;
}

/* ========================================
   Contact Page — match news/cases page hero title size
   ======================================== */
.contact-page .page-hero {
  padding: calc(var(--header-height) + var(--space-10)) 0 var(--space-10);
}

.contact-page #contact {
  padding-top: var(--space-6);
}

.contact-page .page-hero-title {
  font-size: clamp(1.125rem, 2.666vw, 2rem);
  margin-bottom: var(--space-3);
}

.contact-page .page-hero-desc {
  font-size: 1rem;
  line-height: 1.4;
}

.news-page .section {
  padding: var(--space-6) 0;
}

.cases-page .section {
  padding: var(--space-6) 0;
}

.cases-page .section-header {
  margin-bottom: var(--space-5);
}

.cases-page .section-title {
  font-size: clamp(1rem, 2.2vw, 1.75rem);
  margin-bottom: var(--space-3);
}

.cases-page .case-filters {
  margin-bottom: var(--space-5);
}

.cases-page .cases-grid {
  gap: var(--space-6);
  padding-bottom: var(--space-16);
  transition: min-height 0.4s ease, padding-bottom 0.4s ease;
}

@media (min-width: 640px) {
  .cases-page .cases-grid {
    gap: var(--space-6);
  }
}

@media (min-width: 900px) {
  .cases-page .cases-grid {
    gap: var(--space-6);
  }
}

.cases-page .case-image {
  aspect-ratio: 4 / 3;
}

.cases-page .case-body {
  padding: var(--space-4) var(--space-5);
}

.cases-page .case-title {
  font-size: 1.125rem;
  margin-bottom: var(--space-2);
}

.cases-page .case-meta {
  font-size: 0.875rem;
}

/* Case Detail */
.case-detail-hero {
  position: relative;
  padding: var(--space-4) 0 var(--space-4);
  background: var(--bg-secondary);
}

.case-detail-content {
  max-width: 840px;
  margin: 0 auto;
}

.case-detail-content .news-detail-body {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.case-detail-content .news-detail-body h2 {
  font-size: 1.25rem;
  margin: var(--space-5) 0 var(--space-2);
}

.case-detail-content .news-detail-body p {
  margin-bottom: 0;
}

.case-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-color);
}

.case-detail-meta dt {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.case-detail-meta dd {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Case Gallery — Carousel showing 3 cards, scroll for more */
.case-gallery-section {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-color);
}

.case-gallery-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: var(--space-5) 0 var(--space-2);
}

.case-gallery-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.case-gallery-row {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;           /* Firefox */
  padding-bottom: var(--space-4);
  flex: 1;
}

.case-gallery-row::-webkit-scrollbar {
  display: none;                   /* Chrome / Safari */
}

.case-gallery-row .case-gallery-item {
  flex: 0 0 calc(33.333% - var(--space-5) * 2 / 3);
  scroll-snap-align: start;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-out);
}

.case-gallery-row .case-gallery-item:hover {
  transform: scale(1.03);
}

.case-gallery-row .case-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

/* Gallery arrows */
.case-gallery-arrow {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.case-gallery-arrow:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.case-gallery-arrow:active {
  transform: scale(0.92);
}

.case-gallery-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

.case-gallery-arrow:disabled:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--border-color);
  box-shadow: none;
}

/* Mini-carousel for case cards (homepage + cases page) */
/* ========================================
   Case Image Carousel — Manual L/R Navigation
   Shows images in groups of 3, arrow + swipe
   ======================================== */
.mini-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

/* Track: all slides stacked, only one visible at a time */
.mini-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Each slide fills the container, stacked via absolute positioning */
.carousel-slide-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.carousel-slide-wrap.active {
  opacity: 1;
  z-index: 2;
}

.carousel-slide-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Arrows hidden — auto-play mode */
.carousel-arrow,
.carousel-counter {
  display: none !important;
}

.carousel-arrow:hover {
  background: var(--boac-blue);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0, 162, 233, 0.35);
  transform: translateY(-50%) scale(1.08);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-arrow svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.carousel-arrow-prev {
  left: var(--space-2);
}

.carousel-arrow-next {
  right: var(--space-2);
}

/* Show arrows on hover (desktop) or always (mobile) */
.case-card:hover .carousel-arrow,
.mini-carousel:hover .carousel-arrow {
  opacity: 1;
}

/* Page indicator dots — repositioned for manual carousel */
.mini-carousel-dots {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 5;
  pointer-events: auto;
}

.mini-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.5);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  border: none;
  padding: 0;
}

.mini-carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.mini-carousel-dot.active {
  background: var(--boac-blue);
  transform: scale(1.25);
  box-shadow: 0 0 6px rgba(0, 162, 233, 0.5);
}

/* Disabled arrow state — kept for potential future use */
.carousel-arrow.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .case-gallery-row .case-gallery-item {
    flex: 0 0 calc(50% - var(--space-5) / 2);
  }
}

@media (max-width: 640px) {
  .case-gallery-row .case-gallery-item {
    flex: 0 0 85%;
  }

  .case-gallery-arrow {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 12, 30, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightbox-fade-in 0.25s ease;
}

@keyframes lightbox-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: lightbox-zoom 0.3s ease;
}

@keyframes lightbox-zoom {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  backdrop-filter: blur(4px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-close {
  top: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  font-size: 28px;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  font-size: 32px;
  line-height: 1;
}

.lightbox-prev { left: var(--space-6); }
.lightbox-next { right: var(--space-6); }

.lightbox-counter {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .lightbox-close { top: var(--space-4); right: var(--space-4); width: 40px; height: 40px; font-size: 24px; }
  .lightbox-prev, .lightbox-next { width: 44px; height: 44px; font-size: 26px; }
  .lightbox-prev { left: var(--space-3); }
  .lightbox-next { right: var(--space-3); }
}

/* ========================================
   News
   ======================================== */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.news-image {
  aspect-ratio: 16 / 9;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--duration-slow) var(--ease-out);
}

.news-card:hover .news-image img {
  transform: scale(1.04);
}

.news-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-6) var(--space-8);
}

.news-date {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.news-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.news-excerpt {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-5);
  flex: 1;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
}

.news-link:hover {
  gap: var(--space-3);
}

/* ========================================
   News Carousel — two items per view, horizontal scroll
   ======================================== */
.news-carousel-wrapper {
  position: relative;
  margin-top: var(--space-4);
}

/* Gradient fade indicators for horizontal scroll */
.news-carousel-wrapper::before,
.news-carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  z-index: 5;
  pointer-events: none;
}

.news-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.news-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.news-carousel-track {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: var(--space-5);
  padding: 0 var(--space-4);
  height: 320px;
  width: 100%;
}

.news-carousel-track::-webkit-scrollbar {
  display: none;
}

.news-slide {
  position: relative;
  flex: 0 0 47%;
  min-width: 47%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 0 1px var(--border-color);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.news-slide:hover {
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-color);
}

/* Slide media (top) */
.news-slide-media {
  position: relative;
  flex: 0 0 120px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--boac-sky), var(--boac-pale));
}

.news-slide-media .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.2;
}

.news-slide-media .placeholder svg {
  width: 48px;
  height: 48px;
}

/* Slide body (bottom) */
.news-slide-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 1 auto;
  padding: var(--space-4) var(--space-5);
}

.news-slide-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-2);
  letter-spacing: 0.02em;
}

.news-slide-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-slide-excerpt {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-slide-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--duration-fast) var(--ease-out);
}

.news-slide-link:hover {
  gap: var(--space-3);
  color: var(--boac-navy);
}

/* Navigation arrows */
.news-nav {
  position: absolute;
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-md);
  top: 50%;
  transform: translateY(-50%);
}

.news-carousel-wrapper:hover .news-nav {
  opacity: 1;
  visibility: visible;
}

.news-nav:hover {
  background: var(--boac-navy);
  color: var(--white);
  border-color: var(--boac-navy);
}

.news-nav-prev { left: var(--space-3); }
.news-nav-next { right: var(--space-3); }

.news-nav-prev:hover,
.news-nav-next:hover {
  transform: translateY(-50%) scale(1.08);
}

@media (max-width: 767px) {
  .news-carousel-track {
    height: 360px;
    gap: var(--space-4);
    padding: 0 var(--space-3);
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
  }

  .news-slide {
    flex: 0 0 82%;
    min-width: 82%;
  }

  .news-slide-body {
    padding: var(--space-4) var(--space-5);
  }

  .news-slide-media {
    flex: 0 0 140px;
  }

  .news-nav {
    display: none;
  }

  .news-carousel-wrapper::before,
  .news-carousel-wrapper::after {
    display: none;
  }
}

/* Dots indicator */
.news-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.news-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--border-color);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--duration-fast) var(--ease-out);
}

.news-dot:hover {
  background: var(--text-muted);
}

.news-dot.active {
  background: var(--accent);
  width: 32px;
}
.news-detail-content {
  max-width: 780px;
  margin: 0 auto;
  padding: var(--space-12) 0;
}

.news-detail-header {
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border-color);
}

.news-detail-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-5);
}

.news-detail-body {
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.news-detail-body p {
  margin-bottom: var(--space-5);
}

.news-detail-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: var(--space-10) 0 var(--space-4);
}

.news-detail-body ul {
  list-style: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-5);
}

.news-detail-body li {
  margin-bottom: var(--space-2);
}

/* ========================================
   About Page
   ======================================== */
.about-intro {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 1024px) {
  .about-intro {
    grid-template-columns: 1fr 1fr;
  }
}

.about-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-8);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) + 5px);
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.timeline-year {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-1);
}

.timeline-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.team-card {
  text-align: center;
  padding: var(--space-6);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  transition: all var(--duration-normal) var(--ease-out);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--boac-sky), var(--boac-pale));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 2rem;
  font-weight: 600;
}

.team-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--text-primary);
}

.team-role {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ========================================
   Values Grid
   ======================================== */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

.value-card {
  padding: var(--space-8) var(--space-6);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
}

.value-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.value-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ========================================
   Stats Grid
   ======================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
  padding: var(--space-4) var(--space-3);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  position: relative;
  background: var(--grad-dark);
  color: var(--white);
  padding: var(--space-28) 0;
  text-align: center;
  overflow: hidden;
}

/* Clean top/bottom edge transitions */
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.06), transparent);
  pointer-events: none;
  z-index: 1;
}

/* CTA → Footer: both dark blue, no fade needed — remove ::after */

.cta-section .hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cta-section .hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  animation: float 24s infinite ease-in-out;
}

.cta-section .hero-shape-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
}

.cta-section .hero-shape-2 {
  width: 350px;
  height: 350px;
  bottom: -80px;
  left: -80px;
  animation-delay: -8s;
}

.cta-title {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.3vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: var(--space-5);
}

.cta-desc {
  position: relative;
  z-index: 2;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-10);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--boac-cyan);
  margin-bottom: var(--space-4);
  display: inline-block;
}

.cta-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  position: relative;
  background: linear-gradient(180deg, var(--boac-navy) 0%, #1e4a7e 100%);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-10) 0 var(--space-5);
}

/* Footer — CTA above is also dark blue, clean edge, no fade needed */

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
}

.footer-grid .footer-links {
  align-items: center;
}

/* .footer-brand p { ... } removed: brand column no longer used */

.footer-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--duration-fast) var(--ease-out);
}

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

/* Footer follow-us QR block */
.footer-follow .qr-wrap {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-3);
}

.footer-follow .qr-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.footer-follow .qr-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.2;
}

.footer-follow .qr-code {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.footer-follow .qr-code:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-lg);
}

.footer-follow .footer-links {
  margin-bottom: var(--space-3);
}

.footer-hashtag {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: var(--space-2);
  letter-spacing: 0.02em;
}

.footer-hashtag strong {
  color: var(--boac-sky);
  font-weight: 600;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .footer-follow {
    text-align: center;
  }

  .footer-follow .qr-wrap {
    align-items: center;
  }
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-6) 0 0;
  margin-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* ========================================
   Contact
   ======================================== */
.contact-grid {
  display: grid;
  gap: calc(var(--space-5) * 2);
  transform: scale(0.8333);
  transform-origin: top center;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 5fr 7fr;
  }
}

.contact-info-card,
.contact-form {
  height: 100%;
}

.contact-info-card {
  padding: calc(var(--space-8) * 0.8 - 10px);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  height: auto;
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
}

.contact-info-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: calc(var(--space-6) * 0.75);
}

/* 新版联系方式卡片 */
.contact-guide-text {
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  font-weight: 600;
  color: var(--boac-blue);
  margin-bottom: calc(var(--space-6) * 0.75);
  line-height: 1.45;
  margin-top: var(--space-4);
}

.contact-info-sub {
  display: block;
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 1px;
}

.contact-trust-badge {
  display: inline-block;
  margin-top: calc(var(--space-5) * 0.75);
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(0, 162, 233, 0.14), rgba(51, 197, 255, 0.10));
  border-left: 3px solid var(--boac-blue);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  color: #1A3A5C;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.required-mark {
  color: #E53E3E;
  font-weight: 700;
  margin-left: 2px;
}

.optional-mark {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 0.85em;
  margin-left: 4px;
}

.form-submit-btn {
  width: 100%;
}

/* 三行联系方式：整体下移 + 加大行距（直接作用于 .contact-info-item，
   因为 HTML 中并无 .contact-info-list 包裹层，三行是 .contact-info-card 的直接子元素） */
.contact-info-card .contact-info-item:first-of-type {
  margin-top: 20px !important;
}

.contact-info-card .contact-info-item + .contact-info-item {
  margin-top: 14px !important;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: calc(var(--space-4) * 0.8);
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
}

.contact-info-item > div {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--space-2) * 0.6);
}

.contact-info-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 49, 136, 0.08);
  border-radius: var(--radius-md);
  color: var(--boac-navy);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 13px;
  height: 13px;
}

.contact-info-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.contact-info-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.45;
}

.contact-qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding: var(--space-5) var(--space-4);
  border-top: 1px solid rgba(47, 49, 136, 0.1);
}

.contact-qrcode-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.contact-qrcode img {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 6px;
  background: #fff;
}

.contact-qrcode-hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.75;
  text-align: center;
  line-height: 1.5;
}

.contact-service-promise {
  margin-top: auto;
  padding: calc(var(--space-5) * 0.75);
  background: rgba(47, 49, 136, 0.05);
  border: 1px solid rgba(47, 49, 136, 0.12);
  border-radius: var(--radius-xl);
  text-align: center;
}

.service-promise-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--boac-navy);
  margin-bottom: calc(var(--space-2) * 0.8);
}

.service-promise-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-form {
  padding: calc(var(--space-5) * 0.8);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
}

.contact-form .form-group {
  margin-bottom: calc(var(--space-3) * 0.8);
}

.contact-form .form-label {
  font-size: 0.78rem;
  margin-bottom: calc(var(--space-1) * 0.8);
}

.contact-form .form-input,
.contact-form .form-textarea {
  padding: calc(var(--space-2) * 0.85) calc(var(--space-3) * 0.9);
  font-size: 0.88rem;
}

.contact-form .form-textarea {
  min-height: 68px;
}

.contact-form .form-row {
  display: grid;
  gap: calc(var(--space-3) * 0.75);
}

@media (min-width: 640px) {
  .contact-form .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form .btn-lg {
  padding: calc(var(--space-3) * 0.85) calc(var(--space-6) * 0.9);
  font-size: 0.88rem;
}

/* 提交按钮高度翻倍 + 字号加大（仅垂直方向加高，卡片宽度/整体尺寸不变） */
.contact-form .form-submit-btn {
  padding-top: calc(var(--space-3) * 2.5);
  padding-bottom: calc(var(--space-3) * 2.5);
  font-size: 1.15rem;
}

.contact-map {
  margin-top: var(--space-5);
}

.contact-map .map-container {
  height: 180px;
}

.contact-map .map-placeholder svg {
  width: 40px;
  height: 40px;
}

/* Contact page — always light & open, regardless of theme */
#contact {
  position: relative;
  background:
    radial-gradient(560px circle at 12% 0%, rgba(0, 162, 233, 0.04), rgba(0, 162, 233, 0) 60%),
    linear-gradient(180deg, #F4F8FF 0%, #FFFFFF 55%, var(--bg-primary) 100%);
}

#contact .contact-info-card {
  background: linear-gradient(160deg, #F0F7FF 0%, #FFFFFF 100%);
  border: 1px solid rgba(0, 162, 233, 0.18);
  color: #1A1E2E;
  box-shadow: 0 4px 24px rgba(47, 49, 136, 0.06);
}

#contact .contact-form {
  background: linear-gradient(160deg, #F0F7FF 0%, #FFFFFF 100%);
  border: 1px solid rgba(0, 162, 233, 0.18);
  color: #1A1E2E;
  box-shadow: 0 4px 24px rgba(47, 49, 136, 0.06);
  padding: calc(var(--space-8) * 0.8 - 10px);
}

#contact .contact-info-desc { color: #5E6880; }
#contact .contact-info-value { color: #1A1E2E; font-weight: 600; }
#contact .contact-info-icon {
  background: rgba(0, 162, 233, 0.08);
  color: #00A2E9;
}
#contact .heading-lg { color: #1A1E2E; }
#contact .form-card .heading-lg,
#contact .contact-form .heading-lg {
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
}

#contact .contact-form .heading-lg.contact-form-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-4);
}
#contact .contact-form-title .form-title-hand {
  font-size: 1.05em;
  line-height: 1;
  flex-shrink: 0;
}

#contact .contact-service-promise {
  background: rgba(0, 162, 233, 0.04);
  border-color: rgba(0, 162, 233, 0.12);
}
#contact .service-promise-title { color: #2F3188; }
#contact .service-promise-text { color: #5E6880; }

#contact .form-input,
#contact .form-textarea {
  background: #FAFBFE;
  border-color: #DDE1EC;
  color: #1A1E2E;
}
#contact .form-input::placeholder,
#contact .form-textarea::placeholder { color: #8E99AD; }
#contact .form-label { color: #3E4660; }
#contact .form-input:focus,
#contact .form-textarea:focus {
  border-color: #00A2E9;
  box-shadow: 0 0 0 3px rgba(0, 162, 233, 0.15);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all var(--duration-fast) var(--ease-out);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

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

.form-row {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.map-container {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  color: var(--text-secondary);
  text-align: center;
  padding: var(--space-8);
}

.map-placeholder svg {
  width: 64px;
  height: 64px;
  color: var(--accent);
  opacity: 0.5;
}

/* ========================================
   Back to Top
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 900;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--duration-normal) var(--ease-out);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   Utility: Skeleton loading
   ======================================== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ========================================
   行业动态：网格卡片布局
   ======================================== */
#insights .news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

#insights .news-card {
  display: flex;
  flex-direction: row;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out);
}

#insights .news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.25);
  border-color: rgba(74, 144, 226, 0.35);
}

#insights .news-card:focus-visible {
  outline: 2px solid var(--boac-sky);
  outline-offset: 3px;
}

#insights .news-card-img {
  flex-shrink: 0;
  width: 280px;
  min-height: 140px;
  max-height: 140px;
  overflow: hidden;
  position: relative;
  background: var(--bg-tertiary);
}

#insights .news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

#insights .news-card:hover .news-card-img img {
  transform: scale(1.05);
}

/* 占位图（无配图的文章） */
#insights .news-placeholder {
  width: 100%;
  height: 100%;
  background-color: transparent;
  background-image: linear-gradient(135deg, rgba(74, 144, 226, 0.15), rgba(47, 49, 136, 0.2)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A90E2' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Cpath d='M8 9h8M8 13h8M8 17h5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto, 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--boac-sky);
}

#insights .news-placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.4;
}

#insights .news-card-body {
  display: flex;
  flex-direction: column;
  padding: var(--space-3) var(--space-4);
  flex: 1;
  min-width: 0;
}

#insights .news-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-1);
}

/* 标签 + 日期（详情页与卡片复用） */
.news-item-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #00A2E9;
  background: rgba(0, 162, 233, 0.12);
  border: 1px solid rgba(0, 162, 233, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.news-item-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

#insights .news-card-title {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  transition: color var(--duration-fast) var(--ease-out);
}

#insights .news-card-title::-webkit-scrollbar {
  display: none;
}

#insights .news-card:hover .news-card-title {
  color: var(--boac-sky);
}

#insights .news-card-excerpt {
  font-size: clamp(0.78rem, 1vw, 0.84rem);
  line-height: 1.5;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 响应式：移动端上下堆叠 */
@media (max-width: 640px) {
  #insights .news-card {
    flex-direction: column;
  }

  #insights .news-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

.insights-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--space-10);
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 32px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--boac-blue);
  border: 1.5px solid var(--boac-blue);
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}

.btn-outline-gold:hover {
  color: #fff;
  background: var(--boac-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 162, 233, 0.3);
}

/* ========================================
   文章详情页
   ======================================== */
.article-page {
  padding-top: calc(var(--header-height) + var(--space-10));
  padding-bottom: var(--space-16);
  min-height: 70vh;
}

.article-detail {
  max-width: 760px;
  margin: 0 auto;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: var(--space-6);
  transition: color var(--duration-fast) var(--ease-out);
}

.article-back:hover {
  color: var(--boac-sky);
}

.article-back-bottom {
  display: flex;
  justify-content: center;
  margin-top: var(--space-10);
  margin-bottom: 0;
}

/* 详情页容器：统一内容宽度 */
.article-container {
  max-width: 760px;
  margin: 0 auto;
}

/* 详情页头部（标签 + 标题） */
.article-header {
  margin-bottom: 0;
}

/* 文章标签 */
.article-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--boac-blue);
  background: rgba(0, 162, 233, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.article-date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.17rem, 2.27vw, 1.67rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(125, 125, 125, 0.18);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.article-title::-webkit-scrollbar {
  display: none;
}

/* 案例详情页标题缩小五分之一（仅影响 cases/*.html） */
.case-page .article-title {
  font-size: clamp(0.936rem, 1.816vw, 1.336rem);
}

.article-hero {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-8);
}

.article-hero img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
}

/* 聊天截图类配图保持缩小尺寸 */
.article-hero img.img-small,
.article-figure img.img-small {
  width: 83.333%;
  margin: 0 auto;
}

.article-hero-placeholder {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.18), rgba(47, 49, 136, 0.25));
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-hero-placeholder span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--boac-sky);
  opacity: 0.85;
}

.article-body {
  font-size: clamp(0.9rem, 1.18vw, 1.01rem);
  line-height: 1.9;
  color: var(--text-secondary);
}

.article-body p {
  margin-bottom: var(--space-4);
}

.article-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article-body ul {
  padding-left: var(--space-5);
  margin: var(--space-3) 0 var(--space-6);
}

.article-body li {
  margin-bottom: var(--space-2);
  line-height: 1.8;
}

/* 导语 */
.article-body .article-lead {
  font-size: clamp(1rem, 1.44vw, 1.13rem);
  font-weight: 500;
  line-height: 1.85;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

/* 小标题：二级 */
.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(0.87rem, 1.6vw, 1.13rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-top: var(--space-10);
  margin-bottom: var(--space-5);
  padding-left: var(--space-4);
  border-left: 3px solid var(--boac-sky);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}

.article-body h2::-webkit-scrollbar {
  display: none;
}

/* 小标题：三级 */
.article-body h3 {
  font-family: var(--font-display);
  font-size: clamp(0.73rem, 1.2vw, 0.87rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-primary);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}

.article-body h3::-webkit-scrollbar {
  display: none;
}

/* 引用块 */
.article-body blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-5) var(--space-6);
  background: var(--bg-secondary);
  border-left: 4px solid var(--boac-sky);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

/* 图片统一规范 */
.article-figure {
  width: 100%;
  margin-bottom: var(--space-8);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.article-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
}

/* 正文内嵌图片：与上下文统一间距 */
.article-body .article-hero,
.article-body .article-figure {
  margin: var(--space-8) 0;
}

/* 图片说明 */
.article-caption {
  margin-top: var(--space-3);
  font-size: 0.77rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
}

/* 数据高亮 */
.article-body .highlight {
  color: var(--boac-sky);
  font-weight: 700;
}

/* 结尾服务卡 */
.article-cta {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--bg-secondary);
  border: 1px solid rgba(125, 125, 125, 0.18);
  border-left: 4px solid var(--boac-sky);
  border-radius: var(--radius-xl);
  font-size: clamp(0.9rem, 1.18vw, 1.01rem);
  line-height: 1.9;
  color: var(--text-secondary);
}

.article-cta p:last-child {
  margin-bottom: 0;
}

.article-cta-link {
  color: var(--boac-navy);
  font-weight: 600;
  text-decoration: none;
}

.article-cta-link:hover {
  text-decoration: underline;
}

/* 文末分享栏 */
.article-share {
  margin-top: var(--space-7);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.article-share-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.article-share-btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid rgba(125, 125, 125, 0.18);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.share-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.share-btn:hover {
  color: var(--boac-navy);
  border-color: var(--boac-sky);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.share-btn.copied {
  color: #1a9e57;
  border-color: #1a9e57;
}

/* 文末公众号关注引导 */
.article-follow {
  margin-top: var(--space-7);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-5);
  background: linear-gradient(135deg, rgba(47, 49, 136, 0.06), rgba(47, 49, 136, 0.02));
  border: 1px solid rgba(47, 49, 136, 0.16);
  border-radius: var(--radius-xl);
}

.article-follow .follow-qr {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid rgba(125, 125, 125, 0.18);
  padding: 4px;
}

.article-follow-body {
  flex: 1;
  min-width: 0;
}

.article-follow-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--boac-navy);
  margin: 0 0 var(--space-1);
}

.article-follow-desc {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 480px) {
  .article-follow {
    flex-direction: column;
    text-align: center;
  }
}

/* 案例详情：规格信息条 */
.case-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin: var(--space-5) 0 var(--space-7);
  padding: var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid rgba(125, 125, 125, 0.18);
  border-radius: var(--radius-lg);
}

.case-specs .spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-label {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.spec-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

@media (max-width: 600px) {
  .case-specs {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 案例详情：实景图廊 */
/* Case Detail Gallery — Carousel (max 3 visible, L/R arrows) */
.case-gallery {
  position: relative;
  margin: var(--space-5) 0;
}

.case-gallery.is-carousel {
  display: block;
}

.case-gallery.is-carousel .case-gallery-track {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.case-gallery.is-carousel .case-gallery-track::-webkit-scrollbar {
  display: none;
}

.case-gallery.is-carousel .article-figure {
  flex: 0 0 calc(33.333% - var(--space-4) * 2 / 3);
  scroll-snap-align: start;
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-out);
  min-width: 0;
}

.case-gallery.is-carousel .article-figure:hover {
  transform: scale(1.03);
}

.case-gallery.is-carousel .article-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-xl);
  display: block;
}

.case-gallery.is-carousel .article-caption {
  display: none; /* hide captions in carousel mode */
}

/* Gallery nav arrows (detail page) */
.case-gallery-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.case-gallery-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-md);
}

.case-gallery-nav-btn:hover {
  background: var(--boac-blue);
  color: var(--white);
  border-color: var(--boac-blue);
  box-shadow: var(--shadow-glow);
}

.case-gallery-nav-btn:active {
  transform: scale(0.92);
}

.case-gallery-nav-btn.disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
  pointer-events: none;
}

.case-gallery-nav-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

/* Page counter for gallery */
.case-gallery-counter {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: var(--space-2);
  font-weight: 500;
}

/* Mobile: show 1 image at a time */
@media (max-width: 768px) {
  .case-gallery.is-carousel .article-figure {
    flex: 0 0 85%;
    margin: 0 auto;
  }

  .case-gallery.is-carousel .case-gallery-track {
    gap: var(--space-3);
  }

  .case-gallery-nav-btn {
    width: 36px;
    height: 36px;
  }
}

/* 响应式 */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .article-page {
    padding-top: calc(var(--header-height) + var(--space-6));
  }
  .article-title {
    font-size: clamp(0.77rem, 3.33vw, 1.13rem);
    line-height: 1.25;
  }
  .case-page .article-title {
    font-size: clamp(0.616rem, 2.664vw, 0.904rem);
  }
  .article-body {
    font-size: 0.9rem;
  }
  .article-body h2 {
    margin-top: var(--space-8);
  }
}

   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Dark mode — theme-aware overrides for sections that were
   previously forced light (highlights / #contact / page-hero)
   ============================================================ */
[data-theme="dark"] .highlights-section {
  background:
    radial-gradient(620px circle at 86% -6%, rgba(0, 162, 233, 0.10), rgba(0, 162, 233, 0) 58%),
    radial-gradient(720px circle at 4% 104%, rgba(47, 49, 136, 0.18), rgba(47, 49, 136, 0) 60%),
    linear-gradient(180deg, #141830 0%, #101224 55%, var(--bg-primary) 100%);
  color: var(--text-primary);
}
[data-theme="dark"] .highlights-section .section-label { color: var(--boac-cyan); }
[data-theme="dark"] .highlights-section .feature-card {
  background: #1A1E36;
  border-color: rgba(0, 162, 233, 0.20);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.30);
}
[data-theme="dark"] .highlights-section .feature-card:hover {
  background: #1F2440;
  border-color: rgba(0, 162, 233, 0.45);
  box-shadow: 0 22px 52px rgba(0, 162, 233, 0.20);
}
[data-theme="dark"] .highlights-section .feature-title { color: #EAF1FF; }
[data-theme="dark"] .highlights-section .feature-desc { color: #9AA6C2; }
[data-theme="dark"] .highlights-section .stat-item {
  background: #1A1E36;
  border-color: rgba(0, 162, 233, 0.14);
}
[data-theme="dark"] .highlights-section .stat-value { color: var(--boac-cyan); }
[data-theme="dark"] .highlights-section .stat-label { color: #9AA6C2; }

[data-theme="dark"] #contact {
  background:
    radial-gradient(560px circle at 12% 0%, rgba(0, 162, 233, 0.10), rgba(0, 162, 233, 0) 60%),
    linear-gradient(180deg, #1C2240 0%, #1A1F38 50%, #161B32 100%);
}
[data-theme="dark"] #contact .contact-info-card {
  background: linear-gradient(160deg, #232948 0%, #1E2440 100%);
  border-color: rgba(0, 162, 233, 0.25);
  color: #E8EDFA;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.05);
}
[data-theme="dark"] #contact .contact-form {
  background: linear-gradient(160deg, #232948 0%, #1E2440 100%);
  border-color: rgba(0, 162, 233, 0.25);
  color: #E8EDFA;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.05);
}
[data-theme="dark"] #contact .contact-info-desc,
[data-theme="dark"] #contact .contact-info-value { color: #E0E6F5; }
[data-theme="dark"] #contact .contact-info-icon {
  background: rgba(0, 162, 233, 0.16);
  color: var(--boac-cyan);
}
[data-theme="dark"] #contact .heading-lg { color: #F0F4FF; }
[data-theme="dark"] #contact .service-promise-title { color: var(--boac-cyan); }
[data-theme="dark"] #contact .service-promise-text { color: #A0ADCC; }
[data-theme="dark"] #contact .contact-service-promise {
  background: rgba(0, 162, 233, 0.07);
  border-color: rgba(0, 162, 233, 0.16);
}
[data-theme="dark"] #contact .contact-guide-text { color: var(--boac-blue); }
[data-theme="dark"] .contact-trust-badge {
  background: linear-gradient(135deg, rgba(0, 162, 233, 0.20), rgba(51, 197, 255, 0.14));
  color: #8EE4FF;
  text-shadow: none;
  border-left-color: var(--boac-cyan);
  box-shadow: 0 2px 12px rgba(0, 162, 233, 0.10);
}
[data-theme="dark"] #contact .form-input,
[data-theme="dark"] #contact .form-textarea {
  background: #181D35;
  border-color: rgba(255, 255, 255, 0.14);
  color: #E8EDFA;
}
[data-theme="dark"] #contact .form-label { color: #C0C9E0; }
[data-theme="dark"] #contact .form-input::placeholder,
[data-theme="dark"] #contact .form-textarea::placeholder { color: #A6B0CC; }

[data-theme="dark"] .page-hero {
  background: linear-gradient(165deg, #161A30 0%, #12162A 40%, #0E1224 100%);
  color: var(--white);
}
[data-theme="dark"] .page-hero .hero-shape { background: rgba(0, 162, 233, 0.10); }
[data-theme="dark"] .page-hero-title { color: var(--white); }
[data-theme="dark"] .page-hero-desc { color: rgba(255, 255, 255, 0.75); }

