/*
 * Gallery Layout - 展示区布局
 * 适用于：落地页、商店、验真、作品详情等展示页面
 * 风格：艺术画廊 / 数字收藏证书市场
 */

/* ============================================
   CSS 变量 - 展示区专用
   ============================================ */
:root {
  --gallery-bg: #FDFCFA;              /* 宣纸白 */
  --gallery-bg-alt: #F8F6F1;          /* 宣纸白变体 */
  --gallery-card-bg: #FFFFFF;
  --gallery-border: #E8E4DC;
  --gallery-text-primary: #1A1A1A;
  --gallery-text-secondary: #5C5C5C;
  --gallery-text-tertiary: #8C8C8C;
  --gallery-accent: #B41E2E;          /* 朱红 */
  --gallery-accent-hover: #8B1621;
  --gallery-gold: #C9A962;            /* 金色 */
  --gallery-ink: #0A0A0A;             /* 墨色 */
}

/* ============================================
   展示区基础样式
   ============================================ */
.gallery-layout {
  background: var(--gallery-bg);
  min-height: 100vh;
  color: var(--gallery-text-primary);
}

/* ============================================
   展示区导航栏
   ============================================ */
.gallery-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 252, 250, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gallery-border);
  transition: all 0.3s ease;
}

.gallery-navbar.transparent {
  background: transparent;
  border-bottom-color: transparent;
}

.gallery-navbar.scrolled {
  background: rgba(253, 252, 250, 0.98);
  border-bottom-color: var(--gallery-border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.gallery-navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gallery-navbar-logo {
  font-family: 'Noto Serif SC', 'Source Han Serif', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gallery-text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery-navbar-logo:hover {
  text-decoration: none;
}

.gallery-navbar-logo-icon {
  font-size: 1.6rem;
}

.gallery-navbar-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.gallery-navbar-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--gallery-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.gallery-navbar-link:hover,
.gallery-navbar-link.active {
  color: var(--gallery-text-primary);
  text-decoration: none;
}

.gallery-navbar-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gallery-accent);
  border-radius: 1px;
}

.gallery-navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 展示区按钮 */
.gallery-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.gallery-btn-primary {
  background: var(--gallery-ink);
  color: white;
}

.gallery-btn-primary:hover {
  background: #2A2A2A;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-btn-secondary {
  background: transparent;
  color: var(--gallery-text-primary);
  border-color: var(--gallery-border);
}

.gallery-btn-secondary:hover {
  background: var(--gallery-bg-alt);
  border-color: var(--gallery-text-tertiary);
}

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

.gallery-btn-accent:hover {
  background: var(--gallery-accent-hover);
  transform: translateY(-1px);
}

.gallery-btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.gallery-btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

/* 移动端菜单 */
.gallery-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  color: var(--gallery-text-primary);
}

/* ============================================
   Hero 区域
   ============================================ */
.gallery-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.gallery-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--gallery-bg) 0%, var(--gallery-bg-alt) 100%);
  z-index: 0;
}

/* 可选：添加淡雅纹理 */
.gallery-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.gallery-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.gallery-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(201, 169, 98, 0.1);
  border: 1px solid var(--gallery-gold);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gallery-gold);
  margin-bottom: 24px;
}

.gallery-hero-title {
  font-family: 'Noto Serif SC', 'Source Han Serif', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gallery-text-primary);
  margin: 0 0 24px 0;
}

.gallery-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--gallery-text-secondary);
  margin: 0 0 40px 0;
}

.gallery-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   展示区容器
   ============================================ */
.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.gallery-section {
  padding: 80px 0;
}

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

.gallery-section-title {
  font-family: 'Noto Serif SC', 'Source Han Serif', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gallery-text-primary);
  margin: 0 0 12px 0;
}

.gallery-section-desc {
  font-size: 1rem;
  color: var(--gallery-text-secondary);
  margin: 0;
}

/* ============================================
   作品网格
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

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

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

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

@media (max-width: 1024px) {
  .gallery-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid-3,
  .gallery-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid,
  .gallery-grid-2,
  .gallery-grid-3,
  .gallery-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   作品卡片
   ============================================ */
.gallery-work-card {
  background: var(--gallery-card-bg);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.gallery-work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--gallery-border);
}

.gallery-work-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gallery-bg-alt);
}

.gallery-work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-work-card:hover .gallery-work-image img {
  transform: scale(1.05);
}

.gallery-work-info {
  padding: 16px 20px 20px;
}

.gallery-work-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gallery-accent);
  margin-bottom: 8px;
}

.gallery-work-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--gallery-text-primary);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.gallery-work-creator {
  font-size: 13px;
  color: var(--gallery-text-secondary);
  margin: 0 0 12px 0;
}

.gallery-work-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--gallery-border);
}

