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

body {
  font-family: "Arial", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* 16:9 容器 - 核心布局 */
.aspect-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}

.presentation-wrapper {
  width: 100vw; /* 使用全屏宽度 */
  height: 56.25vw; /* 16:9 比例，基于宽度计算高度 */
  max-height: 100vh; /* 最大高度不超过视口 */
  position: relative;
  background: #000;
  overflow: hidden;
  border-radius: 0.4vw; /* 相对单位 */
  box-shadow: 0 0 2.5vw rgba(240, 117, 179, 0.3); /* 相对单位 */
}

.slides-container {
  width: 100%;
  height: 100%; /* 继承presentation-wrapper的16:9高度 */
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory; /* 添加滚动吸附 */
}

/* 标准化字体大小 - 基于视口宽度的响应式体系 */
.text-large {
  font-size: 4vw; /* 主标题 - 相对于视口宽度 */
}

.text-medium {
  font-size: 2vw; /* 副标题、重要数字 - 相对于视口宽度 */
}

.text-small {
  font-size: 1vw; /* 正文、说明 - 相对于视口宽度 */
}

/* 自定义滚动条样式 - 使用相对单位 */
::-webkit-scrollbar {
  width: 0.4vw; /* 相对于视口宽度 */
  min-width: 6px; /* 最小宽度保证可见性 */
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0.2vw;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgb(240, 117, 179), rgb(240, 240, 117));
  border-radius: 0.2vw;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgb(250, 127, 189), rgb(250, 250, 127));
  box-shadow: 0 0 0.5vw rgba(240, 117, 179, 0.5);
}

/* 火狐浏览器滚动条样式 */
* {
  scrollbar-width: thin;
  scrollbar-color: rgb(240, 117, 179) rgba(0, 0, 0, 0.3);
}

.slide {
  width: 100%;
  height: 56.25vw; /* 直接使用16:9比例的高度计算 */
  max-height: 100vh; /* 不超过视口高度 */
  min-height: 56.25vw; /* 确保最小高度保持16:9 */
  flex-shrink: 0; /* 防止slide被压缩 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 4% 6%; /* 使用百分比适配16:9容器 */
  background: linear-gradient(
    135deg,
    rgba(240, 117, 179, 0.1),
    rgba(240, 240, 117, 0.1)
  );
  border-bottom: 0.05vw solid rgba(255, 255, 255, 0.1); /* 相对单位 */
  box-sizing: border-box;
  overflow: hidden; /* 防止内容溢出 */
  scroll-snap-align: start; /* 滚动吸附对齐 */
}

.slide:nth-child(odd) {
  background: linear-gradient(
    225deg,
    rgba(240, 117, 179, 0.08),
    rgba(240, 240, 117, 0.08)
  );
}

.title {
  background: linear-gradient(135deg, rgb(240, 117, 179), rgb(240, 240, 117));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 4vw; /* 使用相对单位 */
  font-weight: bold;
  text-align: center;
  margin-bottom: 2.5vh; /* 减少margin */
  text-shadow: 0 0 1vw rgba(240, 117, 179, 0.3);
  flex-shrink: 0; /* 防止被压缩 */
}

.subtitle {
  font-size: 2.5vw; /* 使用相对单位 */
  font-weight: 600;
  margin-bottom: 1.8vh; /* 减少margin */
  text-align: center;
  background: linear-gradient(135deg, rgb(240, 117, 179), rgb(240, 240, 117));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0; /* 防止被压缩 */
}

.content {
  max-width: 90%; /* 在16:9容器内的最大宽度 */
  width: 100%;
  height: 100%; /* 使用100%高度而不是限制最大高度 */
  z-index: 2;
  margin: 0 auto;
  position: relative;
  overflow: visible; /* 允许内容可见，但不滚动 */
  display: flex;
  flex-direction: column;
}

.problem-grid {
  display: flex;
  justify-content: space-between;
  gap: 2%;
  margin-top: 3%;
  width: 100%;
  align-items: stretch;
}

