:root {
  --primary-color: #0084FF;
  --primary-gradient: linear-gradient(90deg, #00A3FF 0%, #0066FF 100%);
  --primary-hover-gradient: linear-gradient(90deg, #52C0FF 0%, #5297FF 100%);
  --secondary-color: #f6f8ff;
  --text-color: #151515;
  --light-text: #506ed9;
  --border-radius: 10px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 移除未使用的CSS规则 */
img {
  max-width: 100%;
  height: auto;
}

/* 性能优化：减少重绘 */
.download-card {
  will-change: transform;
  transform: translateZ(0);
}

.download-card:hover {
  transform: translateY(-5px) translateZ(0);
}

/* 优化动画性能 */
.modal-overlay {
  will-change: opacity;
}

.modal-content {
  will-change: transform;
}

/* 全局样式重置和基础设置 - v2.0 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  /* 模仿参考页的渐变背景 */
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e7f1 100%);
  min-height: 100vh;
}

.container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* 背景融合层：柔和的辐射渐变光斑 */
.container::before {
  content: '';
  position: absolute;
  inset: -20% -20%;
  background:
    radial-gradient(600px 600px at 20% 10%, rgba(23, 152, 252, 0.15), transparent 60%),
    radial-gradient(700px 700px at 80% 30%, rgba(0, 86, 179, 0.13), transparent 60%),
    radial-gradient(500px 500px at 50% 90%, rgba(255, 255, 255, 0.28), transparent 60%);
  filter: blur(8px);
  z-index: 0;
}

.main-content {
  flex: 1;
  background-color: var(--secondary-color);
  background-image: url("../image/img.png");
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  /* 内容宽度约束，调整为 800px */
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 20px 60px;
  /* 与背景融合的半透明玻璃拟态效果 */
  background-blend-mode: lighten;
  background-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(23, 152, 252, 0.15);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(23, 152, 252, 0.08);
  position: relative;
  z-index: 1;
}

/* 大屏不再增加过大的左右内边距，保持 600px 内容宽度 */
@media (min-width: 1200px) {
  .main-content {
    padding: 20px 20px 60px;
  }
}

header {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  /* 居中头部内容 */
  align-items: center;
  text-align: center;
}

/* 全局 h1 优化：更好的可读性与对齐 */
h1 {
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.3;
  letter-spacing: 0.3px;
  margin: 0 0 12px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.logo-text {
  display: flex;
  align-items: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.3px;
  margin-bottom: 36px;
  gap: 12px;
  justify-content: center;
}

.logo-icon {
  width: 100px;
  height: 100px;
  /*border-radius: 50%;*/
}

.hero-section {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-color);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-align: center;
  position: relative;
}

.hero-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: var(--primary-gradient);
}

.hero-subtitle {
  font-size: 22px;
  letter-spacing: 7px;
  color: rgba(21, 21, 21, 0.6);
  line-height: 24px;
  margin-bottom: 20px;
}

.save-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  min-width: 290px;
  padding: 0 40px;
  background: var(--primary-gradient);
  color: white;
  font-size: 24px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
  border: none;
  margin-bottom: 78px;
}

.save-button:hover {
  background: var(--primary-hover-gradient);
}

.section-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: var(--text-color);
  margin-bottom: 24px;
  padding-bottom: 8px;
  background-image: url("https://static.yximgs.com/udata/pkg/f5c2f2432bdb48bc9ebcd15721e052be.png");
  background-size: 60px 12px;
  background-position: left bottom;
  background-repeat: no-repeat;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.download-card {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px 32px;
  box-shadow: var(--box-shadow);
}

.app-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.app-info {
  flex: 1;
  margin-left: 16px;
}

.app-name {
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 8px;
}

.app-description {
  font-size: 14px;
  color: var(--light-text);
}

