/* ===== 全局重置 & 基础 ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6c5ce7;
  --primary-light: #a29bfe;
  --primary-dark: #4a3db8;
  --gradient-start: #6c5ce7;
  --gradient-end: #0984e3;
  --bg: #f8f9fe;
  --card-bg: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-light: #8888aa;
  --shadow: 0 8px 32px rgba(108, 92, 231, 0.1);
  --shadow-hover: 0 16px 48px rgba(108, 92, 231, 0.18);
  --radius: 18px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(
      circle at 20% 25%,
      rgba(226, 232, 240, 0.35) 0%,
      transparent 45%
    ),
    linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

/* ===== 容器 ===== */
.container {
  max-width: 1100px;
  width: 100%;
}

/* ===== 头部 ===== */
.header {
  text-align: center;
  padding: 40px 24px 32px;
  margin-bottom: 40px;
  background: linear-gradient(
    145deg,
    rgba(108, 92, 231, 0.05),
    rgba(9, 132, 227, 0.03)
  );
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(108, 92, 231, 0.08);
}

.header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(108, 92, 231, 0.06),
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.header-content {
  position: relative;
  z-index: 1;
}

.header-badge {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 20px;
  border-radius: 100px;
  margin-bottom: 16px;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.2);
}

.header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 8px;
}

.header p {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.6;
  -webkit-text-fill-color: var(--text-secondary);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: #fff;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(108, 92, 231, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid rgba(108, 92, 231, 0.15);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(108, 92, 231, 0.04);
}

.btn .icon {
  font-size: 16px;
}

/* ===== 统计栏 ===== */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 48px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(108, 92, 231, 0.08);
}

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

.stat-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ===== 功能列表（单列垂直布局） ===== */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 8px;
}

/* ===== 功能卡片（垂直排列所有内容） ===== */
.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(108, 92, 231, 0.06);
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(108, 92, 231, 0.12);
}

/* ===== 会员标签（绝对定位） ===== */
.feature-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  background: linear-gradient(135deg, #fdcb6e, #f6b93b);
  color: #7c5a00;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 100px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 12px rgba(253, 203, 110, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(2px);
}

/* ===== 卡片主体（标题+描述） ===== */
.feature-body {
  padding: 20px 24px 16px;
  flex-shrink: 0;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 4px;
}

.feature-title .emoji {
  font-size: 20px;
  line-height: 1;
}

.version-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #0a7e6b;
  background: #e0f2f0;
  padding: 2px 14px;
  border-radius: 100px;
  letter-spacing: 0.2px;
  border: 1px solid rgba(10, 126, 107, 0.12);
  white-space: nowrap;
}

.version-tag::before {
  content: "🚀";
  font-size: 12px;
  margin-right: 2px;
}

.feature-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ===== 媒体区域（下方网格） ===== */
.feature-media {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 6px;
  padding: 0 24px 20px;
  background: transparent;
  width: 100%;
}

.feature-media .media-item {
  position: relative;
  overflow: hidden;
  background: #e8eaf5;
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 10;
  min-height: 100px;
}

.feature-media .media-item img,
.feature-media .media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.feature-card:hover .feature-media .media-item img,
.feature-card:hover .feature-media .media-item video {
  transform: scale(1.02);
}

.feature-media .media-item video {
  background: #1a1a2e;
}

/* 视频播放图标 */
.media-item .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  pointer-events: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  opacity: 0.8;
}

.feature-card:hover .media-item .play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

.feature-media .media-item video::-webkit-media-controls {
  opacity: 0.6;
}

/* 无媒体占位 */
.feature-media .no-media {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 13px;
  background: #f0f2f8;
  padding: 24px;
  border-radius: var(--radius-sm);
  aspect-ratio: auto;
  min-height: 80px;
}

/* ===== 卡片底部元信息 ===== */
.feature-meta {
  padding: 0 24px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-light);
  border-top: 1px solid rgba(108, 92, 231, 0.06);
  padding-top: 14px;
  margin-top: -6px; /* 抵消网格上边距 */
}