.gallery-work-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--gallery-text-primary);
}

.gallery-work-price-label {
  font-size: 11px;
  font-weight: 400;
  color: var(--gallery-text-tertiary);
  display: block;
}

.gallery-work-action {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  background: var(--gallery-ink);
  color: white;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-work-action:hover {
  background: #2A2A2A;
}

/* ============================================
   商店筛选侧边栏
   ============================================ */
.gallery-shop-layout {
  display: flex;
  gap: 32px;
  padding-top: 88px; /* 导航栏高度 + 间距 */
  min-height: 100vh;
}

.gallery-shop-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 88px;
  height: fit-content;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
}

.gallery-shop-main {
  flex: 1;
  min-width: 0;
}

.gallery-filter-card {
  background: var(--gallery-card-bg);
  border: 1px solid var(--gallery-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.gallery-filter-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gallery-text-primary);
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.gallery-filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.15s ease;
}

.gallery-filter-item:hover {
  color: var(--gallery-accent);
}

.gallery-filter-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gallery-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.gallery-filter-item.active .gallery-filter-checkbox {
  background: var(--gallery-ink);
  border-color: var(--gallery-ink);
}

.gallery-filter-item.active .gallery-filter-checkbox::after {
  content: '✓';
  color: white;
  font-size: 12px;
}

.gallery-filter-label {
  font-size: 14px;
  color: var(--gallery-text-secondary);
  flex: 1;
}

.gallery-filter-item.active .gallery-filter-label {
  color: var(--gallery-text-primary);
  font-weight: 500;
}

.gallery-filter-count {
  font-size: 12px;
  color: var(--gallery-text-tertiary);
}

/* 价格范围滑块 */
.gallery-price-range {
  padding: 8px 0;
}

.gallery-price-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gallery-price-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--gallery-border);
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
}

.gallery-price-separator {
  color: var(--gallery-text-tertiary);
}

/* 搜索框 */
.gallery-search {
  position: relative;
  margin-bottom: 24px;
}

.gallery-search-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  font-size: 15px;
  border: 1px solid var(--gallery-border);
  border-radius: 12px;
  background: var(--gallery-card-bg);
  color: var(--gallery-text-primary);
  transition: all 0.2s ease;
}

.gallery-search-input:focus {
  outline: none;
  border-color: var(--gallery-ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.gallery-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--gallery-text-tertiary);
}

/* 排序下拉 */
.gallery-sort {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.gallery-sort-label {
  font-size: 14px;
  color: var(--gallery-text-secondary);
}

.gallery-sort-select {
  padding: 8px 32px 8px 12px;
  font-size: 14px;
  border: 1px solid var(--gallery-border);
  border-radius: 8px;
  background: var(--gallery-card-bg);
  color: var(--gallery-text-primary);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235C5C5C' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* ============================================
   作品详情页
   ============================================ */
.gallery-detail {
  padding-top: 88px;
  min-height: 100vh;
}

.gallery-detail-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

@media (max-width: 1024px) {
  .gallery-detail-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.gallery-detail-image {
  position: sticky;
  top: 88px;
  height: fit-content;
}

.gallery-detail-image-main {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--gallery-bg-alt);
}

.gallery-detail-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-detail-thumbnails {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.gallery-detail-thumbnail {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.gallery-detail-thumbnail.active,
.gallery-detail-thumbnail:hover {
  border-color: var(--gallery-ink);
}

.gallery-detail-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-detail-info {
  padding: 8px 0;
}

.gallery-detail-category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gallery-accent);
  margin-bottom: 12px;
}

.gallery-detail-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gallery-text-primary);
  margin: 0 0 16px 0;
  line-height: 1.3;
}

.gallery-detail-creator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.gallery-detail-creator-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gallery-detail-creator-info {
  flex: 1;
}

.gallery-detail-creator-label {
  font-size: 12px;
  color: var(--gallery-text-tertiary);
}

.gallery-detail-creator-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gallery-text-primary);
}

.gallery-detail-price-card {
  background: var(--gallery-bg-alt);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.gallery-detail-price-label {
  font-size: 13px;
  color: var(--gallery-text-secondary);
  margin-bottom: 8px;
}

.gallery-detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gallery-text-primary);
  margin-bottom: 20px;
}

.gallery-detail-actions {
  display: flex;
  gap: 12px;
}

.gallery-detail-actions .gallery-btn {
  flex: 1;
}

.gallery-detail-desc {
  margin-bottom: 32px;
}

.gallery-detail-desc-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gallery-text-primary);
  margin-bottom: 12px;
}

.gallery-detail-desc-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gallery-text-secondary);
}

/* 详情属性 */
.gallery-detail-attributes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.gallery-detail-attribute {
  background: var(--gallery-bg-alt);
  border-radius: 8px;
  padding: 12px 16px;
}

