/* /assets/css/download.css
   下载页：统一首页风格（蓝色 Hero + 玻璃 Pills + 卡片区块）
*/

/* ======================================================
   主题变量（沿用首页）
====================================================== */
:root{
  --wrap: 1100px;
  --content-max: 1200px;

  --brand: #2B71FF;
  --accent:#2B71FF;

  --hero-start:#365a8d;
  --hero-end:#2e4f80;

  --cta-start:#ff6a6f;
  --cta-end:#ff8a90;
  --cta-shadow: rgba(255,106,111,.35);

  --hero-title:#fff;
  --hero-text:#eaf2ff;

  --text-main:#111;
  --text-muted:#6b7a90;
  --line: rgba(17,24,39,.08);

  --card: rgba(255,255,255,.86);
  --card-solid:#fff;
  --shadow: 0 14px 36px rgba(17,24,39,.08);

  --radius-1: 14px;
  --radius-2: 18px;
  --radius-3: 22px;
}

/* ======================================================
   基础
====================================================== */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html,body{ overflow-x:hidden; }

body{
  font:16px/1.7 system-ui, Segoe UI, Arial;
  color:var(--text-main);
  background:
    radial-gradient(900px 600px at 85% 20%, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(135deg, #fdfbfb 0%, #e6f0ff 42%, #f3e9ff 72%, #ffe6f3 100%) !important;
}

a{ color:var(--brand); text-decoration:none; }
a:hover{ text-decoration:underline; }

.wrap, .container{
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 16px;
  position:relative;
}

/* 让固定导航不遮挡（仅下载页生效） */
:root{ --header-h: 64px; }
body{ padding-top: calc(var(--header-h) + 8px); }

/* ======================================================
   面包屑（更像首页的轻条）
====================================================== */
.dl-breadcrumb{
  max-width: var(--wrap);
  margin: 10px auto 14px;
  padding: 10px 16px;
  font-size: 13px;
  color: rgba(15,23,42,.72);
}
.dl-breadcrumb a{ font-weight:700; }
.dl-breadcrumb span{ margin:0 6px; color: rgba(15,23,42,.35); }

/* ======================================================
   下载页 Hero（全幅蓝色渐变 + 玻璃 tabs）
====================================================== */
.dl-hero{
  position:relative;

  /* full-bleed */
  left:50%; right:50%;
  margin-left:-50vw; margin-right:-50vw;
  width:100vw; max-width:100vw;

  padding: 24px max(20px, calc((100vw - var(--content-max)) / 2)) 38px;
  color:#fff;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  overflow:hidden;
  isolation:isolate;
}
.dl-hero::before{
  content:"";
  position:absolute; inset:0; z-index:-1;
  background:
    radial-gradient(980px 560px at 78% 48%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 62%),
    radial-gradient(560px 360px at 82% 62%, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 65%),
    linear-gradient(135deg, var(--hero-start) 0%, var(--hero-end) 100%);
}
.dl-hero::after{
  content:"";
  position:absolute;
  width:220px; height:220px;
  right:110px; top:48px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  filter:blur(.4px);
  z-index:-1;
  pointer-events:none;
}

/* tabs 容器（玻璃） */
.dl-hero__platforms{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  padding:10px;
  border-radius:999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

/* 单个 tab */
.plat{
  appearance:none;
  border:0;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:10px;
  height:44px;
  padding:0 14px;
  border-radius:999px;
  background:transparent;
  color: rgba(255,255,255,.90);
  font-weight:700;
  transition: transform .14s ease, background .14s ease, opacity .14s ease, box-shadow .14s ease, border-color .14s ease;
  user-select:none;
}
.plat:hover{
  opacity:.95;
  background: rgba(255,255,255,.10);
  transform: translateY(-1px);
}
.plat.is-active{
  background: rgba(255,255,255,.18);
  box-shadow: 0 12px 26px rgba(0,0,0,.16);
}
.plat__icon{
  width:18px; height:18px; display:block;
  filter: brightness(0) invert(1);
  opacity:.95;
}

/* Hero 文案区 */
.dl-hero__content{
  max-width: 820px;
  margin-top: 18px;
}
#dl-h1{
  margin:0 0 8px;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height:1.18;
  font-weight:900;
  letter-spacing:.2px;
}
#dl-desc{
  margin:0 0 18px;
  color: rgba(255,255,255,.92);
  font-size: 16px;
  line-height:1.9;
}

/* CTA */
.dl-hero__cta{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:56px;
  padding:0 26px;
  border-radius:999px;
  color:#fff !important;
  font-weight:900;
  letter-spacing:.2px;
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  box-shadow: 0 16px 36px var(--cta-shadow);
  border: 0;
  transition: transform .14s ease, filter .18s ease, box-shadow .18s ease;
}
.btn-primary:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
  text-decoration:none;
}
.dl-hero__sub{
  color: rgba(255,255,255,.88);
  font-size: 13px;
  font-weight:650;
}
.dl-hero__note{
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.86);
}
.dl-hero__note a{ color:#fff; font-weight:800; text-decoration: underline; }

/* ======================================================
   区块通用（卡片容器）
====================================================== */
.dl-features,
.dl-steps,
.dl-sysreq,
.dl-faq{
  max-width: var(--content-max);
  margin: 22px auto 0;
  padding: 0 20px;
}

/* ======================================================
   8 宫格卖点（卡片化）
====================================================== */
.feat-grid{
  list-style:none;
  padding:0;
  margin: 18px 0 0;
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}

.feat{
  background: var(--card);
  border: 1px solid rgba(17,24,39,.08);
  border-radius: var(--radius-2);
  box-shadow: 0 12px 30px rgba(17,24,39,.06);
  padding: 16px 16px 14px;
  transition: transform .14s ease, box-shadow .18s ease, border-color .18s ease;
}
.feat:hover{
  transform: translateY(-2px);
  border-color: rgba(43,113,255,.28);
  box-shadow: 0 18px 44px rgba(17,24,39,.08);
}
.feat h3{
  margin:0 0 8px;
  font-size: 16px;
  font-weight:850;
  color:#0f172a;
}
.feat p{
  margin:0;
  color:#475569;
  font-size: 13.5px;
  line-height:1.75;
}
.feat .more{
  display:inline-flex;
  margin-top:10px;
  font-weight:800;
  font-size:13px;
  color: var(--brand);
}

/* ======================================================
   安装步骤（大卡片）
====================================================== */
.dl-steps{
  margin-top: 18px;
}
.dl-steps h2{
  margin: 22px 0 12px;
  font-size: 22px;
  font-weight:900;
  color:#0f172a;
}
.steps{
  margin:0;
  padding: 16px 18px 16px 22px;
  background: var(--card);
  border: 1px solid rgba(17,24,39,.08);
  border-radius: var(--radius-3);
  box-shadow: var(--shadow);
}
.steps li{
  margin: 10px 0;
  color:#334155;
  line-height:1.85;
}
.steps strong{ color: var(--brand); }
.steps__tip{
  margin: 12px 0 0;
  color:#64748b;
  font-size: 13.5px;
}

/* ======================================================
   系统要求（网格卡片）
====================================================== */
.dl-sysreq{
  margin-top: 18px;
}
.dl-sysreq h2{
  margin: 22px 0 12px;
  font-size: 22px;
  font-weight:900;
  color:#0f172a;
}
.sysreq-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
.sysreq-grid > div{
  background: var(--card);
  border: 1px solid rgba(17,24,39,.08);
  border-radius: var(--radius-2);
  box-shadow: 0 12px 30px rgba(17,24,39,.06);
  padding: 16px;
}
.sysreq-grid h3{
  margin:0 0 8px;
  font-size: 15px;
  font-weight:850;
  color:#0f172a;
}
.sysreq-grid p{
  margin:0;
  color:#475569;
  font-size: 13.5px;
  line-height:1.75;
}

/* ======================================================
   FAQ（details 卡片）
====================================================== */
.dl-faq{
  margin-top: 18px;
  margin-bottom: 40px;
}
.dl-faq h2{
  margin: 22px 0 12px;
  font-size: 22px;
  font-weight:900;
  color:#0f172a;
}
.dl-faq details{
  background: var(--card-solid);
  border: 1px solid rgba(17,24,39,.08);
  border-radius: var(--radius-2);
  box-shadow: 0 12px 30px rgba(17,24,39,.06);
  padding: 12px 14px;
  margin: 12px 0;
}
.dl-faq summary{
  cursor:pointer;
  font-weight:850;
  color:#0f172a;
  outline:none;
}
.dl-faq details[open]{
  border-color: rgba(43,113,255,.22);
}
.dl-faq details p{
  margin: 10px 0 0;
  color:#475569;
  font-size: 14px;
  line-height:1.85;
}

/* ======================================================
   响应式
====================================================== */
@media (max-width: 1100px){
  .feat-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sysreq-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 860px){
  /* tabs 横向滚动更舒服 */
  .dl-hero__platforms{
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width: none;
  }
  .dl-hero__platforms::-webkit-scrollbar{ height:0; }

  .plat{ white-space:nowrap; }
}

@media (max-width: 560px){
  body{ padding-top: calc(var(--header-h) + 6px); }

  .dl-hero{
    padding: 18px 16px 26px;
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
  }

  .dl-hero__cta{ gap:10px; }
  .btn-primary{ width: min(360px, 92vw); }

  .feat-grid{ grid-template-columns: 1fr; }
  .sysreq-grid{ grid-template-columns: 1fr; }
}
