/* =============================================================
 * 大货通 ERP · 下载页专属样式
 * 全部复用 style.css 中的 CSS 变量，保持风格统一
 * ============================================================= */

/* ===== Navbar 当前激活项 ===== */
.nav-links a.active {
  color: var(--brand-green);
  background: rgba(27,110,62,.08);
}

/* =============================================================
 *  1. Hero 首屏
 * ============================================================= */
.dl-hero {
  position: relative; min-height: 680px; display: flex; align-items: center;
  padding: 80px 0 120px;
  background:
    radial-gradient(ellipse 70% 55% at 85% 25%, rgba(16,185,129,.20), transparent 60%),
    radial-gradient(ellipse 55% 50% at 10% 90%, rgba(27,110,62,.22), transparent 60%),
    linear-gradient(180deg, #F5FBF7 0%, #E8F6EE 100%);
  overflow: hidden;
}
.dl-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(27,110,62,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27,110,62,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.dl-hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center;
}
.dl-hero-left { max-width: 560px; }
.dl-hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }

/* Hero 右侧：设备剪影（CSS 绘制笔记本 + 手机） */
.dl-hero-visual {
  position: relative; min-height: 520px;
  display: flex; align-items: center; justify-content: center;
}
.dl-hero-ring {
  position: absolute; border-radius: 50%;
  background: conic-gradient(from 220deg, var(--brand-green), var(--brand-green-2), var(--brand-green-3), var(--brand-green-3), var(--brand-green));
  filter: blur(2px);
  animation: rotate 22s linear infinite;
}
.dl-hero-ring.r1 { width: 480px; height: 480px; opacity: .15; }
.dl-hero-ring.r2 { width: 360px; height: 360px; opacity: .28; animation-duration: 16s; animation-direction: reverse; }

.dl-device { position: absolute; z-index: 3; }