.feature-meta .media-count {
  display: flex;
  align-items: center;
  gap: 4px;
}

.feature-meta .media-count span {
  background: rgba(108, 92, 231, 0.06);
  padding: 2px 10px;
  border-radius: 100px;
  font-weight: 500;
}

.feature-id {
  font-weight: 500;
  color: var(--text-light);
  opacity: 0.6;
}

/* ===== 底部 ===== */
.footer {
  margin-top: 52px;
  padding: 28px 24px 16px;
  text-align: center;
  border-top: 1px solid rgba(108, 92, 231, 0.06);
}

.footer p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

.footer .btn {
  margin-top: 12px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  body {
    padding: 16px 12px;
  }

  .header {
    padding: 28px 16px 24px;
    margin-bottom: 28px;
  }

  .header h1 {
    font-size: 1.6rem;
  }

  .features-list {
    gap: 20px;
  }

  .feature-body {
    padding: 16px 18px 12px;
  }

  .feature-title {
    font-size: 16px;
    gap: 6px 10px;
  }

  .version-tag {
    font-size: 11px;
    padding: 1px 10px;
  }

  .feature-media {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    padding: 0 18px 16px;
    gap: 4px;
  }

  .feature-media .media-item {
    aspect-ratio: 16 / 10;
    min-height: 80px;
  }

  .feature-meta {
    padding: 0 18px 14px;
    padding-top: 12px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .stats {
    gap: 16px 32px;
  }

  .stat-number {
    font-size: 20px;
  }

  .btn {
    padding: 8px 20px;
    font-size: 13px;
  }

  .header-actions {
    flex-direction: column;
    width: 100%;
  }

  .header-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .feature-badge {
    top: 10px;
    right: 10px;
    font-size: 10px;
    padding: 2px 12px;
  }
}

@media (max-width: 480px) {
  .feature-media {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .feature-media .media-item {
    aspect-ratio: 16 / 10;
    min-height: 60px;
  }
}

/* ===== 入场动画 ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card {
  animation: fadeUp 0.45s ease forwards;
  opacity: 0;
}

.feature-card:nth-child(1) {
  animation-delay: 0.04s;
}
.feature-card:nth-child(2) {
  animation-delay: 0.08s;
}
.feature-card:nth-child(3) {
  animation-delay: 0.12s;
}
.feature-card:nth-child(4) {
  animation-delay: 0.16s;
}
.feature-card:nth-child(5) {
  animation-delay: 0.2s;
}
.feature-card:nth-child(6) {
  animation-delay: 0.24s;
}
.feature-card:nth-child(7) {
  animation-delay: 0.28s;
}
.feature-card:nth-child(8) {
  animation-delay: 0.32s;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== 灯箱（全屏查看） ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

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

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10;
  user-select: none;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%) scale(1.05);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  background: #000;
}

.lightbox-info {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 100px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  z-index: 10;
}

.lightbox-title {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 80px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 16px;
  z-index: 10;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox .media-item {
  cursor: zoom-in;
}

/* 禁用灯箱内视频播放时指针样式冲突 */
.lightbox-content video {
  cursor: default;
}

@media (max-width: 768px) {
  .lightbox-content {
    padding: 60px 24px;
  }

  .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-close {
    width: 38px;
    height: 38px;
    font-size: 18px;
    top: 12px;
    right: 12px;
  }

  .lightbox-title {
    font-size: 13px;
    top: 12px;
    left: 12px;
    right: 60px;
    padding: 6px 10px;
  }

  .lightbox-info {
    bottom: 12px;
    font-size: 12px;
    padding: 4px 12px;
  }
}

/* 灯箱中媒体项的指针样式（在卡片中） */
.feature-media .media-item {
  cursor: pointer;
}

.feature-media .media-item:hover img,
.feature-media .media-item:hover video {
  transform: scale(1.05);
}

/* 灯箱图片动画 */
@keyframes lightboxFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-content img,
.lightbox-content video {
  animation: lightboxFadeIn 0.25s ease;
}