.problem-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(0.5vw);
  border: 0.1vw solid rgba(240, 117, 179, 0.2);
  border-radius: 0.8vw; /* 相对单位 */
  padding: 1.5vw; /* 相对单位 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 18vh; /* 增加最小高度 */
}

.problem-card:hover {
  transform: translateY(-0.5vw);
  box-shadow: 0 1vw 2vw rgba(240, 117, 179, 0.2);
}

.card-title {
  font-size: 1.8vw; /* 使用相对单位 */
  font-weight: bold;
  margin-bottom: 1.2vh; /* 相对单位 */
  background: linear-gradient(135deg, rgb(240, 117, 179), rgb(240, 240, 117));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-number {
  font-size: 1.8vw; /* 使用相对单位 */
  font-weight: bold;
  background: linear-gradient(135deg, rgb(240, 117, 179), rgb(240, 240, 117));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin: 1.2vh 0; /* 相对单位 */
  position: relative;
}

.highlight-number::after {
  content: attr(data-unit);
  font-size: 0.8vw; /* 相对单位 */
  position: absolute;
  bottom: -0.3vh;
  right: 0;
  color: rgba(240, 240, 117, 0.8);
  font-weight: normal;
}

.chart-container {
  width: 100%;
  height: 35%; /* 相对于容器高度的百分比 */
  min-height: 18vh; /* 使用vh替代px */
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.8vw; /* 相对单位 */
  margin: 3% 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pie-chart {
  width: 18vw; /* 相对单位 */
  height: 18vw; /* 保持正方形 */
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgb(240, 117, 179) 0deg 10deg,
    rgba(240, 117, 179, 0.3) 10deg 360deg
  );
  position: relative;
}

.pie-chart::before {
  content: "1%\n渗透率";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  color: rgb(240, 240, 117);
  white-space: pre-line;
}

.solution-flow {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin: 1.5% 0;
  flex-wrap: wrap;
  gap: 2%; /* 百分比间距 */
  width: 100%;
}

.flow-step {
  background: rgba(255, 255, 255, 0.05);
  border: 0.1vw solid rgba(240, 117, 179, 0.3); /* 相对单位 */
  border-radius: 0.8vw; /* 相对单位 */
  padding: 1.5% 1%; /* 减少内边距 */
  flex: 1;
  min-width: min(18vw, 25%); /* 使用vw替代px */
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  aspect-ratio: 2/1; /* 更紧凑的比例 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-step:hover {
  transform: translateY(-0.3vw); /* 相对单位 */
  box-shadow: 0 0.5vw 1.5vw rgba(240, 117, 179, 0.2); /* 相对单位 */
}

.flow-step h3 {
  font-size: 1.4vw; /* 稍微减小标题 */
  margin-bottom: 0.6vh; /* 减少间距 */
  color: #fff;
}

.flow-step p {
  font-size: 0.9vw; /* 稍微减小正文 */
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.flow-step::after {
  content: "→";
  position: absolute;
  right: -1.5vw; /* 相对单位 */
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6vw; /* 相对单位 */
  color: rgb(240, 240, 117);
  font-weight: bold;
}

.flow-step:last-child::after {
  display: none;
}

.revenue-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(22vw, 30%), 1fr)
  ); /* 使用vw替代px */
  gap: 3%;
  margin-top: 3%;
  width: 100%;
}

.revenue-card {
  background: linear-gradient(
    135deg,
    rgba(240, 117, 179, 0.1),
    rgba(240, 240, 117, 0.1)
  );
  border: 0.05vw solid rgba(240, 117, 179, 0.3); /* 相对单位 */
  border-radius: 0.8vw; /* 相对单位 */
  padding: 1.5vw; /* 相对单位 */
  text-align: center;
}

.revenue-percentage {
  font-size: 3vw; /* 相对单位 */
  font-weight: bold;
  background: linear-gradient(135deg, rgb(240, 117, 179), rgb(240, 240, 117));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.market-stats {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(280px, 25%), 1fr)
  ); /* 响应式16:9优化 */
  gap: 2%;
  margin: 3% 0;
  width: 100%;
}

