@charset "UTF-8";

/* ============================================
   福州玥米智能 · 团队页 / 施工实录页 专用样式
   仅由 team.html 与 gallery.html 引用
   ============================================ */

/* ---------- 工程师卡片墙 ---------- */
.eng-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 24px;
}

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

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

.eng-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.eng-card__avatar {
  flex: 0 0 84px;
  width: 84px;
  height: 104px;
  object-fit: cover;
  object-position: center 12%;
  border-radius: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .eng-card__avatar { flex-basis: 96px; width: 96px; height: 118px; }
}

.eng-card__body { min-width: 0; }

.eng-card__name {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.eng-card__badge {
  font-size: .75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 1px 9px;
}

.eng-card__meta {
  margin: 4px 0 0;
  font-size: .8125rem;
  color: var(--muted);
}

.eng-card__stars {
  color: #e8a33d;
  letter-spacing: 1px;
}

.eng-card__motto {
  margin: 8px 0 0;
  padding-left: 10px;
  border-left: 3px solid var(--accent-soft);
  font-size: .8125rem;
  color: var(--muted);
  font-style: normal;
}

.eng-card__bio {
  margin: 10px 0 0;
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ---------- 证书 ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 22px;
}

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

.cert-card {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.cert-card img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg-soft);
}

.cert-card figcaption { padding: 12px 14px 14px; }

.cert-card h3 {
  margin: 0 0 6px;
  font-size: .9375rem;
  color: var(--text);
}

.cert-card p {
  margin: 0;
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ---------- 施工实录：筛选 + 瀑布墙 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 6px;
}

.filter-bar__btn {
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: .875rem;
  padding: 6px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .16s ease;
}

.filter-bar__btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-bar__btn[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
}

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

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

.wall__item {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.wall__item[hidden] { display: none; }

.wall__item button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  line-height: 0;
}

.wall__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  background: var(--bg-soft);
  transition: transform .25s ease;
}

.wall__item button:hover img { transform: scale(1.03); }

.wall__item figcaption {
  padding: 9px 10px 10px;
  font-size: .8125rem;
  line-height: 1.6;
}

.wall__item figcaption strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: .8125rem;
}

.wall__item figcaption span {
  display: block;
  color: var(--muted);
  font-size: .75rem;
  margin-top: 2px;
}

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 20px 14px;
  background: rgba(12, 20, 32, .93);
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  background: #fff;
}

.lightbox__cap {
  color: #eef4fb;
  font-size: .875rem;
  text-align: center;
  max-width: 720px;
}

.lightbox__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 22px;
  line-height: 40px;
  cursor: pointer;
}

.lightbox__nav {
  display: flex;
  gap: 10px;
}

.lightbox__nav button {
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font: inherit;
  font-size: .875rem;
  padding: 6px 18px;
  border-radius: 999px;
  cursor: pointer;
}

.lightbox__nav button:hover { background: rgba(255, 255, 255, .22); }

/* ---------- 团队活动照 ---------- */
.team-photo {
  margin: 22px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.team-photo img { display: block; width: 100%; height: auto; }

.team-photo figcaption {
  padding: 10px 14px;
  font-size: .8125rem;
  color: var(--muted);
  background: var(--bg-soft);
}

/* ---------- 数据条 ---------- */
.fact-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 22px 0 0;
}

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

.fact-row div {
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.fact-row b {
  display: block;
  font-size: 1.375rem;
  color: var(--primary);
  line-height: 1.3;
}

.fact-row span {
  font-size: .8125rem;
  color: var(--muted);
}
