:root{
  --maxw: 750px;
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #222;
  --sub: #666;
  --line: rgba(0,0,0,.08);
  --primary: #2563eb;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --radius: 14px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}

.page{ min-height:100%; }

.container{
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: 12px 12px 0 12px;
}

.block{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  margin: 12px 0;
}

.block-title{
  font-size: 15px;
  font-weight: 700;
  margin: 4px 0 10px 0;
}

.spacer{ height: 10px; }

/* 顶部横条 */
.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246,247,251,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner{
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: 10px 12px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}
.logo img{
  height: 34px;
  width: auto;
  display:block;
}

/* 跑马灯 */
.marquee-wrap{
  width: 100%;
  background: #f5854d;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  border-radius: 14px;
}
.marquee{
  width: 100%;
  display:flex;
  gap: 6px;
  white-space: nowrap;
  padding: 10px 0;
}
.marquee-track{
  display:inline-flex;
  gap: 24px;
  padding-left: 100%;
  animation: marquee 16s linear infinite;
}
.marquee a{
  color: #fff;
  text-decoration:none;
  opacity: .92;
  font-size: 16px;
}
.marquee a:hover{ opacity: 1; text-decoration: underline; }

@keyframes marquee{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-100%); }
}

/* Tabs */
.tabs{
  display:flex;
  gap:10px;
  margin-bottom: 10px;
}
.tab-btn{
  flex:1;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 10px;
  font-size: 14px;
  cursor: pointer;
}
.tab-btn.active{
  border-color: rgb(211 37 235 / 35%);
  background: rgb(183 0 223 / 8%);
  color: #b34efa;
  font-weight: 700;
}

/* Apps grid: 每排4个，多排 */
.apps-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.app-item{
  -border: 1px solid var(--line);
      border-radius: 12px;
      padding: 10px 4px;
      text-align:center;
      text-decoration:none;
      color: inherit;
      background: #fff;
}
.app-item:hover{
  border-color: rgba(37,99,235,.22);
  transform: translateY(-1px);
  transition: .15s ease;
}
.app-item img{
  width: 74px;
  height: 74px;
  border-radius: 20px;
  object-fit: cover;
  display: block;
  margin: 0 auto 8px auto;
}

.app-item .name{
  font-size: 12px;
  line-height: 1.2;
  color: #333;
  font-weight: 600;
}

/* Carousel */
.carousel{
  width: 100%;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid var(--line);
  background: #fff;
  position: relative;
}
.carousel-viewport{
  width: 100%;
  position: relative;
  overflow: hidden;
}
.carousel-track{
  display:flex;
  width:100%;
  will-change: transform;
  transition: transform .35s ease;
}
.carousel-slide{
  min-width: 100%;
  position: relative;
}
.carousel-slide a{
  display:block;
  width:100%;
  height:100%;
}
.carousel-slide img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.carousel-dots{
  position:absolute;
  left: 0;
  right:0;
  bottom: 8px;
  display:flex;
  gap: 6px;
  justify-content:center;
  align-items:center;
  pointer-events:none;
}
.carousel-dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.12);
}
.carousel-dot.active{
  width: 16px;
  background: rgba(255,255,255,.9);
}

/* Download list */
.download-list{
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.dl-item{
  display:flex;
  gap: 10px;
  align-items:center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}
.dl-item img{
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: cover;
}

.dl-meta{
  flex:1;
  min-width:0;
}
.dl-title{
  font-weight: 800;
  font-size: 14px;
  margin: 0 0 2px 0;
}
.dl-sub{
  color: var(--sub);
  font-size: 12px;
  margin: 0;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dl-btn{
  border: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
  cursor:pointer;
  text-decoration:none;
  padding: 12px 18px;
  font-size: 14px;
}

/* Bottom floating ad */
.bottom-float{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display:flex;
  justify-content:center;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom)) 10px;
  background: rgba(246,247,251,.65);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.bottom-float-inner{
  width: min(var(--maxw), 100%);
  position: relative;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid var(--line);
  background:#fff;
  box-shadow: var(--shadow);
}
.bottom-float-inner a{ display:block; }
.bottom-float-inner img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.bottom-close{
  position:absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.85);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
}

.page-bottom-safe{ height: 18px; }


.dl-title-row{
  display:flex;
  align-items:center;
  gap: 10px;
}

.dl-title{
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
  margin: 0;
}

.dl-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, #ff5bd6, #ff86f0);
  box-shadow: 0 10px 20px rgba(255, 91, 214, .25);
}

.dl-item{
  display:flex;
  gap: 16px;
  align-items:center;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}

.dl-meta{
  flex:1;
  min-width:0;
}

.dl-sub{
  color: #8a8a8a;
  font-size: 16px;
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 粉色下载按钮 */
.dl-btn{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  
  border-radius: 999px;
  text-decoration:none;
  font-weight: 900;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, #ff5bd6, #b34efa);
  box-shadow: 0 14px 26px rgba(255, 91, 214, .28);
  border: 0;
  white-space: nowrap;
  flex: 0 0 auto;
}

.dl-btn:hover{
  transform: translateY(-1px);
  transition: .15s ease;
}

.dl-btn-icon{
  display:inline-flex;
  width: 28px;
  height: 18px;
  border-radius: 999px;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.22);
}
.dl-btn-icon svg{
  color:#fff;
}

/* PC 兼容：宽屏时页面居中即可 */
@media (min-width: 980px){
  .container{ padding-top: 16px; }
  .app-item img{ width: 135px; height: 135px; }
  .dl-item img{ width: 120px; height: 120px; }
  .dl-btn-icon{
      display:inline-flex;
      width: 44px;
      height: 28px;
      border-radius: 999px;
      align-items:center;
      justify-content:center;
      background: rgba(255,255,255,.22);
    }
  .dl-btn{
      display:inline-flex;
      align-items:center;
      gap: 10px;
      padding: 16px 26px;
      border-radius: 999px;
      text-decoration:none;
      font-weight: 900;
      font-size: 22px;
      color: #fff;
      background: linear-gradient(135deg, #ff5bd6, #b34efa);
      box-shadow: 0 14px 26px rgba(255, 91, 214, .28);
      border: 0;
      white-space: nowrap;
      flex: 0 0 auto;
    }
    .dl-title{
      font-weight: 900;
      font-size: 22px;
      line-height: 1.1;
      margin: 0;
    }
    .app-item .name{
      font-size: 16px;
      line-height: 1.2;
      color: #333;
      font-weight: 600;
    }
    .app-item img{
      width: 135px;
      height: 135px;
      border-radius: 20px;
      object-fit: cover;
      display: block;
      margin: 0 auto 8px auto;
    }
    .app-item{
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 10px 8px;
      text-align:center;
      text-decoration:none;
      color: inherit;
      background: #fff;
    }

}







