﻿/* ── Glowing Border Animation ── */
@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes border-glow-spin {
  from { --border-angle: 0deg; }
  to   { --border-angle: 360deg; }
}

.glow-border {
  position: relative;
}

.glow-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.12) 40%,
    rgba(255, 255, 255, 0.25) 45%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 55%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
  animation: border-glow-spin 9s linear infinite;
  opacity: 0.6;
}

.glow-border:hover::before {
  animation-duration: 6s;
}

/* Speed variation — each card's glow trails slightly differently */
.glow-border:nth-child(odd)::before  { animation-duration: 10s; }
.glow-border:nth-child(even)::before { animation-duration: 8s; }
.glow-border:nth-child(3n)::before   { animation-duration: 11s; }
.glow-border:nth-child(5n+1)::before { animation-duration: 9.2s; }

.glow-border:hover::before {
  animation-duration: 6s !important;
}
/* Keep card content above the glow */
.glow-border > * {
  position: relative;
  z-index: 1;
}

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(4, 8, 26, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 52px;
}
.nav-logo img { height: 26px; display: block; }
.nav-links { display: flex; gap: 24px; list-style: none; perspective: 600px; }
.nav-links li { perspective: 600px; }
.nav-links a {
  color: var(--silver); text-decoration: none;
  font-size: 13px; font-weight: 500;
  display: inline-block;
  padding: 4px 0;
  transition: color 0.2s, transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
  transform-style: preserve-3d;
}
.nav-links a:hover { color: var(--paper); }
.nav-cta {
  background: var(--brand-blue); color: var(--paper);
  padding: 7px 18px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 500; text-decoration: none;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* ── Nav Dropdown ─ */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  color: var(--silver);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  user-select: none;
  transition: color 0.2s;
}
.nav-dropdown-trigger:hover { color: var(--paper); }
.nav-dropdown-trigger .nav-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}
.nav-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 140px;
  background: rgba(12, 16, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 8px 0;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 200;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--silver);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Hero gets a slower reveal */
.hero.reveal {
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Stagger children within a revealed container */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
/* 延迟采用自动生成方式——从第 1 个开始，每个间隔 0.05s */
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.00s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.06s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.12s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.18s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.24s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.30s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.36s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.42s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(9) { transition-delay: 0.48s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(10) { transition-delay: 0.54s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(n+11) { transition-delay: 0.60s; opacity: 1; transform: translateY(0); }

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 90;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.60);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s, border-color 0.3s, color 0.3s;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(3, 43, 171, 0.40);
  color: var(--brand-blue);
}
@media (max-width: 600px) {
  .back-to-top { bottom: 20px; right: 14px; width: 38px; height: 38px; font-size: 18px; }
}

/* ── Sections ── */
.section {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 48px var(--section-gap);
}
.section-label {
  font-size: 10px; font-weight: 600; color: var(--electric);
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 8px;
}
.section h2 {
  font-family: 'RuiZiZongYi', 'Inter Tight', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 42px; font-weight: 500;
  line-height: 1.05; letter-spacing: -0.04em;
  color: var(--paper); margin-bottom: 16px;
}
.section p {
  font-size: 14px; color: var(--bone); line-height: 1.7;
  max-width: 680px;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 8, 26, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 48px 48px 24px;
}
.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1.5fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .footer-logo {
  height: 32px;
  margin-bottom: 12px;
  display: block;
}
.footer-brand-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.50);
  line-height: 1.6;
  margin: 0 0 16px;
}
.footer-cert-list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 4px;
}
.footer-cert-title {
  font-size: 11px;
  font-weight: 400;
  color: var(--paper);
}
.footer-cert-link {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.50);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-cert-link:hover {
  color: var(--electric);
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--paper);
  margin: 0 0 12px;
}
.footer-col a {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.50);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--paper);
}
.footer-contact h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--paper);
  margin: 0 0 12px;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.50);
  margin-bottom: 8px;
}
.footer-contact-item a {
  color: rgba(255, 255, 255, 0.50);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-item a:hover {
  color: var(--paper);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-left {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.40);
}
.footer-bottom-right {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

/* Copyright Lightbox Grid */
.copyright-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}
.copyright-grid img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
}

