/* 这是编译后的CSS文件 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background-color: #f8f9fa;
  color: #2c3e50;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  flex: 1;
}

.header {
  text-align: center;
  margin-bottom: 60px;
}

.header .logo-container {
  margin-bottom: 20px;
}

.header .logo-container .logo {
  width: 120px;
  height: auto;
  margin-bottom: 15px;
}

.header .logo-container h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.header .slogan {
  font-size: 1.2rem;
  color: #4a5568;
}

.download-section {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.download-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  width: 300px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  position: relative;
}

/* 带角标的标题：网页版 + 推荐（避免 inline-block 基线空隙把整块内容向下挤） */
.title-block {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 15px;
  line-height: 0;
}

.title-block h2 {
  margin-bottom: 0;
  line-height: 1.25;
  display: inline-block;
}

/* 推荐角标：保留渐变底，衬托白色图标 */
.recommend-badge {
  position: absolute;
  left: 100%;
  top: -4px;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  line-height: 0;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35);
}

.recommend-badge__img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

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

.download-card i {
  font-size: 3rem;
  color: #3498db;
  margin-bottom: 20px;
}

.download-card h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #2c3e50;
}

.download-card .title-block h2 {
  margin-bottom: 0;
}

.download-card p {
  color: #4a5568;
  margin-bottom: 25px;
  font-size: 1rem;
  line-height: 1.5;
}

.download-btn {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.download-btn i {
  font-size: 1.2rem;
  color: white;
  margin: 0;
}

.download-btn:hover {
  background-color: #2980b9;
}

.footer {
  text-align: center;
  padding: 20px;
  background: #ffffff;
  margin-top: auto;
}

.footer p {
  color: #718096;
  line-height: 1.6;
  font-size: 0.9rem;
}

.footer .download-tips {
  color: #e53e3e;
  margin: 15px 0;
  font-size: 0.85rem;
}

.footer .license-info {
  margin-top: 15px;
  color: #718096;
}

.footer .license-info p {
  font-size: 0.8rem;
  line-height: 1.8;
  color: #a0aec0;
}

@media (max-width: 1024px) {
  .download-section {
    gap: 20px;
  }

  .download-card {
    width: calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .download-card {
    width: 100%;
  }

  .header .logo-container h1 {
    font-size: 2rem;
  }
}

/* 模态框样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal-content {
  position: relative;
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  width: 300px;
  border-radius: 8px;
  text-align: center;
}

.close {
  position: absolute;
  right: 10px;
  top: 5px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.qr-code {
  width: 200px;
  height: 200px;
  margin: 20px 0;
}

/* 电脑版下载提示对话框 */
.modal-content--pc-tip {
  width: 340px;
  max-width: calc(100vw - 40px);
  padding: 24px 20px 20px;
  text-align: left;
}

.pc-download-tip {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.65;
  color: #2c3e50;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.modal-btn {
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.modal-btn--cancel {
  background: #e2e8f0;
  color: #2d3748;
}

.modal-btn--ok {
  background: #3498db;
  color: #fff;
}

.modal-btn:hover {
  opacity: 0.92;
}

.help-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.help-icon:hover {
  background: rgba(0, 0, 0, 0.2);
}

.help-icon i {
  font-size: 16px;
  color: #666;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}