/* ==========================================================================
   GT138 App 下载页骨架：墨绿下载中心 · 边框式 Hero + 横向步骤时间轴 + 折叠问答
   （独立骨架，不复用首页与 App 页布局）
   ========================================================================== */

:root {
  --dl-deep: #05231f;
  --dl-deep-2: #083a32;
  --dl-green: #10b981;
  --dl-mint: #6ee7b7;
  --dl-paper: #f4fbf8;
  --dl-ink: #07211c;
  --dl-muted: #5b7a72;
  --dl-line: #d7ebe4;
}

body.dl-page {
  background: var(--dl-paper);
  color: var(--dl-ink);
}

.dl-page .site-header {
  background: rgba(255, 255, 255, .94);
}

.dl-page .brand-mark { background: linear-gradient(135deg, #6ee7b7, #059669); color: #04241d; box-shadow: 0 6px 16px rgba(5, 150, 105, .28); }
.dl-page .brand-text em { color: #059669; }
.dl-page .site-nav a.is-active { color: #047857; background: rgba(16, 185, 129, .13); }
.dl-page .btn-login { background: linear-gradient(135deg, #34d399, #059669); color: #032019; box-shadow: 0 8px 20px rgba(5, 150, 105, .26); }

/* ---------------- Hero：深绿 + 边框式图像 ---------------- */
.dl-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 96px;
  color: #e6f6f0;
  background:
    radial-gradient(720px 460px at 82% 12%, rgba(16, 185, 129, .26), transparent 66%),
    radial-gradient(560px 380px at 6% 88%, rgba(5, 150, 105, .18), transparent 70%),
    linear-gradient(160deg, var(--dl-deep), var(--dl-deep-2));
}

.dl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 72px);
  mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 75%);
  pointer-events: none;
}

.dl-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 54px;
  align-items: center;
}

.dl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--dl-mint);
  text-transform: uppercase;
}

.dl-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--dl-mint);
}

.dl-hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -.5px;
  color: #fff;
}

.dl-hero h1 em {
  font-style: normal;
  color: var(--dl-mint);
}

.dl-hero .lead {
  max-width: 560px;
  font-size: 16.5px;
  line-height: 1.9;
  color: #a8c9c0;
}

.dl-hero .lead strong { color: #fff; }
.dl-hero .lead a { color: var(--dl-mint); border-bottom: 1px solid rgba(110, 231, 183, .4); }

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 22px;
}

.dl-actions .btn-primary {
  background: linear-gradient(135deg, #6ee7b7, #10b981 55%, #059669);
  color: #032019;
  box-shadow: 0 16px 36px rgba(16, 185, 129, .28);
}

.dl-actions .btn-room {
  border-color: rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .05);
  color: #fff;
}

.dl-actions .btn-room b { color: var(--dl-mint); letter-spacing: 1px; }

.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dl-meta span {
  padding: 6px 13px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  font-size: 12.5px;
  color: #9fc2b8;
}

/* 边框图像 */
.dl-visual {
  position: relative;
  padding: 18px;
}

.dl-visual .frame {
  position: relative;
  border: 1px solid rgba(110, 231, 183, .3);
  border-radius: 18px;
  background: rgba(2, 32, 26, .55);
  padding: 20px;
}

.dl-visual .frame::before,
.dl-visual .frame::after,
.dl-visual .corner::before,
.dl-visual .corner::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: var(--dl-mint);
  border-style: solid;
}

.dl-visual .frame::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-radius: 18px 0 0 0; }
.dl-visual .frame::after { top: -1px; right: -1px; border-width: 2px 2px 0 0; border-radius: 0 18px 0 0; }
.dl-visual .corner::before { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; border-radius: 0 0 0 18px; }
.dl-visual .corner::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-radius: 0 0 18px 0; }

.dl-visual img {
  width: 100%;
  border-radius: 12px;
}

.dl-visual .stamp {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--dl-mint);
  color: #032019;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .35);
}

/* ---------------- 平台快捷入口 ---------------- */
.dl-platforms {
  position: relative;
  z-index: 3;
  margin-top: -44px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--dl-line);
  box-shadow: 0 18px 40px rgba(4, 47, 39, .1);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.platform-card:hover {
  transform: translateY(-5px);
  border-color: var(--dl-green);
  box-shadow: 0 24px 50px rgba(4, 47, 39, .16);
}

.platform-card .os {
  flex: none;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: #e7f8f1;
  font-size: 22px;
}

.platform-card h3 { font-size: 16px; font-weight: 800; }
.platform-card p { font-size: 13px; color: var(--dl-muted); margin-top: 2px; }
.platform-card .go { margin-left: auto; color: var(--dl-green); font-weight: 800; font-size: 18px; }

/* ---------------- 横向步骤 ---------------- */
.dl-section { padding: 84px 0; }
.dl-section.tint { background: #eaf7f2; }

.dl-head { max-width: 720px; margin-bottom: 44px; }

.dl-head .tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 5px;
  background: rgba(16, 185, 129, .14);
  color: #047857;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.dl-head h2 {
  margin: 14px 0 10px;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 900;
  line-height: 1.3;
}

