
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-tap-highlight-color: transparent;
}
body {
    height: 100%;
    width: 100%;
    background: #fff;
    overflow-x: hidden;
    font-size: 14px;
}
.bg-fixed {
    display: block;
    position: fixed;
    top: 0.9rem;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    padding-top: 0;
    background-repeat: no-repeat;
    z-index: -1;
}
.main-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}
.header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background-color: rgb(255 65 66);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 13px;
}
.logo {
    width: 35vw;
    max-width: 129px;
    margin-right: 10px;
}
.logo img {
    width: 100%;
}
.marquee {
    width: 450px;
    line-height: 25px;
    background-color: #fff;
    color: rgb(84, 0, 0);
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 14.8px;
}
.marquee p {
    display: inline-block;
    padding-left: 2%;
    font-size: .833rem;
    animation: marquee 15s 3s linear infinite;
}
.close {
    width: 30vw;
    max-width: 129px;
    margin-left: 10px;
}
.close img {
    width: 100%;
}
@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

.banner {
    border-radius: 10px;
    margin: -20px auto 10px auto;
    overflow: hidden;
}
.banner img {
    width: 100%;
}
.list-tabs .list-tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.list-tabs {
    position: relative;
}
/* ⚠️ 删除或注释掉这两行旧代码
.swiper-container .swiper-slide { height: 0; }
.swiper-container .swiper-slide-active { height: 100%; }
*/
/* 统一给 banner 的容器一个固定高度（110px 跟你的图片一致）*/
/* 預設給手機版 */
.banner-wrap .swiper-container {
  width: 100%;
  height: 60px;              /* 移動端固定高度 */
  overflow: hidden;
  border-radius: 10px;
}
/* 桌面版 override：讓高度自動或更高 */
@media screen and (min-width: 960px) {
  .banner-wrap .swiper-container {
    height: auto;            /* 自動高度 */
    max-height: 150px;     /* ✅ 最大高度，避免太高佔版面 */
    min-height: 110px;       /* 避免圖片未載入塌陷，可調整 */
  }

  .banner-wrap .swiper-slide img {
    height: 100%;
    object-fit: fill;     /* 保持完整顯示不裁切 contain fill cover */
    background-color: #fcd7e7; /* 可以給個底色避免留白太突兀 */
  }
}

