/* ==================================================================
   首页 · 发现项目（hm- 命名空间，与其他页面隔离）
   星空极光高级风；--u 复刻设计稿自适应
   ================================================================== */
.page-content.hm-content{
  --u: calc(min(100vw, 430px) / 26.875);
  padding: calc(14px + env(safe-area-inset-top)) calc(1.05 * var(--u)) calc(120px + env(safe-area-inset-bottom));
  position:relative;
}
.hm-page{ background:#eef3fb; overflow:hidden }
.hm-sky{ position:absolute; top:0; left:0; width:100%; height:calc(15.5 * var(--u)); pointer-events:none; z-index:0 }

/* 头部 */
.hm-header{ position:relative; z-index:2; display:flex; align-items:flex-start; justify-content:space-between;
  padding:calc(.4 * var(--u)) calc(.15 * var(--u)) calc(.6 * var(--u)) }
.hm-title{ font-size:calc(2 * var(--u)); font-weight:800; color:#fff; line-height:1.15; text-shadow:0 .15rem .35rem rgba(10,30,90,.35) }
.hm-feature-tag{ display:inline-flex; align-items:center; gap:calc(.35 * var(--u)); margin-top:calc(.5 * var(--u));
  height:calc(1.9 * var(--u)); padding:0 calc(.8 * var(--u)); border-radius:calc(1 * var(--u));
  background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.35); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  color:#fff; font-size:calc(.85 * var(--u)); font-weight:600 }
.hm-feature-tag svg:first-child{ color:#8fd8ff }
.hm-bell{ position:relative; width:calc(2.4 * var(--u)); height:calc(2.4 * var(--u)); display:grid; place-items:center; color:#fff; margin-top:calc(.2 * var(--u)) }
.hm-badge{ position:absolute; top:calc(.15 * var(--u)); right:calc(.1 * var(--u)); min-width:calc(.95 * var(--u)); height:calc(.95 * var(--u));
  padding:0 .2rem; border-radius:calc(.5 * var(--u)); background:#ff4d6a; color:#fff; font-size:calc(.6 * var(--u));
  font-weight:700; display:grid; place-items:center; border:1.5px solid #fff }
.hm-badge.hidden{ display:none }

/* 搜索框 */
.hm-search{ position:relative; z-index:2; display:flex; align-items:center; gap:calc(.5 * var(--u));
  height:calc(3.1 * var(--u)); margin-top:calc(.3 * var(--u)); padding:0 calc(.9 * var(--u));
  border-radius:calc(1.3 * var(--u)); background:rgba(255,255,255,.9); border:1px solid rgba(255,255,255,.95);
  box-shadow:0 .35rem .9rem rgba(30,70,150,.18) }
.hm-search-ico{ color:#6f86b5; flex:none }
.hm-search input{ flex:1; min-width:0; font-size:calc(.92 * var(--u)); color:#1a2745; background:none; border:0; outline:none }
.hm-search input::placeholder{ color:#9aabc4 }
.hm-search-clear{ width:calc(1.4 * var(--u)); height:calc(1.4 * var(--u)); border-radius:50%; display:grid; place-items:center; color:#94a5bf; background:rgba(120,150,200,.12) }

/* 筛选 */
.hm-filters{ position:relative; z-index:2; display:flex; gap:calc(.5 * var(--u)); margin-top:calc(.85 * var(--u)); overflow-x:auto; scrollbar-width:none }
.hm-filters::-webkit-scrollbar{ display:none }
.hm-filters .filter-btn{ flex:none; height:calc(2.35 * var(--u)); padding:0 calc(1 * var(--u)); border-radius:calc(1.2 * var(--u));
  background:rgba(255,255,255,.55); border:1px solid rgba(255,255,255,.7); color:#41618f; font-size:calc(.9 * var(--u)); font-weight:600;
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px) }
.hm-filters .filter-btn.active{ background:linear-gradient(135deg,#3f7ff0,#2a5ed8); color:#fff; border-color:transparent;
  box-shadow:0 .25rem .55rem rgba(50,110,230,.4),inset 0 0 0 1px rgba(255,255,255,.35) }

/* 项目列表 */
.hm-list{ position:relative; z-index:2; display:flex; flex-direction:column; gap:calc(.7 * var(--u)); margin-top:calc(1 * var(--u)) }
.hm-project{ display:flex; align-items:center; gap:calc(.55 * var(--u)); min-height:calc(5.9 * var(--u));
  padding:calc(.65 * var(--u)) calc(.75 * var(--u)); border-radius:calc(1.15 * var(--u)); cursor:pointer;
  background:rgba(255,255,255,.82); border:1px solid rgba(255,255,255,.9); box-shadow:0 .4rem 1rem rgba(40,90,170,.14);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); overflow:hidden }
.hm-project:active{ transform:scale(.99) }
.hm-featured{ background:linear-gradient(115deg,rgba(16,30,90,.94),rgba(30,60,150,.92) 55%,rgba(60,90,190,.9)); border-color:rgba(160,200,255,.35) }
.hm-proj-crown{ width:calc(2.9 * var(--u)); height:calc(2.9 * var(--u)); flex:none; display:grid; place-items:center }
.hm-proj-crown svg{ width:100%; height:100%; filter:drop-shadow(0 .15rem .25rem rgba(120,90,20,.3)) }
.hm-rank-num{ font-size:calc(1.6 * var(--u)); font-weight:800; color:#8fa6c8 }
.hm-proj-info{ flex:1; min-width:0 }
.hm-proj-name{ font-size:calc(1.2 * var(--u)); font-weight:800; color:#16234a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.hm-featured .hm-proj-name{ color:#fff; text-shadow:0 .1rem .25rem rgba(0,0,0,.3) }
.hm-heat{ display:inline-flex; align-items:center; gap:.25rem; margin-top:calc(.3 * var(--u));
  height:calc(1.55 * var(--u)); padding:0 calc(.6 * var(--u)); border-radius:calc(.8 * var(--u));
  background:linear-gradient(135deg,#ffb26a,#f2762c); color:#fff; font-size:calc(.75 * var(--u)); font-weight:700 }
.hm-featured .hm-heat{ background:linear-gradient(135deg,#ffc25e,#e8861f) }
.hm-proj-art{ width:calc(4.6 * var(--u)); height:calc(4 * var(--u)); flex:none; display:grid; place-items:center }
.hm-proj-art svg{ width:100%; height:100%; filter:drop-shadow(0 .1rem .25rem rgba(60,100,180,.25)) }
.hm-proj-arrow{ width:calc(1.3 * var(--u)); height:calc(1.3 * var(--u)); color:#9fb0cf; flex:none }
.hm-featured .hm-proj-arrow{ color:#cfe0ff }

/* 免责声明 */
.hm-disclaimer{ position:relative; z-index:2; display:flex; align-items:center; gap:calc(.6 * var(--u));
  margin-top:calc(1.2 * var(--u)); padding:calc(.85 * var(--u)) calc(.9 * var(--u)); border-radius:calc(1.1 * var(--u));
  background:rgba(255,255,255,.7); border:1px solid rgba(255,255,255,.9); color:#5a6e92; font-size:calc(.8 * var(--u)); line-height:1.5 }
.hm-disclaimer svg{ color:#4a86e8; flex:none }
