﻿/* ── Services ── */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--element-gap);
  margin-top: 32px;
  margin-bottom: var(--element-gap);
}
.services-grid-4 {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--element-gap);
  margin-top: 20px;
  margin-bottom: var(--element-gap);
}
.service-card {
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
}
/* 顶边光带 — now via .glow-top-bar shared class */
/* 卡片浮升 — now via .card-lift shared class */
/* 玻璃面板 — now via .glass-panel shared class */

/* ── Service Card with background image ── */
.service-card-cover {
  width: 100%;
  aspect-ratio: 21/9;
  background: rgba(255, 255, 255, 0.03);
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 15%,
    transparent 35%,
    rgba(4, 8, 26, 0.3) 55%,
    rgba(4, 8, 26, 0.7) 75%,
    rgba(4, 8, 26, 0.92) 90%,
    #04081a 100%
  );
  pointer-events: none;
}
.service-card-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 20px 20px 18px;
  pointer-events: none;
}
/* 业务介绍卡片右下角按钮 */
.service-card-btn {
  position: absolute;
  bottom: 14px;
  right: 16px;
  z-index: 3;
  font-size: 11px;
  padding: 7px 16px;
  pointer-events: auto;
}
.service-img {
  width: 100%; aspect-ratio: 16/10;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  position: relative;
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  color: var(--fog); font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.service-img::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.service-img img { width: 100%; height: 100%; object-fit: cover; }
.services-grid .service-card {
  padding: 24px;
  display: block;
  overflow: visible;
}
.services-grid .service-card-body {
  position: static;
  padding: 0;
}

.services-grid .service-card h3 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 2px;
  color: var(--electric);
  text-align: center;
}
.service-card p { font-size: 11px; color: rgba(255, 255, 255, 0.60); line-height: 1.5; }
.service-subtitle {
  font-size: 10px; font-weight: 600; color: var(--electric) !important;
  letter-spacing: 0.03em; text-transform: uppercase;
  margin-bottom: 6px;
  text-align: center;
}
.service-list {
  list-style: none; padding: 0;
  font-size: 11px; color: rgba(255, 255, 255, 0.60); line-height: 1.5;
}
.service-list li { font-size: 11px; color: rgba(255, 255, 255, 0.60); line-height: 1.5; margin-bottom: 3px; padding-left: 12px; position: relative; }
.service-list li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--electric);
}
.service-list li strong { color: var(--bone); font-weight: 600; }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 2px;
  color: var(--paper);
}
.service-card p { font-size: 11px; color: rgba(255, 255, 255, 0.60); line-height: 1.5; }
/* ── Carousel ── */
.carousel {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  aspect-ratio: 16/7;
}
.carousel-track {
  display: flex; height: 100%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.carousel-slide {
  min-width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  color: var(--fog); font-size: 14px;
  overflow: hidden;
  position: relative;
}
.carousel-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.carousel-caption {
  position: absolute;
  top: 14px;
  left: 18px;
  padding: 5px 13px;
  background: rgba(4, 8, 26, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  pointer-events: none;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(4, 8, 26, 0.50);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s, border-color 0.3s, color 0.3s; z-index: 5;
}
.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
  color: var(--paper);
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.carousel-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.25); border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot:hover { transform: scale(1.4); }
.carousel-dot.active { background: var(--paper); width: 18px; border-radius: 10px; }
.carousel-counter {
  position: absolute; top: 16px; right: 20px;
  font-size: 12px; color: rgba(255,255,255,0.45);
  font-family: var(--font-body); z-index: 5;
}

/* ── Equipment Grid ── */
.equip-category {
  margin-bottom: 36px;
}
.equip-cat-title {
  font-family: 'RuiZiZongYi', 'Inter Tight', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px; font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.equip-list {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.equip-item {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 11px; color: var(--bone);
  display: flex; align-items: center; gap: 8px;
  transition: background 0.3s, border-color 0.2s;
}
.equip-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}
.equip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--electric); flex-shrink: 0;
}

/* ── Works Carousel ── */
.masonry-carousel-wrap {
  position: relative;
  margin-top: 32px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}
.masonry-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: worksMarquee 50s linear infinite;
}
.masonry-track:hover {
  animation-play-state: paused;
}
@keyframes worksMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.masonry-item {
  flex-shrink: 0;
  width: 280px;
  border-radius: var(--radius-md); overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  cursor: pointer; position: relative;
  transition: background 0.3s, border-color 0.25s, transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.masonry-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-6px);
}
.masonry-item img, .masonry-item video {
  width: 280px; height: 200px; object-fit: cover; display: block;
}
.masonry-item .masonry-placeholder {
  width: 280px; height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}
