/* ============================================
   E-Ranyx CO., LTD. — Design System
   伊雷恩創意科技有限公司
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+TC:wght@300;400;500;600;700;900&display=swap');

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Primary Palette (Darkened) */
  --purple-900: #0B0615;
  --purple-800: #140A23;
  --purple-700: #221040;
  --purple-600: #3A1B6B;
  --purple-500: #552799;
  --purple-400: #7C45D4;
  --purple-300: #A072E6;
  --purple-200: #C2A1F0;
  --purple-100: #E0CEF8;
  --purple-50: #F2EBFC;
  --purple-25: #F9F6FE;

  /* Accent */
  --accent-gold: #E8C872;
  --accent-teal: #5BC0BE;
  --accent-coral: #E07A5F;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-400: #BDBDBD;
  --gray-500: #9E9E9E;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;

  /* Typography */
  --font-primary: 'Noto Sans TC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Inter', 'Noto Sans TC', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(30, 20, 51, 0.08);
  --shadow-md: 0 4px 12px rgba(30, 20, 51, 0.12);
  --shadow-lg: 0 8px 30px rgba(30, 20, 51, 0.16);
  --shadow-xl: 0 16px 50px rgba(30, 20, 51, 0.2);
  --shadow-glow: 0 0 40px rgba(107, 91, 138, 0.3);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Container */
  --container-max: 1200px;
  --container-padding: 1.5rem;

  /* Header */
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: var(--font-primary);
  color: var(--gray-200);
  background: var(--purple-900);
  background-image: radial-gradient(circle at 15% 10%, rgba(142, 92, 222, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 85% 65%, rgba(104, 60, 179, 0.15) 0%, transparent 55%),
    radial-gradient(circle at 50% 95%, rgba(91, 192, 190, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
  line-height: 1.7;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

ul,
ol {
  list-style: none;
}

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

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-padding {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-3xl) 0;
  scroll-snap-align: start;
}

.hero {
  scroll-snap-align: start;
}

.cta-compact {
  padding: var(--space-3xl) 0;
  scroll-snap-align: none;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-400);
  margin-bottom: var(--space-md);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--purple-400);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--purple-200);
  max-width: 600px;
  line-height: 1.8;
}

/* ---- Typography: avoid one-word orphan lines on phones ----
   balance = even line lengths for short headings
   pretty  = reduce lonely last-line words in longer copy
*/
h1,
h2,
.hero h1,
.section-title,
.products-hero-title,
.about-hero-title,
.demo-hero-title,
.contact-page-title,
.svc-hero-title,
.svc-hero .section-title,
.cta-section .section-title,
.audience-card h3,
.overview-card h3,
.core-service-card h3,
.service-card h3,
.product-card-title,
.news-item h3,
.news-card h3,
.team-info h3,
.faq-question,
.selector-header h2,
.service-offer-header h2 {
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}

.section-subtitle,
.hero-description,
.about-description,
.about-description p,
.about-hero-subtitle,
.demo-hero-subtitle,
.products-hero-subtitle,
.contact-page-lead,
.svc-hero .section-subtitle,
.cta-section .section-subtitle,
.brand-intro-text p,
.audience-card p,
.overview-card p,
.core-service-card p,
.product-card-desc,
.team-desc-list li,
.faq-answer,
.faq-answer p,
.node-box p,
.section-header p {
  text-wrap: pretty;
  overflow-wrap: break-word;
  word-break: normal;
}

@supports not (text-wrap: balance) {
  h1,
  h2,
  .hero h1,
  .section-title,
  .products-hero-title,
  .about-hero-title,
  .demo-hero-title,
  .contact-page-title,
  .svc-hero-title {
    /* Older engines: keep Latin tokens together when possible */
    word-break: keep-all;
  }
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  isolation: isolate;
  transition: background var(--transition-base), backdrop-filter var(--transition-base),
    border-color var(--transition-base), box-shadow var(--transition-base);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(22, 13, 36, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.site-header .container {
  max-width: 1400px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  gap: 0.75rem;
}

/* Keep overlay out of flex flow until the mobile menu opens */
.nav-overlay {
  display: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-right: 0.15rem;
  z-index: 1001;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
  /* Fixed slot so 中文 | EN never shifts neighbors */
  width: 5.25rem;
}

.lang-switch-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-base);
}

.lang-switch-link:hover,
.lang-switch-link.is-active {
  color: var(--white);
}

