/* ==========================================================================
   SSOne Support Center - 35 | 滚动产品长廊 (Horizontal Gallery Styles)
   Keynote / Product Launch Aesthetic
   ========================================================================== */

.gallery-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background: #09090b;
}

.gallery-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 20px;
}

.gallery-nav-buttons {
  display: flex;
  gap: 12px;
}

.gallery-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-btn:hover {
  background: #ffffff;
  color: #09090b;
  border-color: #ffffff;
  transform: scale(1.05);
}

.gallery-btn:active {
  transform: scale(0.95);
}

.gallery-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Scroll Container */
.gallery-scroll-container {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 12px 20px 32px;
  margin: 0 -20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.gallery-scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

/* Gallery Card */
.gallery-card {
  flex: 0 0 380px;
  scroll-snap-align: start;
  background: linear-gradient(180deg, #16161a 0%, #0d0d10 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 440px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.gallery-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.gallery-index {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.gallery-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  color: #ffffff;
}

.gallery-visual-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #ffffff;
}

.gallery-card-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.gallery-card-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 24px;
  flex-grow: 1;
}

.gallery-card-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #d4d4d8;
}

.gallery-card-feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-card-feature-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
  flex-shrink: 0;
}

.gallery-card-action {
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gallery-action-link {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gallery-action-link svg {
  transition: transform var(--transition-fast);
}

.gallery-card:hover .gallery-action-link svg {
  transform: translateX(4px);
}

/* Gallery Progress & Scroll Indicator */
.gallery-controls-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 0 4px;
}

.gallery-progress-track {
  flex-grow: 1;
  max-width: 240px;
  height: 3px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.gallery-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 25%;
  background: #ffffff;
  border-radius: var(--radius-full);
  transition: width 0.15s ease, left 0.15s ease;
}

.gallery-hint-text {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .gallery-card {
    flex: 0 0 300px;
    padding: 28px 24px;
    min-height: 400px;
  }
  .gallery-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .gallery-nav-buttons {
    display: none; /* Swipe works natively on mobile */
  }
}

@media (max-width: 360px) {
  .gallery-card {
    flex: 0 0 270px;
    padding: 24px 18px;
  }
}
