/* APP 下载 — 按端分栏 */
.app-dl-sections {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.app-dl-section {
  scroll-margin-top: 88px;
}

.app-dl-section__head {
  margin-bottom: 16px;
}

.app-dl-section__kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2563eb;
  background: #eff6ff;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid #bfdbfe;
  margin-bottom: 10px;
}

.app-dl-section__title {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: #0f172a;
}

.app-dl-section__sub {
  margin: 0;
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.75;
}

.app-dl-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: box-shadow 0.22s, border-color 0.22s;
}

.app-dl-panel:hover {
  border-color: #bfdbfe;
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.1);
}

.app-dl-panel__top {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 28px 20px;
  background: linear-gradient(145deg, #f8fafc, #fff);
  border-bottom: 1px solid #f1f5f9;
}

.app-dl-panel__icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 16px;
  border: 1px solid #bfdbfe;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}

.app-dl-panel__main {
  flex: 1;
  min-width: 240px;
}

.app-dl-panel__name {
  margin: 0 0 6px;
  font-size: 1.1875rem;
  font-weight: 800;
  color: #0f172a;
}

.app-dl-panel__ver {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  color: #64748b;
}

.app-dl-panel__desc {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.75;
}

.app-dl-panel__audience {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.6;
}

.app-dl-panel__audience strong {
  color: #2563eb;
  font-weight: 700;
}

.app-dl-panel__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.6;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.app-dl-panel__features {
  padding: 20px 28px 24px;
}

.app-dl-panel__features-title {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #64748b;
  text-transform: uppercase;
}

.app-dl-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

@media (min-width: 640px) {
  .app-dl-feature-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
  }
}

@media (min-width: 1024px) {
  .app-dl-feature-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.app-dl-feature {
  padding: 14px 16px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  transition: border-color 0.2s, background 0.2s;
}

.app-dl-feature:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.app-dl-feature strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e40af;
}

.app-dl-feature span {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #64748b;
}

.app-dl-panel__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 14px 28px 20px;
  border-top: 1px solid #f1f5f9;
  background: #fafbfc;
}

.app-dl-panel__project {
  margin: 0;
  font-size: 0.75rem;
  color: #94a3b8;
}

.app-dl-panel__project span {
  color: #64748b;
  font-weight: 600;
}

.app-dl-panel__doc {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2563eb !important;
}

.app-dl-panel__side {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}

.app-dl-panel__btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none !important;
  text-align: center;
  white-space: nowrap;
}

.app-dl-panel__btn--primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.app-dl-panel__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.4);
}

.app-dl-panel__btn--ghost {
  background: #f1f5f9;
  color: var(--of-text) !important;
  border: 1px solid var(--of-border);
}

.app-dl-panel__btn--disabled {
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.9375rem;
  color: var(--of-muted);
  background: #f1f5f9;
}

.app-dl-panel__wx {
  margin: 0;
  font-size: 0.8125rem;
  color: #b45309;
  text-align: center;
  max-width: 200px;
  line-height: 1.45;
}

.app-dl-panel__qr {
  text-align: center;
}

.app-dl-panel__qr img {
  display: block;
  margin: 0 auto 6px;
  border-radius: 8px;
  border: 1px solid var(--of-border);
}

.app-dl-panel__qr span {
  font-size: 0.75rem;
  color: var(--of-muted);
}

/* 首页快捷入口 */
.app-dl-index-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.app-dl-index-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none !important;
  color: #0f172a;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.app-dl-index-nav__item:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.app-dl-index-nav__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.app-dl-index-nav__title {
  flex: 1;
  font-weight: 600;
  font-size: 0.9375rem;
}

.app-dl-index-nav__status {
  font-size: 0.8125rem;
  color: var(--of-primary);
  font-weight: 600;
}

.app-download-note {
  margin-top: 24px;
  padding: 14px 18px;
  font-size: 0.875rem;
  color: var(--of-muted);
  background: #fff;
  border: 1px dashed var(--of-border);
  border-radius: 10px;
  line-height: 1.6;
}

.app-dl-empty {
  text-align: center;
  color: var(--of-muted);
  padding: 40px 0;
}

.app-dl-steps {
  margin: 24px 0 0;
  padding-left: 1.25rem;
  color: #334155;
  line-height: 1.8;
}

.app-dl-steps code {
  font-size: 0.875em;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

/* 兼容旧版卡片网格（若仍有引用） */
.app-download-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (max-width: 768px) {
  .app-dl-panel__top {
    flex-direction: column;
    padding: 20px;
  }
  .app-dl-panel__features {
    padding: 16px 20px 20px;
  }
  .app-dl-panel__foot {
    padding: 12px 20px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .app-dl-feature-list {
    grid-template-columns: 1fr;
  }
  .app-dl-panel__side {
    width: 100%;
    align-items: stretch;
  }
  .app-dl-panel__btn {
    width: 100%;
    box-sizing: border-box;
  }
  .app-dl-index-nav {
    grid-template-columns: 1fr;
  }
}
