:root {
  --color-primary: #0c2340;
  --color-primary-light: #163a66;
  --color-accent: #c8a45c;
  --color-accent-light: #dfc07a;
  --color-bg: #f7f8fa;
  --color-surface: #ffffff;
  --color-text: #1a2332;
  --color-text-muted: #5c6778;
  --color-border: rgba(12, 35, 64, 0.08);
  --shadow-sm: 0 4px 20px rgba(12, 35, 64, 0.06);
  --shadow-md: 0 12px 40px rgba(12, 35, 64, 0.12);
  --shadow-lg: 0 24px 60px rgba(12, 35, 64, 0.18);
  --radius: 16px;
  --header-height: 76px;
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 6rem 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.section-label::before {
  content: "";
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.section-desc {
  max-width: 680px;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.logo-en {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  color: var(--color-accent);
  font-weight: 600;
}

.logo-cn {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.site-header:not(.scrolled) .logo-cn,
.site-header:not(.scrolled) .logo-en {
  color: #fff;
}

.site-header:not(.scrolled) .logo-en {
  color: var(--color-accent-light);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  transition: color var(--transition);
  position: relative;
}

.site-header.scrolled .nav-link {
  color: var(--color-text);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

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

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition);
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 164, 92, 0.35);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.site-header.scrolled .menu-toggle {
  color: var(--color-primary);
  background: var(--color-bg);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: var(--transition);
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

.menu-toggle.open span {
  background: transparent;
}

.menu-toggle.open span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.open span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(160deg, #081829 0%, #0c2340 60%, #102845 100%);
  padding: calc(var(--header-height) + 5rem) 0 5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 85% 40%, rgba(200, 164, 92, 0.07), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 164, 92, 0.35), transparent);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-main {
  max-width: 620px;
}

.hero-carousel {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.carousel-viewport {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  position: relative;
  height: 100%;
  background: #fff;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(8, 24, 41, 0.88), transparent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  z-index: 2;
}

.carousel-btn:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: var(--transition);
}

.carousel-dot.active {
  width: 24px;
  border-radius: 999px;
  background: var(--color-accent);
}

.hero-stats-bar {
  background: #071525;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 0;
}

.hero-stats-bar .hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 0;
  background: none;
  border: none;
  backdrop-filter: none;
  margin: 0;
}

.hero-stats-bar .stat-item strong {
  color: var(--color-accent-light);
}

.hero-stats-bar .stat-item span {
  color: rgba(255, 255, 255, 0.65);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(200, 164, 92, 0.4);
  border-radius: 999px;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  color: var(--color-accent-light);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(1.875rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  word-break: keep-all;
}

.hero-title span {
  display: block;
  font-size: clamp(0.8125rem, 1.5vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--color-accent-light);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.8;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(200, 164, 92, 0.35);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-item strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent-light);
  line-height: 1.2;
}

.stat-item span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* About */
.about-grid {
  display: block;
  margin-top: 3.5rem;
}

.about-images {
  display: none;
}

.about-text p + p {
  margin-top: 1rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.value-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.value-num {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.value-card h3 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.value-card ul {
  list-style: none;
}

.value-card li {
  position: relative;
  padding-left: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.value-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

.qualifications {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.qual-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: rgba(12, 35, 64, 0.06);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--color-primary);
  font-weight: 500;
}

.qual-tag svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

/* Projects */
.projects-section {
  background: var(--color-primary);
  color: #fff;
}

.projects-section .section-label {
  color: var(--color-accent-light);
}

.projects-section .section-title {
  color: #fff;
}

.projects-section .section-desc {
  color: rgba(255, 255, 255, 0.72);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.project-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  transition: var(--transition);
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(200, 164, 92, 0.4);
  transform: translateY(-2px);
}

.project-index {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(200, 164, 92, 0.15);
  color: var(--color-accent-light);
  font-size: 0.8125rem;
  font-weight: 700;
}

.project-card h3 {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Cases */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

.case-card {
  cursor: pointer;
}

.case-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #eef1f5;
  border: 1px solid var(--color-border);
}

.case-thumb img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
  transition: transform 0.6s ease;
}

.case-card h3 {
  margin-top: 0.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-primary);
}

.case-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 35, 64, 0.45);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity var(--transition);
}

.case-overlay span {
  padding: 0.625rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
}

.case-card:hover .case-overlay {
  opacity: 1;
}

.case-card:hover .case-thumb img {
  transform: scale(1.02);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  align-items: stretch;
}

.contact-map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  min-height: 360px;
  background: #eef1f5;
}

.amap-container {
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.map-link-float {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.map-link-float:hover {
  background: var(--color-primary-light);
}

.contact-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.map-link-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: var(--transition);
}

.map-link-inline:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}

.map-link-secondary {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.map-link-secondary:hover {
  background: var(--color-bg);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.contact-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(12, 35, 64, 0.06);
  color: var(--color-accent);
}

.contact-item h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.375rem;
}

.contact-item p,
.contact-item a {
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--color-accent);
}

/* Footer */
.site-footer {
  background: #081829;
  color: rgba(255, 255, 255, 0.72);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand .logo-cn {
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 24, 41, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 960px;
  width: 100%;
}

.lightbox-content img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  text-align: center;
  color: #fff;
  margin-top: 1.25rem;
  font-size: 1.125rem;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: var(--transition);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
  top: -60px;
  right: 0;
}

.lightbox-prev {
  left: -72px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: -72px;
  top: 50%;
  transform: translateY(-50%);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-carousel {
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
  }

  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats,
  .hero-stats-bar .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .lightbox-prev {
    left: 0;
    top: auto;
    bottom: -64px;
    transform: none;
  }

  .lightbox-next {
    right: 0;
    top: auto;
    bottom: -64px;
    transform: none;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 2rem;
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .nav-link {
    color: var(--color-text);
    font-size: 1.125rem;
  }

  .header-cta {
    display: none;
  }

  .about-grid,
  .contact-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: calc(var(--header-height) + 3rem) 0 3rem;
  }

  .hero-stats-bar {
    padding: 1.5rem 0;
  }

  .hero-stats,
  .hero-stats-bar .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

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

  .section {
    padding: 4rem 0;
  }
}
