:root{
  --blue:#26A17B;
  --blue2:#0a6df5;
  --text:#0a2a5a;
  --bg:#f5f8ff;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,"PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--text);
  overflow-x:hidden;
  background:var(--bg);
}

/* soft background（PC：解密前兜底；解密后主要由 .bg-pc-fill 铺满） */
.bg{
  position:fixed; inset:0;
  background:
    radial-gradient(1200px 600px at 20% 40%, rgba(2,129,251,.10), transparent 60%),
    radial-gradient(900px 500px at 70% 50%, rgba(2,129,251,.08), transparent 60%),
    linear-gradient(180deg, #f8fbff 0%, #f3f6ff 70%, #f7f9ff 100%);
  pointer-events:none;
}
/* PC 全屏底图 */
.bg-pc-fill{
  display:block;
  position:absolute;
  inset:0;
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center center;
  pointer-events:none;
  z-index:0;
}
/* 移动端全屏底图 */
.bg-mobile-fill{
  display:none;
  position:absolute;
  inset:0;
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center top;
  pointer-events:none;
  z-index:0;
}

/* 加密图片：加载前透明（仅非轮播图；轮播完全由 .slide / .active / .exit 控制透明度） */
@keyframes imgSpin{
  to{ transform: rotate(360deg); }
}
.img-loading{
  position:relative;
}
.img-loading::after{
  content:'';
  position:absolute;
  top:50%; left:50%;
  width:20px; height:20px;
  margin:-10px 0 0 -10px;
  border:2px solid rgba(255,255,255,0.2);
  border-top-color:rgba(110, 201, 255, 0.75);
  border-radius:50%;
  animation:imgSpin 0.7s linear infinite;
  z-index:1;
}

/* layout */
.wrap{
  position:relative;
  max-width:1280px;
  margin:0 auto;
  padding:84px 40px 60px;
  display:flex;
  gap:40px;
  align-items:center;
  justify-content:space-between;
}

.left{ width:min(560px,48vw); }
.right{
  width:min(720px, 52vw);
  display:flex;
  align-items:center;
  justify-content:center;
}
/* 双轮播：默认只显示 PC 套；移动端由 @media(max-width:900px) 切换 */
.carousel--mobile{
  display:none;
}

/* title */
.title-row{
  display:flex;
  gap:18px;
  align-items:center;
  margin-bottom:8px;
}

/* FIFA icon */
.wc-icon{
  width:80px;
  height:110px;
  border-radius:16px;
  border:4px solid #fff;
  background:#fff;
  box-shadow:0 10px 22px rgba(0,0,0,.08);
}

.title-col .h1{
  font-size:56px;
  font-weight:800;
  letter-spacing:1px;
  color:var(--blue);
  line-height:1;
}

/* date pill */
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:8px;
  padding:2px 88px;
  border-radius:999px;
  font-size:25px;
  color:#fff;
  background: linear-gradient(270deg, #26A17B 0%, #4EC3D0 50%, #47D3A8 100%);
}

/* 品牌 Logo（固定图） */
.choice-row{
  margin:20px 0 5px;
}
.choice-logo{
  display:block;
  max-width:100%;
  width:auto;
  height:auto;
  max-height:72px;
  min-height:56px;
  object-fit:contain;
  object-position:left center;
}

/* QR */
.qr-block{ margin-top:20px; position:relative; }

/* 二维码与平台图标同一行，底边对齐 */
.qr-row{
  display:flex;
  align-items:flex-end;
  gap:16px;
  flex-wrap:nowrap;
}

.qr-box{
  width:162px;
  height:162px;
  padding:10px;
  background:#fff;
  border-radius:14px;
  box-shadow:0 14px 30px rgba(0,0,0,.08);
  display:flex;
  align-items:center;
  justify-content:center;
}
#qrcode{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}
#qrcode canvas,
#qrcode img{
  width:100% !important;
  height:100% !important;
}

/* platform（与二维码并排时由 .qr-row 控制外边距） */
.platform{ display:flex; align-items:center; flex-shrink:0; }
.qr-row .platform{ margin:0; }
.platform-img{ width: 150px; height:33px; display:block; }

/* buttons */
.btn{
  border:0;
  cursor:pointer;
  font-size:14px;
  border-radius:999px;
  padding:12px 22px;
  min-width:240px;
  transition:transform .12s ease, box-shadow .12s ease;
}
.btn:active{ transform:translateY(1px); }

.primary{
  color:#fff;
  background: var(--blue);
}
.outline{
  color:var(--blue);
  background:rgba(255,255,255,.42);
  border:2px solid var(--blue);
  box-shadow:0 8px 22px rgba(157, 78, 221, 0.12);
}
.btn.wide{ min-width:100%; }

/* 右侧图片轮播（尺寸可改 --carousel-max） */
.carousel{
  --carousel-max: 400px;
  position: relative;
  width: min(var(--carousel-max), 86vw);
  height: min(var(--carousel-max), 86vw);
  overflow: hidden;
}
.slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  opacity:0;
  transform: translateX(-40px) scale(0.92);
}
.slide.active{
  opacity:1;
  transform: translateX(0) scale(1);
  transition: opacity 1.8s ease, transform 2.6s ease;
}
.slide.exit{
  opacity:0;
  transform: translateX(60px) scale(1.12);
  transition: opacity 2.2s ease, transform 3s ease;
}

/* PC：仅电脑端轮播加大，并略向右偏 */
@media (min-width: 901px){
  .carousel--pc{
    --carousel-max: 640px;
    width: min(var(--carousel-max), 100%);
    height: auto;
    aspect-ratio: 1;
    transform: translateX(22px);
  }
}