.lang-switch-link.is-active {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-switch-sep {
  opacity: 0.45;
  user-select: none;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1001;
  /* Never compress the brand name for the lang switch / nav */
  flex-shrink: 0;
  min-width: 0;
}

.site-logo img {
  height: 40px;
  width: auto;
  max-width: min(168px, 44vw);
  aspect-ratio: 548 / 277;
  object-fit: contain;
  border-radius: 0;
  display: block;
  flex-shrink: 0;
  transition: transform var(--transition-spring);
}

.site-logo:hover img {
  transform: scale(1.05);
}

.site-logo .logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  transition: color var(--transition-base);
  white-space: nowrap;
}

.site-header.scrolled .site-logo .logo-text {
  color: var(--white);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  /* Pin nav + lang-switch + menu-toggle as a right cluster */
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-links a {
  position: relative;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

/* Dropdown navigation item */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-align: left;
  touch-action: manipulation;
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform var(--transition-base);
  opacity: 0.7;
}

@media (hover: hover) and (pointer: fine) {
  .nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
  }
}

/* Dropdown menu list */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(22, 13, 36, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  min-width: 170px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  z-index: 1002;
  display: flex;
  flex-direction: column;
}

@media (hover: hover) and (pointer: fine) {
  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
  }
}

.nav-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-trigger::after {
  display: none !important;
}

.dropdown-menu a {
  padding: 0.65rem 1.25rem !important;
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.8) !important;
  transition: all var(--transition-fast) !important;
  border-radius: 0 !important;
  text-align: left;
  display: block;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
}

.dropdown-menu a::after {
  display: none !important;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--white) !important;
}

.site-header.scrolled .nav-links a {
  color: rgba(255, 255, 255, 0.7);
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.site-header.scrolled .nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--purple-300);
  border-radius: 2px;
  transition: transform var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-cta {
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-800);
  background: var(--white);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  /* Fit longer of 聯絡我們 / Contact without shifting neighbors */
  min-width: 7.25rem;
  text-align: center;
  box-sizing: border-box;
}

.site-header.scrolled .nav-cta {
  color: var(--white);
  background: var(--purple-600);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  position: relative;
  flex-direction: column;
  gap: 5px;
  z-index: 2010;
  padding: 0.5rem;
  cursor: pointer;
  background: none;
  border: none;
  pointer-events: auto;
  touch-action: manipulation;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.site-header.scrolled .menu-toggle span {
  background: var(--white);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: var(--purple-900);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 8;
  mix-blend-mode: luminosity;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 8, 20, 0.7);
  z-index: 2;
}

/* Animated floating shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: var(--radius-full);
  opacity: 0.08;
  animation: float 20s ease-in-out infinite;
}

.hero-shape:nth-child(1) {
  width: 400px;
  height: 400px;
  background: var(--purple-300);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero-shape:nth-child(2) {
  width: 250px;
  height: 250px;
  background: var(--purple-200);
  bottom: -50px;
  left: -80px;
  animation-delay: -5s;
}

.hero-shape:nth-child(3) {
  width: 180px;
  height: 180px;
  background: var(--accent-gold);
  top: 30%;
  right: 15%;
  animation-delay: -10s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(30px, -30px) rotate(5deg);
  }

  50% {
    transform: translate(-20px, 20px) rotate(-3deg);
  }

  75% {
    transform: translate(15px, 10px) rotate(3deg);
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 0 var(--container-padding);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: var(--purple-100);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: var(--space-xl);
  animation: fadeInDown 0.8s ease forwards;
}

.hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-gold);
  border-radius: var(--radius-full);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

.hero h1 {
  font-family: var(--font-primary);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero h1 .highlight {
  background: none;
  color: var(--accent-gold);
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.9;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn-primary {
  color: var(--white);
  background: var(--purple-600);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

.btn-icon {
  font-size: 1.1rem;
  transition: transform var(--transition-base);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeIn 1s ease 1s forwards;
  opacity: 0;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.4);
  animation: scrollDown 2s ease infinite;
}

@keyframes scrollDown {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ============================================
   INTRODUCTION SECTION
   ============================================ */
.intro-section {
  background: var(--purple-900);
  position: relative;
  overflow: hidden;
}

.intro-section::before {
  display: none;
}

.intro-content {
  position: relative;
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
}

.intro-content .section-subtitle {
  margin: 0 auto;
}

/* ============================================
   CORE SERVICES SECTION
   ============================================ */
.services-section {
  background: var(--purple-800);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: var(--space-3xl);
}

.services-grid.vertical {
  grid-template-columns: 1fr;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.service-card {
  position: relative;
  padding: 2.5rem 2rem;
  background: transparent;
  border-radius: var(--radius-lg);
  border: none;
  transition: all var(--transition-base);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--purple-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-size: 1.75rem;
  background: var(--purple-700);
  color: var(--purple-200);
  transition: all var(--transition-base);
}

.service-card:hover .service-icon {
  background: var(--purple-600);
  color: var(--white);
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--purple-100);
  line-height: 1.8;
}

