/* 基础链接样式 */
a {
  text-decoration: none !important;
}
a:hover {
  text-decoration: none;
}

/* 全局盒模型设置 */
* {
  box-sizing: border-box;
}

/* 页面主体样式 - 深色背景 */
body {
  font-family: Arial, sans-serif;
  background-color: #fff; /* 深色背景 */
  color: #000;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 主容器样式 - 渐变背景 */
.main-wrapper {
  width: 100%;
  max-width: 600px;
  background-image:radial-gradient(circle at top left, rgba(115, 200, 255, 0.34), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 183, 132, 0.28), transparent 24%),
    linear-gradient(180deg, #f8fcff 0%, #fefaf5 100%);
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  position: relative;
}
/* 应用标志样式 */
.brand-header img {
  width: 120px; /* 较大尺寸的logo */
  display: block;
  margin: 0 auto;
  border-radius: 15px;
}

.brand-header h2,
.brand-header p {
  text-align: center;
  font-size: 1.1rem;
}

/* 下载按钮区域 - 网格布局 */
.button-grid {
  justify-content: space-between;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(1, 1fr);
  grid-column-gap: 10px;
  grid-row-gap: 10px;
}

/* 单个下载卡片样式 */
.app-card {
  width: 100%;
  background-color: #fffc;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  color: #000;
}

/* 下载卡片图标 */
.app-card img {
  width: 100%;
  max-width: 60px;
}

/* 下载卡片文字 */
.app-card p {
  font-size: 0.8rem;
  margin: 0;
}

/* 下载卡片悬停效果 */
.app-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 广告区域样式 */
.advertisement {
  width: 100%;
  margin-bottom: 20px;
}

/* 应用描述和信息区域共同样式 */
.desc-section,
.screenshots-section,
.info-section {
  text-align: left;
  padding: 15px;
  border-radius: 18px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 32px rgba(16, 29, 46, 0.16);
  backdrop-filter: blur(8px);
}

/* 应用描述文本样式 */
.desc-section span{
  white-space: pre-line;
  word-wrap: break-word;
  display: block;
  line-height: 1.75;
}

/* 标题样式 */
.desc-section h3,
.screenshots-section h3,
.info-section h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* 段落样式 */
.desc-section p,
.info-section p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.info-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.screenshots-header {
  overflow: hidden;
  margin-bottom: 18px;
}

.screenshots-header h3 {
  margin: 0;
  float: left;
}

.screenshots-section {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(90, 140, 210, 0.18);
  box-shadow: 0 20px 40px rgba(84, 120, 160, 0.16);
}

.carousel-controls {
  float: right;
}

.carousel-button {
  width: 42px;
  height: 42px;
  margin-left: 8px;
  border: 1px solid rgba(90, 140, 210, 0.18);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.76);
  color: #24415e;
  /* box-shadow: 0 10px 20px rgba(84, 120, 160, 0.14); */
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.carousel-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.screenshots-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.screenshots-carousel {
  position: relative;
  left: 0;
  font-size: 0;
  line-height: 0;
  white-space: nowrap;
  -webkit-transition: left 0.35s ease;
  transition: left 0.35s ease;
}

.carousel-slide {
  display: inline-block;
  vertical-align: top;
  margin: 0;
  white-space: normal;
}

.screenshot-card {
  position: relative;
  margin: 0;
  padding: 12px;
  border-radius: 28px;
  border: 1px solid rgba(90, 140, 210, 0.14);
  background: #f8fbff;
  box-shadow: 0 14px 28px rgba(84, 120, 160, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* .screenshot-card:before { */
  /* content: ""; */
  /* position: absolute; */
  /* top: 12px; */
  /* left: 12px; */
  /* width: 40%; */
  /* height: 1px; */
  /* background: #d9e9fb; */
/* } */

.screenshot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(84, 120, 160, 0.18);
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: 620px;
  margin: 0 auto;
  background: #edf6ff;
  object-fit: contain;
  border-radius: 22px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(90, 140, 210, 0.22);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.carousel-dot.is-active {
  width: 30px;
  background: #53c7f5;
}

/* 遮罩层显示控制 */
.main-wrapper .hide {
  display: none;
}

.main-wrapper .show {
  display: block;
}

/* 遮罩层基础样式 */
.main-wrapper .cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

/* 遮罩层关闭按钮 */
.main-wrapper .cover_throw {
  width: calc(76px / 2);
  height: calc(76px / 2);
  position: absolute;
  top: calc(23px / 2);
  right: calc(25px / 2);
}

.main-wrapper .cover_throw img {
  width: 100%;
  height: 100%;
}

/* 遮罩层文本容器 */
.cover .cover_text_wrap {
  position: absolute;
  top: calc(110px / 2);
  right: calc(50px / 2);
}

/* 遮罩层顶部文本 */
.cover .text_top {
  font-size: calc(36px / 2);
  font-weight: bold;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cover .text_top img {
  width: calc(42px / 2);
  height: calc(42px / 2);
}

/* 遮罩层底部文本 */
.cover .text_bottom {
  font-size: calc(24px / 2);
  font-weight: 400;
  color: #ffffff;
}

/* 响应式设计 - 小屏幕设备 */
@media (max-width: 600px) {
  .main-wrapper {
    padding: 15px;
  }
  .brand-header img {
    width: 80px;
  }
  .brand-header h2 {
    font-size: 1.3rem;
  }
  .brand-header p,
  .desc-section p,
  .info-section p {
    font-size: 0.85rem;
  }
  .app-card img {
    max-width: 50px;
  }
  .screenshots-carousel {
    white-space: nowrap;
  }
  .carousel-button {
    width: 36px;
    height: 36px;
  }
  .screenshot-card {
    padding: 10px;
    border-radius: 24px;
  }
  .screenshot-card img {
    height: 520px;
    border-radius: 18px;
  }
  .info-meta {
    display: block;
  }
}

/* 响应式设计 - 中等屏幕设备 */
@media (min-width: 601px) and (max-width: 1024px) {
  .main-wrapper {
    width: 90%;
  }
}

/* 应用信息区域样式 */
.info-section {
  padding: 15px;
  border-radius: 18px;
  margin-bottom: 20px;
}

.info-section h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.info-section p {
  font-size: 0.9rem;
  margin: 5px 0;
}

/* 加载进度条 */
.progress-bar {
  width: 80%; /* 横线总宽度 */
  margin-left: 10%;
  margin-bottom: 30px;
  height: 4px; /* 横线高度 */
  background: #e0e0e0; /* 背景色 */
  overflow: hidden;
  position: relative;
}

/* 加载进度条动画元素 */
.progress-bar::before {
  content: '';
  position: absolute;
  width: 50px; /* 滚动条的宽度 */
  height: 100%;
  background: #3498db; /* 滚动条颜色 */
  animation: slide 1.5s infinite linear; /* 动画效果 */
}

/* 进度条滑动动画 */
@keyframes slide {
  0% {
    transform: translateX(-100%); /* 从左边开始 */
  }
  100% {
    transform: translateX(400%); /* 滚动到右边 */
  }
}

/* 隐藏元素 */
.hidden {
  display: none;
}

/* 弹出层样式 */
#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1000;
  display: none;
  justify-content: center;
}

/* 弹出层内容区 */
#overlayContent {
  width: 80%;
  max-width: 400px;
  background-color: white;
  padding: 80px 0 0 0;
  border-radius: 10px;
  text-align: left;
  color: #fff;
  font-size: 20px;
  background-color: transparent;
}

/* 关闭按钮 */
#closeButton {
  margin-top: 10px;
  margin-left: 30%;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
  background-color: transparent;
  color: #fff;
  border: 1px dashed #fff;
}

/* 圆形数字样式 */
.circle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background-color: red;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  line-height: 50px;
  margin: 5px;
}

/* 弹出层图片 */
.overlayImage {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 100px;
  height: auto;
  cursor: pointer;
  z-index: 1001;
}

/* 版权信息样式 */
.copyright {
  clear: both;
  display: block;
  font-size: 9px;
  color: #ccc;
  width: 100%;
}

/* 广告容器样式 */
.ad-container {
  margin-top: 50px;
  width: 100%;
}
