:root {
  /* 基础颜色 - 提取自 styles.ts */
  --bg-dark-1: #1e1e24;
  --bg-dark-2: #0a0a0f;
  --bg-light-1: #f0f2f5;
  --bg-light-2: #ffffff;

  --primary: #e93d82;
  --accent: #ffb800;
  --text-dark: #e0e0e0;
  --text-light: #1a1a1a;

  --glass-bg: rgba(18, 18, 24, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg-light: rgba(255, 255, 255, 0.85);
  --glass-border-light: rgba(0, 0, 0, 0.1);

  /* 响应式变量 */
  --section-padding: 80px 20px;
}

body {
  margin: 0;
  padding: 0;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    sans-serif;
  background: radial-gradient(
    circle at 50% 120%,
    var(--bg-dark-1),
    var(--bg-dark-2) 80%
  );
  background-attachment: fixed;
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s;
}

a:visited {
  color: var(--primary);
}

a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.light-theme,
.light-theme body {
  --glass-border: rgba(0, 0, 0, 0.15); /* 加深以提高可见度 */
  background: radial-gradient(
    circle at 50% 120%,
    var(--bg-light-1),
    var(--bg-light-2) 80%
  );
  color: var(--text-light);
}

.light-theme .control-btn,
.light-theme .btn.secondary,
.light-theme .feature-card {
  background: var(--glass-bg-light);
  border-color: var(--glass-border-light);
  color: var(--text-light);
}

.light-theme .btn.secondary:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* 导航栏 */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a,
.nav-links a:visited {
  text-decoration: none;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.7;
  transition: all 0.2s;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: none;
}

.controls {
  display: flex;
  gap: 12px;
}

.control-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: inherit;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.control-btn:hover {
  border-color: var(--primary);
  background: rgba(233, 61, 130, 0.1);
  transform: translateY(-1px);
}

/* 英雄区域 */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 20px 80px;
}