/* 笔记本 */
.dl-laptop { top: 40px; right: 20px; width: 320px; }
.dl-laptop-screen {
  width: 100%; aspect-ratio: 16/10;
  background: linear-gradient(135deg, #0F1F1A 0%, #1B3A32 100%);
  border-radius: 10px 10px 2px 2px;
  padding: 6px;
  box-shadow: 0 30px 70px -18px rgba(15,31,26,.38), 0 6px 16px rgba(15,31,26,.18);
  border: 1.5px solid rgba(27,110,62,.25);
}
.dl-laptop-window {
  width: 100%; height: 100%;
  background: #fff;
  border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column;
}
.dl-window-bar {
  height: 26px; background: linear-gradient(135deg, #F0F5F2, #E2EDE6);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 10px; gap: 6px;
}
.dl-window-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #DC2626;
}
.dl-window-bar span:nth-child(2) { background: #F59E0B; }
.dl-window-bar span:nth-child(3) { background: #10B981; }
.dl-window-body { display: flex; flex: 1; overflow: hidden; }
.dl-sidebar {
  width: 42px; background: linear-gradient(180deg, var(--brand-green) 0%, var(--brand-green-2) 100%);
}
.dl-main { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-2); }
.dl-main-bar {
  height: 16px; background: linear-gradient(90deg, var(--brand-green), var(--brand-green-2));
  border-radius: 4px; width: 80%;
}
.dl-stat-row { display: flex; gap: 6px; }
.dl-stat-row span {
  flex: 1; height: 28px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.dl-chart {
  flex: 1; min-height: 60px;
  background:
    linear-gradient(180deg, rgba(16,185,129,.18) 0%, transparent 100%),
    repeating-linear-gradient(90deg, transparent, transparent 8px, rgba(27,110,62,.12) 8px, rgba(27,110,62,.12) 9px);
  border-radius: 4px;
}
.dl-laptop-base {
  height: 8px; margin-top: -1px;
  background: linear-gradient(180deg, #C8D6D0, #9CAFA7);
  border-radius: 2px 2px 8px 8px;
  box-shadow: 0 2px 8px rgba(15,31,26,.18);
}

/* 手机 */
.dl-phone { bottom: 20px; left: 20px; width: 130px; }
.dl-phone-notch {
  width: 60px; height: 14px;
  background: #0F1F1A; border-radius: 0 0 10px 10px;
  margin: 0 auto;
}
.dl-phone-screen {
  width: 100%; aspect-ratio: 9/19.5;
  background: linear-gradient(180deg, #fff 0%, var(--bg-2) 100%);
  border-radius: 12px;
  margin-top: -2px;
  padding: 10px 8px;
  box-shadow: 0 20px 50px -10px rgba(15,31,26,.35);
  border: 1.5px solid rgba(27,110,62,.25);
  display: flex; flex-direction: column; gap: 8px;
  overflow: hidden;
}
.dl-phone-status {
  height: 6px; background: rgba(27,110,62,.25); border-radius: 3px; width: 50%;
}
.dl-phone-card {
  height: 40px; background: linear-gradient(135deg, var(--brand-green-2), var(--brand-green-3));
  border-radius: 6px; opacity: .85;
}
.dl-phone-list { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dl-phone-list span {
  height: 18px; background: #fff; border: 1px solid var(--line); border-radius: 4px;
}

/* =============================================================
 *  2. 下载区
 * ============================================================= */
.dl-download { background: #fff; }
.dl-platforms {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  margin-bottom: 56px;
}

.dl-platform-card {
  position: relative; padding: 40px 36px 36px;
  background: #fff; border-radius: var(--radius-xl);
  border: 1.5px solid var(--line);
  overflow: hidden;
  transition: all 420ms cubic-bezier(.2,.8,.2,1);
}
.dl-platform-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-green-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.dl-platform-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 36px 80px -30px rgba(27,110,62,.35);
  border-color: rgba(27,110,62,.18);
}
.dl-platform-card:hover::before { transform: scaleX(1); }

.dl-platform-card.feat {
  border-color: rgba(27,110,62,.22);
  background: linear-gradient(135deg, #FFFBF7 0%, #FFF9F0 100%);
}

.dl-platform-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(27,110,62,.1); color: var(--brand-green);
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  margin-bottom: 18px;
}
.dl-platform-badge.android-badge {
  background: rgba(16,185,129,.12); color: #047857;
}

.dl-platform-icon {
  width: 72px; height: 72px; border-radius: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 22px; color: #fff;
  box-shadow: 0 12px 30px -10px rgba(27,110,62,.45);
}
.pc-icon { background: linear-gradient(135deg, #2563EB, #1D4ED8); }
.android-icon { background: linear-gradient(135deg, #10B981, #047857); }

.dl-platform-title {
  font-family: var(--font-cn); font-size: 24px; font-weight: 800; color: var(--ink-1);
  margin-bottom: 4px;
}
.dl-platform-subtitle {
  font-size: 14px; color: var(--ink-4); font-weight: 500; margin-bottom: 22px;
}

.dl-platform-info {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 14px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
  margin-bottom: 16px;
}
.dl-info-item {
  display: flex; flex-direction: column; gap: 4px; text-align: center;
}
.dl-info-label {
  font-size: 12px; color: var(--ink-4); font-weight: 500;
}
.dl-info-value {
  font-family: var(--font-en); font-weight: 700; font-size: 15px;
  color: var(--ink-1);
}

.dl-platform-req {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; color: var(--ink-4); line-height: 1.6;
}
.dl-platform-req li::before {
  content: ""; display: inline-block;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--brand-green-2);
  margin-right: 8px; vertical-align: middle;
}

/* 二维码区（Android 卡片内） */
.dl-qr-wrap {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 0 16px;
}
.dl-qr-card {
  position: relative; width: 108px; height: 108px;
  border-radius: 14px; overflow: hidden;
  background: #fff; padding: 8px;
  border: 1.5px solid rgba(27,110,62,.18);
  flex-shrink: 0;
  box-shadow: 0 8px 20px -8px rgba(27,110,62,.25);
}
.dl-qr-box { width: 100%; height: 100%; }
.dl-qr-box svg, .dl-qr-box img { width: 100%; height: 100%; display: block; }
.dl-qr-corners > span {
  position: absolute; width: 14px; height: 14px;
  border: 2.5px solid var(--brand-green-2);
}
.dl-qr-corners .tl { top: -6px;   left: -6px;  border-right: 0; border-bottom: 0; border-top-left-radius: 4px; }
.dl-qr-corners .tr { top: -6px;   right: -6px; border-left: 0;  border-bottom: 0; border-top-right-radius: 4px; border-color: var(--brand-green); }
.dl-qr-corners .bl { bottom: -6px; left: -6px;  border-right: 0; border-top: 0; border-bottom-left-radius: 4px; border-color: var(--brand-green); }
.dl-qr-corners .br { bottom: -6px; right: -6px; border-left: 0;  border-top: 0; border-bottom-right-radius: 4px; }
.dl-qr-tip {
  flex: 1; display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--brand-green); font-weight: 600;
  line-height: 1.5;
}
.dl-qr-tip svg { color: #07C160; flex-shrink: 0; }

/* 下载按钮 */
.dl-download-btn {
  width: 100%; justify-content: center;
  padding: 16px 26px; font-size: 15.5px;
}

/* 信任背书条 */
.dl-trust {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 40px; padding: 28px 32px;
  background: linear-gradient(135deg, rgba(16,185,129,.06), rgba(27,110,62,.04));
  border-radius: var(--radius-l);
  border: 1px solid rgba(27,110,62,.12);
}
.dl-trust-item {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink-3); font-size: 14px; font-weight: 500;
}
.dl-trust-item svg { color: var(--brand-green-2); flex-shrink: 0; }
.dl-trust-item b { color: var(--brand-green); }

/* =============================================================
 *  3. 功能亮点
 * ============================================================= */
.dl-features {
  background:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(16,185,129,.08), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(27,110,62,.08), transparent 70%),
    var(--bg-2);
}
.dl-feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.dl-feat-card {
  position: relative; padding: 32px 28px;
  background: #fff; border-radius: var(--radius-l);
  border: 1px solid var(--line);
  transition: all var(--transition);
  overflow: hidden;
}
.dl-feat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-green-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.dl-feat-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-md);
  border-color: rgba(27,110,62,.15);
}
.dl-feat-card:hover::before { transform: scaleX(1); }
.dl-feat-ico {
  width: 56px; height: 56px; border-radius: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 18px;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.2);
}
.dl-feat-card.f1 .dl-feat-ico { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.dl-feat-card.f2 .dl-feat-ico { background: linear-gradient(135deg, #10B981, #047857); }
.dl-feat-card.f3 .dl-feat-ico { background: linear-gradient(135deg, #F59E0B, #D97706); }
.dl-feat-card.f4 .dl-feat-ico { background: linear-gradient(135deg, #8B5CF6, #4338CA); }
.dl-feat-card.f5 .dl-feat-ico { background: linear-gradient(135deg, #F97316, #C2410C); }
.dl-feat-card.f6 .dl-feat-ico { background: linear-gradient(135deg, #06B6D4, #0369A1); }
.dl-feat-title {
  font-size: 17px; font-weight: 700; color: var(--ink-1);
  margin-bottom: 8px;
}
.dl-feat-desc {
  font-size: 14px; color: var(--ink-3); line-height: 1.75;
}

/* =============================================================
 *  响应式 · 平板
 * ============================================================= */
@media (max-width: 1023px) {
  .dl-hero { min-height: auto; padding: 60px 0 80px; }
  .dl-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .dl-hero-left { max-width: none; text-align: center; }
  .dl-hero-cta { justify-content: center; }
  .dl-hero-visual { order: -1; min-height: 380px; }
  .dl-platforms { grid-template-columns: 1fr; gap: 24px; }
  .dl-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-trust { gap: 20px; padding: 20px; }
}

/* =============================================================
 *  响应式 · 手机
 * ============================================================= */
@media (max-width: 767px) {
  .dl-hero { padding: 40px 0 60px; }
  .dl-hero-visual { min-height: 320px; }
  .dl-laptop { width: 220px; top: 30px; right: 0; }
  .dl-phone { width: 90px; bottom: 10px; left: 10px; }
  .dl-hero-ring.r1 { width: 300px; height: 300px; }
  .dl-hero-ring.r2 { width: 220px; height: 220px; }

  .dl-platform-card { padding: 28px 24px 24px; border-radius: var(--radius-m); }
  .dl-platform-icon { width: 60px; height: 60px; border-radius: 18px; margin-bottom: 16px; }
  .dl-platform-icon svg { width: 52px; height: 52px; }
  .dl-platform-title { font-size: 20px; }
  .dl-platform-info { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dl-platform-info .dl-info-item:nth-child(3) { grid-column: 1 / -1; }

  .dl-qr-wrap { flex-direction: column; gap: 12px; align-items: center; padding: 14px 0; }
  .dl-qr-tip { text-align: center; }

  .dl-feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .dl-feat-card { padding: 24px 22px; border-radius: var(--radius-m); }
  .dl-feat-ico { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 14px; }
  .dl-feat-ico svg { width: 24px; height: 24px; }

  .dl-trust { gap: 14px; padding: 18px 16px; }
  .dl-trust-item { font-size: 13px; }
}

/* 超窄屏 */
@media (max-width: 374px) {
  .dl-platform-info { grid-template-columns: 1fr; }
}