.stat-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(240, 240, 117, 0.2);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
}

.stat-number {
  font-size: 2rem; /* 使用中标题 */
  font-weight: bold;
  background: linear-gradient(135deg, rgb(240, 117, 179), rgb(240, 240, 117));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 10px;
}

.navigation {
  position: fixed; /* 固定在屏幕上 */
  top: 50%;
  right: 1vw; /* 使用相对单位 */
  transform: translateY(-50%);
  z-index: 1000;
}

.nav-dot {
  width: 0.6vw; /* 相对单位 */
  height: 0.6vw; /* 相对单位 */
  min-width: 8px; /* 最小尺寸保证可见性 */
  min-height: 8px;
  border-radius: 50%;
  background: rgba(240, 117, 179, 0.5);
  margin: 0.6vh 0; /* 相对单位 */
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-dot.active {
  background: rgb(240, 117, 179);
  transform: scale(1.5);
}

.summary-box {
  background: linear-gradient(
    135deg,
    rgba(240, 117, 179, 0.2),
    rgba(240, 240, 117, 0.2)
  );
  border: 0.1vw solid rgba(240, 117, 179, 0.5); /* 相对单位 */
  border-radius: 1vw; /* 相对单位 */
  padding: 2vw; /* 相对单位 */
  margin: 2vh 0; /* 相对单位 */
  text-align: center;
  font-size: 1.8vw; /* 相对单位 */
  line-height: 1.8;
}

.logo {
  position: absolute;
  top: 2%; /* 相对于16:9容器 */
  left: 2%;
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(240, 117, 179, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.logo:hover {
  border-color: rgba(240, 117, 179, 0.8);
  box-shadow: 0 0 20px rgba(240, 117, 179, 0.3);
  transform: scale(1.05);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 滚动进度条 */
.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1001;
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, rgb(240, 117, 179), rgb(240, 240, 117));
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(240, 117, 179, 0.5);
}

/* 标准16:9分辨率优化 (1920x1080) */
@media (min-width: 1280px) and (max-width: 1920px) and (min-aspect-ratio: 16/9) {
  .title {
    font-size: 4.5rem; /* 16:9屏幕优化标题大小 */
    margin-bottom: 70px;
  }

  .subtitle {
    font-size: 2.2rem;
    margin-bottom: 50px;
  }

  .chart-container {
    height: 500px; /* 16:9屏幕优化图表高度 */
  }

  .pie-chart {
    width: 350px;
    height: 350px;
  }
}

/* 16:9容器的响应式调整 */
@media (max-width: 1200px) {
  .slide {
    padding: 3% 4%;
  }

  .problem-grid {
    flex-direction: row;
    gap: 1.5%;
  }

  .flow-step {
    min-width: min(250px, 40%);
  }
}

@media (max-width: 768px) {
  .presentation-wrapper {
    border-radius: 0;
    box-shadow: none;
  }

  .slide {
    padding: 2% 3%;
  }

  .title {
    font-size: 2rem; /* 移动端中标题 */
  }

  .subtitle {
    font-size: 2rem; /* 移动端中标题 */
  }

  .solution-flow {
    flex-direction: column;
    align-items: center;
    gap: 3%;
  }

  .flow-step {
    width: 90%;
    min-width: auto;
    aspect-ratio: 2/1;
  }

  .problem-grid,
  .revenue-grid {
    flex-direction: column;
    gap: 4%;
  }

  .market-stats {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.floating-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(240, 117, 179, 0.1),
    rgba(240, 240, 117, 0.1)
  );
  animation: float 20s infinite linear;
}

.floating-circle:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-circle:nth-child(2) {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 10%;
  animation-delay: -10s;
}

.floating-circle:nth-child(3) {
  width: 60px;
  height: 60px;
  top: 80%;
  left: 70%;
  animation-delay: -5s;
}

/* 收益对比图表 */
.comparison-chart {
  width: 100%;
  height: 35vh; /* 增大图表高度 */
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.8vw; /* 使用相对单位 */
  padding: 2vw; /* 使用相对单位 */
  margin: 2vh 0; /* 使用相对单位 */
}

.chart-title {
  text-align: center;
  font-size: 1.8vw; /* 使用相对单位 */
  color: rgb(240, 117, 179);
  margin-bottom: 1.5vh; /* 使用相对单位 */
}

.chart-area {
  width: 100%;
  height: 85%; /* 增大图表区域占比 */
  position: relative;
  overflow: hidden;
}

.chart-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 4vw 3.5vh; /* 使用相对单位 */
}

.chart-axis {
  position: absolute;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9vw; /* 使用相对单位 */
}

.chart-axis.x {
  bottom: 0.5vh; /* 使用相对单位 */
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
}

.chart-axis.y {
  left: 10px;
  height: 100%;
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  padding: 30px 0;
}

.growth-curve {
  position: absolute;
  bottom: 50px;
  left: 30px;
  width: calc(100% - 60px);
  height: 200px;
}

.curve-line {
  position: absolute;
  width: 100%;
  height: 100%;
}

.RenToken-curve {
  stroke: url(#RenToken-gradient);
  stroke-width: 4;
  fill: none;
  filter: drop-shadow(0 0 8px rgba(240, 117, 179, 0.5));
  animation: drawCurve 3s ease-in-out;
}

.traditional-curve {
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 5, 5;
}

.legend {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.5);
  padding: 15px;
  border-radius: 8px;
  font-size: 1rem; /* 使用正文 */
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.legend-color {
  width: 20px;
  height: 3px;
  margin-right: 10px;
  border-radius: 2px;
}

.RenToken-color {
  background: linear-gradient(90deg, rgb(240, 117, 179), rgb(240, 240, 117));
}

.traditional-color {
  background: rgba(255, 255, 255, 0.4);
}

.risk-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.risk-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(240, 117, 179, 0.2);
}

.risk-level {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.low-risk {
  color: rgb(144, 238, 144);
}

.medium-risk {
  color: rgb(255, 223, 0);
}

.high-risk {
  color: rgb(255, 99, 99);
}

@keyframes drawCurve {
  from {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
  }
  to {
    stroke-dasharray: 1000;
    stroke-dashoffset: 0;
  }
}

/* CTA按钮样式 */
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, rgb(240, 117, 179), rgb(240, 240, 117));
  color: #000;
  font-size: 2rem; /* 使用中标题 */
  font-weight: bold;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  margin-top: 10px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(240, 117, 179, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(240, 117, 179, 0.5);
  filter: brightness(1.1);
}

.cta-button:active {
  transform: translateY(-1px);
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0px) rotate(360deg);
    opacity: 0.3;
  }
}

/* 确保字体最小尺寸和响应式调整 */
@media (max-width: 768px) {
  .text-large,
  .title {
    font-size: max(3vw, 24px); /* 最小24px */
  }

  .text-medium,
  .subtitle {
    font-size: max(2vw, 16px); /* 最小16px */
  }

  .text-small {
    font-size: max(1vw, 12px); /* 最小12px */
  }

  .nav-dot {
    min-width: 10px;
    min-height: 10px;
  }
}

/* 确保超大屏幕上字体不会过大 */
@media (min-width: 2560px) {
  .text-large,
  .title {
    font-size: min(4vw, 80px); /* 最大80px */
  }

  .text-medium,
  .subtitle {
    font-size: min(2.5vw, 50px); /* 最大50px */
  }

  .text-small {
    font-size: min(1vw, 20px); /* 最大20px */
  }
}

/* 当16:9容器高度过小时的处理 */
@media (max-height: 600px) {
  .slide {
    min-height: 100vh; /* 在小屏幕上确保slide占满视口 */
  }
}
