/* ===== 首享科技大厦专题页样式 ===== */

/* --- Hero Section --- */
.building-hero {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.building-hero-bg .hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.2) 0%,
    rgba(251,191,36,0.15) 40%,
    rgba(236,72,153,0.1) 70%,
    rgba(0,0,0,0.5) 100%
  );
}

/* Hero 弥散光球 */
.building-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  pointer-events: none;
  animation: orbFloat 10s ease-in-out infinite;
  z-index: 1;
}
.orb-b1 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(251,191,36,0.6), transparent 70%);
  top: -120px; right: -80px;
}
.orb-b2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(236,72,153,0.5), transparent 70%);
  bottom: -60px; left: -60px;
  animation-delay: -4s;
}

.building-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 60px 24px 40px;
}

.building-badge {
  display: block;
  width: fit-content;
  margin: 0 auto 40px;
  padding: 8px 24px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  font-size: 13px;
  letter-spacing: 3px;
  line-height: 1.6;
  animation: fadeIn 1s ease;
}

.building-title {
  font-size: 68px;
  font-weight: 900;
  letter-spacing: 4px;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff 0%, #fde68a 40%, #fbcfe8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 20px;
  padding: 0;
  animation: fadeIn 1s ease 0.2s both;
}

.building-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  letter-spacing: 2px;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease 0.4s both;
}

.building-hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.6s both;
}

.bh-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bh-stat-num {
  font-size: 36px;
  font-weight: 800;
  color: #fde68a;
  letter-spacing: 1px;
}

.bh-stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
}

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

/* --- 楼宇概览 --- */
.building-overview {
  padding: 36px 0;
  position: relative;
  background: #fffcf8;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.overview-text .section-tag {
  display: inline-block;
  padding: 4px 16px;
  background: rgba(251,191,36,0.12);
  color: #d97706;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.overview-text .section-title {
  font-size: 36px;
  font-weight: 800;
  color: #1a1535;
  line-height: 1.3;
  margin-bottom: 24px;
}

.overview-desc {
  font-size: 16px;
  color: #5b566e;
  line-height: 1.8;
  margin-bottom: 32px;
}

.overview-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ov-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(251,191,36,0.15);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.ov-feature:hover {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 4px 20px rgba(251,191,36,0.15);
  transform: translateX(6px);
}

.ovf-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.ov-feature strong {
  display: block;
  font-size: 15px;
  color: #1a1535;
  margin-bottom: 2px;
}

.ov-feature p {
  font-size: 13px;
  color: #9491a7;
  margin: 0;
}

.overview-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.overview-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  transition: transform 0.6s ease;
}

.overview-image:hover img {
  transform: scale(1.04);
}

.ov-image-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 6px 16px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 13px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

/* --- Gallery Sections --- */
.building-gallery {
  padding: 32px 0;
  position: relative;
  background: #fff;
}

.building-gallery.alt-bg {
  background: #fafbfc;
}

.gallery-header {
  text-align: center;
  margin-bottom: 28px;
}

.gallery-header .section-tag {
  display: inline-block;
  padding: 4px 16px;
  background: rgba(251,191,36,0.12);
  color: #d97706;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.gallery-header .section-title {
  font-size: 36px;
  font-weight: 800;
  color: #1a1535;
  margin-bottom: 12px;
}

.gallery-header .section-desc {
  font-size: 16px;
  color: #9491a7;
  max-width: 560px;
  margin: 0 auto;
}

.gallery-sub-header {
  font-size: 15px;
  font-weight: 700;
  color: #d97706;
  letter-spacing: 2px;
  padding: 8px 0;
  margin: 20px 0 14px;
  border-bottom: 2px dashed rgba(251,191,36,0.25);
}

/* Gallery Grid variants */
.gallery-grid {
  display: grid;
  gap: 24px;
}
.gallery-grid-2 { grid-template-columns: 1fr 1fr; }
.gallery-grid-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-grid-5 { grid-template-columns: repeat(5, 1fr); }

.gallery-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(251,191,36,0.22);
}

.gallery-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  max-height: 260px;
}