.download-button {
  background-color: rgba(50, 156, 255, 0.16);
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 500;
  padding: 0 20px;
  height: 40px;
  line-height: 40px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.download-button:hover {
  background-color: var(--primary-color);
  color: white;
}

.alert {
  background-color: white;
  color: var(--primary-color);
  padding: 15px 20px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
  box-shadow: var(--box-shadow);
  line-height: 1.6;
  border: 1px solid rgba(0, 132, 255, 0.2);
}

.highlight {
  background-color: rgba(0, 132, 255, 0.1);
  color: var(--primary-color);
  padding: 0 4px;
  font-weight: bold;
}

.installation-guide {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 25px;
  margin-bottom: 40px;
  box-shadow: var(--box-shadow);
}

.guide-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.guide-tab {
  padding: 8px 15px;
  background-color: rgba(50, 156, 255, 0.16);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--primary-color);
}

.guide-tab.active {
  background-color: var(--primary-color);
  color: white;
}

.guide-content {
  display: none;
}

.guide-content.active {
  display: block;
}

footer {
  background-color: white;
  padding: 20px;
  text-align: center;
  color: rgba(0, 0, 0, 0.4);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
  }
  
  .logo-text {
    font-size: 24px;
    text-align: center;
    margin-bottom: 24px;
  }
  
  .hero-title {
    font-size: 22px;
    line-height: 26px;
    text-align: center;
    width: 100%;
  }
  
  .hero-subtitle {
    font-size: 12px;
    letter-spacing: 3px;
    text-align: center;
    width: 100%;
  }
  
  .hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .save-button {
    height: 50px;
    font-size: 20px;
    min-width: 234px;
    padding: 0 20px;
    margin-bottom: 40px;
  }
  
  .download-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 10px;
  }
  
  .download-card {
    padding: 16px;
  }
  
  .app-name {
    font-size: 16px;
  }
  
  .app-description {
    font-size: 12px;
  }
  
  .download-button {
    font-size: 14px;
    padding: 8px 16px;
  }
  
  .modal-content {
    margin: 20px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
  }
  
  .modal-close {
    top: 8px;
    right: 12px;
    font-size: 24px;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  margin: 5vh auto;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  position: relative;
}

.modal img.preview-image {
  max-height: 60vh;
  max-width: 90%;
  border-radius: 20px;
  pointer-events: auto;
  user-select: auto;
  object-fit: contain;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
}

.custom-icon {
  width: 50px;
  height: 50px;
  background-color: #999;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: bold;
  padding: 10px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .custom-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
    padding: 8px;
  }
}

.custom-icon svg {
  width: 100%;
  height: 100%;
  fill: white;
}

.download-option {
  margin: 10px;
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
}

.download-option:hover {
  background-color: #45a049;
}

/* 手机端紧凑布局优化（提升信息密度） */
@media (max-width: 480px) {
  .main-content {
    padding: 12px 12px 24px;
    border-radius: 12px;
  }

  .logo-text {
    font-size: 20px;
    margin-bottom: 16px;
    gap: 8px;
  }

  .logo-icon {
    width: 56px;
    height: 56px;
  }

  .hero-title {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .hero-title::after {
    width: 40px;
    height: 3px;
    margin: 8px auto 0;
  }

  .hero-subtitle {
    font-size: 13px;
    letter-spacing: 1px;
    line-height: 18px;
    margin-bottom: 12px;
  }

  .alert {
    padding: 10px 12px;
    margin-bottom: 16px;
    line-height: 1.4;
  }

  .section-title {
    font-size: 16px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    background-size: 36px 8px;
  }

  .download-grid {
    gap: 12px;
  }

  .download-card {
    padding: 12px 14px;
  }

  .app-icon {
    width: 40px;
    height: 40px;
  }

  .app-name {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .app-description {
    font-size: 12px;
  }

  .download-button {
    height: 36px;
    line-height: 36px;
    padding: 0 16px;
    font-size: 14px;
    border-radius: 8px;
  }

  footer {
    padding: 12px;
    font-size: 11px;
  }
}

/* 仅主页顶部重要提醒的字体缩放（不影响其他 .alert） */
@media (max-width: 680px) {
  .alert--home p {
font-size: 12px;
  }
}