/* === 基础重置与变量 === */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --accent: #c9a96e;
  --accent-light: #e0c28a;
  --border: #2a2a2a;
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

/* === 滚动条 === */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* === 导航栏 === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 48px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.5s var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  height: 64px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo span {
  color: var(--accent);
}

.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 400;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

/* === Hero区域 === */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 1.5s ease-in-out;
  opacity: 0;
}

.hero-bg.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 50%, rgba(10,10,10,0.95) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: 8px;
  line-height: 1.2;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1.2s var(--transition) 0.3s forwards;
}

.hero-subtitle {
  font-size: 0.75rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s var(--transition) 0.6s forwards;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s var(--transition) 0.9s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeInUp 1.2s var(--transition) 1.5s forwards;
}

.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(0.6); opacity: 1; }
}

/* === 通用区块 === */
.section {
  padding: 120px 48px;
  position: relative;
}

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

.section-label {
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

/* === 关于区域 === */
.about-section {
  background: var(--bg-secondary);
  padding: 120px 48px;
}

.about-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.9;
}

.about-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--transition);
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--border);
  pointer-events: none;
}

.about-btn {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 36px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-decoration: none;
  transition: all 0.4s var(--transition);
}

.about-btn:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

/* === 业务领域 === */
.services-section {
  padding: 120px 48px;
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  transition: all 0.4s var(--transition);
  cursor: default;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
}

.service-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === 案例筛选标签 === */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 10px 28px;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(201, 169, 110, 0.05);
}

/* === 项目网格 === */
.portfolio-section {
  padding: 80px 48px 120px;
}

.portfolio-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
}

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  group: true;
  transition: border-color 0.4s ease;
}

.project-card:hover {
  border-color: var(--accent);
}

.project-card .media-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.project-card .media-wrap img,
.project-card .media-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--transition);
}

.project-card:hover .media-wrap img,
.project-card:hover .media-wrap video {
  transform: scale(1.08);
}

.project-card .media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.project-card:hover .media-overlay {
  opacity: 0.9;
}

.project-card .project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  z-index: 2;
  transform: translateY(10px);
  opacity: 0.8;
  transition: all 0.4s var(--transition);
}

.project-card:hover .project-info {
  transform: translateY(0);
  opacity: 1;
}

.project-card .project-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.project-card .project-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.project-card .project-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(10,10,10,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 14px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  backdrop-filter: blur(10px);
  z-index: 2;
}

/* === 分类区块标题 === */
.category-section {
  padding: 100px 48px 60px;
}

.category-header {
  max-width: 1400px;
  margin: 0 auto 60px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

.category-title-group h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 3px;
  margin-bottom: 6px;
}

.category-title-group span {
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.category-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* === 全屏图片画廊 === */
.gallery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.98);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.gallery-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.gallery-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 2px;
  font-weight: 600;
}

.gallery-close {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.gallery-close:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(90deg);
}

.gallery-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 60px;
}

.gallery-stage {
  text-align: center;
  width: 100%;
  max-width: 80vw;
  max-height: 75vh;
}

.gallery-stage img,
.gallery-stage video {
  max-width: 100%;
  max-height: 75vh;
  display: inline-block;
  vertical-align: middle;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 3001;
}

.gallery-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

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

.gallery-counter {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  padding: 10px 0;
}

.gallery-thumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 15px 40px 25px;
  overflow-x: auto;
}

.gallery-thumb {
  width: 80px;
  height: 55px;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  opacity: 0.5;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  color: var(--accent);
  font-size: 1.2rem;
}

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

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

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 下一个案例按钮 — awwwards风格 */
.gallery-footer {
  display: flex;
  justify-content: center;
  padding: 0 40px 40px;
}

.gallery-next-project {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.next-project-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.next-project-line {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color 0.4s ease;
}

.next-project-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 2px;
  font-weight: 500;
  color: #fff;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.4s ease;
}

.next-project-name::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.5s var(--transition);
}

.next-project-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s var(--transition);
  flex-shrink: 0;
}

.next-project-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.5s var(--transition);
}

/* hover 效果 */
.gallery-next-project:hover .next-project-line {
  color: var(--accent);
}

.gallery-next-project:hover .next-project-name {
  color: var(--accent);
}

.gallery-next-project:hover .next-project-name::after {
  width: 100%;
}

.gallery-next-project:hover .next-project-arrow {
  border-color: var(--accent);
  background: var(--accent);
  transform: translateX(4px);
}

.gallery-next-project:hover .next-project-arrow svg {
  stroke: var(--bg-primary);
  transform: translateX(2px);
}

/* 旧 Lightbox 隐藏 */
.lightbox { display: none !important; }

/* === Lightbox (old) === */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10,10,10,0.97);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2001;
}

.lightbox-close:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2001;
}

.lightbox-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
}

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

.lightbox-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 2px;
}

.lightbox-title {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-align: center;
}

/* === 联系区域 === */
.contact-section {
  background: var(--bg-secondary);
  padding: 120px 48px;
  text-align: center;
}

.contact-section .section-title {
  margin-bottom: 40px;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.contact-item {
  text-align: center;
}

.contact-item h4 {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.contact-item p {
  font-size: 1rem;
  color: var(--text-secondary);
}

.contact-item p.contact-large {
  font-size: 1.4rem;
  letter-spacing: 1px;
}

/* === 页脚 === */
.footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* === 动画 === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s var(--transition);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* === 响应式 === */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 24px;
  }
  .nav-links {
    display: none;
  }
  .section {
    padding: 80px 24px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .about-section, .portfolio-section, .category-section, .services-section, .contact-section {
    padding-left: 24px;
    padding-right: 24px;
  }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hero-title {
    letter-spacing: 4px;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .filter-bar {
    gap: 8px;
  }
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.7rem;
  }
}

/* === 加载动画 === */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 8px;
  color: var(--text-primary);
  animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* === 视频自动播放样式 === */
.project-card video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-indicator {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: rgba(10,10,10,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--accent);
  z-index: 2;
  backdrop-filter: blur(10px);
}

/* 防下载保护 */
img, video {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
  pointer-events: auto;
}
.lazy-img {
  background: var(--bg-card);
  transition: opacity 0.5s ease;
}

.lazy-img.loaded {
  opacity: 1;
}

/* 横向滚动容器（移动端） */
.scroll-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}

.scroll-row .project-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
}

/* 视频标记 */
.video-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #fff;
  z-index: 3;
  backdrop-filter: blur(4px);
  pointer-events: none;
}