.dl-head p { color: var(--dl-muted); font-size: 15.5px; }

/* 时间轴 */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: repeating-linear-gradient(90deg, #9ed9c7 0 8px, transparent 8px 16px);
}

.tl-item {
  position: relative;
  padding: 0 18px;
  text-align: center;
}

.tl-dot {
  position: relative;
  z-index: 2;
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--dl-green);
  color: #047857;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, .1);
}

.tl-item h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.tl-item p { font-size: 13.5px; line-height: 1.75; color: var(--dl-muted); }

/* ---------------- 版本表 ---------------- */
.version-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--dl-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 14.5px;
  box-shadow: var(--shadow-sm);
}

.version-table th,
.version-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--dl-line);
}

.version-table thead th {
  background: #0c3a31;
  color: #d7f5ea;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
}

.version-table tbody tr:last-child td { border-bottom: 0; }
.version-table tbody tr:hover { background: #f6fdfa; }

.version-table .badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e7f8f1;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
}

/* ---------------- 双栏安装指引 ---------------- */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.guide-card {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--dl-line);
  border-radius: var(--radius-md);
}

.guide-card header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--dl-line);
}

.guide-card header .ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: #e7f8f1;
  font-size: 18px;
}

.guide-card header h3 { font-size: 17px; font-weight: 800; }

.guide-card ol { counter-reset: g; display: grid; gap: 14px; }

.guide-card li {
  counter-increment: g;
  position: relative;
  padding-left: 38px;
  font-size: 14.5px;
  line-height: 1.8;
  color: #33544c;
}

.guide-card li::before {
  content: counter(g);
  position: absolute;
  left: 0; top: 2px;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: #0c3a31;
  color: var(--dl-mint);
  font-size: 12px;
  font-weight: 700;
}

.guide-card li strong { color: #07211c; }

/* ---------------- 校验块 ---------------- */
.verify-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 34px 36px;
  margin-top: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--dl-line);
  background: linear-gradient(135deg, #ffffff, #f2fbf7);
}

.verify-box h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.verify-box p { font-size: 14.5px; color: var(--dl-muted); }

.hash {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12.5px;
  color: #047857;
  word-break: break-all;
  padding: 14px 16px;
  border-radius: 10px;
  background: #eaf7f2;
  border: 1px dashed #9ed9c7;
  max-width: 420px;
}

/* ---------------- 折叠问答 ---------------- */
.acc-list { display: grid; gap: 12px; max-width: 900px; }

.acc-item {
  background: #fff;
  border: 1px solid var(--dl-line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}

.acc-item.is-open { border-color: var(--dl-green); box-shadow: 0 12px 30px rgba(4, 47, 39, .09); }

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--dl-ink);
}

.acc-trigger .plus {
  flex: none;
  margin-left: auto;
  width: 26px; height: 26px;
  position: relative;
  border-radius: 50%;
  background: #e7f8f1;
}

.acc-trigger .plus::before,
.acc-trigger .plus::after {
  content: "";
  position: absolute;
  inset: 50% 30%;
  height: 2px;
  margin-top: -1px;
  background: #059669;
  transition: transform .25s;
}

.acc-trigger .plus::after { transform: rotate(90deg); }
.acc-item.is-open .plus::after { transform: rotate(0deg); }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}

.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }

.acc-panel > div { overflow: hidden; }

.acc-panel p {
  padding: 0 22px 22px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--dl-muted);
}

/* ---------------- 相关链接 ---------------- */
.dl-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.dl-related a {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--dl-line);
  background: #fff;
  transition: border-color .2s, transform .2s;
}

.dl-related a:hover { border-color: var(--dl-green); transform: translateY(-4px); }
.dl-related strong { display: block; font-size: 15.5px; margin-bottom: 6px; color: #07211c; }
.dl-related span { font-size: 13px; color: var(--dl-muted); }

/* 入场 */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1000px) {
  .dl-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .dl-visual { max-width: 560px; }
  .platform-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 30px 0; }
  .timeline::before { display: none; }
  .guide-grid { grid-template-columns: 1fr; }
  .verify-box { grid-template-columns: 1fr; }
  .hash { max-width: none; }
}

@media (max-width: 640px) {
  .dl-hero { padding: 52px 0 76px; }
  .dl-hero h1 { font-size: 32px; }
  .dl-actions .btn { width: 100%; }
  .dl-section { padding: 60px 0; }
  .timeline { grid-template-columns: 1fr; }
  .tl-item { display: grid; grid-template-columns: 56px 1fr; gap: 16px; text-align: left; padding: 0; }
  .tl-dot { margin: 0; }
  .tl-item p { grid-column: 2; }
  .version-table th, .version-table td { padding: 12px; font-size: 13px; }
  .dl-related { grid-template-columns: 1fr; }
  .dl-visual .stamp { font-size: 11px; padding: 8px 12px; }
}