.service-tag {
  display: inline-block;
  margin-top: var(--space-lg);
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--purple-200);
  background: var(--purple-700);
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

/* ============================================
   PORTFOLIO / 探勘保證 SECTION
   ============================================ */
.portfolio-section {
  background: linear-gradient(to bottom, var(--purple-900) 0%, var(--purple-800) 10%, var(--purple-800) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.portfolio-section .section-label {
  color: var(--purple-200);
}

.portfolio-section .section-label::before {
  background: var(--purple-300);
}

.portfolio-section .section-title {
  color: var(--white);
}

.portfolio-section .section-subtitle {
  color: rgba(255, 255, 255, 0.65);
}

/* Carousel */
.portfolio-carousel {
  position: relative;
  margin-top: var(--space-3xl);
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  padding: 0.5rem;
}

.slide-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--purple-600);
}

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

.slide-image:hover img {
  transform: scale(1.05);
}

.slide-image .image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 8, 20, 0.4);
}

.slide-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) 0;
}

.slide-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.slide-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.slide-content .btn-outline {
  align-self: flex-start;
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: var(--space-2xl);
}

.carousel-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-size: 1.25rem;
  transition: all var(--transition-base);
  background: rgba(255, 255, 255, 0.05);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.25);
  transition: all var(--transition-base);
  cursor: pointer;
}

.carousel-dot.active {
  width: 28px;
  background: var(--white);
}

/* ============================================
   ABOUT / TEAM SECTION
   ============================================ */
.about-section {
  background: var(--purple-800);
  position: relative;
}

.about-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.about-description {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-description p {
  font-size: 1.05rem;
  color: var(--purple-200);
  line-height: 1.9;
  text-wrap: pretty;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: var(--space-3xl) auto 0;
}

.team-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  background: transparent;
  border: none;
  transition: all var(--transition-base);
  cursor: pointer;
}

.team-card:hover {
  transform: translateY(-6px);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-lg);
  overflow: hidden;
  background: var(--purple-700);
  border: 3px solid var(--purple-600);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-spring);
}

.team-card:hover .team-avatar {
  transform: scale(1.08);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.team-card .team-role {
  font-size: 0.85rem;
  color: var(--purple-300);
  margin-bottom: var(--space-md);
}

.team-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-500);
  transition: all var(--transition-base);
}

.team-link:hover {
  color: var(--purple-700);
  gap: 0.6rem;
}

/* ============================================
   NEWS SECTION
   ============================================ */
.news-section {
  background: var(--purple-900);
  position: relative;
}

.news-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.news-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}

.news-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: transparent;
  border: none;
  transition: all var(--transition-base);
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--purple-100);
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.news-card-body {
  padding: 1.5rem;
}

.news-card-date {
  font-size: 0.78rem;
  color: var(--purple-300);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.news-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-body p {
  font-size: 0.9rem;
  color: var(--purple-200);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card.featured {
  grid-row: 1 / 3;
}

.news-card.featured .news-card-image {
  aspect-ratio: auto;
  height: 280px;
}

.news-more {
  text-align: center;
  margin-top: var(--space-2xl);
}

.btn-secondary {
  color: var(--white);
  background: var(--purple-700);
  border: 1.5px solid var(--purple-600);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--purple-600);
  border-color: var(--purple-500);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   PARTNERS SECTION
   ============================================ */
.partners-section {
  background: linear-gradient(to bottom, var(--purple-900) 0%, var(--purple-800) 10%, var(--purple-800) 100%);
  text-align: center;
}

.partners-header {
  margin-bottom: var(--space-3xl);
}

.partners-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: var(--space-xl) 0;
}

.partner-logo {
  width: 220px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  padding: 1rem;
  background: transparent;
  border: none;
  transition: all var(--transition-base);
  filter: grayscale(100%);
  opacity: 0.6;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-4px);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-4xl) 0;
  z-index: 10;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(255, 255, 255, 0.1),
      transparent 40%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.cta-section:hover::before {
  opacity: 1;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: -50px;
  width: 300px;
  height: 300px;
  border-radius: var(--radius-full);
  border: 40px solid rgba(104, 60, 179, 0.03);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-section .section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 2;
}

.cta-section .section-subtitle {
  font-size: 1.15rem;
  color: var(--purple-200);
  margin: 0 auto var(--space-2xl);
  text-align: center;
  position: relative;
  z-index: 2;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.1rem 2.8rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  background: var(--purple-600);
  border: 1px solid var(--purple-500);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-spring);
}