/* 送188 */
.badge-188{
  pointer-events:none;
  z-index:6;
  /*animation: badge-float-188 2s ease-in-out infinite;*/
}
@keyframes badge-float-188{
  0%,100%{ transform: translateY(0) rotate(-8deg); }
  50%{ transform: translateY(-4px) rotate(-8deg); }
}
/* PC：二维码右上角 */
.pc-badge{
  position:absolute;
  top:-0px;
  right:290px;
  width:60px;
  height:auto;
  transform: rotate(-8deg);
}
@media (min-width: 901px){
  .pc-badge{
    width:72px;
    transform:none;
    /* 原 right:290px 偏大图易压到二维码，略减小 = 整体往右让出空间 */
    right:280px;
  }
}

/* SEO 正文块（可读内容，提升收录） */
.seo-block{
  margin-top: 50px;
  margin-bottom: 32px;
  /*padding:14px 16px;*/
  /*background: rgba(255,255,255,.65);*/
  border-radius:14px;
  /*box-shadow:0 10px 22px rgba(0,0,0,.05);*/
  color:#2a3d66;
}
.seo-block h2{
  margin:0 0 8px;
  font-size:18px;
}
.seo-block p{
  margin:0 0 8px;
  font-size:14px;
  line-height:1.7;
}

/* 客服悬浮按钮：仅图标，无底板、无涟漪；图标上下浮动 10px（动作用在 .cs-icon，避免与 main.js 改 fab 的 top 冲突） */
.cs-fab{
  position: fixed;
  right: 10px;
  bottom: 92px;
  box-sizing: border-box;
  width: fit-content;
  height: fit-content;
  min-width: 0;
  min-height: 0;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  text-decoration: none;
  line-height: 0;
  font-size: 0;
  -webkit-tap-highlight-color: transparent;
}
.cs-fab::-moz-focus-inner{
  border: 0;
  padding: 0;
}
.cs-fab:active{
  opacity: 0.88;
}
.cs-icon{
  width: 42px;
  height: 42px;
  border-radius: 0;
  object-fit: contain;
  display: block;
  animation: cs-icon-float 2.2s ease-in-out infinite;
}
@media (min-width: 901px){
  .cs-icon{
    width: 120px;
    height: 120px;
  }
}
@keyframes cs-icon-float{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-10px); }
}

/* mobile actions */
.mobile-actions{
  display:none;
  width:100%;
  margin-top:22px;
  position:relative;
}
.mobile-badge{ display:none; }

/* ============ mobile ============ */
@media (max-width: 900px){
  /* 移动端全屏背景图（无底图遮罩，保留竖向光感） */
  body{
    background:#eceef4;
  }
  .bg{
    background-color:#eceef4;
    background-image:none;
  }
  .bg-pc-fill{
    display:none;
  }
  .bg-mobile-fill{
    display:block;
  }

  .wrap{
    padding:12px 0 24px;
    flex-direction:column;
    gap:4px;
  }
  .left,.right{ width:100%; }
  .right{ order:2; margin-top:-140px; }
  .carousel--pc{
    display:none;
  }
  .carousel--mobile{
    display:block;
  }
  /* 全宽 + 竖版比例：contain 完整显示海报上下，不再用 cover 裁切（仅移动端轮播） */
  .carousel--mobile{
    width:100vw;
    max-width:none;
    margin-left:calc(50% - 50vw);
    aspect-ratio:9 / 16;
    height:auto;
  }
  .carousel--mobile .slide{
    object-fit:contain;
    object-position:center center;
  }
  .left{ order:1; text-align:left; }
  /* 占满屏宽（仅左右各约 16px），避免中间一窄条、两侧大片空白 */
  .title-row{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    padding:0 16px;
    margin-bottom:6px;
    justify-content:center;
    align-items:center;
    gap:12px;
  }
  .title-col{
    min-width:0;
  }

  .wc-icon{
    flex-shrink:0;
    width:50px;
    height:69px;
    border-radius:12px;
    border-width:3px;
    box-shadow:0 6px 14px rgba(0,0,0,.06);
  }
  .title-col .h1{ font-size:30px; letter-spacing:0; }
  .pill{
    font-size:15px;
    font-weight:800;
    margin-top:5px;
    margin-left:auto;
    display:inline-flex;
    max-width:100%;
    box-sizing:border-box;
    padding:2px 14px;
    border-width:2px;
    box-shadow:0 4px 10px rgba(0,0,0,.07);
  }

  .choice-row{
    display:flex;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    padding:0 16px;
    margin:6px 0 4px;
    justify-content:center;
    align-items:center;
  }
  .choice-logo{
    margin:0;
    max-height:55px;
    min-height:50px;
    object-position:center right;
  }

  /* 手机不显示二维码区 */
  .qr-block{ display:none; }
  .seo-block{ display:none; }

  /* show mobile buttons */
  .mobile-actions{
    display:flex;
    flex-direction:column;
    gap:14px;
    order:3;
    max-width:460px;
    margin:-140px auto 0;
    position:relative;
    padding-left:12px;
    padding-right:12px;
  }
  .btn{
    min-width:100%;
    font-size:18px;
  }

  /* 手机：送188在下载区中间偏右上 */
  .mobile-badge{
    display:block;
    position:absolute;
    top:-32px;
    right:8%;
    width:106px;
    height:auto;
    /*transform:rotate(-8deg);*/
  }

  /* 手机：客服图标更大；垂直位置由 main.js 锚定在 #btnApp 上方 40px */
  .cs-icon{
    width:90px;
    height:auto;
  }
}
