/* ==============================================================
   檔案名稱：gameAPIs-style.css
   功能說明：TC Gaming — 天成遊戲APIs 頁面樣式表
   設計基準：1920px 固定寬度，透過 JS transform: scale() 等比縮放
   命名規則：
     - 共用元件：tcg- 前綴（與首頁一致）
     - 頁面專屬：tcg-ga- 前綴（ga = game APIs）
   瀏覽器支援：Chrome / Edge / Safari / Firefox，IE11 盡量相容
   ============================================================== */


/* ★ Web 共用樣式已移至 tcg-common-web.css ★ */


/* ★ 漢堡選單已移至 tcg-common-web.css ★ */

/* [Page-Specific] Game APIs 頁面樣式（Web 版）
   所有 web 規則均帶 .tcg-wrapper 前綴，確保不影響手機版
   ============================================================== */

/* ================================================================
   Web 版圖片尺寸控制
   ================================================================ */
.tcg-wrapper .tcg-ga-hero-crossover img,
.tcg-wrapper .tcg-ga-info-heading img,
.tcg-wrapper .tcg-ga-stats-visual img,
.tcg-wrapper .tcg-ga-partners-logo img {
    max-width: 100%;
    height: auto;
}


/* ================================================================
   Hero Section（web 版 — background-image 模式）
   ================================================================ */
.tcg-wrapper .tcg-ga-hero {
    min-height: 600px;
    background: #F5F5F5;
    position: relative;
    overflow: visible;
    z-index: 2;
    margin-top: 111px;
}
.tcg-wrapper .tcg-ga-hero-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    min-height: 600px;
    padding-top: 93px;
    padding-left: 224px;
}
.tcg-wrapper .tcg-ga-hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}
.tcg-wrapper .tcg-ga-hero-title {
    font-size: 52px;
    font-weight: 800;
    color: #262626;
    color: var(--tcg-text);
    margin-bottom: 99px;
}
.tcg-wrapper .tcg-ga-hero-btn {
    /* 可獨立調整 hero 按鈕 */
}
/* 右側跨區裝飾圖（從 Hero 底部延伸到下一個 section） */
.tcg-wrapper .tcg-ga-hero-crossover {
    position: absolute;
    right: 124px;
    bottom: -160px;
    z-index: 3;
    top: 64px;
}
.tcg-wrapper .tcg-ga-hero-crossover img {
    display: block;
}


/* ================================================================
   API Info（web 版）— APIs in TC GAMING
   白底，大標題圖片 + 4 組左紅標題右說明
   ================================================================ */
.tcg-wrapper .tcg-ga-info {
    background: #FFFFFF;
    padding: 103px 0;
    padding-left: 225px;
    padding-right: 275px;
}
/* 內容容器（獨立 hook） */
.tcg-wrapper .tcg-ga-info-inner { }
/* 大標題圖片 */
.tcg-wrapper .tcg-ga-info-heading {
    margin-bottom: 64px;
}
.tcg-wrapper .tcg-ga-info-heading img {
    display: block;
}
/* 每一組 Q&A 行 */
.tcg-wrapper .tcg-ga-info-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 60px;
    padding: 40px 0;
    border-top: 1px solid #E5E7EB;
    border-top-color: var(--tcg-gray-border);
    padding-bottom: 34px;
}
.tcg-wrapper .tcg-ga-info-row--last {
    border-bottom: none;
}
/* 左側標題 */
.tcg-wrapper .tcg-ga-info-label {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 300px;
    flex: 0 0 390px;
}
.tcg-wrapper .tcg-ga-info-title {
    font-size: 50px;
    font-weight: 800;
    color: #E5222B;
    color: var(--tcg-red);
    line-height: 1.2;
}
.tcg-wrapper .tcg-ga-info-title--dark {
    color: #262626;
    color: var(--tcg-text);
}
/* 右側說明 */
.tcg-wrapper .tcg-ga-info-content {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    max-width: 100%;
    padding-left: 93px;
}
.tcg-wrapper .tcg-ga-info-desc {
    font-size: 18px;
    color: #6B6B6B;
    color: var(--tcg-text-light);
    line-height: 1.85;
}


/* ================================================================
   Stats（web 版）— 數據展示區
   左數據卡 + 右裝飾圖
   ================================================================ */