.masonry-item .masonry-placeholder .play-badge { display: none; }
.masonry-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7) 100%);
  opacity: 1;
  display: flex; align-items: flex-end; padding: 16px;
}
.masonry-item:hover .overlay { opacity: 1; }
.masonry-item .overlay span {
  font-size: 12px; font-weight: 500; color: var(--paper);
}
.masonry-item .play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,0,0,0.7); border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--paper); font-size: 18px; pointer-events: none;
  transition: border-color 0.25s;
  z-index: 2;
}
.masonry-item:hover .play-badge { border-color: var(--brand-blue); }
@media (max-width: 600px) {
  .masonry-item { width: 220px; }
  .masonry-item img, .masonry-item video { width: 220px; height: 160px; }
  .masonry-item .masonry-placeholder { width: 220px; height: 160px; }
  .masonry-track { gap: 8px; }
}


/* ── 平面灯箱 ── */
.gallery-lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 95vw;
  width: auto;
  max-height: 90vh;
}

/* 主图区域 + 箭头包裹 */
.gallery-lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82vw;
  max-width: 1300px;
  min-height: 0;
}

.gallery-lightbox-main {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(0,0,0,0.3);
  overflow: hidden;
  max-height: 75vh;
}

.gallery-lightbox-main img {
  display: block;
  max-height: 75vh;
  max-width: 62vw;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: scale-down;
}

/* 左右翻页箭头 — 固定钉死在 stage 两侧 */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  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: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.gallery-prev { left: 0; }
.gallery-next { right: 0; }

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 196, 44, 0.50);
  transform: translateY(-50%) scale(1.1);
}

.gallery-lightbox-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  flex-shrink: 0;
}

.gallery-thumb {
  width: 80px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.6;
  flex-shrink: 0;
}

.gallery-thumb.active {
  border-color: var(--electric);
  opacity: 1;
}

.gallery-thumb:hover {
  opacity: 1;
  border-color: rgba(255,255,255,0.35);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.gallery-lightbox-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--paper);
  flex-shrink: 0;
  padding-bottom: 4px;
}
.gallery-lightbox-title span {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  margin-left: 8px;
}

@media (max-width: 960px) {
  .gallery-lightbox-inner { max-width: 92vw; }
  .gallery-lightbox-main img { max-height: none; max-width: 56vw; }
  .gallery-nav { width: 40px; height: 40px; }
}

@media (max-width: 600px) {
  .gallery-lightbox-inner { max-width: 96vw; }
  .gallery-lightbox-main img {
    max-height: none;
    max-width: 78vw;
  }
  .gallery-lightbox-stage { gap: 4px; }
  .gallery-lightbox-thumbs { gap: 3px; }
  .gallery-thumb { width: 48px; height: 32px; }
  .gallery-nav { width: 32px; height: 32px; }
}

/* ── Filter pills ── */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px;
}
.filter-pill {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ash);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-pill);
  padding: 5px 16px; font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.filter-pill:hover {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}
.filter-pill.active {
  color: var(--paper);
  border-color: var(--brand-blue);
  background: rgba(3, 43, 171, 0.15);
}

/* ── Clients ── */
.client-group-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 14px 10px;
  transition: background 0.3s, border-color 0.25s;
  break-inside: avoid;
  margin-bottom: var(--element-gap);
}
.client-group-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}
.client-group-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.client-group-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px;
  margin-top: 32px;
  overflow: visible;
}
.client-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: -0.01em;
  text-align: center;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}
.client-item .client-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.client-item:hover .client-img {
  transform: scale(1.25);
}
.client-item:hover {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ── Contact ── */
.contact-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg); padding: 36px;
  margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px;
  transition: background 0.3s, border-color 0.25s;
}
.contact-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500; letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.contact-info p { font-size: 12px; color: rgba(255, 255, 255, 0.55); margin-bottom: 20px; }
.contact-item {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px; color: var(--silver); font-size: 12px;
}
.contact-item .ci-icon {
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.contact-form { display: flex; flex-direction: column; gap: 10px; }
.contact-form input, .contact-form textarea {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-sm); padding: 10px 14px;
  color: var(--paper); font-family: var(--font-body);
  font-size: 12px; outline: none; transition: background 0.3s, border-color 0.2s;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--brand-blue);
  background: rgba(255, 255, 255, 0.07);
}
.contact-form textarea { min-height: 80px; }
.contact-form button {
  align-self: flex-start;
  background: var(--brand-blue); color: var(--paper);
  border: none; border-radius: var(--radius-pill);
  padding: 10px 24px; font-size: 12px; font-weight: 500;
  cursor: pointer;
}
.contact-form button:hover .btn-text {
  transform: translateX(-6px);
}

/* ── Footer ── */
/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-content { max-width: 95vw; max-height: 95vh; border-radius: var(--radius-md); overflow: visible; }
.lightbox-content img, .lightbox-content video { max-width: 100%; max-height: 85vh; display: block; }
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid var(--slate);
  color: var(--paper); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.15); }