/* Footer 响应式 */
@media (max-width: 960px) {
  .footer { padding: 32px 24px 20px; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid-4 { grid-template-columns: 1fr 1fr; }

  .clients-grid { gap: 4px; }
  .nav-links { display: none; }
  .team-group-2 { grid-template-columns: 1fr; }
  .team-group-4 { grid-template-columns: repeat(2, 1fr); }
  .equip-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero { min-height: 100vh; padding: 60px 24px 100px; }
  .section { padding: 0 24px 48px; }
    .clients-grid { gap: 4px; }
  .hero h1 { font-size: 30px; }
  .section h2 { font-size: 28px; }
  .about-stats { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .nav-inner { padding: 0 24px; height: 46px; }
  .nav-cta { display: none; }
  .team-group-4 { grid-template-columns: 1fr; }
  .team-member-lg { flex-direction: column; text-align: center; }
  .team-photo-lg { width: 100px; height: 100px; }
  .equip-list { grid-template-columns: 1fr; }
  .services-grid-4 { grid-template-columns: 1fr; }
}
  /* ── Modal ── */
	.modal-overlay {
	  position: fixed; inset: 0; z-index: 300;
	  background: rgba(0, 0, 0, 0.85);
	  backdrop-filter: blur(12px);
	  -webkit-backdrop-filter: blur(12px);
	  display: flex; align-items: center; justify-content: center;
	  opacity: 0; pointer-events: none;
	  transition: opacity 0.35s ease;
	}
	.modal-overlay.open { opacity: 1; pointer-events: auto; }
	.modal-panel {
	  background: rgba(11, 17, 53, 0.96);
	  backdrop-filter: blur(24px);
	  -webkit-backdrop-filter: blur(24px);
	  border: 1px solid rgba(255, 255, 255, 0.15);
	  border-radius: var(--radius-lg);
	  max-width: 800px; width: 760px; max-height: 85vh;
	  overflow-y: auto;
	  transform: translateY(30px) scale(0.96);
	  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	  position: relative;
	  padding: 0;
	}
	.modal-overlay.open .modal-panel {
	  transform: translateY(0) scale(1);
	}
	.modal-panel::-webkit-scrollbar { width: 4px; }
	.modal-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
	.modal-header-img {
	  width: 100%; aspect-ratio: 16/9;
	  background-size: cover; background-position: center;
	  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
	  position: relative;
	}
	.modal-header-img::after {
	  content: '';
	  position: absolute; inset: 0;
	  background: linear-gradient(180deg, transparent 40%, rgba(11, 17, 53, 0.96) 100%);
	  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
	}
	.modal-close {
	  position: absolute; top: 16px; right: 16px; z-index: 10;
	  width: 40px; height: 40px; border-radius: 50%;
	  background: rgba(0, 0, 0, 0.55);
	  backdrop-filter: blur(8px);
	  -webkit-backdrop-filter: blur(8px);
	  border: 1px solid rgba(255, 255, 255, 0.20);
	  color: var(--paper); font-size: 18px; cursor: pointer;
	  display: flex; align-items: center; justify-content: center;
	  transition: background 0.2s, border-color 0.2s;
	}
	.modal-close:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.35); }
	.modal-body { padding: 32px 36px 36px; }
	.modal-body h2 {
	  font-family: 'RuiZiZongYi', 'Inter Tight', 'PingFang SC', 'Microsoft YaHei', sans-serif;
	  font-size: 28px; font-weight: 500; letter-spacing: 0.02em; margin-bottom: 6px;
	}
	.modal-body .modal-subtitle { font-size: 13px; color: var(--electric); margin-bottom: 20px; font-weight: 500; }
	.modal-body p { font-size: 13px; color: rgba(255, 255, 255, 0.65); line-height: 1.8; margin-bottom: 16px; }
	.modal-stats-row { display: flex; gap: 32px; margin: 24px 0; flex-wrap: wrap; }
	.modal-stat { text-align: center; }
	.modal-stat-num { font-family: var(--font-display); font-size: 36px; font-weight: 500; color: var(--electric); line-height: 1; }
	.modal-stat-label { font-size: 11px; color: rgba(255,255,255,0.50); margin-top: 4px; }
	.modal-client-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
	.modal-client-tag { white-space: nowrap;

	  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
	  border-radius: var(--radius-pill); padding: 8px 14px;
	  font-size: 12px; text-align: center; color: var(--bone);
	  transition: background 0.2s, border-color 0.2s;
	}
	.modal-client-tag:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.20); }
	@media (max-width: 600px) {
	  .modal-body { padding: 24px 20px 28px; }
	  .modal-body h2 { font-size: 22px; }
	  .modal-stat-num { font-size: 26px; }
	  .modal-panel { width: calc(100vw - 32px); }
	  .lightbox-content { overflow: visible; }
	}