/* ============================================================
   应用分发页 · 深色科技风（自适应 PC / 手机）
   ============================================================ */
:root {
  --bg: #0a0e1a;
  --bg-2: #0f1424;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e8ecf4;
  --text-2: #9aa3b8;
  --text-3: #6b7387;
  --accent: #00e5a0;
  --accent-deep: #00c88a;
  --accent-2: #7c6cf6;
  --accent-2-deep: #6a5ce0;
  --warn: #fbbf24;
  --radius: 14px;
  --radius-lg: 20px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Consolas", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(0, 229, 160, .08), transparent 60%),
    radial-gradient(800px 500px at 10% 0%, rgba(124, 108, 246, .10), transparent 55%);
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }

/* ---------- 顶部栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, .78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand-logo {
  width: 30px; height: 30px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line-strong);
}
.brand-text { font-size: 15px; font-weight: 600; letter-spacing: .01em; }

.topbar-right { display: flex; align-items: center; gap: 14px; }
.ver-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  background: rgba(0, 229, 160, .1);
  border: 1px solid rgba(0, 229, 160, .25);
  border-radius: 6px;
  padding: 3px 9px;
}
.topbar-dl {
  font-size: 13px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border-radius: 8px;
  padding: 7px 18px;
  transition: background .2s, transform .15s;
}
.topbar-dl:hover { background: var(--accent-deep); transform: translateY(-1px); }

/* ---------- 主展示区 ---------- */
.showcase {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 24px 60px;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  width: 380px; height: 380px;
  background: rgba(0, 229, 160, .18);
  top: -80px; right: -60px;
}
.glow-2 {
  width: 340px; height: 340px;
  background: rgba(124, 108, 246, .18);
  bottom: -60px; left: -80px;
}

.showcase-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 70px;
}

.showcase-info { flex: 1; min-width: 0; }

.logo-shell {
  display: inline-block;
  padding: 14px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(0, 229, 160, .08), 0 24px 60px rgba(0, 0, 0, .4);
  margin-bottom: 26px;
}
.app-logo {
  width: 116px;
  height: 116px;
  border-radius: 20px;
  object-fit: cover;
  display: block;
}

.app-title {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
  background: linear-gradient(180deg, #ffffff 0%, #b8c0d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-slogan {
  margin-top: 12px;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-2);
  font-weight: 500;
}

.app-desc {
  margin-top: 16px;
  color: var(--text-2);
  font-size: .98rem;
  max-width: 540px;
}

.meta-row {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}
.meta-chip {
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
}
.meta-dot { color: var(--text-3); }

/* ---------- 下载面板 ---------- */
.dl-panel {
  flex: 0 0 360px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.dl-panel-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}
.dl-panel-title { font-size: 15px; font-weight: 600; }
.dl-platform-tip { font-size: 12px; color: var(--text-3); }

.dl-btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .25s, opacity .2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.dl-btn:hover { transform: translateY(-2px); }
.dl-btn:active { transform: scale(.98); }

.dl-ios {
  background: linear-gradient(135deg, #00e5a0 0%, #00b884 100%);
  color: #041410;
  box-shadow: 0 10px 28px rgba(0, 229, 160, .25);
}
.dl-ios:hover { box-shadow: 0 14px 34px rgba(0, 229, 160, .4); }

.dl-android {
  background: linear-gradient(135deg, #7c6cf6 0%, #5a4dd6 100%);
  box-shadow: 0 10px 28px rgba(124, 108, 246, .25);
}
.dl-android:hover { box-shadow: 0 14px 34px rgba(124, 108, 246, .4); }

.dl-btn.active {
  outline: 2px solid rgba(255, 255, 255, .25);
  outline-offset: 3px;
}

.dl-btn[aria-disabled="true"] {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}

.dl-btn-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dl-ios .dl-btn-icon { background: rgba(4, 20, 16, .12); }

/* 平台切换 */
.platform-switch {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}
.p-tabs {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  gap: 2px;
}
.p-tab {
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text-2);
  background: transparent;
  border: 0;
  border-radius: 7px;
  padding: 7px 16px;
  cursor: pointer;
  transition: all .2s;
}
.p-tab.active {
  color: var(--text);
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.dl-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.6;
}
.dl-note.warn { color: var(--warn); }

/* 二维码 */
.qr-box {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--line-strong);
  text-align: center;
}
#qrCanvas {
  width: 170px;
  height: 170px;
  border-radius: 12px;
  background: #fff;
  margin: 0 auto 10px;
  display: block;
}
.qr-cap { font-size: 12px; color: var(--text-3); }