.btn-cta:hover {
  transform: translateY(-4px) scale(1.02);
  background: var(--purple-500);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--purple-400);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  background: var(--purple-900);
  text-align: center;
}

.contact-header {
  margin-bottom: var(--space-3xl);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.contact-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: transparent;
  border: none;
  transition: all var(--transition-base);
  position: relative;
}

.hover-tooltip {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--accent-gold);
  color: var(--purple-900);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-spring);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  z-index: 10;
}

.hover-tooltip::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--accent-gold);
  z-index: -1;
}

.contact-card:hover {
  transform: translateY(-4px);
}

.contact-card:hover .hover-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.contact-card-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-full);
  background: var(--purple-700);
  color: var(--purple-200);
  font-size: 1.3rem;
  transition: all var(--transition-base);
}

.contact-card:hover .contact-card-icon {
  background: var(--purple-600);
  color: var(--white);
}

.contact-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.contact-card p {
  font-size: 0.85rem;
  color: var(--purple-200);
}

.contact-card a {
  color: var(--purple-300);
  font-weight: 500;
  transition: color var(--transition-base);
}

.contact-card a:hover {
  color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #09050E;
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid var(--purple-800);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: var(--space-3xl);
}

.footer-brand .site-logo {
  margin-bottom: var(--space-lg);
}

.footer-brand .site-logo img {
  height: 36px;
  max-width: 140px;
}

.footer-brand .site-logo .logo-text {
  color: var(--white);
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 320px;
}

.footer-nav h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-lg);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--transition-base);
}

.footer-nav a:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer-nav .footer-social a:hover {
  padding-left: 0;
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  transition: all var(--transition-base);
}

.footer-social a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  /* Must be `none` — translateY(0) still creates a containing block and
     breaks native date/select pickers inside (Chromium). */
  transform: none;
}

.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;
}

/* ============================================
   RESPONSIVE — Header collapse
   Full company name + lang switch need room;
   fold desktop nav earlier than page content.
   ============================================ */
@media (max-width: 1100px) {
  .menu-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .lang-switch {
    margin-left: auto;
    z-index: 2010;
    position: relative;
  }

  .site-logo {
    max-width: calc(100% - 8rem);
    flex-shrink: 1;
    min-width: 0;
    z-index: 1;
  }

  .site-logo img {
    flex-shrink: 1;
  }

  .site-logo .logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(80vw, 360px);
    max-width: 360px;
    height: 100%;
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: calc(var(--header-height) + 1rem) 1.5rem 2rem;
    background: var(--purple-900);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
    transition: transform var(--transition-base), visibility var(--transition-base);
    z-index: 2000;
    margin-left: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
  }

  .main-nav.open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .nav-links a {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
    width: 100%;
    border-radius: var(--radius-sm);
    min-height: 44px;
    display: flex;
    align-items: center;
    touch-action: manipulation;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    padding: 0.85rem;
    color: var(--white);
    background: var(--purple-600);
    min-width: 0;
    min-height: 44px;
    touch-action: manipulation;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1990;
    pointer-events: auto;
  }

  .nav-overlay.active {
    display: block;
  }

  /* Mobile dropdown adjustments */
  .nav-dropdown {
    width: 100%;
    position: relative;
    z-index: 1;
  }

  .nav-dropdown .dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    min-height: 44px;
    pointer-events: auto;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    width: 100%;
    box-shadow: none;
    pointer-events: auto;
  }

  .nav-dropdown.active .dropdown-menu {
    max-height: 240px;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
  }

  .nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
  }

  .dropdown-menu a {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.95rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    min-height: 44px;
    pointer-events: auto;
  }
}

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .carousel-slide {
    grid-template-columns: 1fr;
  }

  .slide-content {
    padding: var(--space-lg) 0 0;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card.featured {
    grid-row: auto;
  }

  .news-card.featured .news-card-image {
    height: 220px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 768px) {
  :root {
    --header-height: 68px;
    --container-padding: 1.25rem;
  }

  .site-logo {
    max-width: calc(100% - 7.5rem);
    flex-shrink: 1;
  }

  .site-logo img {
    height: 32px;
    max-width: min(128px, 38vw);
  }

  .site-logo .logo-text {
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .section-padding {
    padding: var(--space-3xl) 0;
  }

  /* Sections */
  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .partners-track {
    gap: 1.5rem;
  }

  .partner-logo {
    width: 100px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .site-logo {
    gap: 0.45rem;
    max-width: calc(100% - 7.5rem);
  }

  .site-logo .logo-text {
    font-size: 0.8rem;
    white-space: normal;
    line-height: 1.2;
  }

  .lang-switch {
    width: auto;
    font-size: 0.75rem;
    gap: 0.3rem;
  }

  .carousel-slide {
    padding: 0;
  }

  .slide-content h3 {
    font-size: 1.25rem;
  }

  .carousel-controls {
    gap: 1rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }
}

/* ============================================
   修改1: HERO HANGING CHARACTER
   ============================================ */
.hero-hanging-character {
  position: absolute;
  top: 100%;
  left: 20%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: swingIn 1.2s ease 0.8s forwards;
  opacity: 0;
}

@keyframes swingIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-40px) rotate(-10deg);
  }

  60% {
    opacity: 1;
    transform: translateX(-50%) translateY(5px) rotate(3deg);
  }

  80% {
    transform: translateX(-50%) translateY(-3px) rotate(-2deg);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) rotate(0deg);
  }
}