/* 正方形图片网格（泰富酒店等使用） */
.gallery-square .gallery-img-wrap {
  aspect-ratio: 1/1;
  max-height: none;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-card:hover .gallery-img-wrap img {
  transform: scale(1.08);
}

/* 统一图片宽高比 */
.gallery-card .gallery-img-wrap {
  aspect-ratio: 4/3;
}

.gallery-caption {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1535;
  text-align: center;
  letter-spacing: 1px;
}

/* --- CTA Section --- */
.building-cta {
  padding: 32px 0;
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 28px 36px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 40%, #ec4899 100%);
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 12px 40px rgba(251,191,36,0.25);
}

.cta-text h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 8px;
}

.cta-text p {
  font-size: 15px;
  opacity: 0.9;
  max-width: 440px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-actions .btn-primary {
  padding: 16px 36px;
  background: #fff;
  color: #d97706;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.cta-actions .btn-secondary {
  padding: 16px 36px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-actions .btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* --- More Buildings --- */
.building-nav-footer {
  padding: 28px 0;
  text-align: center;
  background: #fffcf8;
}

.building-nav-footer h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1535;
  margin-bottom: 18px;
}

.more-buildings {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.more-bld-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(251,191,36,0.18);
  border-radius: 16px;
  text-decoration: none;
  color: #1a1535;
  transition: all 0.3s ease;
  min-width: 160px;
}

.more-bld-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(251,191,36,0.18);
  border-color: rgba(251,191,36,0.4);
}

.more-bld-card.disabled {
  opacity: 0.6;
  border-color: rgba(236,72,153,0.3);
  background: rgba(252,231,243,0.5);
  cursor: default;
  pointer-events: none;
}

.mbld-icon { font-size: 32px; }
.mbld-name { font-size: 14px; font-weight: 600; }
.mbld-size { font-size: 13px; color: #9491a7; }
.mbld-badge { font-size: 11px; padding: 2px 10px; background: rgba(236,72,153,0.12); color: #db2777; border-radius: 20px; }

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.4);
  animation: lightboxIn 0.3s ease;
}

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 36px;
  font-size: 44px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
  line-height: 1;
}

.lightbox-close:hover {
  color: #fff;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  font-size: 40px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 16px;
  transform: translateY(-50%);
  transition: color 0.2s;
  z-index: 10;
  user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: #fff;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-caption {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 8px 24px;
  background: rgba(0,0,0,0.5);
  border-radius: 50px;
  backdrop-filter: blur(8px);
}

/* --- Footer --- */
.site-footer {
  background: #1a1535;
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
}

.site-footer .footer-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .building-title { font-size: 44px; }
  .building-subtitle { font-size: 16px; }
  .building-hero-stats { gap: 28px; }
  .bh-stat-num { font-size: 28px; }

  .overview-grid { grid-template-columns: 1fr; gap: 40px; }
  .overview-image { order: -1; }

  .gallery-grid-4,
  .gallery-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-square.gallery-grid-4 { grid-template-columns: repeat(3, 1fr); }

  .cta-card { flex-direction: column; text-align: center; padding: 36px 28px; }
  .cta-text p { max-width: 100%; }
  .cta-actions { justify-content: center; }
}

@media (max-width: 640px) {
  .building-title { font-size: 32px; letter-spacing: 2px; }
  .building-subtitle { font-size: 14px; }
  .building-hero { height: 60vh; min-height: 420px; }
  .building-hero-stats { gap: 20px; }
  .bh-stat-num { font-size: 22px; }
  .bh-stat-label { font-size: 11px; }

  .overview-text .section-title { font-size: 26px; }
  .gallery-header .section-title { font-size: 26px; }

  .gallery-grid-2,
  .gallery-grid-3,
  .gallery-grid-4,
  .gallery-grid-5 { grid-template-columns: 1fr; }
  .gallery-square.gallery-grid-4 { grid-template-columns: repeat(2, 1fr); }

  .cta-card { padding: 28px 20px; border-radius: 18px; }
  .cta-text h2 { font-size: 22px; }
  .cta-actions .btn-primary,
  .cta-actions .btn-secondary { padding: 12px 24px; font-size: 14px; }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 16px; font-size: 32px; }
}