.tcg-wrapper .tcg-ga-stats {
    background: #ebebeb;
    /* padding: 87px 0; */
    position: relative;
    margin-top: 58px;
    height: 431px;
}
/* 內容容器（獨立 hook） */
.tcg-wrapper .tcg-ga-stats-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 40px;
    height: 100%;
    padding-left: 110px;
}
.tcg-wrapper .tcg-ga-stats-left {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 55%;
    flex: 0 0 55%;
}
.tcg-wrapper .tcg-ga-stats-cards {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 31px;
    margin-bottom: 42px;
    padding-left: 23px;
}
.tcg-wrapper .tcg-ga-stats-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 30px 40px;
    text-align: center;
    -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    min-width: 404px;
    height: 220px;
}
.tcg-wrapper .tcg-ga-stats-number {
    display: block;
    font-size: 95px;
    font-weight: 800;
    color: #E5222B;
    color: var(--tcg-red);
    line-height: 1;
    margin-bottom: 8px;
}
.tcg-wrapper .tcg-ga-stats-number--alt {
    color: #E5222B;
    color: var(--tcg-red);
}

/* 滾輪數字容器（web + mobile 共用） */
.tcg-roller {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 1em;
    overflow: hidden;
}
.tcg-roller-digit {
    display: inline-block;
    height: 1em;
    overflow: hidden;
    position: relative;
    width: 0.55em;
}
.tcg-roller-strip {
    display: block;
    -webkit-transition: -webkit-transform 0s linear;
    transition: transform 0s linear;
}
.tcg-roller-strip span {
    display: block;
    height: 1em;
    line-height: 1;
    text-align: center;
}
.tcg-roller-suffix {
    display: inline-block;
    width: auto;
    line-height: 1;
}

.tcg-wrapper .tcg-ga-stats-label {
    display: block;
    font-size: 28px;
    color: #6B6B6B;
    color: var(--tcg-text-light);
    font-weight: bold;
}
.tcg-wrapper .tcg-ga-stats-desc {
    font-size: 18px;
    color: #6B6B6B;
    color: var(--tcg-text-light);
    line-height: 1.8;
    padding-bottom: 0px;
}
.tcg-wrapper .tcg-ga-stats-visual {
    /* -webkit-box-flex: 0; */
    -ms-flex: 0 0 auto;
    /* flex: 0 0 auto; */
    position: absolute;
    width: 990px;
    height: 670px;
    top: -149px;
    right: 59px;
}
.tcg-wrapper .tcg-ga-stats-visual img {
    display: block;
}


/* ================================================================
   Partners（web 版）— 合作夥伴
   白底，標題 + logo marquee + 更多廠商按鈕
   ================================================================ */