.hanging-rope {
  width: 3px;
  height: 60px;
  background: var(--purple-400);
  z-index: 2;
}

.hanging-character-img {
  transition: transform var(--transition-spring);
  cursor: pointer;
  animation: gentleSwing 4s ease-in-out infinite;
  transform-origin: top center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hanging-character-img:hover {
  transform: scale(1.15) rotate(5deg);
  animation-play-state: paused;
}



@keyframes gentleSwing {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(8deg);
  }

  75% {
    transform: rotate(-8deg);
  }
}

.character-placeholder {
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.character-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translate(-28%, -20%) scale(1.1);
  position: relative;
  z-index: 3;
}

/* ============================================
   修改3: SERVICE AREAS — CAROUSEL CARDS
   ============================================ */
.service-areas-section {
  background: linear-gradient(to bottom, var(--purple-800) 0%, var(--purple-900) 10%, var(--purple-900) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.service-areas-section .section-label {
  color: var(--purple-200);
}

.service-areas-section .section-label::before {
  background: var(--purple-300);
}

.service-areas-section .section-title {
  color: var(--white);
}

.service-areas-section .section-subtitle {
  color: rgba(255, 255, 255, 0.65);
}

.section-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-3xl);
  gap: 2rem;
}

.section-header-flex .header-left {
  max-width: 600px;
}

.section-header-flex .section-subtitle {
  margin: 0;
}

.service-nav-buttons {
  display: flex;
  gap: 1rem;
}

.nav-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  cursor: pointer;
}

.nav-btn:hover {
  border-color: var(--purple-400);
  background: rgba(136, 91, 219, 0.15);
  box-shadow: 0 0 20px rgba(136, 91, 219, 0.4);
  transform: scale(1.05);
  color: var(--purple-200);
}

.service-cards-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem 0 2rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.service-cards-track::-webkit-scrollbar {
  display: none;
}

.service-area-card {
  flex: 0 0 340px;
  background: rgba(255, 255, 255, 0.01);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0);
}

.service-area-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), var(--shadow-lg);
}

.card-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  background: var(--purple-800);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

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

.service-area-card:hover .card-image img {
  transform: scale(1.05);
}

.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 8, 20, 0.3);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-area-card:hover .card-image::after {
  opacity: 1;
}

.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-300);
  background: var(--purple-700);
  transition: transform var(--transition-slow);
}

.service-area-card:hover .card-image-placeholder {
  transform: scale(1.05);
  color: var(--purple-100);
}

.card-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-sm);
  transition: color var(--transition-base);
}

.service-area-card:hover .card-content h3 {
  color: var(--purple-300);
}

.card-content p {
  font-size: 0.95rem;
  color: var(--purple-200);
  line-height: 1.7;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  background: linear-gradient(to bottom, var(--purple-900) 0%, var(--purple-800) 10%, var(--purple-800) 90%, var(--purple-900) 100%);
}

/* ============================================
   修改4: ENHANCED TEAM CARDS
   ============================================ */
.team-card {
  text-align: left;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.01);
  border: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

.team-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), var(--shadow-lg);
}

.team-card .card-left {
  flex: 0 0 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-card .card-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  overflow: hidden;
  background: var(--purple-700);
  border: 3px solid var(--purple-600);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-spring);
}

.team-card:hover .team-avatar {
  transform: scale(1.08);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-700);
  color: var(--purple-200);
  font-size: 2.5rem;
  font-weight: 700;
}

.member-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 1rem;
  color: var(--purple-300);
  font-weight: 500;
}

.team-desc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.team-desc-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--purple-200);
  line-height: 1.8;
  font-size: 1rem;
  text-wrap: pretty;
}

.nowrap {
  white-space: nowrap;
}

.team-desc-list li:last-child {
  margin-bottom: 0;
}

.team-desc-list li::before {
  content: "⚝";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-gold);
  font-size: 1.1rem;
  /* Adjust size if needed since it's a different unicode char */
}

