/* ============================================================
   元亨資本 · 下载推广落地页（浅色蓝主题）
   H5 静态工程，375 设计稿等比适配
   ============================================================ */

:root {
  --brand: #1e5fbf;
  --brand-2: #2979ff;
  --brand-light: #4a90ff;
  --text-dark: #1a1a1a;
  --text-sub: #666666;
  --text-faint: #999999;
  --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: #ffffff;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  color: var(--text-dark);
}

/* ---------- 舞台：居中一列，背景用参考图 cover ---------- */
.stage {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 36px 22px 28px;
  background: url("../assets/hero-ref.png") center top / cover no-repeat;
}

/* ---------- 品牌 Logo ---------- */
.brand {
  text-align: center;
  z-index: 2;
}

.brand__logo {
  display: block;
  width: 108px;
  height: 108px;
  margin: 0 auto 10px;
  object-fit: contain;
}

.brand__name {
  display: block;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--text-dark);
}

.brand__en {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--text-faint);
}

/* ---------- 顶部文案 ---------- */
.hero-copy {
  margin-top: 48px;
  width: 100%;
  z-index: 2;
}

.hero-copy__tag {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-sub);
}

.hero-copy__title {
  margin-top: 6px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #144a9b 0%, #2a78ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy__subtitle {
  margin-top: 2px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #144a9b 0%, #2a78ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy__bar {
  display: block;
  margin-top: 14px;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #1e5fbf 0%, #4a90ff 100%);
}

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

.dl-btn {
  display: block;
  text-decoration: none;
  transition: transform 0.12s ease;
}

.dl-btn__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(20, 74, 155, 0.2);
}

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

/* 推荐状态 */
.dl-btn.is-recommended .dl-btn__img {
  box-shadow: 0 4px 20px rgba(20, 74, 155, 0.45);
  filter: brightness(1.06);
}

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

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

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

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 340px;
  max-height: 74%;
  overflow: auto;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  padding: 22px 20px;
  color: var(--text-dark);
  animation: riseIn 0.24s ease;
}

.modal__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--brand);
}

.modal__body {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-sub);
  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(90deg, var(--brand), var(--brand-2));
  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: linear-gradient(135deg, #eaf3ff 0%, #f5f9ff 100%);
  }

  .stage {
    border-radius: 24px;
    box-shadow:
      0 10px 40px rgba(30, 95, 191, 0.12),
      0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    min-height: auto;
    padding-bottom: 20px;
  }
}
