/* VIP 策略介绍页专属样式 */

.vip-page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 0;
}

/* 顶部导航菜单 - 胶囊样式 */
.vip-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 14, 23, 0.7);
  backdrop-filter: blur(14px);
  padding: 4px 6px;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.vip-nav-links .nav-pill {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: all 200ms ease;
}

.vip-nav-links .nav-pill:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.vip-nav-links .nav-pill.active {
  color: #052920;
  background: linear-gradient(135deg, #5eead4, #38bdf8);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(94, 234, 212, 0.3);
}

.vip-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 80px;
}

.vip-hero {
  text-align: center;
  padding: 60px 0 80px;
  animation: fade-up 800ms ease both;
  display: flex;
  flex-direction: column;
  align-items: center; /* 确保内部块级元素整体居中 */
}

/* 包装器：让内部标签和标题左对齐，同时整体居中 */
.hero-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 让标签和标题左侧对齐 */
}

.vip-hero h1.hero-title {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.1; /* 稍微减小行高，让两行文字更紧凑 */
  margin: 16px 0 20px; /* 减小一点顶部 margin，让它离 tag 更近一点 */
  letter-spacing: -0.05em;
  display: inline-block;
  text-align: left;
}

.vip-hero .title-line1,
.vip-hero .title-line2 {
  display: block;
}

/* 关键：给第二行加上左侧缩进，产生错落阶梯效果，并微调上下间距 */
.vip-hero .title-line2 {
  margin-left: 2.5em;
  margin-top: 0.1em; /* 去掉负边距，改为极小的正边距，留出一点呼吸感 */
  padding-right: 0; 
}

.vip-hero .highlight {
  background: linear-gradient(135deg, #5eead4, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vip-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto 40px;
}

.btn-large {
  height: 52px;
  padding: 0 32px;
  font-size: 16px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
  animation: fade-up 800ms ease 150ms both;
}

.feature-card {
  padding: 32px;
  background: linear-gradient(145deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--line);
  border-radius: 24px;
  text-align: center;
  transition: transform 300ms ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
}

.feature-card .icon {
  font-size: 42px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  margin: 0 0 12px;
  color: var(--text);
}

.feature-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
  animation: fade-up 800ms ease 300ms both;
}

.section-header h2 {
  font-size: 32px;
  margin: 0 0 12px;
}

.section-header p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

/* 瀑布流图库 */
.masonry-grid {
  column-count: 3;
  column-gap: 20px;
  animation: fade-up 800ms ease 450ms both;
}

.grid-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 12px 30px var(--shadow);
  transition: transform 300ms ease, box-shadow 300ms ease;
  cursor: zoom-in; /* 增加放大镜光标，提示用户可点击 */
}

.grid-item:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border-color: var(--line-strong);
  z-index: 10;
  position: relative;
}

.grid-item img {
  width: 100%;
  height: auto;
  display: block;
}

.cta-bottom {
  text-align: center;
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: 60px;
}

.cta-bottom h2 {
  font-size: 36px;
  margin: 0 0 16px;
}

.cta-bottom p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 32px;
}

/* ==========================================================================
   Splash Modal (开屏弹窗)
   ========================================================================== */
.splash-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 15, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none; /* 默认状态下鼠标穿透，防止幽灵遮挡 */
  transition: opacity 400ms ease;
}

.splash-modal.show {
  opacity: 1;
  pointer-events: auto; /* 显示时恢复鼠标拦截，允许点击关闭按钮 */
}

.splash-content {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.splash-close {
  position: absolute;
  top: -40px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 32px;
  cursor: pointer;
  transition: color 200ms ease;
  z-index: 10;
}

.splash-close:hover {
  color: var(--primary);
}

.splash-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 600ms ease 200ms, transform 600ms ease 200ms;
}

.splash-modal.show .splash-title {
  opacity: 1;
  transform: translateY(0);
}

.splash-title span {
  font-size: 18px;
  color: var(--primary);
  font-weight: 500;
}

.splash-stack {
  position: relative;
  width: 320px;
  height: 500px;
}

.splash-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  /* 初始状态在屏幕正上方，隐藏 */
  opacity: 0;
  transform: translateY(-100vh) rotate(0deg);
}

/* 扑克牌掉落堆叠动画 */
.splash-modal.show .card-1 {
  animation: dropCard1 600ms cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 400ms;
}
.splash-modal.show .card-2 {
  animation: dropCard2 600ms cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 600ms;
}
.splash-modal.show .card-3 {
  animation: dropCard3 600ms cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 800ms;
}

@keyframes dropCard1 {
  to {
    opacity: 1;
    /* 增加左倾角度到 16 度，向左位移增加到 80px，降低重叠度 */
    transform: translateY(0) rotate(-16deg) translateX(-80px);
  }
}
@keyframes dropCard2 {
  to {
    opacity: 1;
    /* 增加右倾角度到 14 度，向右位移增加到 80px，降低重叠度 */
    transform: translateY(0) rotate(14deg) translateX(80px);
  }
}
@keyframes dropCard3 {
  to {
    opacity: 1;
    /* 居中卡片稍微往下压一点点，增强层次感 */
    transform: translateY(10px) rotate(0deg) scale(1.05);
  }
}

/* ==========================================================================
   Lightbox Modal (图片点击放大查看器)
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 13, 0.95); /* 更深的背景，让图片更突出 */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000; /* 必须比 splash-modal 还要高 */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.lightbox-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-modal img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 轻微的弹性放大效果 */
}

.lightbox-modal.show img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: all 200ms ease;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--accent);
  transform: scale(1.1);
}

@media (max-width: 960px) {
  .masonry-grid {
    column-count: 2;
  }
  
  .vip-nav-links {
    display: none; /* 平板/手机端空间不够，隐藏顶部导航 */
  }
}

@media (max-width: 760px) {
  .vip-page-shell {
    width: min(100% - 28px, 560px);
    padding-top: 24px;
  }
}

@media (max-width: 640px) {
  .masonry-grid {
    column-count: 1;
  }
  .vip-hero {
    padding: 40px 0 60px;
  }
  .feature-card {
    padding: 24px;
  }
}