.team-desc-list li strong {
  color: var(--white);
  font-weight: 600;
}

.card-divider {
  width: 40px;
  height: 2px;
  background: var(--purple-500);
  margin: 1.25rem 0;
}

.card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.card-skill-tag {
  padding: 0.25rem 0.85rem;
  background: var(--purple-700);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--purple-200);
  line-height: 1.7;
}

.full-desc {
  font-size: 0.95rem;
  color: var(--purple-100);
  line-height: 1.8;
}

.team-links {
  display: flex;
  gap: 0.75rem;
  padding-top: var(--space-md);
  border-top: 1px solid var(--gray-200);
  padding-top: 0;
  border-top: none;
}

.team-link-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--purple-700);
  color: var(--purple-200);
  transition: all var(--transition-base);
}

.team-link-item:hover {
  background: var(--purple-600);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   修改5: NEWS CAROUSEL LAYOUT
   ============================================ */
.news-layout {
  display: grid;
  grid-template-columns: minmax(auto, 500px) auto;
  justify-content: center;
  gap: 3rem;
  align-items: center;
}

.news-carousel {
  position: relative;
  overflow: hidden;
  max-width: 500px;
}

.news-carousel-track {
  position: relative;
}

.news-carousel-item {
  display: none;
  animation: newsSlideIn 0.5s ease forwards;
}

.news-carousel-item.active {
  display: block;
}

@keyframes newsSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.news-carousel-image {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  background: var(--purple-700);
}

.news-carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-carousel-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.news-carousel-body p {
  font-size: 0.9rem;
  color: var(--purple-200);
  line-height: 1.7;
}

.news-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-dots {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.news-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--gray-300);
  cursor: pointer;
  transition: all var(--transition-base);
}

.news-dot.active {
  background: var(--purple-500);
  transform: scale(1.2);
}

.news-dot:hover {
  background: var(--purple-400);
}

.news-character-area {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 200px;
}

.character-placeholder-lg {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-spring);
  animation: spaceFloat 8s ease-in-out infinite;
}

.character-placeholder-lg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.character-placeholder-lg:hover {
  transform: scale(1.05) rotate(-3deg);
  animation-play-state: paused;
}

@keyframes spaceFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(4deg);
  }
  66% {
    transform: translateY(15px) rotate(-2deg);
  }
}

/* ============================================
   修改6: PARTNERS MARQUEE
   ============================================ */
