/* ============================================================
   元亨智投 · 下载推广落地页
   H5 静态工程：深色移动端视觉，375 设计稿等比适配
   背景素材与 UI 文案/按钮/卡片分离，不再直接渲染整图
   ============================================================ */

:root {
  --brand: #0078eb;
  --brand-2: #00a3ff;
  --brand-light: #4fc3ff;
  --bg-top: #071a3e;
  --bg-mid: #0b2a5f;
  --bg-deep: #050e24;
  --text-title: rgba(224, 245, 255, 0.98);
  --text-sub: rgba(170, 216, 255, 0.92);
  --text-faint: rgba(150, 190, 230, 0.78);
  --btn-text: #ffffff;
  --radius: 14px;
}

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

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(120% 90% at 50% 0%, #0a2347 0%, var(--bg-deep) 72%);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  color: var(--text-title);
}

/* ---------- 舞台：居中一列，等比适配 ---------- */
.stage {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 16px;
  background:
    linear-gradient(180deg, rgba(5, 14, 36, 0.55) 0%, rgba(5, 14, 36, 0.18) 35%, rgba(5, 14, 36, 0.55) 100%),
    url("../assets/hero-bg.jpg") center top / cover no-repeat;
}

/* ---------- 顶部文案 ---------- */
.hero-copy {
  text-align: center;
  margin-top: 32px;
  margin-bottom: 12px;
  z-index: 2;
}

.hero-copy__title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #4fc3ff 0%, #0078eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 18px rgba(0, 60, 130, 0.55);
}

.hero-copy__lead {
  margin-top: 6px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #4fc3ff;
  text-shadow: 0 2px 14px rgba(0, 60, 130, 0.55);
}

.hero-copy__tag {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(210, 238, 255, 0.95);
  letter-spacing: 1px;
  text-shadow: 0 1px 8px rgba(0, 20, 60, 0.55);
}

/* ---------- 视觉主体（整图背景已包含机器人/行情，此处仅作占位） ---------- */
.hero-visual {
  width: 100%;
  max-width: 380px;
  flex: 0 0 auto;
  height: 42vh;
  min-height: 260px;
  max-height: 400px;
  margin-top: 6px;
  z-index: 1;
}

/* ---------- 下载按钮 ---------- */
.actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
  z-index: 2;
}

.dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, #00a3ff 0%, #0078eb 100%);
  box-shadow: 0 8px 24px rgba(0, 120, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.12s ease, filter 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.dl-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04));
  opacity: 0;
  transition: opacity 0.15s ease;
}

.dl-btn:hover::after,
.dl-btn:focus-visible::after {
  opacity: 1;
}

.dl-btn:active {
  transform: scale(0.97);
  filter: brightness(1.12);
}

.dl-btn:focus-visible {
  outline: 2px solid #66c0ff;
  outline-offset: 2px;
}

.dl-btn__icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

/* 推荐状态：访问设备对应的按钮高亮 */
.dl-btn.is-recommended {
  box-shadow: 0 8px 28px rgba(0, 163, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* ---------- 卖点卡片 ---------- */
.features {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
  z-index: 2;
}

.feature-card {
  padding: 14px 12px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(8, 32, 68, 0.78) 0%, rgba(4, 20, 46, 0.78) 100%);
  border: 1px solid rgba(120, 190, 255, 0.22);
  box-shadow: 0 6px 18px rgba(0, 20, 60, 0.3);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.feature-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #4fc3ff;
  margin-bottom: 5px;
}

.feature-card__desc {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(200, 230, 255, 0.85);
}

.feature-card--list .feature-card__list {
  list-style: none;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(200, 230, 255, 0.82);
}

.feature-card--list .feature-card__list li {
  position: relative;
  padding-left: 10px;
}

.feature-card--list .feature-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 6px rgba(0, 163, 255, 0.6);
}

/* ---------- 页脚 ---------- */
.footer {
  margin-top: auto;
  padding-top: 16px;
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 11px;
  color: rgba(170, 205, 235, 0.75);
  z-index: 2;
}

.footer__sep {
  color: rgba(170, 205, 235, 0.45);
}

.footer__link {
  pointer-events: auto;
  border: none;
  background: transparent;
  padding: 2px 1px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(190, 210, 235, 0.85);
  cursor: pointer;
  transition: color 0.15s ease;
}

.footer__link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__link:focus-visible {
  outline: 1px solid #66c0ff;
  border-radius: 4px;
}

/* ---------- 政策文档弹窗 ---------- */
.modal[hidden] {
  display: none;
}

.modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
}

.modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 22, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fadeIn 0.2s ease;
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 340px;
  max-height: 74%;
  overflow: auto;
  background: linear-gradient(180deg, #0d2a56, #081a3a);
  border: 1px solid rgba(120, 190, 255, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 20, 60, 0.6);
  padding: 22px 20px;
  color: var(--text-title);
  animation: riseIn 0.24s ease;
}

.modal__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #9fd4ff;
}

.modal__body {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(220, 238, 255, 0.9);
  white-space: pre-wrap;
  word-break: break-all;
}

.modal__close {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 10px 0;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

.modal__close:hover {
  filter: brightness(1.1);
}

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

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 桌面端氛围 ---------- */
@media (min-width: 560px) {
  body {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background:
      radial-gradient(70% 55% at 18% 12%, rgba(0, 120, 235, 0.16), transparent 60%),
      radial-gradient(60% 60% at 88% 88%, rgba(0, 163, 255, 0.12), transparent 60%),
      #030a1a;
  }

  .stage {
    border-radius: 36px;
    box-shadow:
      0 0 0 10px rgba(140, 200, 255, 0.06),
      0 30px 90px rgba(0, 0, 0, 0.65),
      0 0 60px rgba(0, 120, 235, 0.14);
    overflow: hidden;
    min-height: auto;
    padding-bottom: 20px;
  }
}
