/* ====== 基础重置 ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei',
    sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  overflow-x: hidden;
  background-color: #000;
}

/* ====== 背景处理 ====== */
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-image: url('images/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* 添加朦胧感 - 关键修改 */
.bg-blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(5px); /* 关键：模糊背景图 */
  background-color: rgba(0, 0, 0, 0.5); /* 增加深色遮罩 */
  z-index: 1;
}

.bg-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(138, 43, 226, 0.15) 0%,
    /* 紫色 */ rgba(148, 0, 211, 0.1) 25%,
    /* 深紫色 */ rgba(199, 21, 133, 0.08) 50%,
    /* 粉色 */ rgba(219, 112, 147, 0.1) 75%,
    /* 浅粉色 */ rgba(138, 43, 226, 0.15) 100% /* 紫色 */
  );
  z-index: 2;
  pointer-events: none;
}

/* ====== 主容器 ====== */
.page-container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: #fff;
}

/* ====== 头部样式 ====== */
.app-header {
  width: 100%;
  max-width: 500px;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-titles {
  display: flex;
  flex-direction: column;
}

.app-name {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.5px;
}

.app-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  font-weight: 400;
}

.version-badge {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 4px;
}

.version-label {
  font-weight: 500;
}

.version-number {
  font-weight: 700;
  color: #8a2be2;
}

.header-divider {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 30px;
  padding: 0 20px;
}

.divider-line {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
}

/* ====== 主内容区域 ====== */
.main-content {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 0;
}

/* ====== Hero区域 ====== */
.hero-section {
  text-align: center;
  margin: 30px 0 50px;
  padding: 0 10px;
}

.slogan-container {
  position: relative;
  margin: 0 auto 25px;
  max-width: 300px;
}

.slogan-image {
  width: 100%;
  filter: drop-shadow(0 10px 20px rgba(138, 43, 226, 0.3));
  animation: gentleFloat 3s ease-in-out infinite;
}

@keyframes gentleFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-8px) rotate(-3deg);
  }
}

.hero-text {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.hero-subtext {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

/* ====== 下载区域 ====== */
.download-section {
  width: 100%;
  margin-bottom: 50px;
}

.download-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 30px 25px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.download-info {
  text-align: center;
  margin-bottom: 30px;
}

.download-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.file-details {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.file-size,
.update-date {
  position: relative;
  padding: 0 10px;
}

.file-size::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
}

/* ====== 主要下载按钮 ====== */
.primary-download-btn {
  display: block;
  width: 100%;
  text-decoration: none;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #8a2be2, #c71585);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  position: relative;
  overflow: hidden;
}

.primary-download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.7s ease;
}

.primary-download-btn:hover::before {
  left: 100%;
}

.primary-download-btn:active {
  transform: scale(0.98);
}

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.platform-icon {
  width: 32px;
  height: 32px;
}

.btn-texts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.btn-main-text {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.btn-sub-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

/* ====== 下载统计 ====== */
.download-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  text-shadow: 0 2px 10px rgba(138, 43, 226, 0.3);
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* ====== 平台提示 ====== */
.platform-notice {
  text-align: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.notice-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* ====== 产品特点 ====== */
.features-section {
  margin-bottom: 60px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  margin-bottom: 30px;
  letter-spacing: -0.5px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 25px 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(138, 43, 226, 0.3);
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 15px;
  display: block;
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* ====== 页脚 ====== */
.app-footer {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 30px 0 40px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  color: #8a2be2;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.footer-links a:hover {
  color: #c71585;
}

.link-separator {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 10px;
  font-weight: 300;
}

.safety-notice {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 20px auto;
  max-width: 300px;
}

.footer-bottom {
  margin-top: 25px;
}

.beian-info {
  margin-bottom: 10px;
  font-size: 13px;
}

.beian-info a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.beian-info a:hover {
  color: #8a2be2;
}

.company-name {
  color: rgba(255, 255, 255, 0.6);
  margin-left: 4px;
}

.copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}

/* ====== 弹窗样式 ====== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-container {
  background: rgba(30, 30, 40, 0.95);
  border-radius: 20px;
  padding: 25px;
  width: 100%;
  max-width: 500px;
  margin: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  animation: modalAppear 0.4s ease;
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-size: 28px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.modal-content {
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.modal-content p {
  margin-bottom: 12px;
}

.modal-content strong {
  color: #8a2be2;
  font-weight: 600;
}

.modal-confirm-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #8a2be2, #c71585);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-confirm-btn:hover {
  opacity: 0.95;
}

/* ====== 响应式设计 ====== */
@media (max-width: 375px) {
  .page-container {
    padding: 0 16px;
  }

  .app-name {
    font-size: 24px;
  }

  .slogan-container {
    max-width: 280px;
  }

  .hero-text {
    font-size: 18px;
  }

  .download-card {
    padding: 25px 20px;
  }

  .primary-download-btn {
    padding: 18px;
  }

  .btn-main-text {
    font-size: 17px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (min-width: 768px) {
  .app-header {
    padding: 30px 0 40px;
  }

  .app-icon {
    width: 60px;
    height: 60px;
  }

  .app-name {
    font-size: 32px;
  }

  .app-tagline {
    font-size: 15px;
  }

  .hero-section {
    margin: 40px 0 70px;
  }

  .slogan-container {
    max-width: 380px;
  }

  .hero-text {
    font-size: 24px;
  }

  .hero-subtext {
    font-size: 16px;
  }

  .download-card {
    padding: 35px 30px;
  }

  .download-title {
    font-size: 28px;
  }

  .primary-download-btn {
    padding: 22px;
  }

  .btn-main-text {
    font-size: 20px;
  }

  .features-grid {
    max-width: 450px;
    margin: 0 auto;
  }

  .feature-card {
    padding: 30px 25px;
  }

  .feature-icon {
    font-size: 36px;
  }

  .feature-title {
    font-size: 18px;
  }

  .feature-desc {
    font-size: 14px;
  }
}

/* 横屏优化 */
@media screen and (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    margin: 20px 0 30px;
  }

  .download-section {
    margin-bottom: 30px;
  }

  .features-section {
    margin-bottom: 30px;
  }
}

/* 暗色滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(138, 43, 226, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(138, 43, 226, 0.7);
}