.marquee-wrapper {
  overflow: hidden;
  padding: var(--space-xl) 0;
  position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrapper::before {
  display: none;
}

.marquee-wrapper::after {
  display: none;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  padding-right: 3rem;
  animation: marqueeScroll 45s linear infinite;
  width: max-content;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes marqueeScrollReverse {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

.text-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1rem 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.text-marquee-track {
  display: flex;
  gap: 1.5rem;
  padding-right: 1.5rem;
  width: max-content;
  color: var(--purple-300);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.1;
}

.text-marquee-track .dot {
  color: var(--purple-400);
}

.text-marquee-wrapper.reverse .text-marquee-track {
  animation: marqueeScrollReverse 35s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-track .partner-logo {
  flex-shrink: 0;
  filter: grayscale(0%);
  opacity: 0.8;
}

.partner-placeholder {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  transition: all var(--transition-base);
}

.partner-placeholder:hover {
  transform: scale(1.05);
}

.partner-placeholder a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.partner-placeholder img {
  height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* ============================================
   修改7: CONTACT CHARACTER
   ============================================ */
.contact-character {
  margin-top: var(--space-lg);
  display: flex;
  justify-content: center;
}

.character-placeholder-sm {
  width: 60px;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--purple-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 2px dashed var(--purple-600);
  color: var(--purple-200);
  transition: all var(--transition-spring);
  cursor: default;
}

.contact-card:hover .character-placeholder-sm {
  transform: scale(1.1) translateY(-5px);
  border-color: var(--purple-300);
}

/* ============================================
   RESPONSIVE OVERRIDES FOR NEW COMPONENTS
   ============================================ */
@media (max-width: 992px) {
  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-right {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .news-dots {
    flex-direction: row;
    justify-content: center;
  }

  .news-character-area {
    min-height: auto;
  }

  .character-placeholder-lg {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 768px) {
  .hero-hanging-character {
    bottom: -40px;
  }

  .character-placeholder {
    width: 100px;
    height: 100px;
  }

  .hanging-rope {
    height: 25px;
  }

  .section-header-flex {
    display: block;
  }

  .section-header-flex .header-left {
    display: block;
    width: 100%;
    margin-bottom: 2rem;
  }

  .section-header-flex .header-right {
    display: flex;
    justify-content: flex-end;
    width: 100%;
  }

  .service-cards-track {
    padding-right: 2rem;
    max-width: 100%;
  }

  .service-area-card {
    flex: 0 0 280px;
    width: 280px;
  }

  .team-card {
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 2rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .team-card {
    flex-direction: column;
    text-align: center;
  }

  .card-left {
    border-right: none;
    border-bottom: 1px solid var(--purple-700);
    padding: 2rem;
  }

  .card-right {
    padding: 2rem;
    align-items: center;
  }

  .card-skills {
    justify-content: center;
  }

  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .contact-card {
    padding: 1rem 0.5rem;
  }

  .contact-card h4 {
    font-size: 0.9rem;
  }

  .contact-card p,
  .contact-card a {
    font-size: 0.75rem;
    word-break: break-all;
  }

  .contact-card-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
}

/* ============================================
   SERVICE PAGE STYLES
   (Hero lives in /service/service.css as .svc-hero)
   ============================================ */
.service-page {
  scroll-behavior: smooth;
}

/* --- Industry Selector --- */
.industry-selector-section {
  position: relative;
  padding-bottom: 0;
  min-height: auto;
}

.selector-header h2 {
  text-align: center;
  font-size: 1.5rem;
  color: var(--purple-300);
  margin-bottom: var(--space-2xl);
}

.earth-selector-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 120px;
  /* Space for the oval */
  min-height: 400px;
}

.industry-intro-oval {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 500px;
  background: var(--white);
  color: var(--purple-900);
  padding: 2rem;
  border-radius: 100px / 50px;
  text-align: center;
  z-index: 10;
  box-shadow: var(--shadow-lg);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.industry-intro-oval h3 {
  color: var(--purple-600);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.tech-globe-bg {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  z-index: 1;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(60, 30, 100, 0.4) 0%, transparent 70%);
}

.globe-core {
  position: absolute;
  top: 20%;
  left: 20%;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(124, 69, 212, 0.8), rgba(20, 10, 35, 0.9));
  box-shadow: inset -20px -20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(124, 69, 212, 0.5);
  background-image:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 20px 20px, 10px 10px;
  background-position: 0 0, 5px 5px;
}

.globe-rings {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.globe-rings .ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px dashed rgba(160, 114, 230, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.globe-rings .ring-1 {
  width: 80%;
  height: 80%;
  transform: translate(-50%, -50%) rotateX(75deg);
  border: 2px dotted rgba(160, 114, 230, 0.8);
  animation: rotateRing 20s linear infinite;
}

.globe-rings .ring-2 {
  width: 90%;
  height: 90%;
  transform: translate(-50%, -50%) rotateX(60deg) rotateY(20deg);
  border: 1px solid rgba(160, 114, 230, 0.3);
  animation: rotateRing 30s linear infinite reverse;
}

.globe-rings .ring-3 {
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) rotateX(80deg) rotateY(-20deg);
  border: 1px dashed rgba(160, 114, 230, 0.4);
  animation: rotateRing 40s linear infinite;
}

@keyframes rotateRing {
  0% {
    transform: translate(-50%, -50%) rotateX(75deg) rotateZ(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotateX(75deg) rotateZ(360deg);
  }
}

.connecting-lines {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  height: 200px;
  z-index: 2;
}

.connecting-lines svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.connecting-lines .line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 2;
  stroke-dasharray: 4;
}

.industry-options {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 5%;
  margin-top: auto;
  margin-bottom: 30px;
}

.option-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.option-dot .dot-inner {
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: 50%;
  border: 3px solid var(--purple-400);
  transition: all var(--transition-base);
}

.option-dot.active .dot-inner,
.option-dot:hover .dot-inner {
  background: var(--purple-400);
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--purple-400);
}

.option-dot .dot-label {
  color: var(--white);
  font-weight: 500;
}

/* Arc positioning */
.industry-options .option-dot:nth-child(1),
.industry-options .option-dot:nth-child(5) {
  margin-top: 60px;
}

.industry-options .option-dot:nth-child(2),
.industry-options .option-dot:nth-child(4) {
  margin-top: 20px;
}

.industry-options .option-dot:nth-child(3) {
  margin-top: -10px;
}


/* --- Service Details --- */
.service-details-section {
  padding-top: var(--space-xl);
  background: linear-gradient(180deg, var(--purple-900) 0%, var(--purple-25) 150px, var(--purple-25) 100%);
}

.pain-points-box {
  background: var(--white);
  color: var(--purple-900);
  padding: 3rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: var(--space-3xl);
  box-shadow: var(--shadow-lg);
}

.pain-points-box2 {
  color: var(--purple-900);
  padding: 4rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: var(--space-3xl);

}

.pain-points-box h3 {
  color: var(--purple-800);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-offer-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.service-offer-header h2 {
  color: var(--purple-900);
}

.maintenance-plan-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: var(--space-3xl);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.avatar-cute {
  flex-shrink: 0;
}

.avatar-oval {
  width: 100px;
  height: 130px;
  background: var(--white);
  border: 2px solid var(--purple-400);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-600);
  font-weight: bold;
}

.plan-box {
  flex-grow: 1;
  background: rgba(58, 27, 107, 0.85);
  /* Slightly lighter purple with transparency */
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(34, 16, 64, 0.25);
  border-color: rgba(255, 255, 255, 0.2);
}

.plan-content {
  color: var(--purple-100);
  max-width: 60%;
}

.plan-content h3 {
  margin-bottom: 0.5rem;
  color: var(--white);
}

.plan-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
}

.plan-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-white {
  background: var(--white);
  color: var(--purple-700);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-white:hover {
  background: var(--purple-50);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
  font-weight: 600;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* --- Service Tabs --- */
.service-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.8rem 2rem;
  background: var(--purple-800);
  color: var(--purple-200);
  border: 2px solid var(--purple-400);
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--transition-base);
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--purple-400);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

/* --- Timeline --- */
.service-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--purple-300);
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-node {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
}

.timeline-node:last-child {
  margin-bottom: 0;
}

.node-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background: var(--purple-300);
  border-radius: 50%;
  z-index: 2;
  border: 4px solid var(--purple-800);
}

.node-content {
  width: 50%;
  padding-right: 3rem;
  display: flex;
  justify-content: flex-end;
}

.node-content.alt-side {
  padding-right: 0;
  padding-left: 3rem;
  margin-left: auto;
  justify-content: flex-start;
}

.node-box {
  background: rgba(58, 27, 107, 0.85);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 450px;
  color: var(--purple-100);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.node-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(34, 16, 64, 0.25);
  border-color: rgba(255, 255, 255, 0.2);
}

.node-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.node-box h4 {
  color: var(--white);
  margin-bottom: 0;
}

.price-tag {
  background: var(--accent-gold);
  color: var(--purple-900);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.process-list {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none;
  font-size: 0.9rem;
  color: var(--purple-100);
}

.process-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.process-list li::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  color: var(--purple-300);
  font-weight: bold;
}

.node-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* Responsive adjustments for service page */
@media (max-width: 768px) {
  .maintenance-plan-container {
    flex-direction: column;
    text-align: center;
  }

  .plan-box {
    flex-direction: column;
    gap: 1.5rem;
  }

  .plan-content {
    max-width: 100%;
  }

  .plan-right-col {
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
  }

  .plan-actions {
    flex-direction: row;
    justify-content: center;
  }

  .timeline-line {
    left: 20px;
  }

  .node-dot {
    left: 20px;
  }

  .node-content,
  .node-content.alt-side {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .node-box {
    max-width: 100%;
  }

  .industry-options {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .industry-options .option-dot {
    margin-top: 0 !important;
  }

  .connecting-lines {
    display: none;
  }

  .tech-globe-bg {
    width: 300px;
    height: 300px;
    bottom: -20px;
  }

  .industry-intro-oval {
    position: relative;
    transform: none;
    left: 0;
    width: 90%;
    margin-bottom: 2rem;
  }

  .earth-selector-container {
    padding-top: 2rem;
  }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--purple-600);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top-btn:hover {
  background: var(--purple-400);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(160, 114, 230, 0.4);
}

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

@media (max-width: 768px) {
  .back-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

/* mailto fallback toast — shown when mail client likely did not open */
.mailto-fallback-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 3000;
  width: min(420px, calc(100vw - 2rem));
  pointer-events: auto;
}

.mailto-fallback-toast[hidden] {
  display: none !important;
}

.mailto-fallback-inner {
  position: relative;
  padding: 1.1rem 1.25rem 1.15rem;
  border-radius: var(--radius-lg, 12px);
  background: rgba(30, 16, 48, 0.96);
  border: 1px solid rgba(160, 114, 230, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  color: var(--purple-100, #f3eaff);
}

.mailto-fallback-close {
  position: absolute;
  top: 0.35rem;
  right: 0.55rem;
  border: 0;
  background: transparent;
  color: var(--purple-300, #c9a8f0);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.mailto-fallback-title {
  margin: 0 1.5rem 0.55rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--purple-200, #e4d2ff);
}

.mailto-fallback-address {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  word-break: break-all;
  color: #fff;
}

.mailto-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}