.gallery-detail-attribute-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gallery-text-tertiary);
  margin-bottom: 4px;
}

.gallery-detail-attribute-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--gallery-text-primary);
}

/* ============================================
   验真页面
   ============================================ */
.gallery-verify-hero {
  padding: 120px 24px 60px;
  text-align: center;
  background: var(--gallery-bg-alt);
}

.gallery-verify-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gallery-text-primary);
  margin: 0 0 16px 0;
}

.gallery-verify-subtitle {
  font-size: 1.1rem;
  color: var(--gallery-text-secondary);
  margin: 0 0 32px 0;
}

.gallery-verify-search {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.gallery-verify-input {
  width: 100%;
  padding: 18px 140px 18px 24px;
  font-size: 16px;
  border: 2px solid var(--gallery-border);
  border-radius: 32px;
  background: var(--gallery-card-bg);
  color: var(--gallery-text-primary);
  transition: all 0.2s ease;
}

.gallery-verify-input:focus {
  outline: none;
  border-color: var(--gallery-ink);
}

.gallery-verify-submit {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 600;
  background: var(--gallery-ink);
  color: white;
  border: none;
  border-radius: 26px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-verify-submit:hover {
  background: #2A2A2A;
}

/* 验真结果卡片 */
.gallery-verify-result {
  background: var(--gallery-card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  margin-bottom: 48px;
}

.gallery-verify-result-header {
  display: flex;
  gap: 32px;
  padding: 32px;
}

@media (max-width: 768px) {
  .gallery-verify-result-header {
    flex-direction: column;
    gap: 24px;
  }
}

.gallery-verify-result-image {
  width: 280px;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gallery-bg-alt);
}

.gallery-verify-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-verify-result-info {
  flex: 1;
}

.gallery-verify-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.gallery-verify-badge {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 16px;
}

.gallery-verify-badge-verified {
  background: #D1FAE5;
  color: #065F46;
}

.gallery-verify-badge-chain {
  background: rgba(201, 169, 98, 0.15);
  color: #8B6914;
}

/* ============================================
   展示区页脚
   ============================================ */
.gallery-footer {
  background: var(--gallery-ink);
  color: white;
  padding: 64px 0 32px;
}

.gallery-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .gallery-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .gallery-footer-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-footer-brand {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.gallery-footer-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.gallery-footer-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.5);
}

.gallery-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gallery-footer-links li {
  margin-bottom: 12px;
}

.gallery-footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.gallery-footer-links a:hover {
  color: white;
}

.gallery-footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   移动端响应式
   ============================================ */
@media (max-width: 768px) {
  .gallery-navbar-nav {
    display: none;
  }

  .gallery-menu-toggle {
    display: block;
  }

  .gallery-hero {
    min-height: auto;
    padding: 100px 20px 60px;
  }

  .gallery-section {
    padding: 48px 0;
  }

  .gallery-shop-layout {
    flex-direction: column;
    padding-top: 72px;
  }

  .gallery-shop-sidebar {
    width: 100%;
    position: static;
    max-height: none;
  }

  /* 移动端筛选器折叠 */
  .gallery-shop-sidebar.collapsed .gallery-filter-card {
    display: none;
  }

  .gallery-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--gallery-card-bg);
    border: 1px solid var(--gallery-border);
    border-radius: 8px;
    margin-bottom: 16px;
    cursor: pointer;
  }

  .gallery-detail-main {
    padding: 0 16px;
  }

  .gallery-detail-image {
    position: static;
  }

  /* 移动端底部导航适配 */
  .gallery-layout {
    padding-bottom: 70px;
  }
}

/* 移动端筛选器切换按钮（默认隐藏，移动端显示） */
.gallery-filter-toggle {
  display: none;
}

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

/* ============================================
   动画效果
   ============================================ */
@keyframes galleryFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-animate-in {
  animation: galleryFadeIn 0.5s ease forwards;
}

.gallery-work-card {
  animation: galleryFadeIn 0.5s ease forwards;
}

/* 错开动画 */
.gallery-grid .gallery-work-card:nth-child(1) { animation-delay: 0.05s; }
.gallery-grid .gallery-work-card:nth-child(2) { animation-delay: 0.1s; }
.gallery-grid .gallery-work-card:nth-child(3) { animation-delay: 0.15s; }
.gallery-grid .gallery-work-card:nth-child(4) { animation-delay: 0.2s; }
.gallery-grid .gallery-work-card:nth-child(5) { animation-delay: 0.25s; }
.gallery-grid .gallery-work-card:nth-child(6) { animation-delay: 0.3s; }
.gallery-grid .gallery-work-card:nth-child(7) { animation-delay: 0.35s; }
.gallery-grid .gallery-work-card:nth-child(8) { animation-delay: 0.4s; }

