/* ============================================================
   APP 下载页样式  mxpro 主题内置版
   文件位置: template/mxpro/html/label/down.css
   引用路径: 站点根 /mxtheme/css/down.css （需覆盖到该位置）
   ============================================================ */

.appdl-page {
  --appdl-primary: #0084FF;
  --appdl-text: #151515;
  --appdl-light: #686F7E;
  --appdl-radius: 10px;
  --appdl-card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

  background-color: #e8f4ff;
  background-image: linear-gradient(180deg, #c7eaff 0%, #d9f0ff 35%, #eaf6ff 65%, #f6fbff 100%);
  background-size: 100% 100%;
  background-position: top center;
  background-repeat: no-repeat;
  padding: 24px 20px 50px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--appdl-text);
  min-height: 100vh;
}

.appdl-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* ---------- 品牌卡片 ---------- */
.appdl-logo-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 16px;
  padding: 20px 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.appdl-logo-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  flex-shrink: 0;
  object-fit: cover;
  background: #f2f4f8;
}

.appdl-logo-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.appdl-logo-text {
  font-size: 26px;
  font-weight: 700;
  color: var(--appdl-text);
  line-height: 1.2;
  margin: 0;
}

.appdl-logo-slogan {
  font-size: 14px;
  color: var(--appdl-light);
  letter-spacing: 1px;
  line-height: 1.4;
  margin: 0;
}

/* ---------- 警示条 ---------- */
.appdl-alert {
  background-color: #fff;
  color: var(--appdl-primary);
  padding: 16px 22px;
  border-radius: var(--appdl-radius);
  margin-bottom: 28px;
  box-shadow: var(--appdl-card-shadow);
  line-height: 1.9;
  font-size: 14px;
}

.appdl-alert p {
  margin: 0;
}

/* ---------- 区块标题（带蓝色下划线） ---------- */
.appdl-section-title {
  font-size: 19px;
  font-weight: 600;
  line-height: 28px;
  color: var(--appdl-text);
  margin: 0 0 20px;
  padding-bottom: 10px;
  position: relative;
}

.appdl-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #29a3ff 0%, #7cc8ff 100%);
}

/* ---------- 下载卡片 ---------- */
.appdl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.appdl-card {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 12px;
  padding: 22px 26px;
  box-shadow: var(--appdl-card-shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.appdl-card:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);
  transform: translateY(-2px);
}

.appdl-icon {
  width: 50px;
  height: 50px;
  background-color: #9aa3b2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  padding: 11px;
  box-sizing: border-box;
}

.appdl-icon svg {
  width: 100%;
  height: 100%;
  fill: #fff;
}

/* 参照效果图：图标统一灰底，不用彩色 */
.appdl-icon-android,
.appdl-icon-ios,
.appdl-icon-pc,
.appdl-icon-tv { background-color: #a7adb8; }

.appdl-card-info {
  flex: 1;
  margin-left: 16px;
  min-width: 0;
}

.appdl-card-name {
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--appdl-text);
}

.appdl-card-desc {
  font-size: 13px;
  color: var(--appdl-light);
  margin: 0;
}

.appdl-btn {
  background-color: rgba(50, 156, 255, 0.16);
  color: var(--appdl-primary);
  font-size: 15px;
  font-weight: 500;
  padding: 0 22px;
  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;
  white-space: nowrap;
  border: none;
  flex-shrink: 0;
}

.appdl-btn:hover {
  background-color: var(--appdl-primary);
  color: #fff;
}

/* ---------- 下载说明卡片 ---------- */
.appdl-guide {
  background-color: #fff;
  border-radius: var(--appdl-radius);
  padding: 28px;
  margin-bottom: 30px;
  box-shadow: var(--appdl-card-shadow);
}

.appdl-guide .appdl-section-title {
  margin-top: 0;
}

.appdl-guide .guide-step {
  font-size: 14px;
  line-height: 1.9;
  word-break: break-all;
  margin-bottom: 12px;
  color: #333;
}

.appdl-guide .guide-step:last-child {
  margin-bottom: 0;
}

.appdl-guide .guide-step b {
  color: var(--appdl-text);
}