.hero h1 {
  font-size: 84px;
  margin: 0;
  font-weight: 800;
  letter-spacing: -3px;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.light-theme .hero h1 {
  background: linear-gradient(135deg, #111 0%, #444 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero p {
  max-width: 600px;
  font-size: 18px;
  opacity: 0.8;
  margin: 30px 0;
}

.cta-group {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 20px rgba(233, 61, 130, 0.3);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(233, 61, 130, 0.4);
}

.btn.secondary {
  border: 1px solid var(--glass-border);
  color: inherit;
  background: var(--glass-bg);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* 英雄区演示截图 */
.hero-demo-wrapper {
  margin-top: 50px;
  width: 100%;
  perspective: 1200px;
}

.demo-pair {
  display: none;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  max-width: 700px;
  margin: 0 auto;
}

/* 显示矩阵（根据语言和主题） */
html[lang="zh"] body:not(.light-theme) .zh-dark {
  display: flex;
}
html[lang="en"] body:not(.light-theme) .en-dark {
  display: flex;
}
html[lang="zh"] .light-theme .zh-light {
  display: flex;
}
html[lang="en"] .light-theme .en-light {
  display: flex;
}

.demo-img {
  width: 48%;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  background: var(--glass-bg);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.light-theme .demo-img {
  background: var(--glass-bg-light);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.demo-img:hover {
  transform: translateY(-10px) scale(1.02);
  z-index: 10;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.demo-img.photo {
  transform: rotateY(5deg);
}

.demo-img.director {
  transform: rotateY(-5deg);
}

.demo-img.photo:hover,
.demo-img.director:hover {
  transform: translateY(-10px) rotateY(0deg) scale(1.05);
}

/* 揭示动画 */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

/* 数据统计区域 */
.stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 60px 20px;
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.light-theme .stats {
  border-top-color: rgba(0, 0, 0, 0.1);
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

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

.stat-num {
  font-size: 64px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-item span:last-child {
  font-size: 13px;
  opacity: 0.6;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* 适合哪些人用区域 */
.audience-section {
  padding: 80px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

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

.audience-header h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 12px;
}

.audience-header p {
  font-size: 16px;
  opacity: 0.55;
  margin: 0;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.audience-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 22px 20px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  transition:
    border-color 0.25s,
    transform 0.25s;
  cursor: default;
}

.audience-card:hover {
  border-color: rgba(233, 61, 130, 0.4);
  transform: translateY(-3px);
}

.audience-card--highlight {
  border-color: rgba(233, 61, 130, 0.25);
  background: rgba(233, 61, 130, 0.06);
}

.audience-card--highlight:hover {
  border-color: var(--primary);
  background: rgba(233, 61, 130, 0.1);
}

.audience-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(233, 61, 130, 0.1);
  border: 1px solid rgba(233, 61, 130, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.audience-text h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 6px;
  color: inherit;
}

.audience-text p {
  font-size: 12px;
  line-height: 1.6;
  opacity: 0.6;
  margin: 0;
}

.light-theme .audience-card {
  background: var(--glass-bg-light);
  border-color: var(--glass-border-light);
}

.light-theme .audience-card--highlight {
  background: rgba(233, 61, 130, 0.05);
  border-color: rgba(233, 61, 130, 0.2);
}

/* 通用区块标题 */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 12px;
}

.section-header p {
  font-size: 16px;
  opacity: 0.55;
  margin: 0;
}

/* 功能特性区域外层容器 */
.features-wrapper {
  padding: var(--section-padding);
  padding-bottom: 40px;
}

/* 功能详情外层容器 */
.feature-detail-wrapper {
  padding: 40px 20px 80px;
}

/* 功能特性区域 */
.features {
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: 24px;
  transition:
    border-color 0.3s,
    transform 0.3s;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(233, 61, 130, 0.12);
  border: 1px solid rgba(233, 61, 130, 0.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-card h3 {
  font-family: "JetBrains Mono", monospace;
  font-size: 18px;
  margin-top: 0;
  color: var(--primary);
}

/* 功能详情区域 - Bento 网格 */
.feature-detail {
  padding: 0;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* 第三张卡跨两列 */
.feature-detail-content:last-child {
  grid-column: span 2;
}

.feature-detail-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.feature-detail-content:hover {
  border-color: rgba(233, 61, 130, 0.3);
}

.detail-number {
  font-family: "JetBrains Mono", monospace;
  font-size: 64px;
  font-weight: 800;
  color: rgba(233, 61, 130, 0.08);
  position: absolute;
  top: 10px;
  right: 24px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.light-theme .feature-detail-content {
  background: var(--glass-bg-light);
  border-color: var(--glass-border-light);
}

.feature-detail-content h3 {
  color: var(--primary);
  margin-top: 0;
  font-size: 22px;
}

.feature-detail-content ul {
  padding-left: 20px;
  margin: 20px 0;
}

.feature-detail-content li {
  margin-bottom: 15px;
  opacity: 0.9;
}

/* 作品集区域 */
.gallery-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.gallery-header h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 12px;
}

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

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  aspect-ratio: 16/9;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

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

.gallery-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
  z-index: 10;
}

.platform-tag {
  display: none;
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
  z-index: 10;
}

/* 页脚 */
footer {
  padding: 40px;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  font-size: 12px;
  opacity: 0.6;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  color: inherit;
  opacity: 0.5;
  transition:
    opacity 0.2s,
    color 0.2s;
  display: flex;
  align-items: center;
}

.footer-link:hover {
  opacity: 1;
  color: var(--primary);
}

.testimonials-section {
  padding: 80px 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
}

.light-theme .testimonials-section {
  background: transparent;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 20px;
}

.testimonials-header h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
}

.testimonials-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
}

.testimonials-track {
  display: flex;
  animation: scroll 40s linear infinite;
  width: max-content;
}

.testimonials-group {
  display: flex;
  gap: 20px;
  padding-right: 20px; /* 仅设置右内边距，以匹配内部间隙以实现完美循环 */
}

.testimonials-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.testimonial-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  width: 320px;
  flex-shrink: 0;
}

.light-theme .testimonial-card {
  background: #f0f2f5;
  border-color: rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  font-size: 16px;
}

.avatar svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.username {
  font-size: 14px;
  font-weight: 600;
}

.user-tag {
  font-size: 11px;
  opacity: 0.5;
}

.testimonial-card .content {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0;
}

/* 灯箱 */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-img {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-tags {
  position: absolute;
  bottom: 40px;
  left: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2002;
  align-items: flex-start;
}

.lightbox-tags .gallery-tag,
.lightbox-tags .platform-tag {
  display: block;
  position: static;
  font-size: 14px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-tags .gallery-tag {
  border-radius: 24px;
}

.lightbox-tags .platform-tag {
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-preview {
  position: absolute;
  top: 30px;
  right: 100px;
  width: 320px;
  height: auto;
  border-radius: 12px;
  border: 2px solid var(--primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  z-index: 2002;
  transition: transform 0.3s ease;
  background: #000;
}

.lightbox-preview:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .lightbox-preview {
    width: 160px;
    top: 20px;
    right: 70px;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 15px 16px;
  }
  .logo span {
    display: none;
  }
  .nav-links {
    gap: 16px;
  }
  .nav-links a {
    font-size: 13px;
  }
  .controls {
    gap: 8px;
  }
  .hero h1 {
    font-size: 48px;
    letter-spacing: -2px;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 30px;
    flex-wrap: wrap;
  }
  .feature-detail {
    grid-template-columns: 1fr;
  }
  .feature-detail-content:last-child {
    grid-column: span 1;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-demo-wrapper {
    margin-top: 30px;
  }
  .demo-pair {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .demo-img {
    width: 90%;
    transform: none !important;
  }
}

/* 瀑布流弹层 */
.masonry-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
}

.masonry-lightbox.active {
  visibility: visible;
  opacity: 1;
}

.masonry-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2001;
}

.masonry-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2003;
}

.masonry-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.masonry-container {
  position: relative;
  z-index: 2002;
  width: 100%;
  max-width: 1200px;
  padding: 80px 20px 40px;
  box-sizing: border-box;
}

.masonry-grid {
  column-count: 3;
  column-gap: 20px;
}

@keyframes masonryReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  opacity: 0;
  animation: masonryReveal 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.masonry-item img {
  width: 100%;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.masonry-item:hover img {
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 500px) {
  .masonry-grid {
    column-count: 1;
  }
}