.list-tabs .list-tabs-header .list-tabs-item {
    flex: 1;
    text-align: center;
    background: none;
    color: rgb(31, 31, 31);
    height: auto;
    padding: 10px 0;
    font-size: 1.2rem;
    font-weight: bold;
    position: relative;
    white-space: nowrap;
    outline: none;
    opacity: 1;
}
.list-tabs .list-tabs-slider {
    position: absolute;
    top: 2.5rem;
    left: 0;
    width: calc(100% / 5);
    height: 0.6rem;
    display: flex;
    justify-content: center;
}
.list-tabs .list-tabs-slider .slider {
    display: block;
    width: 1rem;
    height: 0.2rem;
    background-color: rgb(243, 55, 71);
}
.list-tabs .list-tabs-header .list-tabs-item.swiper-pagination-bullet-active {
    color: rgb(243, 55, 71);
}
.swiper-container {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    list-style: none;
    z-index: 1;
}
.list-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 5px;
    flex-wrap: wrap;
}
.app-first-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;  /* 控制項目之間的距離，取代 margin-right */
  justify-content: center  /* 或 flex-start */
}
.list-item.empty {
  visibility: hidden; /* 看不見但佔位 */
}
.list-item {
  width: 18%;
  box-sizing: border-box;
}
.img-wrap.app-icon.list-app-icon {
  width: 100%;
  height: auto;
  max-width: 100%;     /* 防止過寬 */
  aspect-ratio: 1/1;   /* 正方形，圖片不會撐高 */
  overflow: hidden;
  border-radius: 10px;
}
.img-wrap.app-icon.list-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.app-icon {
    border-radius: 10px;
    text-align: center;
    display: block;
    margin: 5px auto;
}
.app-icon img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}
.app-name p {
    font-size: .7rem;
    display: block;              /* ✅ 改成 block 才能正確置中 */
    text-align: center;          /* ✅ 置中 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}
.list-item .download-btn {
    width: 3.5rem;
    margin: 10px auto;
}
.download-btn img {
    width: 100%;
}
.bottom-content {
    max-width: 650px;
    margin: 0 auto;
    padding: 0 15px;
}
.bottom-content .banner h2 {
    font-size: 1.5rem;
    margin: 20px 0;
}
.item-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    margin-bottom: 1rem;
}
.img-wrap {
    background-color: rgb(179 179 179);
    border-radius: 10px;
    width: 21%;
    height: auto;     /* 高度可选调整，比如 80px */
    aspect-ratio: 1;  /* 保持 1:1 比例 */
}
.img-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}
.content {
    display: flex;
    flex: 1;
}
.app-content-details {
    flex: 1;
    margin: 0 15px;
}
.play-title {
    margin: 1.3rem 0;
}
.play-title-top {
    margin: 0rem 0 1rem 0;
}
.app-title h2 {
    font-size: 1rem;
    font-weight: bold;
}
.app-slogan h3 {
    font-size: 0.8rem;
    margin-top: 0.3rem;
    word-break: break-all;
    color: #696666;
}
.app-download-btn {
    width: 5rem;
}
.line2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.app-download-btn img {
    width: 100%;
}
.rating span {
    font-size: .88rem;
    color: rgb(153 153 153);
    margin-left: 6px;
}
.rating img {
    width: 0.75rem;
}
hr {
    margin: 20px auto;
    border-bottom: 1px solid rgb(230 230 230);
    opacity: 0.2;
}
.notice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
}
.notice .mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background-color: rgb(0 0 0 / 5%);
}
.notice .notice-img-div {
    width: 81%;
    max-width: 300px;
    position: relative;
    z-index: 20;
}
.notice .notice-img-div a {
    display: flex;
    flex-direction: column;
    z-index: 11;
}
.notice .notice-img-div img {
    width: 100%;
    object-fit: contain;
    z-index: 11;
    vertical-align: top;
}
.notice .notice-img-div .p-subwrap .close-modal {
    margin: 0 auto;
    border-radius: 10px;
    padding: 0.5rem 1.5rem;
    color: white;
    background-color: #F87323;
    font-size: 1rem;
}
.notice .p-subwrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 1rem;
    border-bottom-right-radius: 25px;
    border-bottom-left-radius: 25px;
}
.notice .notice-text {
    width: 100%;
    z-index: 12;
    padding: 0.3rem;
    box-sizing: border-box;
    white-space: pre-line;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.notice .notice-text::-webkit-scrollbar { display: none; }
.notice .notice-text {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.bottom-fixed-app .logo {
    width: 3.5rem;
    height: 3.5rem;
    margin-right: 0;
}
.bottom-fixed-app .logo img {
    width: 100%;
    height: 100%;
    border-radius: 10px;

}
.bottom-fixed-app .app-content{
    display: block;
    flex: 1;
    color: white;
    padding: 0 13px;
    box-sizing: border-box;
}
.bottom-fixed-app .app-content h2 {
    font-size: 1rem;
    margin-bottom: 3px;
}
.bottom-fixed-app .app-content p {
    font-size: 0.6rem;
}
.bottom-fixed-app .download-button{
    display: block;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 10px;
    color: rgb(255,65,66);
    background-color: white;
}
/* ===== 手機 & 平板版 max-width: 768px ===== */
@media screen and (max-width: 768px) {
  .bg-fixed {
    background-image: none !important;
  }

  .img-wrap {
    width: 5rem;
    height: 5rem;
  }

  .list-tabs .list-tabs-header .list-tabs-item {
    font-size: 1rem;
  }

  .list-item {
    width: 18%;
  }

  .app-name p {
    font-size: 0.8rem;
  }
}

/* ===== 小手機版 max-width: 414px ===== */
@media screen and (max-width: 414px) {
  .bg-fixed {
    background-image: none !important;
  }
  .marquee p {
    font-size: 0.6rem;
  }
  .app-name p {
    font-size: 0.7rem;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }
  .list-tabs .list-tabs-header .list-tabs-item.swiper-pagination-bullet-active::after {
    width: 2rem;
    height: 4px;
    margin-left: -1rem;
    border-radius: 10px;
  }
  .rating span {
    font-size: 0.75rem;
  }
  .app-slogan h3 {
    font-size: 0.8rem;
  }
  .app-download-btn {
    width: 4rem;
  }
  /* ✅ URL 公告欄 */
  .url-notice {
    font-size: 1rem;
    margin-top: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
  }
  .url-notice h2 {
    font-size: 1rem;
    margin: 0.2rem 0;
  }
}
/* ===== 桌面版 min-width: 960px ===== */
@media screen and (min-width: 960px) {
  .notice .notice-text {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .banner {
    margin-top: 0px;
  }

  .app-name p {
    font-size: 1rem;
  }
}
/* ===== 补丁 ===== */
/* 手机和平板都通吃 */
@media screen and (max-width: 768px) {
  .banner.mySwiper,
  .banner.mySwiper .swiper-wrapper,
  .banner.mySwiper .swiper-slide {
    width: 100%;
    height: 60px; /* 调整你要的高度 */
  }
    .banner.mySwiper .swiper-slide img {
    width: 100%;
    height: 100%;     /* 跟随父容器 */
    object-fit: fill;/* cover = 铺满裁剪；要完整显示就用 contain 拉伸 fill */
    display: block;
    background-color: #fcd7e7; /* 可以給個底色避免留白太突兀 */
    }
}
@media screen and (max-width: 768px) {
  .banner-wrap .swiper-container {
    margin: 1.5px auto;
  }
}
@media screen and (max-width: 414px) {

  /* ✅ 1. 让整条 banner 固定高度 60px */
  .banner.mySwiper,
  .banner.mySwiper .swiper-wrapper,
  .banner.mySwiper .swiper-slide {
    width: 100%;
    height: 60px;     /* <— 这里改你要的高度 */
  }

  /* ✅ 2. 让图片跟随容器高度填满并裁剪*/
  .banner.mySwiper .swiper-slide img {
    width: 100%;
    height: 100%;     /* 跟随父容器 */
    object-fit: fill;/* cover = 铺满裁剪；要完整显示就用 contain */
    display: block;
    background-color: #fcd7e7; /* 可以給個底色避免留白太突兀 */
    }
}

.url-notice {
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;  /* 下方加空間，讓下面元素不會貼太近 */
    text-align: center;
    line-height: 1.4;
    font-size: 1.2rem;
    font-weight: bold;
}

.main-content {
    margin-top: 0.5rem; /* 依需要調整 */
}

.bottom-fixed-app {
  position: relative;
}

.bottom-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  font-weight: bold;
  color: white;
  background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
  padding: 5px 10px;
  border-radius: 8px;
  z-index: 20;
  white-space: nowrap;
  pointer-events: none; /* 不遮擋原本連結點擊 */
}

.bottom-fixed-app {
  position: fixed !important;   /* 必须固定定位 */
  left: 50% !important;
  bottom: 0 !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 650px !important;
  padding: 13px;
  box-sizing: border-box;
  background: linear-gradient(to right, rgba(118,64,229,0.8), rgba(255,65,66,0.8));
  backdrop-filter: blur(3px);
  display: flex !important;      /* 确保显示 */
  flex-direction: row;
  align-items: center;
  z-index: 1000 !important;
}