.appdl-red { color: #ff3b30; font-weight: 600; }
.appdl-mark { background: yellow; color: #000; }

/* ---------- 底部声明 ---------- */
.appdl-footer {
  text-align: center;
  color: #7b8794;
  font-size: 12px;
  line-height: 1.9;
  padding: 10px 0 0;
}

.appdl-footer p {
  margin: 0;
}

/* ---------- 弹窗 ---------- */
.appdl-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow-y: auto;
}

.appdl-modal-show {
  display: flex;
}

.appdl-modal-box {
  background: #fff;
  padding: 24px 20px 20px;
  border-radius: 16px;
  width: 380px;
  max-width: 88%;
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
  max-height: 90vh;
  overflow-y: auto;
  animation: appdlSlideIn 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes appdlSlideIn {
  from { transform: translateY(24px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.appdl-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  cursor: pointer;
  font-size: 18px;
  color: #999;
  line-height: 1;
  background: none;
  border: none;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s ease;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.appdl-modal-close:hover {
  color: #333;
  background: #f0f0f0;
}

.appdl-modal-title {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  text-align: center;
  padding: 0 24px;
  letter-spacing: 0.3px;
}

.appdl-modal-tips {
  margin: 15px 0;
  padding: 0 10px;
  text-align: center;
}

.appdl-modal-tips p {
  color: #666;
  font-size: 13px;
  margin: 0 0 10px;
}

.appdl-modal-tips p:last-child {
  margin-bottom: 0;
}

.appdl-modal-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.appdl-modal-btn {
  padding: 12px 16px;
  background: linear-gradient(135deg, #29a3ff 0%, #0084ff 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 132, 255, 0.25);
  display: block;
}

.appdl-modal-btn:hover {
  background: linear-gradient(135deg, #0084ff 0%, #0068cc 100%);
  box-shadow: 0 6px 16px rgba(0, 132, 255, 0.35);
  transform: translateY(-1px);
}

.appdl-modal-btn-secondary {
  background: #f5f5f5;
  color: #555;
  box-shadow: none;
  border: 1px solid #e0e0e0;
}

.appdl-modal-btn-secondary:hover {
  background: #eaeaea;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.appdl-modal-steps {
  display: inline-block;
  text-align: left;
  padding-left: 20px;
  margin: 12px 0;
  color: #444;
  font-size: 13px;
  line-height: 1.6;
}

.appdl-modal-steps li {
  margin-bottom: 8px;
}

body.appdl-modal-open {
  overflow: hidden;
}

/* 弹窗滚动条 */
.appdl-modal-box::-webkit-scrollbar { width: 5px; }
.appdl-modal-box::-webkit-scrollbar-track { background: transparent; }
.appdl-modal-box::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 10px;
}
.appdl-modal-box::-webkit-scrollbar-thumb:hover { background: #b0b0b0; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .appdl-page { padding: 16px 14px 36px; }

  .appdl-logo-card {
    padding: 16px 18px;
    gap: 14px;
    border-radius: 14px;
    margin-bottom: 18px;
  }

  .appdl-logo-icon { width: 60px; height: 60px; border-radius: 15px; }
  .appdl-logo-text { font-size: 21px; }
  .appdl-logo-slogan { font-size: 12.5px; }

  .appdl-alert { padding: 13px 16px; font-size: 13px; margin-bottom: 20px; }

  .appdl-section-title { font-size: 17px; margin-bottom: 16px; }

  .appdl-grid { grid-template-columns: 1fr; gap: 14px; margin-bottom: 26px; }

  .appdl-card { padding: 16px 18px; }

  .appdl-btn { padding: 0 16px; height: 36px; line-height: 36px; font-size: 14px; }

  .appdl-icon { width: 42px; height: 42px; padding: 9px; border-radius: 10px; }

  .appdl-card-name { font-size: 15px; }
  .appdl-card-desc { font-size: 12.5px; }

  .appdl-guide { padding: 18px; }
  .appdl-guide .guide-step { font-size: 13px; }
}

@media (max-width: 480px) {
  .appdl-modal-box {
    padding: 20px 16px 16px;
    width: 90vw;
    max-height: 85vh;
    border-radius: 14px;
  }

  .appdl-modal-btn { padding: 11px 16px; font-size: 13px; }
  .appdl-modal-title { font-size: 15px; }
  .appdl-modal-tips p { font-size: 12px; }
}
