.home-page{overflow:hidden}
.home-hero{position:relative;height:430px;overflow:hidden;background:#0b121c}
.home-hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.home-hero-inner{position:relative;z-index:1;height:100%;display:flex;align-items:flex-start}
.home-hero-copy{width:min(620px,62%);padding-top:38px;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.42)}
.home-hero .kicker{margin:0 0 14px}
.home-hero h1{margin:0 0 14px;font-size:clamp(40px,5vw,62px);line-height:1.06}
.home-hero-highlight{margin:0 0 10px;color:#d7a33b;font-size:19px;font-weight:800;letter-spacing:.06em;line-height:1.35;text-shadow:0 2px 10px rgba(0,0,0,.32)}
.home-hero p{margin:0;max-width:620px;color:rgba(255,255,255,.94);font-size:17px}

/* Five-league Hero row: final PC + H5 behavior. */
.home-leagues{display:grid;grid-template-columns:repeat(5,86px);gap:14px;justify-content:start;align-items:center;width:auto;max-width:none;margin-top:20px}
.home-league{position:relative;display:flex;align-items:center;justify-content:center;width:86px;height:86px;min-width:86px;min-height:86px;aspect-ratio:1/1;padding:4px;gap:0;border:1px solid rgba(255,255,255,.20);border-radius:14px;background:rgba(8,14,24,.28);backdrop-filter:blur(4px);overflow:hidden;box-sizing:border-box;font-size:13px;font-weight:800;white-space:nowrap;text-shadow:none}
.home-league img{display:block;width:88%;height:88%;max-width:none;max-height:none;padding:3px;margin:0;background:rgba(255,255,255,.96);border-radius:10px;box-sizing:border-box;object-fit:contain;object-position:center}
.home-league img+span{display:none}
.home-league-mark{display:grid;place-items:center;width:100%;height:100%;border-radius:0;background:#fff;color:#111;font-size:16px;font-weight:900}

.home-quick-wrap{position:relative;z-index:5;margin-top:-58px}
.home-quick-grid{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid rgba(12,17,27,.08);border-radius:18px;box-shadow:var(--shadow);overflow:hidden}
.home-quick-card{display:grid;grid-template-columns:46px 1fr 18px;align-items:center;gap:10px;min-height:100px;padding:18px 20px;border-right:1px solid var(--line);transition:.18s}
.home-quick-card:last-child{border-right:0}
.home-quick-card:hover{background:#fbfaf7;transform:translateY(-2px)}
.home-quick-icon{display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:13px;background:transparent;color:#d8aa50;font-weight:900;overflow:hidden}
.home-quick-icon img{display:block;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border-radius:inherit;object-fit:cover;object-position:center}
.home-quick-copy{display:flex;flex-direction:column;min-width:0}
.home-quick-copy strong{font-size:16px}
.home-quick-copy small{margin-top:3px;color:#7a828d;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-quick-arrow{color:#b2873a;font-size:20px}

.home-section{padding:72px 0}
.home-intro{padding-top:86px}
.home-agent,.home-faq{background:var(--soft)}

.tab-shell{border:1px solid #e7e2d8;border-radius:18px;overflow:hidden;background:#fff}
.tab-buttons{display:grid;grid-template-columns:repeat(3,1fr);background:#f7f5f1;border-bottom:1px solid #e7e2d8}
.tab-button{min-height:58px;border:0;border-right:1px solid #e7e2d8;background:transparent;padding:12px 14px;cursor:pointer;font-weight:800;color:#505660}
.tab-button:last-child{border-right:0}
.tab-button span{margin-right:8px;color:#b88a34}
.tab-button.is-active{background:#fff;color:#111}
.tab-panel{display:none;grid-template-columns:1.05fr .95fr;align-items:stretch;min-height:360px}
.tab-panel.is-active{display:grid}
.tab-copy{padding:44px 46px}
.tab-copy h3{font-size:28px;margin:8px 0 16px}
.tab-copy p{color:#4e5662;white-space:normal}
.tab-copy>.button{margin-top:12px}
.text-link{display:inline-block;margin-top:12px;color:#a87525;font-weight:800}
.tab-media{min-height:360px;background:#111922}
.tab-media picture,.tab-media img{display:block;width:100%;height:100%}
.tab-media img{object-fit:cover}

/* Final image clipping for About/Games. */
#about .tab-media,#about .tab-media picture,#games .tab-media,#games .tab-media picture{overflow:hidden;border-radius:22px;background:#f5f5f5}
#about .tab-media img,#games .tab-media img{display:block;width:100%;height:100%;object-fit:cover;border-radius:22px}

.games-tab-buttons{grid-template-columns:repeat(6,1fr)}
.games-tabs .tab-panel{grid-template-columns:42% 58%}
#games .games-tab-buttons .tab-button{position:relative;transition:background .18s ease,color .18s ease}
#games .games-tab-buttons .tab-button.is-active{background:#111922;color:#fff}
#games .games-tab-buttons .tab-button.is-active::after{content:"";position:absolute;left:22%;right:22%;bottom:0;height:3px;background:#d3a13b;border-radius:3px 3px 0 0}
#games{padding-bottom:36px}
#app{padding-top:34px}

.home-agent-shell{display:grid;grid-template-columns:.9fr 1.1fr;gap:42px;align-items:start}
.home-agent-copy h2{font-size:30px;margin:6px 0 14px}
.home-agent-copy p{color:#5d6571}
.home-agent-copy .button{margin-top:5px}
.home-agent-links{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.home-agent-card{display:grid;grid-template-columns:48px 1fr 20px;gap:14px;align-items:center;min-height:112px;padding:20px;border:1px solid var(--line);border-radius:14px;background:#fff}
.home-agent-card:hover{box-shadow:0 8px 24px rgba(0,0,0,.06)}
.home-agent-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:11px;background:#121b28;color:#d6aa51;font-weight:900}
.home-agent-card span:nth-child(2){display:flex;flex-direction:column}
.home-agent-card small{color:#7b8490;margin-top:2px}

.home-app-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.home-app-card{overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fff}
.home-app-media{aspect-ratio:1/1;background:#121b28}
.home-app-media picture,.home-app-media img{display:block;width:100%;height:100%}
.home-app-media img{object-fit:cover}
.home-app-body{padding:18px}
.home-app-body h3{margin:0 0 6px}
.home-app-body p{color:#68717c;font-size:14px}
.app-link{display:inline-block;margin-top:8px;font-weight:800;color:#9d7024}
.app-link.disabled{color:#9aa0a8}

.home-news{padding-bottom:40px}
.home-news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.home-news-card{overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fff;transition:.18s}
.home-news-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(0,0,0,.07)}
.home-news-media{aspect-ratio:16/9;background:#111922}
.home-news-media img{display:block;width:100%;height:100%;object-fit:cover}
.home-news-body{padding:18px}
.home-news-body small{color:#8b93a1}
.home-news-body h3{margin:7px 0 9px;font-size:19px;line-height:1.45}
.home-news-body p{color:#68717c;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.home-news-body span{font-weight:800;color:#9c7128}

/* Final desktop About layout: vertical tabs + scrollable copy + right image. */
@media(min-width:901px){
  #about .tab-shell{display:grid;grid-template-columns:200px minmax(0,1fr);height:520px;min-height:0;border-radius:20px;overflow:hidden;background:#fff}
  #about .tab-buttons{display:flex;flex-direction:column;grid-template-columns:none;padding:28px 22px;gap:14px;background:var(--navy2);border-right:1px solid rgba(255,255,255,.08);border-bottom:0}
  #about .tab-button{position:relative;min-height:84px;padding:18px 16px;border:1px solid rgba(255,255,255,.10);border-radius:16px;background:rgba(255,255,255,.035);color:#fff;text-align:left;font-size:15px;font-weight:800;transition:.18s ease}
  #about .tab-button span{display:inline-grid;place-items:center;width:38px;height:38px;margin-right:10px;border-radius:50%;background:#d6a43b;color:#101722;font-size:13px;font-weight:900}
  #about .tab-button:hover{background:rgba(255,255,255,.07)}
  #about .tab-button.is-active{background:linear-gradient(135deg,rgba(210,161,59,.18),rgba(255,255,255,.035));border-color:#b98a2f;color:#fff}
  #about .tab-panels{min-width:0;height:100%;min-height:0;overflow:hidden}
  #about .tab-panel{height:100%;min-height:0;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);align-items:stretch;overflow:hidden}
  #about .tab-copy{height:100%;min-height:0;max-height:100%;box-sizing:border-box;overflow-y:scroll;overflow-x:hidden;padding:42px 36px 42px 42px;scrollbar-width:thin;scrollbar-color:var(--cms-accent, #d2a348) #edf0f3}
  #about .tab-copy::-webkit-scrollbar{width:7px}
  #about .tab-copy::-webkit-scrollbar-track{background:#edf0f3;border-radius:20px}
  #about .tab-copy::-webkit-scrollbar-thumb{background:var(--cms-accent, #d2a348);border:1px solid #edf0f3;border-radius:20px}
  #about .tab-copy::-webkit-scrollbar-thumb:hover{background:var(--cms-primary, #b8872d)}
  #about .tab-copy h3{margin:8px 0 18px;font-size:28px;line-height:1.35}
  #about .tab-copy p{margin:0;color:#526071;font-size:15px;line-height:1.9}
  #about .tab-media{height:100%;min-height:0;overflow:hidden;background:#111922}
  #about .tab-media picture,#about .tab-media img{display:block;width:100%;height:100%}
  #about .tab-media img{object-fit:cover;object-position:center;border-radius:22px}
}

@media(max-width:900px){
  .home-hero-copy{width:66%;padding-top:48px}
  .home-quick-grid{grid-template-columns:repeat(2,1fr)}
  .home-quick-card:nth-child(2){border-right:0}
  .home-quick-card:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .home-intro{padding-top:96px}
  .tab-panel,.games-tabs .tab-panel{grid-template-columns:1fr}
  .tab-media{min-height:280px}
  .games-tab-buttons{grid-template-columns:repeat(3,1fr)}
  .home-agent-shell{grid-template-columns:1fr}
  .home-app-grid{grid-template-columns:repeat(2,1fr)}
  .home-news-grid{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:768px){
  #about .tab-media,#about .tab-media picture,#games .tab-media,#games .tab-media picture{border-radius:18px}
  #about .tab-media img,#games .tab-media img{border-radius:18px}
}

@media(max-width:700px){
  .home-hero .kicker{margin-bottom:8px;font-size:11px;line-height:1.3}
  .home-hero h1{margin-bottom:9px;line-height:1.05}
  #games{padding-bottom:28px}
  #app{padding-top:28px}
}

@media(max-width:600px){
  .home-hero{height:auto;min-height:0;padding-bottom:38px}
  .home-hero-image{object-position:center top}
  .home-hero-inner{height:auto;min-height:0}
  .home-hero-copy{width:100%;padding-top:18px;padding-right:0;padding-bottom:0}
  .home-hero h1{margin:0 0 9px;font-size:38px;line-height:1.05}
  .home-hero-highlight{font-size:15px;margin:0 0 8px;letter-spacing:.04em}
  .home-hero p{font-size:13px;line-height:1.55;max-width:96%}

  .home-leagues{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;width:100%;max-width:none;margin:14px 0 0;justify-content:stretch;align-items:center}
  .home-league{width:100%;height:auto;min-width:0;min-height:0;aspect-ratio:1/1;padding:3px;border-radius:10px;grid-column:auto;font-size:11px;flex-direction:row}
  .home-league img{width:90%;height:90%;padding:2px;border-radius:9px;object-fit:contain}

  .home-quick-wrap{margin-top:-22px}
  .home-quick-card{grid-template-columns:38px 1fr 14px;min-height:80px;padding:12px 10px}
  .home-quick-icon{width:36px;height:36px;border-radius:10px}
  .home-quick-icon img{width:100%;height:100%}
  .home-quick-copy strong{font-size:14px}
  .home-quick-copy small{font-size:10px}

  .home-section{padding:52px 0}
  .home-intro{padding-top:43px}
  .tab-buttons{grid-template-columns:1fr}
  .tab-button{min-height:48px;border-right:0;border-bottom:1px solid #e7e2d8}
  .tab-copy{padding:28px 22px}
  .tab-copy h3{font-size:24px}
  .tab-media{min-height:230px}
  .games-tab-buttons{grid-template-columns:repeat(3,1fr)}
  .games-tab-buttons .tab-button{font-size:12px;padding:10px 6px}

  .home-agent-shell{gap:24px}
  .home-agent-copy h2{font-size:27px}
  .home-agent-copy p{margin-bottom:0}
  .home-agent-links{grid-template-columns:1fr 1fr;gap:10px}
  .home-agent-card{grid-template-columns:36px 1fr;min-height:92px;padding:12px 11px;gap:9px}
  .home-agent-card b{display:none}
  .home-agent-icon{width:34px;height:34px}
  .home-agent-card strong{font-size:13px}
  .home-agent-card small{font-size:10px;line-height:1.45}

  .home-app-grid,.home-news-grid{grid-template-columns:1fr}
  .home-news{padding-bottom:34px}
}




/* PC APP + NEWS CTA ALIGN FINAL */
@media(min-width:901px){

    /* =========================
       APP 卡片
       ========================= */

    .home-app-grid{
        align-items:stretch;
    }

    .home-app-card{
        display:flex;
        flex-direction:column;
        height:100%;
    }

    .home-app-body{
        display:flex;
        flex-direction:column;
        flex:1 1 auto;
        height:100%;
    }

    .home-app-body > a:last-child{
        margin-top:auto;
        padding-top:18px;
    }


    /* =========================
       首页资讯卡片
       ========================= */

    .home-news-grid{
        align-items:stretch;
    }

    .home-news-card{
        display:flex;
        flex-direction:column;
        height:100%;
    }

    .home-news-body{
        display:flex;
        flex-direction:column;
        flex:1 1 auto;
        height:100%;
    }

    .home-news-body > a:last-child,
    .home-news-body > span:last-child{
        margin-top:auto;
        padding-top:18px;
    }

}