/* ---------- 内容区块 ---------- */
.block {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px 8px;
}
.block-title {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.block-title::before {
  content: "";
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

/* 核心亮点 */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.hl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .2s, border-color .2s, background .2s;
}
.hl-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.hl-marker {
  width: 28px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  margin-bottom: 16px;
}
.hl-title { font-size: 1.05rem; font-weight: 600; }
.hl-desc { margin-top: 8px; font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* 版本动态（时间线） */
.timeline {
  max-width: 720px;
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  opacity: .4;
}
.timeline-item { position: relative; padding-bottom: 8px; }
.timeline-dot {
  position: absolute;
  left: -28px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 229, 160, .15);
}
.timeline-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.timeline-ver {
  font-weight: 700;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
}
.timeline-date { font-size: 13px; color: var(--text-3); }
.timeline-list { list-style: none; }
.timeline-list li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}
.timeline-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
}

/* 公告 */
.notice-box {
  background: rgba(0, 229, 160, .06);
  border: 1px solid rgba(0, 229, 160, .2);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 64px;
  padding: 28px 24px 44px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}

/* ---------- 弹层 ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(5, 8, 16, .75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.overlay.show { display: flex; animation: fadeIn .25s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.tip-panel {
  width: 100%;
  max-width: 400px;
  background: #141a2c;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 32px 28px 28px;
  text-align: center;
  animation: popIn .3s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes popIn { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* 微信等内置浏览器提示：整体上移 */
#browserTip {
  align-items: flex-start;
  justify-content: center;
  padding: 8px 20px 20px;
}
#browserTip .tip-panel {
  position: relative;
  margin-top: 80px;
  padding-top: 26px;
}
#browserTip .tip-pointer {
  position: absolute;
  top: -50px;
  right: 6px;
  margin: 0;
}

.tip-pointer { position: relative; height: 60px; margin-bottom: 8px; }
.tip-pointer svg { animation: nudge 1.2s ease-in-out infinite; }
.tip-pointer span {
  position: absolute;
  right: 2px;
  top: -12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0, 229, 160, .12);
  border-radius: 8px;
  padding: 3px 8px;
  white-space: nowrap;
}
@keyframes nudge {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -6px); }
}

.tip-heading { font-size: 1.2rem; font-weight: 700; }
.tip-msg { margin-top: 8px; font-size: 13.5px; color: var(--text-2); }

.tip-steps {
  list-style: none;
  margin: 20px 0 4px;
  text-align: left;
  counter-reset: step;
}
.tip-steps li {
  position: relative;
  padding: 9px 0 9px 32px;
  font-size: 14px;
  color: var(--text-2);
  border-top: 1px solid var(--line);
}
.tip-steps li:first-child { border-top: 0; }
.tip-steps li b { color: var(--text); }
.tip-steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0; top: 10px;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: rgba(0, 229, 160, .15);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* iOS 描述文件完成页 */
.done-overlay { background: rgba(10, 14, 26, .97); }
.done-panel {
  width: 100%;
  max-width: 440px;
  padding: 40px 26px;
  text-align: center;
  box-sizing: border-box;
}
.done-check {
  width: 66px;
  height: 66px;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #00e5a0, #00b884);
  color: #041410;
  font-size: 32px;
  font-weight: 800;
  line-height: 66px;
  box-shadow: 0 14px 32px rgba(0, 229, 160, .3);
}
.done-status { font-size: 14px; font-weight: 600; color: var(--text-3); letter-spacing: 2px; text-transform: uppercase; }
.done-main { margin: 10px 0 24px; font-size: 24px; font-weight: 700; }
.done-tip { font-size: 14px; color: var(--text-3); margin-bottom: 14px; }
.done-path {
  display: block;
  margin: 8px 0;
  padding: 11px 16px;
  border-radius: 10px;
  background: rgba(251, 191, 36, .1);
  border: 1px solid rgba(251, 191, 36, .2);
  color: #fcd34d;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}
.done-actions { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  background: var(--accent);
  color: #041410;
  transition: transform .15s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 229, 160, .3); }
.btn-plain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: background .2s;
}
.btn-plain:hover { background: var(--surface); }

/* ---------- 响应式：手机 ---------- */
@media (max-width: 900px) {
  .showcase { padding: 44px 20px 40px; }
  .showcase-inner { flex-direction: column; gap: 36px; }
  .dl-panel { flex: none; width: 100%; max-width: 420px; }
  .app-logo { width: 96px; height: 96px; }
  .logo-shell { padding: 10px; border-radius: 22px; }
  .ver-tag { display: none; }
  .highlights-grid { grid-template-columns: 1fr; }
  .block { padding-top: 24px; }
  #qrCanvas { width: 150px; height: 150px; }
}

@media (max-width: 480px) {
  .dl-panel { padding: 22px 18px; }
  .tip-panel { padding: 26px 20px 22px; }
}