.tcg-wrapper .tcg-ga-partners {
    background: #F5F5F5;
    /* padding: 204px 0; */
    width: 1700px;
    margin: 0 auto;
    height: 630px;
    margin-top: 130px;
    border-radius: 40px;
    /* padding-bottom: 50px; */
    margin-bottom: 5px;
}
/* 內容容器（獨立 hook） */
.tcg-wrapper .tcg-ga-partners-inner {padding-top: 73px;}
.tcg-wrapper .tcg-ga-partners-title {
    text-align: center;
    font-size: 33px;
    color: #262626;
    color: var(--tcg-text);
    margin-bottom: 0px;
    font-weight: bold;
}
/* Marquee 外層包裝（獨立於 container） */
.tcg-wrapper .tcg-ga-partners-marquee-wrap {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right,
        transparent 0%, #000 80px,
        #000 calc(100% - 80px), transparent 100%);
    mask-image: linear-gradient(to right,
        transparent 0%, #000 80px,
        #000 calc(100% - 80px), transparent 100%);
}
/* Marquee 滾動容器 */
.tcg-wrapper .tcg-ga-partners-marquee {
    overflow: hidden;
    width: 100%;
    margin-bottom: 18px;
}
.tcg-wrapper .tcg-ga-partners-marquee-track {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 16px;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
}
/* 第一排：向左滾動 */
.tcg-wrapper .tcg-ga-partners-marquee--left .tcg-ga-partners-marquee-track {
    -webkit-animation: tcg-ga-marquee-left 25s linear infinite;
    animation: tcg-ga-marquee-left 25s linear infinite;
}
/* 第二排：向右滾動 */
.tcg-wrapper .tcg-ga-partners-marquee--right .tcg-ga-partners-marquee-track {
    -webkit-animation: tcg-ga-marquee-right 25s linear infinite;
    animation: tcg-ga-marquee-right 25s linear infinite;
}

@-webkit-keyframes tcg-ga-marquee-left {
    0%   { -webkit-transform: translateX(0); transform: translateX(0); }
    100% { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}
@keyframes tcg-ga-marquee-left {
    0%   { -webkit-transform: translateX(0); transform: translateX(0); }
    100% { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}
@-webkit-keyframes tcg-ga-marquee-right {
    0%   { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
    100% { -webkit-transform: translateX(0); transform: translateX(0); }
}
@keyframes tcg-ga-marquee-right {
    0%   { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
    100% { -webkit-transform: translateX(0); transform: translateX(0); }
}

/* Logo 卡片 */
.tcg-wrapper .tcg-ga-partners-logo {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-color: var(--tcg-gray-border);
    border-radius: 12px;
    padding: 16px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-height: 80px;
}
.tcg-wrapper .tcg-ga-partners-logo img {
    display: block;
}
/* 更多廠商按鈕 */
.tcg-wrapper .tcg-ga-partners-more {
    text-align: center;
    margin-top: 40px;
}

/* ================================================================
   Game APIs 頁面（gameAPIs.html）專用樣式
   前綴：tcg-m-ga-
   ================================================================ */

/* ── Hero ── */
.tcg-m-ga-hero {
    position: relative;
}
.tcg-m-ga-hero-bg {
    width: 100%;
}
.tcg-m-ga-hero-bg img {
    display: block;
    width: 100%;
}
/* Hero 標題 — absolute 定位在 banner 上方 */
.tcg-wrapper-mobile .tcg-m-ga-hero-title {
    position: absolute;
    top: 97px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
    font-size: 54px;
    font-weight: 900;
    color: #262626;
}
.tcg-m-ga-hero-btn-wrap {
    position: absolute;
    bottom: 66px;
    left: 0;
    width: 100%;
    text-align: center;
}


/* ── Info：APIs in TC GAMING + 4 組 QA ── */
.tcg-m-ga-info {
    background: #FFFFFF;
    padding: 120px 0;
}
/* APIs in TC GAMING 大標題（圖片） */
.tcg-wrapper-mobile .tcg-m-ga-info-heading {
    margin-bottom: 50px;
}
.tcg-m-ga-info-heading img {
    display: block;
}
/* QA 標題（紅色） */
.tcg-wrapper-mobile .tcg-m-ga-info-title {
    font-size: 56px;
    font-weight: 800;
    color: #ff0614;
    line-height: 1.3;
    margin-bottom: 25px;
    padding-top: 26px;
    padding-left: 48px;
}
/* QA 標題 — 深色變體（游戏API都提供哪些功能 / 透过天成集成API替您省下的不只是时间） */
.tcg-wrapper-mobile .tcg-m-ga-info-title--dark {
    color: #212529;
}
/* QA 說明文字 */
.tcg-wrapper-mobile .tcg-m-ga-info-desc {
    font-size: 24px;
    color: #6B6B6B;
    line-height: 1.5;
    padding-bottom: 50px;
    margin-bottom: 14px;
    border-bottom: 1px solid #E0E0E0;
    padding-left: 44px;
    padding-right: 44px;
    padding-bottom: 50px;
}
.tcg-wrapper-mobile .tcg-m-ga-info-desc:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}


/* ── Stats：數據展示（背景圖 + 200+ / 10000+） ── */
.tcg-m-ga-stats {
    position: relative;
    overflow: hidden;
    background: #eaecef;
    padding-bottom: 17px;
}
/* 背景圖 — 100% 寬度，不受 padding 影響（已在 section 直接子元素，不在 container 內） */
.tcg-m-ga-stats-bg {
    width: 100%;
}
.tcg-m-ga-stats-bg img {
    display: block;
    width: 100%;
}
.tcg-m-ga-stats-content {
    padding: 126px 0 8px;
}
/* 獨立白色圓角框（每張數據卡一個，窄寬度居中，垂直排列） */
.tcg-m-ga-stats-box {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 25px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    width: 503px;
    margin: 0 auto 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: -1px;
}
.tcg-m-ga-stats-number {
    font-size: 84px;
    font-weight: 900;
    line-height: 1;
}
.tcg-m-ga-stats-number--red {
    color: #ff0413;
}
.tcg-m-ga-stats-number--dark {
    color: #ff0413;
}
/* 手機版 roller 滾輪覆寫（繼承 gameAPIs-style.css 的 .tcg-roller 基礎） */
.tcg-m-ga-stats-number .tcg-roller {
    height: 1em;
}
.tcg-m-ga-stats-number .tcg-roller-digit {
    width: 0.58em;
}
.tcg-m-ga-stats-number--red .tcg-roller-strip span {
    color: #ff0214;
}
.tcg-m-ga-stats-number--dark .tcg-roller-strip span {
    color: #ff0214;
}
.tcg-m-ga-stats-label {
    font-size: 29px;
    font-weight: 600;
    color: #6B6B6B;
}
.tcg-wrapper-mobile .tcg-m-ga-stats-desc {
    font-size: 22px;
    color: #6B6B6B;
    line-height: 1.8;
    margin-top: 20px;
    margin-bottom: 30px;
    padding-left: 84px;
    padding-right: 84px;
}
/* 說明文字下方插圖（暫無圖片素材） */


/* ── Partners：合作夥伴（灰底 + 3×3 logo grid） ── */
.tcg-m-ga-partners {
    background: #FFFFFF;
    padding: 133px 0;
    padding-bottom: 52px;
}
/* 灰色圓角卡片外框 */
.tcg-m-ga-partners-card {
    background: #F0F0F0;
    border-radius: 30px;
    padding: 102px 40px 105px;
}
.tcg-wrapper-mobile .tcg-m-ga-partners-title {
    font-size: 26px;
    font-weight: 700;
    color: #262626;
    text-align: center;
    margin-bottom: 51px;
    line-height: 1;
}
.tcg-wrapper-mobile .tcg-m-ga-partners-title .tcg-m-ga-partners-num {
    font-size: 48px;
    font-weight: 900;
    color: #E5222B;
}
.tcg-m-ga-partners-title .tcg-m-ga-partners-label {
    font-size: 26px;
    font-weight: 600;
    color: #262626;
}
/* 廠商 logo 輪播（3×3 grid × 多張 slides） */
.tcg-m-ga-partners-swiper {
    margin-bottom: 30px;
}
.tcg-m-ga-partners-swiper .tcg-m-swiper-viewport {
    -webkit-mask-image: none;
    mask-image: none;
}
.tcg-m-ga-partners-swiper .tcg-m-swiper-slide {
    flex: 0 0 670px;
    padding-right: 60px;
    padding-left: 60px;
}
/* 2×5 Logo grid */
.tcg-m-ga-logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.tcg-m-ga-logo-cell {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 15px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    /* padding-right: 10px; */
    /* padding-left: 10px; */
}
.tcg-m-ga-logo-cell img {
    max-width: 100%;
    height: auto;
}
/* 更多廠商按鈕 — 全寬紅色膠囊 */
.tcg-m-ga-partners-more {
    margin-top: 10px;
    padding-left: 40px;
    padding-right: 40px;
}
.tcg-wrapper-mobile .tcg-m-ga-btn-full {
    display: flex;
    width: 100%;
    padding: 28px 0;
    font-size: 30px;
    border-radius: 999px;
}


/* ── [共用元件] 手機版水平輪播 Swiper ── */
/* ==============================================================
   [Swiper] 手機版水平輪播（在地化界面用）
   ──────────────────────────────────────────────────────────
   功能：左右滑動切換、左右虛化遮罩、圓點指示器
   由 JS initMobileSwiper() 驅動
   ============================================================== */
.tcg-m-swiper {
    position: relative;
    margin-bottom: 45px;
}
.tcg-m-swiper-viewport {
    overflow: hidden;
    /* 左右虛化遮罩 */
    -webkit-mask-image: linear-gradient(to right,
        transparent 0%, #000 80px,
        #000 calc(100% - 80px), transparent 100%);
    mask-image: linear-gradient(to right,
        transparent 0%, #000 80px,
        #000 calc(100% - 80px), transparent 100%);
}
.tcg-m-swiper-track {
    display: flex;
    gap: 20px;
    /* transition 由 JS 動態控制（animate 時加 0.4s ease，瞬間歸位時 none） */
    /* 前方有 clone slides，JS 計算 offset 時已包含置中補償 */
    /* margin-left 由 JS 動態計算：(750 - slideWidth) / 2，支援不同 slide 寬度 */
}
.tcg-m-swiper-slide {
    flex: 0 0 320px;
}

/* 圓點指示器 */
.tcg-m-swiper-dots {
    display: flex;
    justify-content: center;
    gap: 38px;
    margin-top: 34px;
}
.tcg-m-swiper-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #D0D0D0;
    cursor: pointer;
    transition: background 0.25s ease;
}
.tcg-m-swiper-dot--active {
    background: #E5222B;
}

/* ★ Mobile 共用樣式已移至 tcg-common-mobile.css ★ */

